/* ==========================================================
   FLYDOC — Clinic Growth Video Funnel — Stylesheet
   Loads AFTER assets/css/style.css. Reuses the site's existing
   --flydoc-teal / btn-flydoc-primary / text-flydoc-teal tokens
   where they already exist in style.css; falls back to local
   values below only if a variable isn't already defined there,
   so this never fights your existing brand palette.
   ========================================================== */

:root{
  --funnel-teal: var(--flydoc-teal, #0E9F8E);
  --funnel-teal-dark: var(--flydoc-teal-dark, #0A7A6D);
  --funnel-navy: var(--flydoc-navy, #0B2545);
  --funnel-ink: #16233A;
  --funnel-muted: #5B6B82;
  --funnel-bg: #F6F8FB;
  --funnel-card: #FFFFFF;
  --funnel-border: #E3E9F1;
  --funnel-accent-soft: #EAF7F5;
  --funnel-radius: 18px;
  --funnel-shadow: 0 10px 40px rgba(11,37,69,0.08);
}

body.funnel-body{
  background: var(--funnel-bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--funnel-ink);
}
body.funnel-body h1, body.funnel-body h2, body.funnel-body h3{
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  color: var(--funnel-navy);
  letter-spacing: -0.02em;
}

/* ---------- Minimal top bar (no full nav on funnel pages) ---------- */
.funnel-topbar{ padding: 22px 0; display:flex; align-items:center; justify-content:center; }
.funnel-brand-text{ font-family:'Space Grotesk',sans-serif; font-weight:800; font-size:1.3rem; color: var(--funnel-navy); }

/* ---------- Buttons (fall back to site's own .btn-flydoc-primary if present) ---------- */
.btn-funnel-primary{
  background: var(--funnel-teal); border:none; color:#fff; font-weight:600;
  padding: 14px 30px; border-radius: 999px; transition: all .2s ease;
  box-shadow: 0 8px 24px rgba(14,159,142,0.28);
}
.btn-funnel-primary:hover{ background: var(--funnel-teal-dark); color:#fff; transform: translateY(-1px); }
.btn-funnel-primary:disabled{ background:#B9C4D3; box-shadow:none; cursor:not-allowed; transform:none; }

/* ---------- Landing / lead capture ---------- */
.funnel-hero{ padding: 50px 0 26px; }
.funnel-hero-headline{ font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin-bottom: 10px; }
.funnel-hero-sub{ font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--funnel-teal-dark); font-weight:600; margin-bottom: 18px; }
.funnel-hero-support{ color: var(--funnel-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 10px; }

.funnel-lead-card{
  background: var(--funnel-card); border-radius: var(--funnel-radius);
  box-shadow: var(--funnel-shadow); padding: 34px; border: 1px solid var(--funnel-border);
}

.funnel-challenge-pill .btn-check + label{
  border-radius: 999px; border: 1.5px solid var(--funnel-border); color: var(--funnel-navy);
  padding: 9px 16px; font-size: .88rem; font-weight: 500; margin: 4px 6px 4px 0;
}
.funnel-challenge-pill .btn-check:checked + label{
  background: var(--funnel-accent-soft); border-color: var(--funnel-teal); color: var(--funnel-teal-dark);
}

/* ---------- Video funnel pages ---------- */
.funnel-video-wrap{ max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.funnel-part-indicator{
  font-size:.8rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--funnel-teal-dark); background: var(--funnel-accent-soft);
  display:inline-block; padding:6px 14px; border-radius:999px; margin-bottom:14px;
}
.funnel-video-title{ font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 22px; }

.funnel-video-frame{
  position: relative; width:100%; padding-top:56.25%; border-radius: var(--funnel-radius);
  overflow: hidden; background:#000; box-shadow: var(--funnel-shadow);
}
.funnel-video-frame iframe{ position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
/* Full-cover transparent layer that intercepts clicks on the (cross-origin)
   YouTube iframe so we can drive play/pause ourselves via the API.
   IMPORTANT: this MUST fully cover the iframe with an explicit box (not the
   `inset` shorthand, which is not universally supported on older mobile
   browsers) — if it doesn't cover the full frame, the native YouTube scrub
   bar underneath becomes draggable again. */
.funnel-click-guard{
  position:absolute; top:0; right:0; bottom:0; left:0; z-index:5; background:transparent; cursor:pointer;
}

.funnel-tap-to-start{
  position:absolute; top:0; right:0; bottom:0; left:0; z-index:7; display:flex; align-items:center; justify-content:center;
  background:rgba(11,37,69,0.45); color:#fff; font-weight:700; font-size:1.15rem; cursor:pointer;
}
.funnel-tap-to-start span{
  background:rgba(11,37,69,0.85); padding:14px 28px; border-radius:999px;
  border:1.5px solid rgba(255,255,255,0.55); box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.funnel-ended-overlay{
  position:absolute; top:0; right:0; bottom:0; left:0; z-index:8; background: var(--funnel-navy);
}

.funnel-progress-track{ height:6px; border-radius:999px; background: var(--funnel-border); margin-top:18px; overflow:hidden; }
.funnel-progress-fill{ height:100%; background: var(--funnel-teal); width:0%; transition: width .3s ease; }
.funnel-progress-label{ font-size:.8rem; color: var(--funnel-muted); margin-top:6px; }

.funnel-question{
  margin-top:30px; background: var(--funnel-card); border:1px solid var(--funnel-border);
  border-radius: var(--funnel-radius); padding:26px; box-shadow: var(--funnel-shadow);
  opacity:0; transform: translateY(14px); max-height:0; overflow:hidden;
  transition: opacity .5s ease, transform .5s ease, max-height .6s ease;
}
.funnel-question.is-visible{ opacity:1; transform:translateY(0); max-height:600px; }
.funnel-question-text{ font-weight:700; font-size:1.08rem; margin-bottom:14px; color: var(--funnel-navy); }
.funnel-answer-option{
  display:block; width:100%; text-align:left; background:#fff; border:1.5px solid var(--funnel-border);
  border-radius:12px; padding:12px 16px; margin-bottom:10px; font-weight:500; color: var(--funnel-ink);
  transition: all .15s ease;
}
.funnel-answer-option:hover{ border-color: var(--funnel-teal); }
.funnel-answer-option.selected{
  background: var(--funnel-accent-soft); border-color: var(--funnel-teal); color: var(--funnel-teal-dark); font-weight:600;
}

.funnel-cta-wrap{ margin-top:26px; text-align:center; }
.funnel-review-link{ display:block; margin-top:14px; font-size:.88rem; color: var(--funnel-muted); }

.funnel-transition{ text-align:center; padding: 30px 0 10px; }

/* ---------- Booking / thank you ---------- */
.funnel-booking-card{
  background: var(--funnel-card); border-radius: var(--funnel-radius); box-shadow: var(--funnel-shadow);
  border: 1px solid var(--funnel-border); padding: 34px;
}

/* ---------- Footer ---------- */
.funnel-footer{ color: var(--funnel-muted); font-size:.82rem; padding: 26px 0 40px; }
.funnel-footer-brand{ font-weight:700; color: var(--funnel-navy); }
.funnel-footer-powered{ opacity:.7; margin-top:2px; }

@media (max-width: 576px){
  .funnel-lead-card, .funnel-booking-card{ padding: 22px; }
  .funnel-hero{ padding: 30px 0 16px; }
}
