/* ================================================
   book.html — Page-specific styles
   Requires: v8.css
   ================================================ */

/* ======================== */
/* Page Header Override      */
/* (book has watermark text) */
/* ======================== */

.page-header {
    padding: 8rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: 'book';
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(7rem, 13vw, 14rem);
    font-weight: 700;
    color: rgba(37, 72, 130, 0.018);
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.6rem;
    position: relative;
}

.page-header p {
    font-size: 1.05rem;
    max-width: 480px;
    position: relative;
}

.page-header .reassurance {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================== */
/* Booking Zone             */
/* ======================== */

.booking-zone {
    background:
        radial-gradient(ellipse 60% 50% at 50% 20%, rgba(13, 148, 136, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 25% 70%, rgba(37, 72, 130, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #edf0f6 0%, var(--bg) 40%, var(--bg-alt) 100%);
    padding: 0 0 5rem;
    position: relative;
}

.booking-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.booking-container {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow:
        0 4px 20px rgba(21, 26, 46, 0.04),
        0 12px 40px rgba(21, 26, 46, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

/* ======================== */
/* Progress Indicator       */
/* ======================== */

.booking-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 0;
}

.booking-progress .step {
    display: flex;
    align-items: center;
    gap: 0;
}

.booking-progress .step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
}

.booking-progress .step-line {
    width: 48px;
    height: 2px;
    background: var(--border);
    transition: background 0.35s ease;
}

.booking-progress .step.active .step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.booking-progress .step.completed .step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.booking-progress .step.completed .step-line {
    background: var(--accent);
}

.booking-progress .step-label {
    display: none;
}

/* ======================== */
/* Booking Steps            */
/* ======================== */

.booking-step {
    display: none;
    animation: stepIn 0.35s ease;
}

.booking-step.active {
    display: block;
}

.booking-step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.booking-step .step-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/* Error Message            */
/* ======================== */

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

/* ======================== */
/* Appointment Type Cards   */
/* ======================== */

.appointment-types {
    display: grid;
    gap: 1rem;
}

.appointment-type-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.appointment-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(13, 148, 136, 0.15));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-type-card:hover {
    border-color: var(--border-accent);
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(21, 26, 46, 0.06);
}

.appointment-type-card:hover::before {
    opacity: 1;
}

.appointment-type-card.selected {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.06);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.appointment-type-card.selected::before {
    opacity: 1;
}

.appointment-type-card h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 0.35rem 0;
}

.appointment-type-card .duration {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.appointment-type-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ======================== */
/* Calendar                 */
/* ======================== */

.calendar-container {
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(13, 148, 136, 0.015) 0%, transparent 50%),
        var(--bg);
    border-radius: 8px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 3px rgba(21, 26, 46, 0.02);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.calendar-nav button:hover {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-light);
}

.calendar-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-day-header {
    font-weight: 600;
    padding: 0.4rem 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: default;
    color: rgba(21, 26, 46, 0.2);
    transition: all 0.2s ease;
    max-width: 44px;
    margin: 0 auto;
}

.calendar-day.available {
    color: var(--text);
    cursor: pointer;
    background: rgba(13, 148, 136, 0.06);
    font-weight: 500;
}

.calendar-day.available:hover {
    background: rgba(13, 148, 136, 0.15);
    color: var(--accent-hover);
}

.calendar-day.selected {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.calendar-day.other-month {
    visibility: hidden;
}

/* ======================== */
/* Time Slots               */
/* ======================== */

.time-slots-container {
    margin-top: 1.5rem;
}

.time-slots-container h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    color: var(--text);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.time-slot {
    padding: 0.65rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.6);
}

.time-slot:hover {
    border-color: var(--border-accent);
    background: var(--accent-light);
    color: var(--accent);
}

.time-slot.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.no-slots {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.92rem;
}

/* ======================== */
/* Booking Form             */
/* ======================== */

.booking-form {
    max-width: 480px;
}

/* ======================== */
/* Booking Summary          */
/* ======================== */

.booking-summary {
    background: rgba(13, 148, 136, 0.04);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

.booking-summary h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.booking-summary dl {
    margin: 0;
}

.booking-summary dt {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.booking-summary dt:first-child {
    margin-top: 0;
}

.booking-summary dd {
    margin: 0.2rem 0 0 0;
    color: var(--text);
    font-size: 0.95rem;
}

/* ======================== */
/* Navigation Buttons       */
/* ======================== */

.booking-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.8rem 1.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.005em;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}

.button.secondary {
    background: transparent;
    border: 1.5px solid var(--border-accent);
    color: var(--accent);
}

.button.secondary:hover {
    background: var(--accent-light);
    border-color: rgba(13, 148, 136, 0.35);
    transform: translateY(-1px);
    box-shadow: none;
}

/* ======================== */
/* Success State            */
/* ======================== */

.booking-success {
    text-align: center;
    padding: 1.5rem 0;
}

.booking-success .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    border: 2px solid rgba(13, 148, 136, 0.22);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.booking-success h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.booking-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.booking-success .booking-summary {
    text-align: left;
    max-width: 340px;
    margin: 1.5rem auto;
}

.booking-success .booking-nav {
    justify-content: center;
}

/* ======================== */
/* Loading & Spinner        */
/* ======================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ======================== */
/* Trust Strip              */
/* ======================== */

.trust-strip {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 2rem 2rem 0;
    max-width: 720px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.trust-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    border: 1.5px solid rgba(13, 148, 136, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* ======================== */
/* Responsive: 600px        */
/* ======================== */

@media (max-width: 600px) {
    .page-header {
        padding: 6rem 1.5rem 2.5rem;
    }

    .booking-wrapper {
        padding: 0 1rem 3rem;
    }

    .booking-container {
        padding: 1.5rem;
    }

    .calendar-container {
        padding: 1rem;
    }

    .calendar-grid {
        gap: 1px;
    }

    .calendar-day-header {
        font-size: 0.65rem;
        padding: 0.3rem 0;
        letter-spacing: 0;
    }

    .calendar-day {
        font-size: 0.78rem;
        max-width: 36px;
    }

    .calendar-nav button {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
}
