/* =========================================================
   booking.css — stepped booking modal
   date → time → your details → confirmed
   ========================================================= */
.booking-overlay {
    position: fixed; inset: 0; background: rgba(20,17,14,0.5); backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .24s ease; z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.booking-overlay.is-visible { opacity: 1; pointer-events: auto; }
.booking-modal {
    width: min(440px, 96vw); max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
    box-shadow: 0 40px 120px rgba(20,17,14,0.4);
    color: var(--ink); transform: translateY(18px); opacity: 0;
    transition: transform .28s ease, opacity .28s ease; position: relative; z-index: 2010;
}
.booking-overlay.is-visible .booking-modal { transform: translateY(0); opacity: 1; }

.booking-header { position: relative; padding: 1.6rem 1.6rem 0.6rem; }
.booking-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.68rem; font-weight: 600; color: var(--gold); }
.booking-header h3 { margin: 0.35rem 0 0; color: var(--ink); font-size: 1.7rem; }

/* progress → ruled bar segments */
.booking-progress { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.booking-progress .dot { flex: 1; height: 3px; border-radius: 2px; background: var(--rule); transition: background .25s ease; }
.booking-progress .dot.is-active { background: var(--gold); }

.booking-body { padding: 0 1.6rem 1.6rem; display: block; }
.booking-steps { background: transparent; border: 0; padding: 0; }
.booking-step { display: none; }
.booking-step.is-active { display: block; animation: fadeUp .22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* calendar */
.calendar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; gap: 0.5rem; }
.calendar-top h4 { margin: 0; color: var(--ink); font-size: 1.15rem; }
#chosenDateLabel { color: var(--ink-45); font-size: 0.85rem; }
.time-availability { margin: 0.2rem 0 0.4rem; line-height: 1.5; }
.calendar-controls { display: inline-flex; gap: 0.4rem; }
.ghost-btn {
    background: transparent; color: var(--ink); border: 1px solid var(--rule);
    border-radius: 4px; padding: 0.3rem 0.7rem; cursor: pointer; font-size: 1rem;
    transition: background .2s ease, border-color .2s ease;
}
.ghost-btn:hover { background: var(--linen); border-color: var(--gold); }

.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; margin-bottom: 0.35rem; }
.calendar-weekdays span { text-align: center; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-45); font-weight: 600; padding: 0.2rem 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.calendar-day {
    background: transparent; border-radius: 4px; padding: 0.55rem 0.3rem; text-align: center;
    border: 1px solid transparent; color: var(--ink); cursor: pointer; transition: all .18s ease;
    min-height: 42px; font-size: 0.88rem; appearance: none; font-family: var(--font-body);
}
.calendar-day.muted { color: var(--ink-45); opacity: 0.5; cursor: not-allowed; }
.calendar-day:hover:not(.muted) { border-color: var(--gold); }
.calendar-day.is-selected { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }

/* time slots */
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 0.75rem; }
.time-chip {
    border-radius: 4px; padding: 0.7rem 0.4rem; border: 1px solid var(--rule);
    background: var(--paper-2); color: var(--ink); cursor: pointer; transition: all .18s ease;
    appearance: none; font-family: var(--font-body); font-size: 0.85rem;
}
.time-chip:hover { border-color: var(--gold); }
.time-chip.is-selected { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }

/* summary card + inputs */
.booking-summary { background: var(--linen); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; }
.booking-summary h4 { margin: 0 0 0.6rem; color: var(--ink); font-size: 0.95rem; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.booking-summary .line { display: flex; justify-content: space-between; gap: 1rem; margin: 0.5rem 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule-soft); color: var(--ink-70); font-size: 0.92rem; }
.booking-summary .line:last-of-type { border-bottom: 0; }

.booking-contact-fields label { color: var(--ink); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.booking-contact-fields input {
    width: 100%; margin-top: 0.4rem; padding: 0.7rem 0; border: none;
    border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink) !important;
    font-size: 0.98rem; font-family: var(--font-body);
}
.booking-contact-fields input:focus { outline: none; border-bottom-color: var(--gold); }
.booking-contact-fields input::placeholder { color: var(--ink-45); }

.booking-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
.booking-actions .btn.primary { width: 100%; padding: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.booking-actions span { color: var(--ink-45); font-size: 0.82rem; text-align: center; }

.booking-close {
    position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    transition: background .2s ease, transform .2s ease; z-index: 5;
}
.booking-close:hover { background: var(--linen); transform: scale(1.05); }

/* confirmed screen */
#bookingSuccessPanel .success-check {
    width: 54px; height: 54px; border-radius: 6px; background: var(--gold-soft);
    color: var(--charcoal); display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1.2rem;
}
#bookingSuccessPanel h4 { font-size: 1.7rem; color: var(--ink); margin: 0.4rem 0; }
#bookingSuccessPanel p { color: var(--ink-70); }
