/* ===================================
   Booking – minimal dark theme (overrides calendar.css)
   =================================== */

/* calendar.css variables (modals live outside the section, so set them globally) */
:root {
    --bg-white: var(--surface);
    --bg-light: var(--surface-2);
    --accent-color: var(--accent);
    --shadow: none;
    --transition: all 0.25s var(--ease);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Layout */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) 1.6fr;
    gap: 80px;
    align-items: start;
}
.booking-aside { position: sticky; top: 110px; }
.booking-lead { color: var(--text-dim); margin: 20px 0 32px; }
.booking-meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.booking-meta > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.booking-meta dt { color: var(--text-mute); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.booking-meta dd { font-weight: 600; }
.booking-meta a:hover { color: var(--accent); }
.booking-hint { margin-top: 20px; font-size: 0.85rem; color: var(--text-mute); }

.booking-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    background: rgba(255, 255, 255, 0.015);
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.booking-step span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 0.72rem;
    letter-spacing: 0;
    color: var(--text);
}

/* Step 1 – service chips */
.booking-filters {
    display: block;
    padding: 0 0 32px;
    margin: 0 0 32px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.service-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.service-chip small { font-size: 0.75rem; color: var(--text-mute); font-weight: 600; }
.service-chip:hover { border-color: var(--text-dim); color: var(--text); }
.service-chip.active { background: var(--text); border-color: var(--text); color: var(--accent-ink); }
.service-chip.active small { color: rgba(11, 11, 13, 0.55); }

/* Step 2 – navigation */
.calendar-booking { margin-top: 0; }
.calendar-navigation {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    gap: 16px;
}
.calendar-nav-group { display: flex; align-items: center; gap: 8px; }
.calendar-current-view {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-right: 8px;
}
.calendar-nav-btn {
    width: 34px;
    height: 34px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
}
.calendar-nav-btn:hover { background: var(--text); border-color: var(--text); color: var(--accent-ink); }

/* Days */
.calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 0;
}
.calendar-day,
.calendar-day:hover {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
}
.calendar-day-header {
    background: none;
    padding: 0 0 12px;
    margin-bottom: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.calendar-day-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0;
}
.calendar-day-date {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 2px 0 0;
}
.calendar-day-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
    padding: 0;
    max-height: none;
    overflow: visible;
}
.calendar-day-slots::after { display: none; }

/* Time pills */
.time-slot,
.time-slot.available {
    justify-content: center;
    padding: 9px 0;
    margin: 0;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
}
.time-slot.available:hover,
.time-slot.selected { background: var(--accent); border-color: var(--accent); }
.time-slot.booked { border-color: transparent; opacity: 1; }
.time-slot.booked .slot-time { color: var(--text-mute); text-decoration: line-through; opacity: 0.5; }
.slot-status { display: none; }
.slot-time { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.time-slot.available:hover .slot-time,
.time-slot.selected .slot-time { color: var(--accent-ink); }

.no-slots { grid-column: 1 / -1; padding: 6px 0; text-align: left; }
.no-slots-icon { display: none; }
.no-slots-text { font-size: 0.85rem; color: var(--text-mute); }

.calendar-empty {
    grid-column: 1 / -1;
    padding: 36px 0;
    text-align: center;
    color: var(--text-mute);
    font-size: 0.92rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}

/* Disabled state inside the panel */
.booking-panel .booking-disabled { margin: 0; border: 0; padding: 30px 0; background: none; }

/* Modal */
.booking-modal { background: rgba(5, 5, 6, 0.8); backdrop-filter: blur(8px); }
.booking-modal-content { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); }
.booking-modal-header { background: var(--surface); border-bottom-color: var(--line); }
.booking-modal-header h3 { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.booking-modal-header p { color: var(--text-dim); }
.modal-close-btn { border-color: var(--line-strong); color: var(--text); border-radius: 50%; }
.modal-close-btn:hover { background: var(--text); color: var(--accent-ink); border-color: var(--text); }
.booking-details { background: var(--bg); border-color: var(--line); border-radius: var(--radius-sm); }
.booking-detail-item { border-bottom-color: var(--line); }
.booking-detail-icon { display: none; }
.booking-detail-info strong { color: var(--text-mute); }
.booking-detail-info span { color: var(--text); }
.booking-form-fields label { color: var(--text-dim); }
.booking-form-fields input,
.booking-form-fields textarea { background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); }
.booking-form-fields input:focus,
.booking-form-fields textarea:focus { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.booking-form-fields input::placeholder,
.booking-form-fields textarea::placeholder { color: var(--text-mute); }
.booking-modal-actions { border-color: var(--line); }
.booking-modal-btn { border-radius: 999px; font-weight: 700; }
.booking-modal-btn.confirm { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.booking-modal-btn.confirm:hover { background: #e2ff70; border-color: #e2ff70; }
.booking-modal-btn.cancel { background: transparent; color: var(--text); border-color: var(--line-strong); }
.booking-modal-btn.cancel:hover { background: var(--surface-2); border-color: var(--text); }

/* Success */
.appointment-success { text-align: center; padding: 50px 30px; }
.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent);
    color: var(--accent-ink);
}
.appointment-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 14px; }
.appointment-success p { color: var(--text-dim); line-height: 1.8; margin-bottom: 26px; }
.appointment-success p strong { color: var(--text); }

.loading-spinner { border-color: var(--line-strong); border-top-color: var(--accent); }
.calendar-loading p { color: var(--text-dim); }

@media (max-width: 1024px) {
    .booking-layout { grid-template-columns: 1fr; gap: 40px; }
    .booking-aside { position: static; }
}

@media (max-width: 640px) {
    .booking-panel { padding: 22px; }
    .calendar-navigation { flex-wrap: wrap; }
    .calendar-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .service-chip { font-size: 0.85rem; padding: 9px 14px; }
}
