/* ==========================================================================
   Garden Sansar — Career Application Page Styles
   Matching gardensewa.com/career exact Airtable-style WordPress Form UI
   ========================================================================== */

.career-page {
  background: #ffffff;
  color: #1c1e21;
  padding: 0 0 60px;
  min-height: 80vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Top Center Header matching gardensewa.com/career */
.career-top-header {
  padding: 36px 16px 20px;
  text-align: center;
  background: #ffffff;
}

.career-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #65676b;
  margin-bottom: 8px;
}

.career-breadcrumbs a {
  color: #65676b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.career-breadcrumbs a:hover {
  color: #155d59;
}

.career-breadcrumbs .breadcrumb-chevron {
  color: #9ca3af;
  margin: 0 1px;
  display: inline-block;
  vertical-align: middle;
}

.career-breadcrumbs span {
  font-weight: 600;
  color: #1f2937;
}

.career-page-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

/* Centered Form Container */
.career-container {
  max-width: 680px;
  margin: 16px auto 0;
  padding: 0 20px;
}

/* Status Notifications */
.career-notice {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.career-notice-icon {
  font-size: 17px;
  line-height: 1;
  font-weight: bold;
}

.career-notice strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.career-notice p {
  margin: 0;
}

.career-notice.success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.career-notice.error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* Form Wrap (Clean, borderless, matching gardensewa.com/career) */
.career-form-wrap {
  background: #ffffff;
  padding: 10px 0 30px;
}

.career-form-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1c1e21;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.career-form-head p {
  font-size: 13.5px;
  color: #65676b;
  margin: 0;
  line-height: 1.45;
}

/* Thin Section Divider HR matching screenshot */
.career-hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 22px 0 20px;
}

.career-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* Fields & Layout */
.career-form {
  display: flex;
  flex-direction: column;
}

.career-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.career-field:last-child {
  margin-bottom: 0;
}

.career-field label {
  font-size: 13.5px;
  font-weight: 500;
  color: #1c1e21;
  display: block;
  margin: 0 0 6px;
}

.career-field .req {
  color: #e11d48;
  margin-left: 2px;
  font-weight: 600;
}

.career-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.career-field input[type="text"],
.career-field input[type="tel"],
.career-field input[type="email"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, outline 0.15s ease;
  box-sizing: border-box;
}

.career-field input[type="text"]:focus,
.career-field input[type="tel"]:focus,
.career-field input[type="email"]:focus {
  border-color: #3b82f6;
  outline: 1px solid #3b82f6;
}

/* Section Subheadings */
.career-section-header {
  margin: 0 0 16px;
}

.career-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  margin: 0 0 4px;
}

.career-section-subtitle {
  font-size: 13px;
  color: #65676b;
  margin: 0;
  line-height: 1.4;
}

/* Select Wrap with subtle chevron */
.career-select-wrap {
  position: relative;
  width: 100%;
}

.career-select-wrap select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, outline 0.15s ease;
}

.career-select-wrap select:focus {
  border-color: #3b82f6;
  outline: 1px solid #3b82f6;
}

.career-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
}

/* Interactive Tag Picker for Area of Expertise (Exact match to Airtable UI) */
.career-tag-picker {
  position: relative;
  width: 100%;
}

.career-tag-box {
  min-height: 40px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, outline 0.15s ease;
}

.career-tag-box:focus,
.career-tag-box.is-open {
  border-color: #3b82f6;
  outline: 1px solid #3b82f6;
}

.career-tags-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.career-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.career-pill-remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.career-pill-remove:hover {
  color: #dc2626;
}

.career-tag-add-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.career-tag-add-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

/* Tag Picker Dropdown Menu */
.career-tag-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  padding: 6px 0;
}

.career-tag-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: #374151;
  user-select: none;
  transition: background 0.15s ease;
  margin: 0;
}

.career-tag-dropdown-item:hover {
  background: #f3f4f6;
}

.career-tag-dropdown-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
  cursor: pointer;
  margin: 0;
}

/* Resume/CV Upload Box (Solid border with centered text matching screenshot) */
.career-upload-box {
  position: relative;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, outline 0.15s ease, background 0.15s ease;
}

.career-upload-box:hover,
.career-upload-box.drag-over {
  border-color: #3b82f6;
  outline: 1px solid #3b82f6;
}

.career-upload-box.has-file {
  border-color: #10b981;
  background: #f0fdf4;
}

.career-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.career-upload-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.career-upload-icon {
  color: #65676b;
  flex-shrink: 0;
}

.career-upload-label {
  font-size: 13.5px;
  color: #65676b;
  font-weight: 400;
}

.career-upload-box.has-file .career-upload-label {
  color: #047857;
  font-weight: 500;
}

/* Cover Letter Textarea (Exact active blue border from screenshot) */
.career-field textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.career-field textarea:focus {
  border: 2px solid #3b82f6;
  outline: none;
}

/* Form Actions */
.career-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 6px;
  gap: 16px;
}

.career-reset-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.career-reset-btn:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.career-submit-btn {
  background: #1f2937;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.career-submit-btn:hover {
  background: #111827;
}

/* Bottom Disclaimer */
.career-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 24px 0 0;
}

.career-disclaimer a {
  color: #65676b;
  text-decoration: underline;
}

.career-disclaimer a:hover {
  color: #111827;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .career-container {
    padding: 0 16px;
  }

  .career-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
