/* ============================================================
   SHARED STYLESHEET — Landing Page / Application / Confirmation
   Palette: white background, near-black text, blue accent.
   Every color used anywhere in this file is a variable below —
   swap the values here to re-theme the whole funnel.
   ============================================================ */

/* Font — swap this line and --font-body together to change it */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800&display=swap");

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f4;      /* cards, form panel */
  --color-text: #0b0b0f;
  --color-text-muted: #555555;
  --color-accent: #1f2fce;      /* CTA button background */
  --color-accent-text: #ffffff; /* CTA button text */
  --color-border: #e2e2e2;

  --color-highlight: #1f2fce;      /* headline key-phrase block */
  --color-highlight-text: #ffffff;
  --color-cta-edge: #0b0b0f;       /* CTA border + offset shadow */
  --color-media-bg: #0b0b0f;       /* empty video slot */
  --color-media-text: #ffffff;
  --color-input-bg: #ffffff;
  --color-step-green: #4CAF50;     /* application step tracker — no existing site green, so using this */
  --color-callout-bg: rgba(31, 47, 206, 0.5); /* --color-accent blue at 50% opacity */
  --color-callout-text: #ffffff;

  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 760px;
  --max-width-hero-text: 920px;    /* landing page only */
  --max-width-hero-media: 960px;   /* landing page only: VSL + CTA */
  --header-h: 64px;                /* sticky header height (56px mobile) */
  --progress: 0;                   /* scroll progress 0–1, set by JS */
}
@media (max-width: 600px) {
  :root { --header-h: 56px; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }  /* so display rules never un-hide a step */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Logo ---- */
.logo {
  padding: 28px 0 8px;
  text-align: center;
}
.logo img { max-height: 40px; margin: 0 auto; }
.logo-placeholder {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* ---- Sticky header (landing page): logo left, CTA right ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
  max-width: var(--max-width-hero-media);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo { display: block; flex-shrink: 1; min-width: 0; }
.site-logo img {
  height: 32px;
  width: auto;
  max-width: 180px;
}
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(var(--progress));
  transform-origin: left;
  pointer-events: none;
}
@media (max-width: 600px) {
  .site-logo img { height: 26px; max-width: 140px; }
}

/* ---- Headline / Sub-headline ---- */
.hero {
  text-align: center;
  padding: 12px 0 28px;
}
.headline {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
}
.subheadline {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--color-text-muted);
  margin: 0 auto;
  max-width: 560px;
}

/* ---- Video embed placeholder (Wistia / Gumlet) ---- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-media-bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}
/* Wistia's <wistia-player> sets its own height via its `aspect`
   attribute, so drop the forced 16:9 here (it'd fight a slightly
   different real aspect ratio) — just keep the rounded corners.
   Keep the base .video-frame black background (don't null it out):
   the pre-load swatch image is background-size:contain, so it can
   leave thin unfilled strips — those need to show black, not page
   white, or they read as a gap under the announcement bar. */
.video-frame--embed {
  aspect-ratio: auto;
}
.video-frame--embed wistia-player {
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* ---- Announcement bar above the confirmation main video ----
   Radii are set explicitly on each piece (bar rounds its top two
   corners, video rounds its bottom two) instead of leaning on the
   parent's overflow:hidden alone — that left a hairline gap at the
   seam where the two boxes met. */
.video-block--announced {
  border-radius: 10px;
  overflow: hidden;
}
.video-block--announced .video-frame {
  margin: 0;
  border-radius: 0 0 10px 10px;
}
.video-callout-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  background: var(--color-callout-bg);
  color: var(--color-callout-text);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 16px;
  border-radius: 10px 10px 0 0;
}
.video-callout-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- CTA button ---- */
.cta-row {
  text-align: center;
  margin: 28px 0 8px;
}
.btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 8px;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-cta:hover { opacity: 0.85; }
.btn-cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* Text-only CTA (landing page): uppercase, wide tracking, no fill,
   border or shadow — accent-colored text. Combine with a size
   modifier below (--header / --block) or use alone. */
.btn-cta--text {
  background: none;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.btn-cta--text:hover {
  opacity: 1;
  text-decoration-line: underline;
}

/* Bordered CTA (landing page): outlined, no fill — accent-colored
   border + text, fills solid on hover. Combine with a size modifier
   below (--header / --block) or use alone. */
.btn-cta--border {
  background: none;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.btn-cta--border:hover {
  opacity: 1;
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* Size: sticky header */
.btn-cta--header {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 18px;
}
@media (max-width: 600px) {
  .btn-cta--header { font-size: 13px; letter-spacing: 0.12em; }
}

/* ---- Landing page hero (index.html only) ----
   Proportions taken from the reference: big tight headline with
   one highlighted phrase, full-strength sub-headline, VSL and CTA
   sharing one wider column. */
.wrap--hero { max-width: var(--max-width-hero-media); }

.hero--landing {
  max-width: var(--max-width-hero-text);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 88px) 0 clamp(28px, 4.5vw, 52px);
}
.hero--landing .headline {
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(14px, 2.4vw, 28px);
}
.hero--landing .subheadline {
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1.4;
  color: var(--color-text);
  max-width: 780px;
}
.hero--landing .subheadline strong { font-weight: 800; color: var(--color-accent); }
.hero--landing .subheadline strong.subheadline-italic { font-style: italic; }

/* Highlighted key phrase inside the headline */
.hl {
  background: var(--color-highlight);
  color: var(--color-highlight-text);
  padding: 0 0.14em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.video-frame--hero { border-radius: 16px; }

.cta-row--hero { margin: clamp(20px, 3vw, 32px) 0 0; }
/* Size: hero CTA under the VSL — full width, larger text */
.btn-cta--block {
  display: block;
  width: 100%;
  font-size: clamp(18px, 2.2vw, 26px);
  padding: clamp(14px, 1.8vw, 20px) 20px;
}

/* ---- Proof / case studies ---- */
.proof {
  padding: clamp(56px, 9vw, 96px) 0 clamp(8px, 2vw, 16px);
}
.proof-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 0 clamp(28px, 4.5vw, 40px);
}

/* ---- Pain callout (landing page, between CTA and proof) ----
   Left-aligned for easier reading of longer lines. */
.pain {
  padding: clamp(56px, 9vw, 96px) 0 clamp(8px, 2vw, 16px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.pain-title,
.proof-title,
.benefits-title {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(20px, 3.5vw, 32px);
}
.pain-list,
.benefit-list {
  list-style: none;
  margin: 0 0 clamp(28px, 4.5vw, 40px);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
}
.pain-list li,
.benefit-list li {
  position: relative;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3.5vw, 32px);
  padding-left: clamp(48px, 7vw, 68px);
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.6;
}
.pain-list li + li,
.benefit-list li + li { border-top: 1px solid var(--color-border); }
.pain-list li::before {
  content: "+";
  position: absolute;
  left: clamp(18px, 3.5vw, 32px);
  top: clamp(16px, 2.8vw, 24px);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-accent);
}
.pain-summary {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
}
.pain-summary--center { text-align: center; }
.accent-text { color: var(--color-accent); }

/* ---- Old Way vs New Way (landing page, above proof) ----
   Old track = inverted (text color boxes), new track = accent boxes
   with the same border + offset shadow as the hero CTA.
   Layout modes: >=1240px two columns + side callouts with arrows;
   720–1239px two columns + callouts under step 3; <720px stacked. */
.wrap--compare { max-width: 1180px; }
.compare { padding: clamp(56px, 9vw, 96px) 0 clamp(8px, 2vw, 16px); }

.compare-intro {
  max-width: 900px;
  margin: 0 auto clamp(36px, 6vw, 64px);
  padding: clamp(20px, 4vw, 36px) clamp(18px, 4vw, 40px);
  border: 3px dashed var(--color-accent);
  text-align: center;
}
.compare-headline {
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.accent-underline {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}
.compare-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  max-width: 760px;
  margin: 0 auto;
}

/* Column labels ("How Every Other Agency Does It" / "The Smarter Path") */
.compare-label {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-2deg);
}
.compare-label-arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compare-col--new .compare-label {
  flex-direction: row-reverse;
  text-align: right;
  color: var(--color-accent);
  transform: rotate(2deg);
}
.compare-col--new .compare-label-arrow { transform: scaleX(-1); }

/* Track: vertical connector line runs behind the boxes */
.compare-track { position: relative; }
.compare-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--color-text);
}
.compare-col--new .compare-track::before { background: var(--color-accent); }

.compare-head,
.compare-box {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  text-align: center;
  background: var(--color-text);
  color: var(--color-bg);
}
.compare-col--new .compare-head,
.compare-col--new .compare-box {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border: 2px solid var(--color-cta-edge);
}
.compare-head {
  padding: 18px 20px 20px;
  margin-bottom: clamp(20px, 3.5vw, 32px);
}
.compare-kicker {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.compare-kicker u { text-underline-offset: 0.15em; }
.compare-head h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.compare-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
}
.compare-box {
  padding: clamp(12px, 1.8vw, 16px) clamp(10px, 2vw, 20px);
  font-size: clamp(13px, 1.7vw, 16px);
  font-weight: 600;
  line-height: 1.45;
}

/* Narrow screens: compact type, padding and spacing. Columns stay
   side by side down to 480px (so Old vs New can be compared at a
   glance); below that, they stack to one column so step text stays
   readable. */
@media (max-width: 719px) {
  .compare-grid { gap: 12px; }
  .compare-label {
    min-height: 3.9em;   /* keeps both head boxes level when one label wraps */
    font-size: 12px;
    gap: 2px;
    margin-bottom: 6px;
  }
  .compare-label-arrow { width: 20px; height: 20px; }
  .compare-track::before { width: 3px; margin-left: -1.5px; }
  .compare-head { padding: 10px 8px 12px; border-radius: 8px; }
  .compare-kicker { font-size: 11px; margin-bottom: 2px; }
  .compare-head h3 { font-size: 14px; }
  .compare-box { padding: 10px 8px; line-height: 1.4; border-radius: 8px; }
}

/* Very narrow screens: stack the two columns to one so step text
   stays readable instead of squeezing to ~half-width. */
@media (max-width: 480px) {
  .compare-grid { grid-template-columns: 1fr; gap: clamp(32px, 8vw, 48px); }
}

/* ---- What this means for you (landing page, below proof) ----
   Shares eyebrow, heading and list-panel styles with the pain
   callout above (see .pain-title / .pain-list). Only the icon and
   the headline + paragraph inside each row are specific here. */
.benefits { padding: clamp(40px, 7vw, 72px) 0 clamp(16px, 3vw, 32px); }
.benefit-list .check {
  position: absolute;
  left: clamp(18px, 3.5vw, 32px);
  top: calc(clamp(18px, 3vw, 26px) + 2px);
  width: 22px;
  height: 22px;
}
.benefit-list .check svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
}
.benefit p {
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- Case study video embeds (landing page proof) ----
   Side by side on desktop; single column on mobile (same breakpoint
   as .breakout-grid) so Card 1 stays on top when stacked. */
.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 44px);
}
@media (max-width: 600px) {
  .case-list { grid-template-columns: 1fr; }
}
.case-card .video-frame { margin-bottom: 12px; }
.case-card h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.case-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- Section generic ---- */
.section {
  padding: 36px 0;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 18px;
  text-align: center;
}

/* ---- Small centered divider under a header ---- */
.accent-divider {
  border: none;
  border-top: 3px solid var(--color-accent);
  width: 100%;
  max-width: 220px;
  margin: 14px auto;
}
.accent-divider--long { max-width: 420px; }

/* ---- Boxed callout around the hero paragraph ---- */
.accent-box {
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 14px auto 0;
  max-width: 560px;
}
.accent-box .subheadline { margin: 0; max-width: none; }
.accent-box .subheadline strong { color: var(--color-text); }

/* ---- Booking calendar placeholder ---- */
.calendar-frame {
  width: 100%;
  min-height: 480px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.calendar-frame--later { margin-top: 20px; }

/* Real embed (vs. the dashed placeholder above): solid frame, no
   centered placeholder text. The iframe has no fixed height — GHL's
   form_embed.js sets it via postMessage once the calendar loads, so
   the container stays auto-height (with a floor) instead of clipping
   it with a fixed height + overflow:hidden. */
.calendar-frame--embed {
  display: block;
  min-height: 700px;
  padding: 0;
  border: 1px solid var(--color-border);
}

/* ---- Breakout video grid ---- */
.breakout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .breakout-grid { grid-template-columns: 1fr; }
}
.breakout-card { }
.breakout-card .video-frame { aspect-ratio: 16/9; margin-bottom: 10px; }
.breakout-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.breakout-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- Form ---- */
.form-card {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 24px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--color-input-bg);
}

/* ---- Next steps ---- */
.next-steps ol {
  padding-left: 20px;
  color: var(--color-text-muted);
}
.next-steps li { margin-bottom: 8px; }
.next-steps p {
  margin: 0 0 14px;
  color: var(--color-text);
  line-height: 1.6;
}
.next-steps p:last-child { margin-bottom: 0; }

/* Simple footer — still used on application.html / confirmation.html */
footer.disclaimer {
  padding: 24px 0 40px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
}

/* ---- Closing block (landing page footer) ---- */
.closing {
  margin-top: clamp(40px, 7vw, 72px);
  padding: clamp(56px, 9vw, 96px) 0 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* Watermark + headline share one grid cell so the block is always
   as tall as whichever layer is bigger; watermark overflow is clipped
   sideways so long words never cause horizontal scroll. */
.closing-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: clamp(8px, 2vw, 20px) 0;
}
.closing-watermark,
.closing-title { grid-area: 1 / 1; }
.closing-watermark {
  font-size: clamp(96px, 22vw, 240px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--color-text);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.closing-title {
  position: relative;
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.closing .cta-row { margin: clamp(24px, 4vw, 36px) 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-top: clamp(56px, 9vw, 96px);
  font-size: 15px;
  color: var(--color-text-muted);
}
.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

.footer-disclaimers {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.footer-disclaimers p { margin: 0 0 12px; }
.copyright {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Scroll progress (landing page, wide screens only) ---- */
.scroll-progress {
  position: fixed;
  top: calc(var(--header-h) + 20px);
  bottom: 24px;
  left: 18px;
  width: 2px;
  background: var(--color-border);
  z-index: 50;
  pointer-events: none;
}
.scroll-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleY(var(--progress));
  transform-origin: top;
}
.scroll-progress-dot {
  position: absolute;
  left: 50%;
  top: calc(var(--progress) * 100%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-bg);
  transform: translate(-50%, -50%);
}
@media (max-width: 1023px) {
  .scroll-progress { display: none; }
}

/* ============================================================
   APPLICATION FLOW (application.html) — one question per screen
   ============================================================ */
.page-apply .header-progress { transition: transform 0.35s ease; }

/* Each step is centered in the space under the sticky header */
.apply {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 56px) 20px;
}
.apply-form,
.apply-booking {
  width: 100%;
  max-width: 640px;
}
.apply-booking { max-width: var(--max-width); }

.q-step.is-active,
.apply-booking.is-active { animation: q-in 0.35s ease both; }
@keyframes q-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .q-step.is-active,
  .apply-booking.is-active { animation: none; }
  .page-apply .header-progress { transition: none; }
  .step-tracker-fill,
  .step-tracker-avatar,
  .step-circle,
  .step-label { transition: none; }
}

.q-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.q-title {
  display: block;
  padding: 0;
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.q-num {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}
.q-field + .q-field { margin-top: clamp(28px, 5vw, 40px); }
.q-sublabel {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.q-optional { font-weight: 400; margin-left: 4px; }

/* First screen only: title + "takes about 2 minutes" line above Name */
.q-apply-header { margin-bottom: clamp(24px, 4vw, 36px); }
.q-apply-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.q-apply-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.q-clock-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Typeform-style underline input */
.q-input {
  width: 100%;
  padding: 10px 0;
  font-family: inherit;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--color-border);
  border-radius: 0;
  outline: none;
}
.q-input::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.q-input:focus { border-bottom-color: var(--color-accent); }
.q-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Choice cards — real radios, visually hidden but still focusable */
.q-choices { display: grid; gap: 10px; }
.q-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  font-size: clamp(16px, 1.9vw, 17px);
  line-height: 1.4;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.q-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.q-choice:hover { border-color: var(--color-accent); }
.q-choice:has(input:focus-visible) {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.q-choice:has(input:checked) {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.q-key {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 5px;
}
.q-choice:has(input:checked) .q-key {
  color: var(--color-accent-text);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.q-other { margin-top: 20px; }

.q-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(24px, 4vw, 32px);
}
.q-back {
  padding: 8px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.q-back:hover { color: var(--color-text); }
.q-error {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.q-error:empty { visibility: hidden; }

@media (max-width: 600px) {
  .q-actions .btn-cta { flex: 1 1 100%; text-align: center; }  /* full-width, easy to tap */
  .q-actions { gap: 8px 20px; }
}

/* ---- Step tracker (application.html) ----
   5 numbered circles joined by a line. --step-progress (0–1, set in
   the script via updateTracker()) scales the green fill and positions
   the accent-blue avatar marker, both inside .step-tracker-track so
   their 0–100% is already the 10%–90% span the circles sit on. */
.step-tracker {
  --step-circle-size: 32px;
  --step-progress: 0;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto clamp(32px, 6vw, 48px);
}
.step-tracker-track {
  position: absolute;
  top: calc(var(--step-circle-size) / 2 - 1.5px);
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  z-index: 0;
}
.step-tracker-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-step-green);
  border-radius: 2px;
  transform: scaleX(var(--step-progress));
  transform-origin: left;
  transition: transform 0.3s ease-out;
}
.step-tracker-avatar {
  position: absolute;
  top: 50%;
  left: calc(var(--step-progress) * 100%);
  width: 22px;
  height: 22px;
  margin-top: -11px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--color-bg);
  transition: left 0.3s ease-out;
  z-index: 2;
}
.step-tracker-avatar svg { width: 13px; height: 13px; fill: var(--color-accent-text); }

.step-tracker-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.step-circle {
  width: var(--step-circle-size);
  height: var(--step-circle-size);
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: border-color 0.3s ease-out, color 0.3s ease-out;
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.25;
  max-width: 84px;
  transition: color 0.3s ease-out;
}
.step-item.is-complete .step-circle,
.step-item.is-current .step-circle {
  border-color: var(--color-step-green);
  color: var(--color-step-green);
}
.step-item.is-current .step-label {
  color: var(--color-text);
  font-weight: 800;
}
@media (max-width: 600px) {
  .step-tracker { --step-circle-size: 26px; }
  .step-label { font-size: 10px; max-width: 62px; }
  .step-tracker-avatar { width: 18px; height: 18px; margin-top: -9px; margin-left: -9px; }
  .step-tracker-avatar svg { width: 11px; height: 11px; }
}
