/* /book: the two-question quiz in front of the GoHighLevel calendar. On top of funnel.css (logo, hero, h1, the
   lime marker, the calendar panel, the footer); only /book loads this file. */

/* Lots of room under the card, so the footer is never on the first screen (at any step, phone or desktop): it only
   shows for someone who scrolls all the way down looking for it. */
.p-book main { min-height: calc(100vh + 240px); min-height: calc(100lvh + 240px); padding-bottom: 320px; }

/* The badge under the logo: ink, big enough to read as a badge. No stars, no icons. */
.p-book .trust { gap: 16px; padding: 15px 30px; margin-top: 22px; box-shadow: 0 10px 28px rgba(11, 12, 10, 0.18); }
.p-book .trust-text { font-size: 18px; letter-spacing: -0.015em; }
.p-book .trust-meta {
  font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; color: var(--lime); white-space: nowrap;
  padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.quiz-hello {
  max-width: 34em; margin: 18px auto 0; padding: 0 16px;
  font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: balance;
}

.quiz {
  --spring: cubic-bezier(.34, 1.56, .64, 1); /* a little overshoot, then settles */
  --out: cubic-bezier(.2, .7, .2, 1);
  max-width: 680px; margin: 36px auto 0; padding: 22px 28px 32px;
  background: var(--white); border: 1px solid rgba(11, 12, 10, 0.10); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(11, 12, 10, 0.04), 0 18px 48px rgba(11, 12, 10, 0.08);
  scroll-margin-top: 16px;
}
/* The calendar needs the room: the card widens to the calendar panel's width on the last step. */
.quiz:has(.quiz-step--cal:not([hidden])) { max-width: 980px; }

.quiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.quiz-back {
  appearance: none; border: 0; background: none; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 15px; color: var(--ink); padding: 7px 10px; margin-left: -10px; border-radius: 10px;
  transition: background-color .12s;
}
.quiz-back:hover { background: rgba(11, 12, 10, 0.06); }
.quiz-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz-back[hidden] { display: none; }
.quiz-pct { margin-left: auto; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* The bar: thick, fully rounded, lime. The width springs (slight overshoot, clipped by the track) and a soft shine
   drifts across the filled part. */
.quiz-bar { height: 12px; margin-top: 12px; border-radius: 999px; background: rgba(11, 12, 10, 0.08); overflow: hidden; }
.quiz-bar span {
  display: block; position: relative; height: 100%; width: 0; border-radius: inherit; overflow: hidden;
  background: var(--lime); box-shadow: inset 0 0 0 1px rgba(77, 107, 0, 0.22);
  transition: width .75s var(--spring);
}
.quiz-bar span.is-intro { transition-duration: .6s; }
.quiz-bar span::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%); animation: quiz-shine 2.6s ease-in-out 1s infinite;
}
@keyframes quiz-shine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(260%); } }

.quiz-step { padding-top: 26px; }
.quiz-step[hidden] { display: none; }
/* Moving between questions: the old one slides out, the new one slides in (backwards for Back). */
.quiz-step.is-out-fwd { animation: q-out-fwd .17s var(--out) forwards; }
.quiz-step.is-out-back { animation: q-out-back .17s var(--out) forwards; }
.quiz-step.is-in-fwd { animation: q-in-fwd .32s var(--out); }
.quiz-step.is-in-back { animation: q-in-back .32s var(--out); }
@keyframes q-out-fwd { to { opacity: 0; transform: translateX(-28px); } }
@keyframes q-out-back { to { opacity: 0; transform: translateX(28px); } }
@keyframes q-in-fwd { from { opacity: 0; transform: translateX(36px); } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-36px); } }

/* The question: sentence case, not the page's shouting uppercase */
.quiz-step h2 {
  margin: 0 0 22px; padding: 0; max-width: none; text-align: left; text-transform: none;
  font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -0.035em;
}
.quiz-step h2:focus { outline: none; }
.quiz-step h2:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.answers { display: grid; gap: 12px; }
.answer {
  appearance: none; cursor: pointer; width: 100%; min-height: 68px; padding: 18px 64px 18px 24px; position: relative;
  display: flex; align-items: center;
  font: inherit; font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; text-align: left; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(11, 12, 10, 0.16); border-radius: 16px;
  box-shadow: 0 1px 0 rgba(11, 12, 10, 0.03);
  transition: border-color .12s, background-color .12s, box-shadow .18s, transform .18s var(--spring);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
/* The arrow on the right; gives way to the check once picked */
.answer::after {
  content: "\2192"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 700; color: rgba(11, 12, 10, 0.35); transition: color .12s, transform .18s var(--spring), opacity .12s;
}
@media (hover: hover) {
  .answer:hover { border-color: var(--ink); background: #fbfff0; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 12, 10, 0.10); }
  .answer:hover::after { color: var(--ink); transform: translate(4px, -50%); }
}
/* Press: a quick scale-down, straight away (no easing delay) */
.answer:active { transform: scale(.97); transition-duration: .06s; box-shadow: none; }
.answer:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Picked: lime fill and a check in a small ink circle. It draws in only on the tap itself (.is-picked); coming back
   with Back, the pick is simply shown. */
.answer-mark {
  position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.4);
}
.answer-mark svg { width: 20px; height: 20px; fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.answer-mark path { stroke-dasharray: 22; stroke-dashoffset: 0; }
.answer[aria-pressed="true"] { border-color: var(--ink); background: var(--lime); box-shadow: 0 8px 20px rgba(141, 191, 20, 0.28); }
.answer[aria-pressed="true"]::after { opacity: 0; }
.answer[aria-pressed="true"] .answer-mark { opacity: 1; transform: none; }
.answer.is-picked { animation: answer-pop .32s var(--spring); }
.answer.is-picked .answer-mark { animation: mark-in .28s var(--spring); }
.answer.is-picked .answer-mark path { animation: check-draw .3s ease-out .08s both; }
@keyframes answer-pop { 0% { transform: scale(.97); } 60% { transform: scale(1.015); } 100% { transform: none; } }
@keyframes mark-in { from { opacity: 0; transform: scale(.4); } }
@keyframes check-draw { from { stroke-dashoffset: 22; } }

.quiz-note { margin: -12px 0 20px; font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* The calendar panel inside the card: no second grey box, the card is the frame. Its height is reserved before the
   calendar arrives (close to the calendar's own height at that width), so nothing jumps; a calm skeleton sits in its
   place and fades out when the calendar reports in. */
.quiz .booking { max-width: none; margin: 0 -12px; padding: 0; background: none; border-radius: 0; }
.quiz .booking-fallback { margin-top: 14px; }
.p-book .booking-inner { position: relative; }
.p-book .booking-inner iframe { height: 782px; opacity: 0; transition: opacity .35s ease; }
.p-book .booking-inner.is-ready iframe { opacity: 1; }
.cal-skel {
  position: absolute; inset: 0; overflow: hidden; padding: 32px 28px; border-radius: 8px; background: #f4f6ee;
  border: 1px solid rgba(11, 12, 10, 0.08); transition: opacity .35s ease, visibility 0s linear .35s;
}
.is-ready .cal-skel { opacity: 0; visibility: hidden; }
.cal-skel > *, .sk-grid i, .sk-slots b { animation: skel-pulse 1.4s ease-in-out infinite; }
.sk-line { height: 18px; border-radius: 8px; background: rgba(11, 12, 10, 0.08); margin-bottom: 14px; }
.sk-w40 { width: 40%; height: 26px; }
.sk-w25 { width: 25%; }
.sk-grid { display: grid; grid-template-columns: repeat(7, 36px); gap: 18px 22px; margin-top: 36px; animation: none !important; }
.sk-grid i { width: 36px; height: 36px; border-radius: 50%; background: rgba(11, 12, 10, 0.07); }
.sk-slots { display: grid; gap: 14px; margin-top: 36px; max-width: 320px; animation: none !important; }
.sk-slots b { height: 48px; border-radius: 8px; border: 1px solid rgba(11, 12, 10, 0.12); }
@keyframes skel-pulse { 50% { opacity: .55; } }
.cal-loading { position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-weight: 600; font-size: 15px; color: var(--muted); transition: opacity .2s; }
.is-ready .cal-loading { opacity: 0; }

@media (max-width: 640px) {
  .p-book main { padding-bottom: 260px; }
  .p-book .trust { gap: 12px; padding: 12px 20px; }
  .p-book .trust-text { font-size: 14px; }
  .p-book .trust-meta { font-size: 13.5px; padding-left: 12px; }
  .quiz-hello { font-size: 16px; margin-top: 14px; }
  .quiz { margin: 24px 12px 0; padding: 16px 16px 24px; border-radius: 20px; }
  .quiz-step { padding-top: 20px; }
  .quiz-step h2 { margin-bottom: 18px; }
  .answer { min-height: 64px; font-size: 18px; padding: 16px 58px 16px 18px; }
  .answer::after { right: 18px; }
  .answer-mark { right: 14px; }
  .quiz .booking { margin: 0 -10px; padding: 0; }
  .p-book .booking-inner iframe { height: 577px; }
  .cal-skel { padding: 24px 16px; }
  .sk-grid { grid-template-columns: repeat(7, 1fr); gap: 14px 8px; }
  .sk-grid i { width: auto; aspect-ratio: 1; height: auto; }
}
@media (max-width: 380px) {
  .p-book .trust { flex-direction: column; gap: 4px; border-radius: 20px; }
  .p-book .trust-meta { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-step.is-out-fwd, .quiz-step.is-out-back, .quiz-step.is-in-fwd, .quiz-step.is-in-back { animation: none; }
  .quiz-bar span, .quiz-bar span.is-intro { transition: none; }
  .quiz-bar span::after { display: none; }
  .answer, .answer::after { transition: none; }
  .answer:hover { transform: none; }
  .answer.is-picked, .answer.is-picked .answer-mark, .answer.is-picked .answer-mark path { animation: none; }
  .cal-skel > *, .sk-grid i, .sk-slots b { animation: none; }
  .p-book .booking-inner iframe, .cal-skel { transition: none; }
}
