/* ==========================================================
   Contact Page — contact-page.css  v2.0
   Matches Figma node 1187:1176.

   Layout / structural styles live in intone-design-system.css
   (page-hero, contact-offices, contact-expert-section,
    page-careers, intone-contact-marquee, intone-footer).

   This file covers FORM-specific styles + contact-stripe info.
   ========================================================== */

/* ── Page-level custom variables ── */
.intone-contact-page {
  --page-dark:  #181818;
  --page-gold:  #f6b43f;
  --page-gray:  #f3f4f5;
}


/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-form-section {
  background: #fff;
  padding: 100px 32px;
}

.contact-form-card {
  background: var(--page-gray);
  padding: 31px 32px 32px;
  width: 100%;
}

/* Heading group */
.contact-form-heading-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 80px;
}
.contact-form-main-title {
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  color: #181818;
  margin: 0;
}
.contact-form-sub-title {
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  line-height: normal;
  color: #181818;
  margin: 0;
}

/* Form grid */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-row {
  margin-bottom: 24px;
}
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.46;
  color: #181818;
}
.form-label-hint {
  font-weight: 400;
  color: #666;
  font-size: 0.9em;
}

.form-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-char-count {
  align-self: flex-end;
  font-size: 0.8em;
  color: #999;
}

/* Inputs, select & textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: none;
  border-bottom: 1px solid #c0c0c0;
  padding: 6px 0;
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: #181818;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23181818' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  cursor: pointer;
}
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
  border: 1px solid #c0c0c0;
  padding: 10px;
}

/* Custom-styled "Area of Interest" dropdown (progressive enhancement over
   the native <select>; contact-page.js builds this when JS is available —
   the plain <select> above remains the no-JS fallback). */
.cf-select {
  position: relative;
}
.cf-select-native-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cf-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: none;
  border-bottom: 1px solid #c0c0c0;
  padding: 6px 0;
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: #181818;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-select-trigger:focus-visible,
.cf-select-trigger.is-open {
  outline: none;
  border-color: #181818;
  box-shadow: 0 1px 0 0 #181818;
}
.cf-select-trigger__label.is-placeholder {
  color: #666;
}
.cf-select-caret {
  width: 14px;
  height: 8px;
  flex: 0 0 auto;
  color: #181818;
  transition: transform 0.18s ease;
}
.cf-select-trigger.is-open .cf-select-caret {
  transform: rotate(180deg);
}
.cf-select-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(9, 16, 29, 0.14);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(9, 16, 29, 0.14);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cf-select-list.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cf-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 15px;
  color: #181818;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.cf-select-option:hover,
.cf-select-option.is-active {
  background: rgba(246, 180, 63, 0.14);
}
.cf-select-option[aria-selected="true"] {
  font-weight: 600;
  border-left-color: var(--ds-gold, #f6b43f);
  background: rgba(246, 180, 63, 0.08);
}
.cf-select-option__check {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--ds-gold-label, #b07613);
  opacity: 0;
}
.cf-select-option[aria-selected="true"] .cf-select-option__check {
  opacity: 1;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #181818;
  box-shadow: 0 1px 0 0 #181818;
}
.contact-form input.error,
.contact-form input.invalid,
.contact-form select.error,
.contact-form select.invalid,
.contact-form textarea.error,
.contact-form textarea.invalid {
  border-color: #d32f2f;
  box-shadow: 0 1px 0 0 #d32f2f;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
}

/* Submit button */
.form-actions { margin-top: 8px; }
.btn-contact-submit {
  background: #181818;
  color: #fff;
  border: 1px solid #181818;
  padding: 8px 40px;
  height: 35px;
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-contact-submit:hover   { background: #2e2e2e; }
.btn-contact-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Spinner */
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf-spin 0.7s linear infinite;
}
.is-loading .btn-spinner,
.loading .btn-spinner { display: inline-block; }
.is-loading .btn-label,
.loading .btn-label   { opacity: 0.7; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* Privacy notice */
.contact-form-privacy {
  border-top: 1px solid #ccc;
  margin-top: 24px;
  padding-top: 24px;
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 16px;
  font-weight: 200;
  line-height: normal;
  color: #000;
  max-width: 620px;
}

/* Status message */
.form-status {
  margin-top: 16px;
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  display: none;
  padding: 12px 16px;
  border-left: 4px solid transparent;
}
.form-status.success {
  display: block;
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}
.form-status.error {
  display: block;
  background: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}


/* ============================================================
   CONTACT INFO STRIPE  (Ashok direct contact — no marquee here)
   ============================================================ */
.contact-stripe { overflow: hidden; }
.contact-stripe-info {
  background: #f6b43f;
  padding: 40px 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stripe-manager {
  font-family: var(--ds-font-heading, 'Public Sans', sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.36;
  color: #09101d;
  text-transform: uppercase;
  margin: 0;
}
.stripe-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stripe-details a {
  font-family: var(--ds-font-body, 'Inter', sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.36;
  color: #09101d;
  text-decoration: none;
  transition: opacity 0.2s;
}
.stripe-details a:hover { opacity: 0.7; }


/* ── Dark mode overrides ─────────────────────────────────── */

[data-theme="dark"] .contact-form-section {
  background: var(--t-bg);
}
[data-theme="dark"] .contact-form-card {
  background: var(--t-surface);
}
[data-theme="dark"] .contact-form-main-title,
[data-theme="dark"] .contact-form-sub-title {
  color: var(--t-text);
}
[data-theme="dark"] .form-group label {
  color: var(--t-text);
}
[data-theme="dark"] .form-label-hint {
  color: var(--t-text-muted);
}
[data-theme="dark"] .form-char-count {
  color: var(--t-text-faint);
}

/* Inputs */
[data-theme="dark"] .contact-form input[type="text"],
[data-theme="dark"] .contact-form input[type="email"],
[data-theme="dark"] .contact-form input[type="tel"],
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
  background: var(--t-surface-raised);
  border-bottom-color: var(--t-border-strong);
  color: var(--t-text);
}
[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form select:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: var(--t-text);
  box-shadow: 0 1px 0 0 var(--t-text);
}

/* Custom "Area of Interest" dropdown — dark mode */
[data-theme="dark"] .cf-select-trigger {
  background: var(--t-surface-raised);
  border-bottom-color: var(--t-border-strong);
  color: var(--t-text);
}
[data-theme="dark"] .cf-select-trigger:focus-visible,
[data-theme="dark"] .cf-select-trigger.is-open {
  border-color: var(--t-text);
  box-shadow: 0 1px 0 0 var(--t-text);
}
[data-theme="dark"] .cf-select-trigger__label.is-placeholder {
  color: var(--t-text-muted);
}
[data-theme="dark"] .cf-select-caret {
  color: var(--t-text);
}
[data-theme="dark"] .cf-select-list {
  background: var(--t-surface-raised);
  border-color: var(--t-border-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .cf-select-option {
  color: var(--t-text);
}
[data-theme="dark"] .cf-select-option:hover,
[data-theme="dark"] .cf-select-option.is-active {
  background: rgba(246, 180, 63, 0.16);
}
[data-theme="dark"] .cf-select-option[aria-selected="true"] {
  background: rgba(246, 180, 63, 0.1);
}

/* Submit button — flips to light on dark bg */
[data-theme="dark"] .btn-contact-submit {
  background: var(--t-text);
  color: var(--t-bg);
  border-color: var(--t-text);
}
[data-theme="dark"] .btn-contact-submit:hover {
  background: var(--t-text-muted);
  border-color: var(--t-text-muted);
}

/* Privacy notice */
[data-theme="dark"] .contact-form-privacy {
  border-top-color: var(--t-border);
  color: var(--t-text-muted);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .contact-form-section   { padding: 64px 24px; }
  .contact-form-card      { padding: 24px; }
  .contact-form-heading-group { margin-bottom: 48px; }
  .form-2col              { grid-template-columns: 1fr; gap: 0; }
  .contact-stripe-info    { padding: 32px 24px 40px; }
}
@media (max-width: 540px) {
  .contact-form-section   { padding: 48px 20px; }
  .contact-form-card      { padding: 20px; }
}

/* ============================================================
   OFFICES, EXPERT CARDS, PAGE-CAREERS  (extracted from design-system)
   ============================================================ */

/* ============================================================
   13. CONTACT — OFFICES
   ============================================================ */
.contact-offices {
  background: #fff;
  padding: 96px 32px 160px;
}

.contact-offices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-office-card {
  display: flex;
  flex-direction: column;
}

.contact-office-card__header {
  border-top: 1px solid #181818;
  padding: 16px 0;
  margin-bottom: 96px;
}

.contact-office-card__heading {
  font-family: var(--ds-font-heading);
  font-size: clamp(22px, 2.8vw, 37px);
  font-weight: 600;
  line-height: 1.115;
  color: #181818;
  text-transform: uppercase;
  margin: 0;
}

.contact-office-card__photo {
  width: 100%;
  aspect-ratio: 680 / 425;
  overflow: hidden;
  background: #d9d9d9;
}

.contact-office-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.contact-office-card__photo:hover img {
  transform: scale(1.03);
}

.contact-office-card__info {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-office-card__address {
  font-family: var(--ds-font-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #181818;
  margin: 0;
  font-style: normal;
}

.contact-office-card__phone,
.contact-office-card__email {
  font-family: var(--ds-font-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #181818;
  text-decoration: none;
  display: block;
  margin-top: 2px;
}

.contact-office-card__email:hover {
  text-decoration: underline;
}


/* ============================================================
   15. JOIN OUR TEAM  (dark, shared by contact + other pages)
   ============================================================ */
.page-careers {
  background: #f4f6f9;
  padding: 96px 32px 160px;
}

.page-careers__header {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 13px 0 96px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-careers__title {
  font-family: var(--ds-font-heading);
  font-size: clamp(24px, 2.6vw, 37px);
  font-weight: 600;
  line-height: 1.15;
  /* color: #fff; */
  text-transform: uppercase;
  margin: 0;
}

.page-careers__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* color: #fff; */
  font-family: var(--ds-font-heading);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.page-careers__link:hover {
  border-color: var(--ds-gold, #f6b43f);
  background: rgba(246, 180, 63, 0.08);
  text-decoration: none;
  color: #fff;
}

.page-careers__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.page-careers__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: #333;
}

.page-careers__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.page-careers__photo:hover img {
  transform: scale(1.05);
}


/* ============================================================


/* ── Responsive ── */

/* Contact offices responsive */
@media (max-width: 860px) {
  .contact-offices__grid {
    grid-template-columns: 1fr;
  }

  .contact-offices {
    padding: 64px 24px 96px;
  }

  .contact-office-card__header {
    margin-bottom: 48px;
  }
}

@media (max-width: 540px) {
  .contact-offices {
    padding: 48px 20px 64px;
  }
}

/* Page careers responsive */
@media (max-width: 860px) {
  .page-careers {
    padding: 64px 24px 96px;
  }

  .page-careers__photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .page-careers {
    padding: 48px 20px 64px;
  }
}


/* ── Dark mode overrides ── */

/* ── Contact offices ── */
[data-theme="dark"] .contact-offices {
  background: var(--t-bg);
}
[data-theme="dark"] .contact-office-card__header {
  border-top-color: var(--t-border-strong);
}
[data-theme="dark"] .contact-office-card__heading,
[data-theme="dark"] .contact-office-card__address,
[data-theme="dark"] .contact-office-card__phone,
[data-theme="dark"] .contact-office-card__email {
  color: var(--t-text);
}

