/* =========================================================================
   The Annuity Institute - Income-VSL landing page (focused overrides)
   Loads AFTER ../styles/style.css, reusing its brand tokens (--ai-*).
   Scope: VSL video frame, the soft-reveal gap section, gap result, and the
   two-door branch. Mobile-first. Audience 55-75. No em dashes anywhere.
   ========================================================================= */

/* The [hidden] attribute must always win, even over display:flex sections like
   .ai-hero. Without this, goToSurvey/goToMoreVideos set #vsl-funnel.hidden=true
   but .ai-hero { display:flex } overrides the UA [hidden]{display:none}, so the
   hero would stay visible behind the survey / more-videos screen. */
[hidden] { display: none !important; }

/* -- Hero / VSL ------------------------------------------------------- */
.ai-vsl-hero {
  /* keep the video near the top of the fold on tall screens */
  align-items: flex-start;
}

/* Headline: the question holds ONE line on desktop with the gold accent on
   its own single line beneath it (operator direction 2026-07-06 - the shared
   .ai-h1 clamp was large enough to push "in Retirement?" onto a second
   line). Sized so the 45-char question fits the 720px .ai-hero-inner with
   margin; nowrap only kicks in >=760px so phones keep a readable size and
   wrap as two balanced lines instead. */
.ai-vsl-hero .ai-h1 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  text-wrap: balance;
}
@media (min-width: 760px) {
  .ai-vsl-hero .ai-h1-line { white-space: nowrap; }
}

.ai-h2 {
  font-family: var(--ai-font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ai-navy);
  margin: 0 0 var(--ai-space-3) 0;
}

/* Video frame: dark mat + gold hairline, like the watch-page reel.
   The live "Permission to Spend" renders are 1080x1080 SQUARE, so the player
   is 1:1 (not 16:9) and the frame is narrower than the old 720px so the
   square does not tower past the fold on laptops. */
.ai-vsl-frame {
  position: relative; /* anchors the #vsl-unmute overlay */
  margin: var(--ai-space-5) auto var(--ai-space-5);
  max-width: 560px;
  background: var(--ai-navy-deep);
  border: 1px solid var(--ai-gold-deep);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-lg);
  overflow: hidden;
}

/* Gold pulsing sound chip (operator pick 2026-07-02; ported from the
   booking-flow demo). Bottom-CENTER of the video frame (operator request
   2026-07-03: centered, was bottom-left), solid gold, pulses to say "tap me";
   the click handler unmutes AND restarts the video from 0.
   .ai-vsl-frame is position: relative (above), which anchors this chip.
   NOTE: the pulse keyframes animate box-shadow only, so the centering
   transform is safe from being clobbered by the animation. */
.ai-vsl-soundchip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--ai-gold);
  color: var(--ai-navy-deep, #0a1628);
  font-family: var(--ai-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: ai-vsl-chip-pulse 2s ease-in-out infinite;
}
.ai-vsl-soundchip:hover { background: var(--ai-gold-soft); }
@keyframes ai-vsl-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.65), 0 4px 14px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(201, 169, 97, 0), 0 4px 14px rgba(0, 0, 0, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-vsl-soundchip { animation: none; }
}
.ai-vsl-sound-ico { width: 20px; height: 20px; fill: currentColor; }
.ai-vsl-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
}
/* Older browsers without aspect-ratio: keep a sane height. */
@supports not (aspect-ratio: 1 / 1) {
  .ai-vsl-video { min-height: 280px; }
}

/* Always-on booking CTA (soft gate). */
.ai-vsl-bookbar {
  margin: 0 auto var(--ai-space-4);
  text-align: center;
}

/* CTA B "Learn even more..." opens the more-videos screen. It reuses the solid
   gold .ai-cta-button so it reads as a real SECONDARY button below the navy
   primary Book CTA: clearly a button, distinct from the primary. These
   overrides only let the long label wrap onto two lines on narrow screens. The
   hero is a flex column with align-items:flex-start, so this row centers its own
   button. */
.ai-vsl-more-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: var(--ai-space-4) 0 0;
}
.ai-vsl-learn-more {
  max-width: 540px;
  line-height: 1.35;
  white-space: normal;
}

/* -- Gap form (the more-videos income-gap calculator) ----------------- */
.ai-vsl-gap-form {
  display: flex;
  flex-direction: column;
  gap: var(--ai-space-5);
  text-align: left;
  background: var(--ai-paper);
  border: 1px solid var(--ai-border-soft);
  border-radius: var(--ai-radius-lg);
  padding: var(--ai-space-6);
  box-shadow: var(--ai-shadow-md);
}
.ai-vsl-field {
  display: flex;
  flex-direction: column;
  gap: var(--ai-space-2);
}
.ai-vsl-field-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ai-navy);
}
.ai-vsl-field-hint {
  font-size: 0.9rem;
  color: var(--ai-text-soft);
}
.ai-vsl-field input,
.ai-vsl-field select {
  font-family: var(--ai-font-body);
  font-size: 1.15rem;
  padding: 14px 16px;
  border: 1.5px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  background: var(--ai-cream);
  color: var(--ai-text);
  min-height: 52px;
}
.ai-vsl-field input:focus-visible,
.ai-vsl-field select:focus-visible {
  border-color: var(--ai-gold-deep);
}
/* State select (operator request 2026-07-03): match the text inputs instead of
   the native widget (gray border, ~19px tall, tiny font). appearance:none so
   the padding/height apply cross-browser; a navy SVG chevron replaces the
   native arrow (mirrors .ai-field-select in the shared stylesheet). */
.ai-vsl-field select {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230a1f3a' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.ai-vsl-gap-submit {
  align-self: stretch;
  width: 100%;
}

/* -- Gap result (pain shown EXACT) ------------------------------------ */
.ai-vsl-result,
.ai-vsl-covered {
  margin-top: var(--ai-space-6);
  background: var(--ai-paper);
  border: 1px solid var(--ai-border-soft);
  border-radius: var(--ai-radius-lg);
  padding: var(--ai-space-6);
  box-shadow: var(--ai-shadow-md);
}
.ai-vsl-result-label,
.ai-vsl-covered-label {
  font-size: 1.05rem;
  color: var(--ai-text-muted);
  margin: 0 0 var(--ai-space-2);
}
.ai-vsl-result-amount {
  font-family: var(--ai-font-display);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ai-navy);
  margin: 0 0 var(--ai-space-4);
}
.ai-vsl-result-note,
.ai-vsl-covered-note {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ai-text-muted);
  margin: 0 auto var(--ai-space-5);
  max-width: 480px;
}
.ai-vsl-covered-label {
  font-family: var(--ai-font-display);
  font-size: clamp(1.8rem, 4.4vw, 2.2rem);
  font-weight: 700;
  color: var(--ai-success);
}

/* -- More-videos screen (CTA B "Learn even more") ---------------------
   The qualified-nurture door: deep-dive clips + an unlocked gap tool + a Book
   CTA. Mirrors the gap-reveal section shell; reuses .ai-vsl-frame / .ai-vsl-video
   / .ai-vsl-gap-form / .ai-vsl-result / .ai-vsl-covered. PLACEHOLDER content. */
.ai-vsl-more {
  /* Top padding matches the hero (--ai-space-3) so "A deeper look..." sits
     as close under the banner as the hero H1 does; no border-top because
     the section shows directly under the header's own hairline (a second
     line read as a doubled border). Operator spacing note 2026-07-02. */
  padding: var(--ai-space-3) var(--ai-space-5) var(--ai-space-8);
  background:
    radial-gradient(ellipse at top, rgba(201, 169, 97, 0.08) 0%, transparent 60%),
    var(--ai-cream-deep);
}
.ai-vsl-more-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Embedded survey section. #vsl-survey is not a flex .ai-hero parent, so its
   .ai-hero-inner (max-width 720, no auto margins) would pin left. Center it +
   give the section breathing room, matching the more-videos screen. */
.ai-vsl-survey {
  padding: var(--ai-space-7) var(--ai-space-5) var(--ai-space-8);
}
.ai-vsl-survey .ai-hero-inner {
  margin-left: auto;
  margin-right: auto;
}
.ai-vsl-more-title { margin-top: 0; }
.ai-vsl-more-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ai-text-muted);
  margin: 0 auto var(--ai-space-6);
  max-width: 520px;
}
/* Carousel: one deep-dive clip at a time (space-efficient, a single player).
   Prev/Next + a "Video N of 5" indicator below the frame. */
.ai-vsl-carousel {
  margin: 0 auto var(--ai-space-6);
  max-width: 720px;
}
/* Keep the frame's auto side-margins: .ai-vsl-frame is narrower (560px) than
   this 720px container, so `margin: 0 0` pinned the video LEFT of the
   centered heading (operator screenshot 2026-07-02). */
.ai-vsl-carousel .ai-vsl-frame { margin: 0 auto var(--ai-space-3); }
.ai-vsl-more-clip-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ai-navy);
  margin: 0;
}
.ai-vsl-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ai-space-4);
  margin-top: var(--ai-space-3);
}
.ai-vsl-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 96px;
  padding: 10px 20px;
  background: var(--ai-paper);
  color: var(--ai-navy);
  border: 1.5px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  font-family: var(--ai-font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: background 200ms var(--ai-ease-out),
              border-color 200ms var(--ai-ease-out);
}
.ai-vsl-carousel-btn:hover:not(:disabled) {
  background: var(--ai-cream);
  border-color: var(--ai-gold-deep);
}
.ai-vsl-carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ai-vsl-carousel-position {
  min-width: 96px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ai-text-muted);
}
.ai-vsl-more-gap {
  margin: 0 auto var(--ai-space-6);
  max-width: 620px;
}
.ai-vsl-more-gap-title { margin-bottom: var(--ai-space-5); }
.ai-vsl-more-bookbar { margin-top: var(--ai-space-2); }

/* Gap-tool lock panel: shown until all 5 carousel videos are watched (the
   engine swaps it for the form). Soft card, calm, with a live counter. */
.ai-vsl-gap-lock {
  margin: 0 auto;
  max-width: 480px;
  padding: var(--ai-space-5) var(--ai-space-5);
  background: var(--ai-paper);
  border: 1.5px dashed var(--ai-gold-deep);
  border-radius: var(--ai-radius-lg);
}
.ai-vsl-gap-lock-msg {
  margin: 0 0 var(--ai-space-2);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ai-text);
}
.ai-vsl-gap-lock-progress {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ai-gold-deep);
}

/* -- Carrier conveyor (ported from landing-page-income v5 below-fold) --
   Continuous right-to-left marquee; the track holds two identical logo sets
   and translates -50% for a seamless loop. Anchors the education screen. */
.ai-vsl-more-carriers { margin-top: var(--ai-space-7); }
/* Hero copy of the conveyor: the hero is a flex column (align-items:
   flex-start), so span the full width explicitly. */
.ai-vsl-hero-carriers { width: 100%; margin-top: var(--ai-space-6); }
.ai-v5-carriers { margin: 0 auto; max-width: 100%; }
.ai-v1-carriers-label {
  font-size: 0.72rem;
  color: var(--ai-text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 var(--ai-space-4);
  opacity: 0.55;
}
.ai-v5-marquee {
  overflow: hidden;
  width: 100%;
  /* Fade both edges so logos glide in/out instead of hard-clipping. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.ai-v5-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ai-marquee-scroll 32s linear infinite;
}
/* -50% = exactly one duplicated set, so the loop is seamless. */
@keyframes ai-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ai-v5-marquee:hover .ai-v5-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ai-v5-marquee-track { animation: none; }
}
.ai-v5-marquee-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 52px;
  padding: 0 26px;
}
.ai-v5-marquee-logo img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
}
@media (max-width: 540px) {
  .ai-v5-marquee-logo { width: 116px; height: 46px; padding: 0 18px; }
  .ai-v5-marquee-logo img { max-height: 38px; }
}

/* -- Desktop polish --------------------------------------------------- */
@media (min-width: 640px) {
  .ai-vsl-gap-submit {
    align-self: center;
    width: auto;
    min-width: 280px;
  }
}

/* =========================================================================
   Calendar-first booking flow (Task 9: skeleton + calendar step).
   Ported from the operator-approved demo
   (web/public/dev/booking-flow-demo/index.html); the demo's bfd- prefix is
   renamed ai-bf- here. Reuses the brand --ai-* tokens. Mobile-first. Standard
   full-month calendar with Cal.com/Calendly layering (mobile: the times list
   replaces the day grid; a round back arrow returns). No em dashes.
   ========================================================================= */

/* Flow shell. The section ships [hidden]; the [hidden] rule at the top of this
   file wins, so no display is set on the class itself. */
.ai-vsl-booking-flow {
  padding: var(--ai-space-3) var(--ai-space-5) var(--ai-space-8);
}
.ai-bf-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.ai-bf-panel {
  animation: ai-bf-slide-in 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ai-bf-slide-in {
  from { transform: translateX(56px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-bf-panel { animation: none; }
}
.ai-bf-sub {
  color: var(--ai-text-muted);
  font-size: 1.05rem;
  margin: 0 auto var(--ai-space-5);
  max-width: 480px;
}

/* Held-time ribbon: shown after Confirm ("YOUR TIME <day> at <time>"). Hidden
   until the engine adds .is-on. */
.ai-bf-held {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ai-paper);
  border: 1.5px solid var(--ai-gold);
  border-radius: 999px;
  padding: 9px 22px;
  margin: 0 auto var(--ai-space-4);
  width: fit-content;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ai-navy);
  box-shadow: var(--ai-shadow-sm, 0 2px 8px rgba(15, 29, 58, 0.08));
}
.ai-bf-held.is-on { display: inline-flex; }
.ai-bf-held small {
  font-weight: 700;
  color: var(--ai-gold-deep);
  text-transform: uppercase;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

/* Calendar card. Desktop: day grid + times side by side. Mobile: selecting a
   day REPLACES the grid with the full times list (no nested scrolling). */
.ai-bf-cal-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ai-space-5);
  text-align: left;
  background: var(--ai-paper);
  border: 1px solid var(--ai-gold-deep);
  border-radius: var(--ai-radius-lg, 14px);
  padding: var(--ai-space-5);
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--ai-shadow-lg);
  min-height: 430px;
}
@media (min-width: 700px) {
  .ai-bf-cal-card { grid-template-columns: 1.35fr 1fr; }
}
@media (max-width: 699.9px) {
  .ai-bf-cal-card.is-times .ai-bf-cal-view { display: none; }
  .ai-bf-cal-card:not(.is-times) .ai-bf-times-view { display: none; }
}
.ai-bf-cal-instruction {
  font-family: var(--ai-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ai-navy);
  margin: 0 0 var(--ai-space-2);
  text-align: center;
}
.ai-bf-cal-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 var(--ai-space-3);
}
.ai-bf-cal-month-name {
  font-family: var(--ai-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ai-gold-deep);
}
.ai-bf-cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1.5px solid var(--ai-border, #d8d2c4);
  background: #fff;
  color: var(--ai-navy);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.ai-bf-cal-nav:disabled { opacity: 0.3; cursor: default; }

/* Times header. "Select a time" is centered; the mobile back arrow floats at
   the left edge of the header row. */
.ai-bf-times-head {
  position: relative;
  text-align: center;
  margin-bottom: var(--ai-space-2);
}
.ai-bf-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--ai-border, #d8d2c4);
  background: #fff;
  color: var(--ai-navy);
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 699.9px) {
  .ai-bf-back { display: inline-flex; }
}

/* Day grid. */
.ai-bf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.ai-bf-cal-dow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ai-text-muted);
  text-align: center;
  padding: 6px 0;
}
.ai-bf-cal-day {
  height: 62px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--ai-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #c3bdaf;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-bf-cal-day.is-open {
  background: var(--ai-cream);
  color: var(--ai-navy);
  border: 1.5px solid var(--ai-border, #d8d2c4);
  cursor: pointer;
  font-weight: 700;
}
/* :not(.is-on) matters: iOS keeps :hover after a tap, and this rule must not
   outweigh .is-on or the selected day goes white-on-white. */
.ai-bf-cal-day.is-open:not(.is-on):hover {
  border-color: var(--ai-gold-deep);
  background: #fff;
}
.ai-bf-cal-day.is-on {
  background: var(--ai-navy);
  color: #fff;
  border-color: var(--ai-navy);
}
@media (max-width: 480px) {
  .ai-bf-cal-day { height: 46px; font-size: 1rem; }
}

/* Times list. Full list, PAGE scroll only (a nested scroll region trapped the
   thumb on mobile in the demo). */
.ai-bf-times {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.ai-bf-times-label {
  font-family: var(--ai-font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ai-navy);
  margin: 0;
}
.ai-bf-times-sub {
  font-size: 0.9rem;
  color: var(--ai-gold-deep);
  font-weight: 600;
  margin: 2px 0 0;
}
.ai-bf-times-empty {
  color: var(--ai-text-muted);
  font-size: 0.95rem;
  margin: auto;
  text-align: center;
  padding: 0 10px;
}
.ai-bf-times-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--ai-space-3);
}
.ai-bf-slot {
  width: 100%;
  border: 1.5px solid var(--ai-border, #d8d2c4);
  background: #fff;
  border-radius: 9px;
  padding: 13px 8px;
  font-weight: 700;
  color: var(--ai-navy);
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  font-family: var(--ai-font-body);
}
.ai-bf-slot:hover {
  border-color: var(--ai-gold-deep);
  background: var(--ai-cream);
}
/* Tapping a time splits its row into [time][Confirm] (the Cal.com beat). */
.ai-bf-slot-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6px;
}
.ai-bf-slot-row .ai-bf-slot {
  border-color: var(--ai-navy);
  cursor: default;
}
.ai-bf-slot-confirm {
  border: none;
  background: var(--ai-navy);
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 13px 8px;
  font-family: var(--ai-font-body);
}
.ai-bf-slot-confirm:hover { background: var(--ai-navy-deep, #0a1628); }
.ai-bf-tz {
  margin-top: var(--ai-space-3);
  font-size: 0.82rem;
  color: var(--ai-text-muted);
  text-align: center;
}

/* -------------------------------------------------------------------------
   Survey / PII / OTP steps (Task 10). The survey, PII and OTP screens all live
   in the SAME white/gold form card as the calendar, so every step reads as one
   continuous shape. Ported from the demo's bfd- classes (renamed ai-bf-).
   ------------------------------------------------------------------------- */

/* Shared form card. Top-anchored (short questions left dead white bands when
   vertically centered), bigger controls fill the frame. */
.ai-bf-form-card {
  background: var(--ai-paper);
  border: 1px solid var(--ai-gold-deep);
  border-radius: var(--ai-radius-lg, 14px);
  box-shadow: var(--ai-shadow-lg);
  padding: var(--ai-space-5);
  max-width: 460px;
  margin: 0 auto;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ai-bf-exit-card { text-align: center; margin-top: var(--ai-space-4); }

/* Survey progress + answers. */
.ai-bf-progress {
  font-size: 0.8rem;
  color: var(--ai-gold-deep);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--ai-space-3);
  text-transform: uppercase;
}
.ai-bf-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
/* Short-label option sets (age ranges) stack 2-up; an odd last option spans the
   full row. */
.ai-bf-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ai-bf-answers-grid .ai-bf-answer:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ai-bf-answer {
  border: 1.5px solid var(--ai-border, #d8d2c4);
  background: var(--ai-paper);
  border-radius: 12px;
  padding: 20px 18px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ai-navy);
  cursor: pointer;
  text-align: center;
  font-family: var(--ai-font-body);
}
.ai-bf-answer:hover { border-color: var(--ai-gold-deep); background: var(--ai-cream); }

/* PII form. */
.ai-bf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.ai-bf-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Grid tracks must shrink below the inputs' intrinsic min-width, or the row
   overflows small screens. */
.ai-bf-row2 > * { min-width: 0; }
.ai-bf-form input,
.ai-bf-form select { width: 100%; min-width: 0; box-sizing: border-box; }
/* Required-field validation: highlight the offending input on a blocked submit. */
.ai-bf-field-invalid { border-color: var(--ai-error, #c0392b) !important; }
.ai-bf-pii-hint { color: var(--ai-error, #c0392b); }

/* OTP boxes. */
.ai-bf-otp {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: var(--ai-space-2) 0 var(--ai-space-5);
}
.ai-bf-otp-input {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1.5px solid var(--ai-border, #d8d2c4);
  border-radius: 10px;
  background: var(--ai-paper);
  font-family: var(--ai-font-body);
  color: var(--ai-navy);
}
.ai-bf-otp-input:focus { outline: none; border-color: var(--ai-gold-deep); }
@media (max-width: 420px) {
  .ai-bf-otp { gap: 7px; }
  .ai-bf-otp-input { width: 40px; height: 52px; font-size: 1.3rem; }
}
.ai-bf-otp-card { text-align: center; }

/* Shared hint + link button. */
.ai-bf-hint {
  font-size: 0.76rem;
  color: #8a6d3b;
  font-weight: 600;
  margin-top: var(--ai-space-3);
}
.ai-bf-linkbtn {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: var(--ai-space-4);
  font-family: var(--ai-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ai-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ai-bf-linkbtn:hover { color: var(--ai-gold-deep); }

/* -------------------------------------------------------------------------
   Terminal states (Task 11): the booked confirmation, the slot-taken
   alternates, and the human-fallback / retry cards. Booked / fallback / retry
   reuse the shared white/gold .ai-bf-form-card; the alternates reuse
   .ai-bf-answers + .ai-bf-answer. Only the centered card modifier + the green
   confirmation check are new.
   ------------------------------------------------------------------------- */
.ai-bf-confirm-card {
  text-align: center;
  align-items: center;
  justify-content: center;
}
.ai-bf-check {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #2f9e44;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin: var(--ai-space-2) auto var(--ai-space-4);
}
/* Alternate-time buttons stack full-width in the shared answers column. */
.ai-bf-alt-btn { width: 100%; }
.ai-bf-retry { margin-top: var(--ai-space-4); }

/* -- Booking terminal screens (operator 2026-07-06) --------------------- */
/* Spinner: gold ring while submit + book are in flight. */
.ai-bf-spinner {
  width: 46px;
  height: 46px;
  margin: var(--ai-space-3) auto var(--ai-space-4);
  border-radius: 999px;
  border: 4px solid rgba(201, 169, 97, 0.25);
  border-top-color: #c9a961;
  animation: ai-bf-spin 0.9s linear infinite;
}
@keyframes ai-bf-spin { to { transform: rotate(360deg); } }

/* Confirmed: advisor headshot ringed in gold; the green check badge pops in
   on its corner (or centered alone when the advisor has no headshot). */
.ai-bf-adv-wrap {
  position: relative;
  width: 104px;
  margin: var(--ai-space-2) auto var(--ai-space-4);
}
.ai-bf-adv-photo {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 3px solid #c9a961;
  box-shadow: 0 10px 28px rgba(10, 31, 58, 0.22);
}
.ai-bf-checkpop {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 999px;
  background: #2f9e44;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(47, 158, 68, 0.35);
  animation: ai-bf-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ai-bf-checkpop--badge {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 3px solid #fff;
}
.ai-bf-checkstroke {
  display: block;
  width: 32%;
  height: 58%;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(45deg) translate(-8%, -12%);
  animation: ai-bf-checkdraw 0.3s ease-out 0.35s both;
}
@keyframes ai-bf-pop {
  0% { transform: scale(0.2); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ai-bf-checkdraw {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-bf-spinner { animation-duration: 1.6s; }
  .ai-bf-checkpop, .ai-bf-checkstroke { animation: none; }
}

/* -- FL-019 CTA polish (operator, 2026-08-19) --------------------------------
   The primary flips to GOLD so it pops against the navy video directly above
   it (it used to blend in); the secondary flips to NAVY so the two buttons
   trade colors and the hierarchy stays obvious. The sub-line and the carrier
   strips are gone, so the spacing below carries the rhythm on its own.
   Overrides are scoped to this page; the shared .ai-cta-primary and
   .ai-cta-button in styles/style.css are untouched. */
.ai-vsl-bookbar { margin-top: var(--ai-space-6); }
.ai-vsl-bookbar .ai-cta-primary {
  background: linear-gradient(180deg, var(--ai-gold-soft) 0%, var(--ai-gold) 45%, var(--ai-gold-deep) 100%);
  color: var(--ai-navy);
  border: 0;
  width: 100%;
  max-width: 460px;
  min-height: 62px;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    0 12px 26px rgba(10, 31, 58, 0.20),
    0 3px 8px rgba(10, 31, 58, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.ai-vsl-bookbar .ai-cta-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--ai-gold-soft) 0%, var(--ai-gold) 60%, var(--ai-gold-deep) 100%);
  box-shadow:
    0 16px 32px rgba(10, 31, 58, 0.24),
    0 4px 10px rgba(10, 31, 58, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.ai-vsl-bookbar .ai-cta-primary:active {
  transform: translateY(0);
  box-shadow:
    0 6px 14px rgba(10, 31, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.ai-vsl-bookbar .ai-cta-primary .ai-cta-arrow { color: var(--ai-navy); }

/* Secondary "Learn even more..." flips to quiet navy, with deliberate air
   between it and the gold primary now that the sub-line + strip are gone. */
.ai-vsl-more-cta { margin: var(--ai-space-7) 0 var(--ai-space-6); }
.ai-vsl-learn-more.ai-cta-button {
  background: var(--ai-navy);
  color: var(--ai-cream);
  border: 2px solid var(--ai-navy);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: var(--ai-shadow-sm, 0 2px 6px rgba(10, 31, 58, 0.12));
}
.ai-vsl-learn-more.ai-cta-button:hover {
  background: #13294a;
  border-color: #13294a;
}
