/* SPA Booking Styles */

html {
    overflow-x: hidden;
}

body {
    font-family: 'PT Sans', sans-serif;
    color: #000;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header with logo */
.booking-header {
    margin-top: 10vh;
    margin-bottom: 1rem;
}

.booking-logo {
    width: 80px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.booking-logo:hover {
    opacity: 1;
}

.booking-container {
    padding: 1.5rem 0 4rem;
    flex: 1;
}

/* Footer */
.booking-footer {
    margin-bottom: 10vh;
    margin-top: auto;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav li {
    margin: 0 1rem;
}

.footer-nav a {
    font-family: 'PT Sans', sans-serif;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 1;
    color: #000;
}

.booking-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.booking-info {
    text-align: center;
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.step-label {
    font-size: 0.95em;
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hidden {
    display: none !important;
}

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

.cal-month {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cal-arrow {
    text-decoration: none;
    color: #000;
    font-size: 1.2em;
    padding: 0.3rem 0.6rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.cal-arrow:hover,
.cal-arrow:focus-visible {
    opacity: 1;
    color: #000;
    outline: none;
}

.cal-arrow.disabled {
    opacity: 0.15;
    pointer-events: none;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.calendar-table th {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.5;
    text-transform: uppercase;
}

.calendar-table td {
    text-align: center;
    padding: 0.6rem 0.4rem;
    font-size: 0.9em;
    border-radius: 4px;
}

.cal-day {
    transition: all 0.2s;
}

.cal-available {
    cursor: pointer;
    font-weight: 700;
}

.cal-available:hover,
.cal-available:focus-visible {
    background: #000;
    color: #fff;
    outline: none;
}

.cal-available.selected {
    background: #000;
    color: #fff;
}

.cal-past {
    opacity: 0.25;
}

.cal-closed,
.cal-blocked,
.cal-full {
    opacity: 0.25;
    text-decoration: line-through;
}

/* Duration buttons */
.duration-buttons {
    display: flex;
    margin-bottom: 2rem;
}

.btn-duration + .btn-duration {
    margin-left: 1rem;
}

.btn-duration {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-duration:hover,
.btn-duration:focus-visible,
.btn-duration.selected {
    background: #000;
    color: #fff;
    outline: none;
}

/* Time slots */
.slots-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-slot {
    margin: 0 0.6rem 0.6rem 0;
    padding: 0.5rem 1rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-slot:hover,
.btn-slot:focus-visible,
.btn-slot.selected {
    background: #000;
    color: #fff;
    outline: none;
}

.btn-slot.unavailable {
    opacity: 0.3;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

/* Group size select */
#group_size {
    max-width: 100px;
}

/* Form */
.form-label {
    font-size: 0.85em;
    opacity: 0.85;
}

.form-label small {
    opacity: 0.6;
}

.form-control,
.form-select {
    border-radius: 0;
    border-color: #ccc;
    font-family: 'PT Sans', sans-serif;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: #000;
    box-shadow: none;
}

/* Summary */
.booking-summary {
    padding: 1rem;
    background: #f8f8f8;
    font-size: 0.85em;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* SPA rules reminder */
.spa-rules {
    font-size: 0.82em;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.spa-rules strong {
    display: block;
    margin-bottom: 0.3rem;
}

.spa-rules ul {
    margin: 0;
    padding-left: 1.2rem;
}

.spa-rules li {
    margin-bottom: 0.2rem;
}

/* Submit button */
.btn-book {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.95em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.btn-book:hover,
.btn-book:focus-visible {
    opacity: 0.85;
    color: #fff;
    outline: none;
}

.btn-book:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Success */
.success-box {
    text-align: center;
    padding: 2rem 0;
}

.success-box h2 {
    font-size: 1.2em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

#success-details {
    text-align: left;
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.success-note {
    font-size: 0.85em;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.cancel-note {
    font-size: 0.8em;
    opacity: 0.45;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cancel-note a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.back-link {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
    color: #000;
}

/* Inline field validation */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #c00;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #c00;
    box-shadow: none;
}

.field-error {
    font-size: 0.8em;
    color: #c00;
    margin-top: 0.25rem;
}

/* Error */
.booking-error {
    padding: 0.8rem;
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    font-size: 0.85em;
    margin-top: 1rem;
    text-align: center;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Selection context summary */
.selection-summary {
    font-size: 0.82em;
    opacity: 0.5;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

/* Success checkmark */
.success-check {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2d8a4e;
    color: #fff;
    font-size: 1.6em;
    line-height: 50px;
    text-align: center;
    margin: 0 auto 1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .booking-header {
        text-align: center;
        margin-top: 4vh;
    }

    .booking-footer {
        margin-bottom: 4vh;
    }

    .calendar-table td {
        padding: 0.7rem 0.3rem;
        font-size: 0.9em;
    }

    .btn-duration + .btn-duration {
        margin-left: 0.5rem;
    }

    .btn-duration {
        padding: 0.85rem;
    }

    .btn-slot {
        padding: 0.6rem 1rem;
        font-size: 0.85em;
    }

    .btn-book {
        padding: 1rem;
        font-size: 1em;
    }

    .footer-nav li {
        margin: 0 0.5rem;
    }

    .cancel-note a {
        display: block;
    }
}
