/* ============================================================
   Contact page — Mithavo
   Reuses tokens, header, breadcrumb, footer from main.css/blog.css
   ============================================================ */

/* ---------- Hero ---------- */
.contact-hero {
  padding: 56px 0 32px;
}
.contact-hero .hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(34px, 5.2vw, 60px);
  color: var(--foreground);
  margin: 18px 0 18px;
  max-width: 22ch;
}
.contact-hero .hero-title-muted {
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
.contact-hero .hero-sub {
  max-width: 64ch;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.contact-hero .hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--muted-foreground);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.contact-hero .hero-meta li { text-transform: uppercase; }

/* ---------- Section heads (shared) ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 28px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--foreground);
}
.section-meta {
  font-size: 12px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ---------- Enquiry type cards ---------- */
.enquiry-types { padding: 24px 0 16px; }
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.type-card {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px;
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.type-card:hover {
  border-color: color-mix(in oklab, var(--foreground) 22%, transparent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.type-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-card:has(input:checked) {
  border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  background: color-mix(in oklab, var(--primary) 4%, var(--background));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent),
    var(--shadow-soft);
}
.type-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.type-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.type-desc {
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ---------- Contact section (form + rail) ---------- */
.contact-section { padding: 40px 0 56px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
  }
}

/* ---------- Form ---------- */
.contact-form {
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-elev);
  position: relative;
}
@media (min-width: 720px) {
  .contact-form { padding: 36px; }
}
.form-head { margin-bottom: 24px; }
.form-sub {
  font-size: 13.5px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 6px 0 0;
  max-width: 60ch;
}
.req { color: var(--primary); margin-left: 2px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: color-mix(in oklab, var(--foreground) 18%, transparent);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 15%, transparent);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent);
}
.field-hint {
  font-size: 12px;
  color: var(--muted-foreground);
}
.field-error {
  font-size: 12px;
  color: var(--primary);
  min-height: 0;
}
.field.has-error .field-error { min-height: 16px; }

/* Preferred contact method */
.pref-field { border: 0; padding: 0; margin: 0; }
.pref-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-pill {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pref-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pref-pill:hover { border-color: color-mix(in oklab, var(--foreground) 22%, transparent); }
.pref-pill:has(input:checked) {
  border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  background: color-mix(in oklab, var(--primary) 6%, var(--background));
  color: var(--foreground);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent);
}

/* Consent */
.consent-field {
  flex-direction: row; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--muted-foreground); line-height: 1.55;
}
.consent-field input {
  width: 16px; height: 16px; margin-top: 2px;
  accent-color: var(--primary);
}

/* Actions */
.form-actions {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.form-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-size: 14px;
}
.form-note { font-size: 12px; color: var(--muted-foreground); margin: 0; }

/* Success state */
.form-success {
  position: absolute; inset: 0;
  background: var(--background);
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px;
  animation: fadeIn .35s ease;
  z-index: 2;
}
.form-success[hidden] { display: none; }
.success-mark {
  height: 56px; width: 56px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 12%, var(--background));
  color: var(--primary);
  font-size: 26px;
  border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent);
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.form-success p {
  margin: 0; color: var(--muted-foreground);
  max-width: 36ch; font-size: 13.5px; line-height: 1.6;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Rail ---------- */
.contact-rail { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 980px) {
  .contact-rail { position: sticky; top: 96px; }
}
.rail-card {
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.rail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}
.rail-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rail-list li { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.rail-row-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted-foreground);
}
.rail-list a { color: var(--foreground); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.rail-list a:hover { border-bottom-color: var(--primary); }
.rail-offices .office-city { font-weight: 600; color: var(--foreground); font-size: 13.5px; }
.rail-offices .office-line { color: var(--muted-foreground); font-size: 12.5px; }
.rail-status-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--foreground); margin: 0 0 8px;
}
.rail-status-note { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.55; margin: 0; }

/* ---------- Who section ---------- */
.who-section { padding: 56px 0; border-top: 1px solid var(--hairline); }
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.who-card {
  background: var(--background);
  padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s ease;
}
.who-card:hover { background: color-mix(in oklab, var(--primary) 3%, var(--background)); }
.who-code {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.22em; color: var(--muted-foreground);
  text-transform: uppercase;
}
.who-card h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  margin: 2px 0 4px; letter-spacing: -0.01em;
}
.who-card p { font-size: 13px; line-height: 1.6; color: var(--muted-foreground); margin: 0; }

/* ---------- Next steps ---------- */
.next-section { padding: 56px 0; border-top: 1px solid var(--hairline); }
.next-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: steps;
}
.next-steps li {
  position: relative;
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.next-steps li::after {
  content: "";
  position: absolute; left: 20px; right: 20px; top: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), color-mix(in oklab, var(--primary) 0%, transparent));
  border-radius: 2px;
  opacity: .7;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary);
}
.next-steps h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  margin: 0; letter-spacing: -0.01em;
}
.next-steps p { font-size: 13px; line-height: 1.6; color: var(--muted-foreground); margin: 0; }

/* ---------- Trust strip ---------- */
.trust-section {
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--background-alt) 60%, var(--background));
}
.trust-title {
  font-family: var(--font-display);
  font-weight: 500; font-size: 18px;
  letter-spacing: -0.01em; margin: 0 0 16px;
  color: var(--foreground);
}
.trust-grid {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.trust-grid li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--foreground);
  padding: 8px 14px;
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.trust-mark {
  color: var(--primary); font-size: 9px;
  display: inline-grid; place-items: center;
}

/* ---------- FAQ ---------- */
.faq-section { padding: 56px 0; border-top: 1px solid var(--hairline); }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.faq-item {
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: color-mix(in oklab, var(--foreground) 18%, transparent);
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500; color: var(--foreground);
  letter-spacing: -0.005em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted-foreground);
  transition: transform .2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-item p {
  margin: 0; padding: 0 20px 18px;
  font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground);
  max-width: 70ch;
}

/* ---------- Final CTA ---------- */
.final-cta-section { padding: 48px 0 72px; border-top: 1px solid var(--hairline); }
.final-cta-card {
  background: var(--foreground);
  color: var(--background);
  border-radius: 18px;
  padding: 36px;
  display: grid;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in oklab, var(--gold) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.final-cta-copy, .final-cta-actions { position: relative; z-index: 1; }
.final-cta-card .kicker { color: var(--gold); }
.final-cta-card .section-title { color: var(--background); max-width: 22ch; }
.final-cta-copy p { color: color-mix(in oklab, var(--background) 70%, transparent); font-size: 14px; margin: 10px 0 0; }
.final-cta-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.final-cta-btn { padding: 12px 22px; font-size: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--background) 75%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--background) 25%, transparent);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.btn-ghost:hover { color: var(--background); border-bottom-color: var(--background); }

@media (min-width: 820px) {
  .final-cta-card {
    grid-template-columns: 1.4fr 1fr;
    padding: 48px;
  }
  .final-cta-actions { justify-content: flex-end; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
