/* 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). At step 2 the panel heading says it, so
   the card's own heading and note would only repeat it. */
.fx__slot .book__two .book__h, .fx__slot .book__two .book__note { display: none; }
.fx__panel #fx-title:focus { outline: none; }
.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; } }

/* /book, time first: back to the calendar from the details step */
.book__change { margin: 0 0 14px; }
.book__change button { border: 0; background: none; padding: 0; font: inherit; font-size: .92rem;
  color: var(--muted); text-decoration: underline; cursor: pointer; }
.fx__slot .book__change button { color: rgba(255, 255, 255, .72); }

/* GHL's own booking widget, when ours can't reach the calendar (book.js, widget) */
.book__widget iframe { display: block; width: 100%; min-height: 680px; border: 0; overflow: hidden; background: #fff; border-radius: 10px; }

/* Step 2: phone or in person (book.js, choose) */
.book__types { display: grid; gap: 12px; margin: 0 0 6px; }
@media (min-width: 560px) { .book__types { grid-template-columns: 1fr 1fr; } }
.book__type { display: grid; gap: 6px; text-align: left; padding: 18px 18px 16px; border: 2px solid var(--mist); border-radius: 12px;
  background: #fff; color: var(--ink); font-family: var(--font); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.book__type i { font-style: normal; font-size: 1.6rem; line-height: 1; }
.book__type b { font-size: 1.12rem; }
.book__type span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.book__type:hover { border-color: var(--olive); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.book__type:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.book__back { margin: 0 0 12px; }
.book__back button, .book__change button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; }
.fx__slot .book__pick .book__h, .fx__slot .book__pick .book__note { display: none; }

/* One tap books a time (book.js, renderTimes), so there's no Book button to scroll to.
   On a phone the times go four to a row and a little shorter, so a whole day fits. */
.book__time[disabled] { opacity: 1; cursor: progress; }
.book__times[aria-busy="true"] .book__time:not([aria-pressed="true"]) { opacity: .45; }
@media (max-width: 560px) {
  .book__times { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .book__time { padding: 10px 2px; font-size: .9rem; border-radius: 7px; }
  .book__day { min-width: 56px; padding: 8px 6px; }
}

/* The confirm bar (book.js, confirmBar): the time they tapped and the one button that books it.
   Sticky to the bottom of the screen, so it's in view however long the list of times is. */
.book__confirm { position: sticky; bottom: 0; z-index: 3; margin: 4px -6px 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 12px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .22); display: grid; gap: 10px;
  animation: bookConfirmIn .22s ease-out; }
.book__confirm[hidden] { display: none; }
.book__pickd { margin: 0; display: grid; gap: 2px; text-align: center; }
.book__pickd b { color: var(--ink); font-size: 1.05rem; }
.book__pickd span { color: var(--muted); font-size: .86rem; }
.book__confirm .book__yes { width: 100%; justify-content: center; white-space: nowrap; font-size: .98rem; padding-left: 12px; padding-right: 12px; }
.book__no { background: none; border: 0; padding: 2px; font: inherit; font-size: .9rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.fx__slot .book__confirm { margin-left: 0; margin-right: 0; }
@keyframes bookConfirmIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .book__confirm { animation: none; } }
