/* Booking — public + embed surface */
body.book-public {
    margin: 0; padding: 0;
    background: #FFFFFF;
    min-height: 100vh; min-height: 100dvh;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: var(--text, #111217);
}
body.book-public-embed { background: transparent; min-height: 0; }

.book-shell {
    display: flex; justify-content: center;
    padding: 40px 16px;
}
body.book-public-embed .book-shell { padding: 0; }

.book-card {
    width: 100%; max-width: 640px;
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: var(--radius-lg, 12px);
    padding: 28px 28px 24px;
    /* Slightly stronger elevation so the white card reads as a panel
       on the white page background. */
    box-shadow: 0 4px 20px rgba(15,17,23,0.07);
}
body.book-public-embed .book-card { box-shadow: none; border-radius: 0; padding: 22px 18px 18px; max-width: 100%; }

.book-card h1 {
    font-family: var(--font-display, "Plus Jakarta Sans", -apple-system, sans-serif);
    margin: 6px 0 14px; font-size: 24px; font-weight: 600;
    line-height: 1.2; letter-spacing: -0.01em;
}
.book-sub { color: var(--muted, #6B7280); margin: 0 0 16px; font-size: 14px; }
.book-back {
    display: inline-block;
    font-size: 13px;
    color: var(--muted, #6B7280);
    margin-bottom: 4px;
}
.book-back:hover { color: var(--text, #111217); }

/* Stepper */
.book-stepper {
    list-style: none; padding: 0; margin: 0 0 18px;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.book-step {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 999px;
    background: var(--surface-2, #FAFAF7);
    font-size: 12px; color: var(--muted, #6B7280);
}
.book-step-num {
    width: 20px; height: 20px; border-radius: 999px;
    background: var(--surface, #fff);
    border: 1px solid var(--border-strong, rgba(0,0,0,0.13));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600;
}
.book-step.is-done { background: var(--accent-soft, #EFF6FF); color: var(--accent-deep, #1D4ED8); border-color: transparent; }
.book-step.is-done .book-step-num { background: var(--accent, #2563EB); color: #fff; border-color: var(--accent, #2563EB); }
.book-step.is-current { background: var(--accent, #2563EB); color: #fff; border-color: var(--accent, #2563EB); }
.book-step.is-current .book-step-num { background: #fff; color: var(--accent-deep, #1D4ED8); border-color: transparent; }

/* Cards grid (service + provider lists) */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.book-card-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: var(--radius-lg, 12px);
    background: var(--surface, #FFFFFF);
    text-decoration: none;
    color: var(--text, #111217);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.book-card-link:hover {
    border-color: var(--accent, #2563EB);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    color: var(--text, #111217);
}
.book-card-title { font-weight: 600; font-size: 14px; }
.book-card-meta  { font-size: 12px; color: var(--muted, #6B7280); margin-top: 2px; }
.book-card-desc  { font-size: 12.5px; color: var(--text-2, #1F2937); margin-top: 8px; line-height: 1.4; }

/* Date + slots — calendar on the left, time slots fill the space on the right;
   wraps to a stacked layout on narrow screens. */
.book-when {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 20px; margin: 8px 0 16px;
}
.book-date-form { width: 100%; max-width: 100%; margin: 0; flex: none; }
.book-when-slots { width: 100%; flex: none; min-width: 0; }
.book-slots {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}
.book-slot {
    display: block; text-align: center; padding: 10px 8px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: var(--radius, 8px);
    background: var(--surface, #fff);
    color: var(--text, #111217);
    text-decoration: none;
    font-weight: 500; font-variant-numeric: tabular-nums;
    transition: all 120ms ease;
}
.book-slot:hover {
    background: var(--accent, #2563EB);
    color: #fff;
    border-color: var(--accent, #2563EB);
}

/* Summary on step 4 */
.book-summary {
    background: var(--surface-2, #FAFAF7);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: var(--radius-lg, 12px);
    padding: 14px 16px;
    margin: 10px 0 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.book-summary > div { display: flex; justify-content: space-between; gap: var(--space-4, 16px); }
.book-summary .kv-label { color: var(--muted, #6B7280); font-size: 12.5px; }
.book-summary .kv-value { font-weight: 500; font-size: 13px; text-align: right; }

/* Success */
.book-success { text-align: center; padding: 32px 8px 8px; }
.book-success-icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--success-soft, #ECFDF5);
    color: var(--success, #16A34A);
    display: grid; place-items: center;
}
.book-success-icon svg { width: 28px; height: 28px; }

.book-footer { text-align: center; padding: 24px 16px 32px; }

@media (max-width: 480px) {
    .book-shell { padding: 16px 10px; }
    .book-card { padding: 20px 16px 16px; border-radius: var(--radius-lg, 12px); }
    .book-card h1 { font-size: 19px; line-height: 1.22; }
    .book-sub { font-size: 13px; }
    .book-stepper .book-step-label { display: none; }
    .book-step { padding: 4px; }
    .book-summary { padding: 12px 13px; }
    .book-summary > div { flex-direction: column; gap: 2px; }
    .book-summary .kv-value { text-align: left; }
    /* Stack the two-up field rows (promo / gift, etc.) on phones. */
    .field-row-2 { grid-template-columns: 1fr !important; display: grid; gap: 12px; }
}

/* Category headings on the service grid */
.book-cat-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #6B7280);
    margin: 18px 0 8px;
}
.book-cat-title:first-of-type { margin-top: 4px; }

/* Grouped sections on the confirm step (add-ons, repeat) */
.book-fieldset {
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
}
.book-fieldset > legend {
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 6px;
    color: var(--text, #111217);
}

/* ── Confirm-step section cards (promo + repeat) ─────────────── */
.book-section {
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    background: var(--card, #fff);
}
.book-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #6B7280);
    margin: 0 0 12px;
}
.book-section-title svg {
    width: 15px; height: 15px;
    color: var(--accent, #2563EB);
    flex: none;
}

/* Promo / gift inputs with a leading icon */
.book-input-icon { position: relative; }
.book-input-icon > svg {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--muted, #9CA3AF);
    pointer-events: none;
}
/* Specificity must beat the global `.field input[type="text"]` rule, which
   sets `padding: 8px 11px` (0,2,1) and would otherwise reset padding-left,
   leaving the placeholder text overlapping the leading icon. */
.field .book-input-icon input[type="text"] {
    padding-left: 38px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.book-input-icon input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted, #9CA3AF);
}

/* Repeat — selectable option rows */
.book-options { display: grid; gap: 8px; }
.book-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.book-option:hover { border-color: var(--accent, #2563EB); }
.book-option > input[type="radio"] {
    accent-color: var(--accent, #2563EB);
    width: 18px; height: 18px; margin: 0; flex: none;
}
.book-option-body { display: flex; flex-direction: column; gap: 2px; }
.book-option-title {
    font-weight: 600; font-size: 13.5px;
    color: var(--text, #111217);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.book-option-sub { font-size: 12px; color: var(--muted, #6B7280); }
.book-option:has(input:checked) {
    border-color: var(--accent, #2563EB);
    background: var(--accent-soft, #EFF6FF);
    box-shadow: inset 0 0 0 1px var(--accent, #2563EB);
}
.book-weeks-input {
    max-width: 60px; text-align: center;
    padding: 4px 6px;
}

/* ── Inline date-picker calendar (When step) ─────────────────── */
.book-cal {
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    background: var(--card, #fff);
    margin: 4px 0 10px;
}
.book-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; gap: 8px;
}
.book-cal-title {
    font-weight: 600; font-size: 14px;
    color: var(--text, #111217);
}
.book-cal-nav {
    width: 32px; height: 32px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 8px;
    background: var(--card, #fff);
    color: var(--text-2, #374151);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.book-cal-nav:hover:not(:disabled) {
    border-color: var(--accent, #2563EB);
    color: var(--accent, #2563EB);
    background: var(--accent-soft, #EFF6FF);
}
.book-cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.book-cal-nav:focus-visible {
    outline: 2px solid var(--accent, #2563EB);
    outline-offset: 2px;
}
.book-cal-nav svg { width: 16px; height: 16px; }

.book-cal-dow, .book-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.book-cal-dow { margin-bottom: 4px; }
.book-cal-dow span {
    text-align: center;
    font-size: 11px; font-weight: 600;
    color: var(--muted, #6B7280);
    padding: 2px 0;
}
.book-cal-day {
    position: relative;
    min-height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text, #111217);
    font-size: 13px; font-family: inherit;
    cursor: pointer; padding: 0;
    transition: background .12s ease, border-color .12s ease,
                color .12s ease, box-shadow .12s ease;
}
.book-cal-day.is-empty { visibility: hidden; cursor: default; }
.book-cal-day:hover:not(:disabled):not(.is-selected) {
    background: var(--accent-soft, #EFF6FF);
    border-color: var(--accent, #2563EB);
}
.book-cal-day:focus-visible {
    outline: 2px solid var(--accent, #2563EB);
    outline-offset: 2px;
    z-index: 1;
}
.book-cal-day.is-today {
    color: var(--accent-deep, #1D4ED8);
    font-weight: 700;
}
.book-cal-day.is-today::after {
    content: "";
    position: absolute; bottom: 5px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent, #2563EB);
}
.book-cal-day.is-selected {
    background: var(--accent, #2563EB);
    color: var(--on-accent, #fff);
    font-weight: 600;
    border-color: var(--accent, #2563EB);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);                                  /* fallback */
    box-shadow: 0 3px 8px color-mix(in srgb, var(--accent, #2563EB) 45%, transparent);
}
.book-cal-day.is-selected.is-today::after { background: var(--on-accent, #fff); }
.book-cal-day:disabled {
    color: var(--muted, #9CA3AF);
    opacity: .4;
    cursor: not-allowed;
}
