/* ==========================================================================
   /book — "Book a free 30-minute call". No design file of its own: built
   from the Contact page's parts (hero, cards, yellow form panel, cream form,
   pill buttons, success bubble). Loaded via $pageCss = 'book'.
   ========================================================================== */

.book-blob-2 { right: 120px; bottom: -60px; width: 120px; height: 120px; }

/* ---------- Cards column + form ---------- */
.book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 960px) {
    .book { grid-template-columns: minmax(0, 1fr); }
    .book__panel { order: -1; }
}

.book__side { display: flex; flex-direction: column; gap: 16px; }
.book__text { font-size: 17px; line-height: 1.5; font-weight: 600; }
.book__value { font-size: 18px; font-weight: 700; text-decoration: underline; }
.book__value--break { word-break: break-word; }

.book-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.book-steps__item { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.5; }
.book-steps__item .num-badge { flex: none; width: 44px; height: 40px; font-size: 19px; border-radius: 14px; }

/* ---------- The yellow form panel ---------- */
.book__panel {
    background: var(--c-yellow);
    border-radius: var(--r-panel);
    padding: clamp(24px, 4vw, 40px);
    display: flex; flex-direction: column; gap: 20px;
    min-width: 0;
}

.book-form {
    background: var(--c-cream);
    border-radius: var(--r-card);
    padding: clamp(18px, 3vw, 28px);
    display: flex; flex-direction: column; gap: 28px;
}

.book-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.book-step__legend {
    display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 14px;
    font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.15;
}
.book-step__legend .num-badge { flex: none; width: 40px; height: 36px; font-size: 18px; border-radius: 12px; }

.book-hint { font-size: 14px; font-weight: 500; color: var(--c-muted); }
.book-note { font-size: 14px; font-weight: 500; line-height: 1.5; }
.book-note .link { font-size: inherit; }

/* ---------- Choice cards (meeting type, morning/afternoon) ---------- */
.book-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.book-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.book-choice { position: relative; display: flex; cursor: pointer; }
.book-choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.book-choice__body {
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
    background: var(--c-white); border: 2px solid var(--c-ink); border-radius: var(--r-item);
    padding: 14px 16px;
    transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s;
}
.book-choice:hover .book-choice__body { transform: translateY(-3px); }
.book-choice__input:checked + .book-choice__body {
    background: var(--c-teal-tint); border-width: 3px; padding: 13px 15px;
    box-shadow: var(--sh-ink-xs);
}
.book-choice__input:focus-visible + .book-choice__body { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.book-choice__title { font-weight: 700; font-size: 16px; }
.book-choice__text { font-size: 14px; line-height: 1.4; color: var(--c-muted); }
.book-choice--slot .book-choice__body { align-items: center; text-align: center; }

/* In-person address fields: only when "Meet in person" is chosen. Browsers
   without :has() simply always show them, which is harmless. */
@supports selector(:has(*)) {
    .book-visit { display: none; }
    .book-form:has(input[name="meeting_type"][value="in_person"]:checked) .book-visit { display: grid; }
}

/* ---------- Calendar ---------- */
.book-cal__caption { font-weight: 700; font-size: 15px; }
.book-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.book-cal__dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--c-muted); padding-bottom: 2px; }
.book-cal__day {
    position: relative; aspect-ratio: 1 / 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--c-white); border: 2px solid var(--c-ink); border-radius: 14px;
    font-weight: 700; font-size: 16px; line-height: 1; cursor: pointer;
    transition: transform .2s var(--ease-spring), background .2s, color .2s;
}
label.book-cal__day:hover { transform: translateY(-3px); background: var(--c-yellow-tint); }
.book-cal__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.book-cal__day:has(.book-cal__input:checked) { background: var(--c-ink); color: var(--c-cream); transform: none; }
.book-cal__day:has(.book-cal__input:focus-visible) { outline: 3px solid var(--c-pink); outline-offset: 2px; }
.book-cal__day--closed {
    cursor: default; border-style: dashed; color: var(--c-muted);
    background: transparent; opacity: .55;
}
.book-cal__day--pad { visibility: hidden; }
.book-cal__month { font-size: 10px; font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 420px) {
    .book-cal { gap: 4px; }
    .book-cal__day { border-radius: 10px; font-size: 14px; }
}

/* ---------- Success bubble ---------- */
.book-done:focus { outline: none; }
.book-done { animation: bookPop .6s var(--ease-pop) both; }
.book-done__title {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(28px, 3vw, 38px); line-height: 1.05;
}
.book-done__text { font-size: 17px; line-height: 1.5; }
@keyframes bookPop {
    0%   { opacity: 0; transform: scale(.6) translateY(20px); }
    100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .book-done { animation: none; }
    .book-choice__body, .book-cal__day { transition: none; }
    .book-choice:hover .book-choice__body, label.book-cal__day:hover { transform: none; }
}
