/* The booking card (funnel.py, assets/book.js) and the /next-steps quiz. */

.book__steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.book__steps li { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 6px 6px;
  border-radius: 40px; background: var(--mist); }
.book__steps li b { padding: 2px 9px; border-radius: 40px; background: #fff; color: var(--ink); font-size: .72rem; }
.book__steps li.on { background: var(--olive); color: #fff; }
.book__steps li.on b { color: var(--olive); }
/* one step at a time: "Step 1, your details", then "Step 2, book a call" */
.book__steps li:not(.on) { display: none; }
.book__steps li.done { background: #eef3ea; color: var(--olive); }

.book__h { font-size: clamp(1.3rem, 3vw, 1.6rem); color: var(--ink); margin: 0 0 8px; outline: none; }
.book__note { color: var(--muted); margin: 0 0 18px; font-size: .98rem; }
.book__loading { color: var(--muted); margin: 6px 0; }

.book__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 12px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.book__day { flex: 0 0 auto; scroll-snap-align: start; min-width: 62px; padding: 10px 8px; border: 2px solid var(--mist);
  border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--font); cursor: pointer;
  display: grid; justify-items: center; gap: 1px; line-height: 1.1; }
.book__day small { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.book__day b { font-size: 1.3rem; }
.book__day:hover { border-color: var(--olive-soft, #8a9a7c); }
.book__day[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: #fff; }
.book__day[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }

.book__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0 0 18px; }
.book__time { padding: 12px 6px; border: 2px solid var(--mist); border-radius: 8px; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 1rem; font-weight: 700; cursor: pointer; }
.book__time:hover { border-color: var(--olive-soft, #8a9a7c); }
.book__time[aria-pressed="true"] { border-color: var(--olive); background: #eef3ea; color: var(--olive); }
.book__day:focus-visible, .book__time:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

.book__err { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: #fbefe9; color: #7a2e1a; font-size: .95rem; }
.book__err a { color: inherit; font-weight: 700; }
.book__skip { margin: 14px 0 0; text-align: center; font-size: .92rem; }
.book__skip a { color: var(--muted); }
.book .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* inside a dark section the card is white: keep its text dark */
.tone-ink .book p, .tone-ink .book h3 { color: var(--body); }
.tone-ink .book .book__h { color: var(--ink); }
.tone-ink .book .legal, .tone-ink .book .book__note { color: var(--muted); }

/* the /next-steps quiz */
.nsquiz .q[hidden], .nsquiz__done[hidden] { display: none; }
.nsquiz .q { border: 0; padding: 0; margin: 0 0 26px; }
.nsquiz .q:last-of-type { margin-bottom: 4px; }
.nsquiz__done { outline: none; padding-top: 6px; }
.nsquiz__done .kicker { color: var(--olive); margin: 0 0 6px; }
.nsquiz__done h3 { color: var(--ink); margin: 0 0 8px; font-size: clamp(1.3rem, 3vw, 1.6rem); }
.tone-ink .nsquiz p, .tone-ink .nsquiz legend { color: var(--body); }
.tone-ink .nsquiz legend { color: var(--ink); }

/* inside the lightbox (dark panel) */
.fx__slot .book .book__h { color: #fff; }
.fx__slot .book .book__note, .fx__slot .book .book__loading { color: rgba(255, 255, 255, .72); }
.fx__slot .book .book__skip a { color: rgba(255, 255, 255, .7); }
.fx__slot .book__steps li { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.fx__slot .book__steps li.on { background: var(--sage); color: var(--ink); }
.fx__slot .book__steps li.on b { color: var(--ink); }
.fx__slot .book__steps li.done { background: rgba(138, 205, 143, .16); color: var(--sage); }

/* /next-steps after booking: one column, the quiz straight under the heading */
html.ns-booked .hero .hero-cta,
html.ns-booked .hero .scarcity,
html.ns-booked .hero .hero-media .arch,
html.ns-booked #quiz,
html.ns-booked [data-ns-unbooked] { display: none; }
html.ns-booked .hero-grid { grid-template-columns: 1fr; max-width: 800px; gap: clamp(20px, 3vw, 30px); align-items: start; }
html.ns-booked .hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 12px; }
html.ns-booked .hero .lede { margin-bottom: 0; }
.hero-quiz .nsquiz { margin: 0; box-shadow: 0 18px 50px rgba(20, 26, 14, .12); }

/* the quiz, one question at a time: every step in the same grid cell */
.nsquiz--stepped { display: grid; grid-template-columns: 1fr; align-items: start; }
.nsquiz__top { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin: 0 0 22px; }
.nsquiz__title { margin: 0; font-family: var(--display, inherit); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.5rem); color: var(--ink); line-height: 1.2; }
.nsquiz__sub { margin: 4px 0 0; color: var(--body); font-size: .97rem; }
.nsquiz__back { align-self: start; padding: 4px 0; border: 0; background: none; color: var(--olive);
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nsquiz__back[hidden] { display: none; }
.nsquiz__bar { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 16px; }
.nsquiz__top--bare { align-items: center; }
.nsquiz__top--bare > div:first-child { display: none; }
.nsquiz__top--bare .nsquiz__bar { grid-column: 1; grid-row: 1; margin: 0; }
.nsquiz__top--bare .nsquiz__back { grid-column: 2; grid-row: 1; align-self: center; }
.nsquiz__bar i { height: 5px; border-radius: 3px; background: rgba(78, 94, 60, .14); transition: background .25s; }
.nsquiz__bar i.on { background: var(--olive); }
.nsquiz__bar i.now { background: var(--sage); }
.nsquiz--stepped .q, .nsquiz--stepped .nsquiz__done { grid-row: 2; grid-column: 1; margin: 0;
  visibility: hidden; opacity: 0; transform: translateX(12px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
.nsquiz--stepped .q.is-current, .nsquiz--stepped .nsquiz__done.is-current { visibility: visible; opacity: 1; transform: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s; }
.nsquiz--stepped .q__reply { display: none !important; }
.nsquiz--stepped.is-finished .q, .nsquiz--stepped.is-finished .nsquiz__top { display: none; }
.nsquiz--stepped .nsquiz__done .heard { margin: 14px 0 16px; }
@media (prefers-reduced-motion: reduce) { .nsquiz--stepped .q, .nsquiz--stepped .nsquiz__done { transition: none; transform: none; } }
