/* ============================================================
   Preservé Breast Augmentation — Landing Page
   Premium / editorial / understated luxury
   ============================================================ */

:root {
  /* Restrained palette: one deep neutral + one quiet accent */
  --ink: #1c1a17;          /* deep warm near-black */
  --ink-soft: #4a4640;     /* secondary text */
  --paper: #faf8f4;        /* warm off-white background */
  --paper-alt: #f1ece4;    /* alternating section tint */
  --line: #ddd6ca;         /* hairline borders */
  --accent: #6b5b4a;       /* quiet warm taupe accent */
  --accent-deep: #4a3e30;  /* hover/active */
  --todo-bg: #fff3cd;      /* visible TODO highlight */
  --todo-ink: #7a5b00;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --narrow: 760px;
  --space: clamp(3.5rem, 8vw, 7rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.8em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.8em; }
p { margin: 0 0 1.1em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.narrow { max-width: var(--narrow); }
.section { padding: var(--space) 0; }
.section-desire { background: var(--paper-alt); }
.section-candidacy { background: var(--paper-alt); }
.section-faq { background: var(--paper-alt); }

/* ---------- TODO markers (visible inline) ---------- */
.todo {
  display: inline;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 600;
  padding: 0.05em 0.4em;
  border-radius: 3px;
  border: 1px dashed #d9b94a;
  white-space: normal;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: clamp(1rem, 4vw, 2.5rem); min-height: 72px; }
.logo { text-decoration: none; display: flex; align-items: center; line-height: 1; min-width: 0; flex: 0 1 auto; }
.logo-img { height: clamp(44px, 5vw, 60px); width: auto; max-width: 100%; display: block; }
.logo-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); letter-spacing: 0.01em; }
.logo-cred { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.nav-phone { font-family: var(--sans); font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: 0.02em; white-space: nowrap; flex: 0 0 auto; }
.nav-phone:hover { color: var(--accent-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-deep); }
.btn-block { width: 100%; padding: 1.1rem; font-size: 1.05rem; }

/* Submit-button progress fill. While the lead is being sent, a lighter taupe
   shade sweeps left-to-right behind the label as a progress indicator. It is
   driven in JS from elapsed time but only reaches a full bar the moment the
   request actually settles — a full bar always means "sent", never a guess. */
.btn.has-fill { position: relative; overflow: hidden; isolation: isolate; }
.btn .btn-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.btn .btn-label { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: 0 0 var(--space); }
.hero-banner { width: 100%; margin-bottom: 0; }
.hero-banner img { width: 100%; height: clamp(234px, 37.8vw, 468px); object-fit: cover; object-position: center 62%; display: block; }
.hero-copy { max-width: var(--narrow); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.subhead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.micro-strip { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--accent); margin-top: 1.5rem; text-transform: uppercase; }

/* ---------- Signature line (elevated standalone statement) ---------- */
.section-signature { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.signature-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
}
.signature-em { display: block; color: var(--ink); margin-top: 0.35em; }

/* Featured pull-quote treatment: oversized quotation mark + thin accent rule */
blockquote.signature-line { padding-top: clamp(2rem, 5vw, 3.25rem); }
.signature-line::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.55;
  color: var(--accent);
  opacity: 0.5;
}
.signature-line::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: clamp(1.6rem, 3.5vw, 2.4rem) auto 0;
}

/* ---------- Press / "As featured in" strip ---------- */
.press-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(1.75rem, 4vw, 2.5rem) 0; background: var(--paper); }
.press-label { text-align: center; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.3rem; }
.press-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(1.25rem, 5vw, 3.75rem); }
.press-logos li { display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; }
.press-logos img {
  /* Every logo asset is trimmed tight to its wordmark, so a single shared height
     renders them all at precisely the same height. Flex align-items:center on the
     row keeps them vertically centered with one another. */
  height: clamp(28px, 3.6vw, 40px);
  width: auto; max-width: 100%; display: block;
  background: transparent;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.press-logos img:hover { opacity: 1; }

/* ---------- Section 2: desire / benefits ---------- */
.lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.4; color: var(--ink); margin-bottom: 1.8em; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.benefit-list li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.benefit-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Section 4: awareness choice ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.choice-card { border: 1px solid var(--line); background: var(--paper); padding: clamp(1.2rem, 3vw, 1.6rem); border-radius: 3px; }
.choice-card h3 { margin-top: 0; }
.choice-card p { color: var(--ink-soft); margin-bottom: 0; }
.choice-line { margin: 1.6rem 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink); }

/* ---------- Section 4: surgeon ---------- */
.section-surgeon { background: var(--ink); color: var(--paper); }
.section-surgeon h2, .section-surgeon h3 { color: var(--paper); }
.surgeon-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.surgeon-text { display: flex; flex-direction: column; }
.anchor-line { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--paper); max-width: 22ch; margin: 0 0 clamp(2.2rem, 4vw, 3rem); }
.surgeon-media { margin: 0; position: relative; min-height: 380px; }
.surgeon-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 3px; display: block; }
.surgeon-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  border-radius: 0 0 3px 3px;
}
.cred-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.cred-stack li { position: relative; padding-left: 1.6rem; color: #e6ded2; line-height: 1.5; }
.cred-stack li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.section-surgeon .todo { color: var(--todo-ink); }

/* ---------- Section 6: candidacy ---------- */
.candidacy-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.9rem; }
.candidacy-list li { position: relative; padding-left: 2rem; }
.candidacy-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.muted-line { color: var(--ink-soft); margin: -0.6rem 0 1.4rem; }
.closing-line { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }

/* ---------- The Experience: deposit callout ---------- */
.deposit-line {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-alt);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Testimonial (reassurance pull-quote) ---------- */
.section-testimonial { background: var(--paper-alt); text-align: center; }
.testimonial { margin: 0; }
.testimonial blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.testimonial figcaption {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.testimonial-more { margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- VECTRA 3D simulation (consultation experience) ---------- */
.section-vectra { background: var(--paper); }
.vectra-intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.5rem); }
.vectra-figure { margin: 0; max-width: var(--narrow); }
.vectra-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px -24px rgba(28, 26, 23, 0.4);
}
.vectra-caption { margin-top: 1.6rem; }
.vectra-legend-lead {
  margin: 0 0 0.7rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}
.vectra-legend { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.55rem; }
.vectra-legend li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); line-height: 1.5; }
.vectra-legend li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.vectra-legend strong { color: var(--ink); font-weight: 600; }
.vectra-disclaimer { margin: 0; font-family: var(--serif); font-style: italic; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Patient testimonial video (featured social proof) ---------- */
.section-testimonial-video { background: var(--paper-alt); text-align: center; padding-bottom: calc(var(--space) / 2); }
.tv-heading { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.tv-figure { margin: 0 auto; max-width: 380px; }
.tv-video {
  width: 100%;
  height: auto;
  aspect-ratio: 405 / 720;   /* portrait 9:16 source — reserves space, no layout shift */
  display: block;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px -24px rgba(28, 26, 23, 0.4);
}
.tv-disclaimer {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Section 7: FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; color: var(--accent); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 1.6rem; color: var(--ink-soft); max-width: 60ch; }
.faq-answer p { margin: 0; }

/* Smooth open/close. ::details-content animates the panel in supporting
   browsers; older browsers fall back to an instant (still accessible) toggle. */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.32s ease, opacity 0.32s ease, content-visibility 0.32s allow-discrete;
  transition-behavior: allow-discrete;
}
.faq-item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* ---------- Section 8: consultation form ---------- */
.section-consult {
  background: var(--paper-alt);
  padding-top: calc(var(--space) / 2);
  padding-bottom: calc(var(--space) + var(--sticky-cta-space, 82px));
}
.consult-intro { color: var(--ink-soft); max-width: 52ch; margin-bottom: 0.75rem; }
/* Matter-of-fact fee disclosure, matching the supporting intro text (not a heading, no alert styling) */
.consult-fee { color: var(--ink-soft); max-width: 52ch; margin: 0 0 2.5rem; }
.form-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 90px;
}

/* Distinct card around the primary consultation form */
.consult-card {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px -22px rgba(28, 26, 23, 0.35);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.consult-lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.consult-finance-note {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
#consult-form { display: grid; gap: 1.4rem; max-width: 560px; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.field .optional { text-transform: none; font-weight: 400; color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 2px; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[readonly] { background: #efeae1; color: var(--ink-soft); cursor: default; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: 0.85rem; color: #b3261e; }
.form-status { padding: 0.9rem 1.1rem; border-radius: 2px; font-size: 0.95rem; }
.form-status.is-error { background: #fbe9e7; color: #8a1c14; }
#consult-form input[type="submit"] { -webkit-appearance: none; appearance: none; }
.consult-microcopy {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
  text-align: center;
}

/* Contact-preference radio selector ("How should we reach you?") */
.field-radios { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-radios legend { padding: 0; margin-bottom: 0.55rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-opt {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.radio-opt:hover { border-color: var(--accent); }
.radio-opt input { accent-color: var(--accent); margin: 0; }
.radio-opt:has(input:checked) { border-color: var(--accent); background: var(--paper-alt); }
.radio-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Spam honeypot — a real input removed from view (NOT display:none / NOT
   type="hidden") so bots fill it while real users never see or tab to it. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---------- $500 reassurance at the decision point (additive) ---------- */
.consult-reassure {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--accent);
  max-width: 560px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8d0c4; padding: var(--space) 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.site-footer p { margin: 0 0 0.5rem; font-size: 0.92rem; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: var(--paper); }
.site-footer a { color: #e6ded2; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.footer-note { font-style: italic; margin-top: 1rem; }

/* ---------- Sticky CTA (always present, every viewport) ---------- */
.sticky-cta {
  position: fixed; right: 1.5rem; bottom: 1.5rem; left: auto; z-index: 60;
  display: flex; gap: 12px; align-items: stretch;
  font-family: var(--sans);
  box-shadow: 0 12px 30px -10px rgba(28, 26, 23, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
/* Hidden while the quiz/consultation form is on screen; restored on scroll away. */
.sticky-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  pointer-events: none;
}
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  text-decoration: none; font-family: var(--sans); font-weight: 600;
  font-size: 0.95rem; line-height: 1; letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem; border-radius: 3px;
  border: 1px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cta-primary {
  background: var(--ink); color: var(--paper);
  user-select: text;
}
.cta-primary:hover, .cta-primary:focus { background: var(--accent-deep); color: var(--paper); border-color: var(--accent-deep); }
.cta-primary[aria-disabled="true"]:hover, .cta-primary[aria-disabled="true"]:focus {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.cta-secondary {
  background: transparent; color: var(--ink);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--accent-deep); color: var(--paper); border-color: var(--accent-deep);
}

/* ---------- Anchor scroll offset (clears the sticky header) ---------- */
/* Header is ~73px; the buffer keeps each section heading fully below it
   when reached via an anchor link or the sticky CTA. */
#consultation,
#lead-form,
#what-is-preserve,
#why,
#experience,
#reviews,
#vectra,
#faq { scroll-margin-top: 90px; }

/* ---------- Focus visibility (WCAG) ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .surgeon-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .surgeon-media { order: -1; max-width: 420px; }
  .anchor-line { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .subhead { max-width: none; }
}
@media (max-width: 768px) {
  .sticky-cta {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper);
  }
  .cta-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 0.85rem 0.7rem;
    font-size: 0.95rem;
  }
  main { padding-bottom: 5rem; }
  .nav-phone { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Consultation form: 3-step flow (quiz → quiz → contact) ----------
   Graceful degradation: with JS off, every .flow-step stays visible and stacked
   as one long form. JS adds .flow-enhanced to the container, which hides all but
   the active panel and reveals the progress indicator and "← Back" links. Panel
   hiding is class-driven here — never inline display:none in the HTML. */
.consult-flow { transition: height 0.28s ease; }

.flow-step { display: grid; gap: 1.4rem; align-content: start; }
.flow-step .flow-heading { margin: 0; }
/* The heading is given tabindex="-1" and focused by script when a step advances
   (to reposition the reading cursor for accessibility). It is never reached by
   keyboard, so suppress the browser's native focus ring — otherwise a stray blue
   outline paints around the question text right after tapping an answer card. */
.flow-heading:focus, .flow-heading:focus-visible { outline: none; }

.flow-enhanced .flow-step { display: none; }
.flow-enhanced .flow-step.is-active { display: grid; animation: flowStepIn 0.26s ease; }

@keyframes flowStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Progress indicator — three bars + "N of 3" count. A JS-only affordance, so it
   stays hidden until .flow-enhanced is applied. */
.flow-progress { display: none; }
.flow-enhanced .flow-progress {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.7rem;
}
.flow-bars { display: flex; flex: 1; gap: 6px; }
.flow-bars i {
  flex: 1; height: 4px; background: var(--line); border-radius: 2px;
  transition: background-color 0.25s ease;
}
.flow-bars i.is-on { background: var(--accent); }
.flow-count {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap;
}

/* Quiz option cards — large, full-width selectable cards, matching the contact
   preference selector styling scaled up. */
.quiz-options { display: grid; gap: 0.7rem; }
.quiz-card {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.35; color: var(--ink);
  text-align: left; cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.quiz-card:hover { border-color: var(--accent); }
.quiz-card input { accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.quiz-card:has(input:checked) { border-color: var(--accent); background: var(--paper-alt); }
.quiz-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Muted "← Back" text link — JS-only, hidden until enhanced. */
.flow-back { display: none; }
.flow-enhanced .flow-back {
  display: inline-flex; align-items: center; gap: 0.3rem; justify-self: start;
  margin: 0; padding: 0; border: 0; background: none;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.02em;
  color: var(--ink-soft); cursor: pointer; transition: color 0.2s ease;
}
.flow-enhanced .flow-back:hover { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  .flow-enhanced .flow-step.is-active { animation: none; }
}
