/* =========================================
   SIX STRINGS HIGHER
   BOOKING / SCENES 04–06
========================================= */


/* =========================================
   SHARED BOOKING STYLES
========================================= */

.booking-section,
.booking-details-section,
.confirmation-section {

    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 45%,
            rgba(100, 67, 40, 0.12),
            transparent 38%
        ),
        #0b0908;

    color: var(--cream);
}


/* =========================================
   SCENE 04
   CHOOSE YOUR TIME
========================================= */

.booking-section {

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 120px 10vw;
}


.booking-content {

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(260px, 0.7fr)
        minmax(420px, 1fr)
        minmax(280px, 0.8fr);

    gap: 4vw;

    align-items: center;
}


/* =========================================
   BOOKING INTRO
========================================= */

.booking-intro .eyebrow {

    margin: 0 0 24px;

    font-family: var(--sans);

    font-size: 9px;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: var(--cream-muted);
}


.booking-intro h2 {

    margin: 0;

    font-family: var(--serif);

    font-size: clamp(
        48px,
        5vw,
        78px
    );

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: -0.045em;

    color: var(--cream);
}


.booking-description {

    max-width: 350px;

    margin-top: 28px;

    font-family: var(--serif);

    font-size: 18px;

    line-height: 1.5;

    color: var(--cream-muted);
}


/* =========================================
   CALENDAR
========================================= */

.booking-calendar {

    padding: 32px;

    border: 1px solid
        rgba(226, 215, 190, 0.14);

    background:
        rgba(255, 255, 255, 0.018);

    backdrop-filter: blur(8px);
}


/* =========================================
   CALENDAR HEADER
========================================= */

.calendar-header {

    display: grid;

    grid-template-columns:
        44px 1fr 44px;

    align-items: center;

    margin-bottom: 28px;
}


.calendar-month {

    text-align: center;

    font-family: var(--sans);

    font-size: 10px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--cream);
}


.calendar-nav {

    width: 40px;
    height: 40px;

    border: 1px solid
        rgba(226, 215, 190, 0.15);

    background: transparent;

    color: var(--cream-muted);

    font-family: var(--sans);

    font-size: 15px;

    cursor: pointer;

    transition:
        border-color 0.3s ease,
        color 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;
}


.calendar-nav:hover {

    border-color:
        rgba(226, 215, 190, 0.4);

    color: var(--cream);

    background:
        rgba(226, 215, 190, 0.03);
}


.calendar-nav:disabled {

    opacity: 0.25;

    cursor: default;
}


/* =========================================
   WEEKDAYS
========================================= */

.calendar-weekdays {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 5px;

    margin-bottom: 7px;
}


.calendar-weekdays span {

    text-align: center;

    font-family: var(--sans);

    font-size: 7px;

    letter-spacing: 0.12em;

    color: var(--cream-muted);
}


/* =========================================
   CALENDAR GRID
========================================= */

.booking-calendar-grid {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 5px;

    margin-bottom: 32px;
}


.calendar-day {

    aspect-ratio: 1;

    min-width: 0;

    padding: 0;

    border: 1px solid
        rgba(226, 215, 190, 0.1);

    background: transparent;

    color: var(--cream);

    font-family: var(--serif);

    font-size: 15px;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.calendar-day:hover {

    border-color:
        rgba(226, 215, 190, 0.4);

    background:
        rgba(226, 215, 190, 0.04);

    transform: translateY(-1px);
}


.calendar-day.today {

    border-color:
        rgba(226, 215, 190, 0.4);
}


.calendar-day.today::after {

    content: "";

    display: block;

    width: 3px;
    height: 3px;

    margin: 2px auto 0;

    border-radius: 50%;

    background:
        var(--cream-muted);
}


.calendar-day.active {

    border-color:
        var(--cream);

    background:
        rgba(226, 215, 190, 0.1);

    color: var(--cream);
}


.calendar-day.past {

    opacity: 0.2;

    cursor: default;

    text-decoration: line-through;
}


.calendar-day.past:hover {

    transform: none;

    border-color:
        rgba(226, 215, 190, 0.1);

    background: transparent;
}


.calendar-day.empty {

    border: none;

    background: transparent;

    pointer-events: none;
}


/* =========================================
   BOOKING LABEL
========================================= */

.booking-label,
.lesson-label {

    margin-bottom: 16px;

    font-family: var(--sans);

    font-size: 8px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--cream-muted);
}


/* =========================================
   AVAILABLE TIMES
========================================= */

.booking-times {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;
}


.booking-times button {

    min-height: 44px;

    padding: 12px 8px;

    border: 1px solid
        rgba(226, 215, 190, 0.13);

    background: transparent;

    color: var(--cream-muted);

    font-family: var(--sans);

    font-size: 9px;

    letter-spacing: 0.1em;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.booking-times button:hover {

    border-color:
        rgba(226, 215, 190, 0.4);

    color: var(--cream);

    transform: translateY(-1px);
}


.booking-times button.active {

    border-color:
        var(--cream);

    background:
        rgba(226, 215, 190, 0.08);

    color: var(--cream);
}


/* =========================================
   BOOKING SUMMARY
========================================= */

.booking-summary {

    padding-top: 4px;
}


.booking-summary h3 {

    margin: 0 0 12px;

    font-family: var(--serif);

    font-size: 32px;

    font-weight: 400;

    line-height: 1;

    color: var(--cream);
}


.booking-summary > p:not(.lesson-label) {

    margin: 0 0 28px;

    font-family: var(--serif);

    font-size: 15px;

    line-height: 1.5;

    color: var(--cream-muted);
}


.summary-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(226, 215, 190, 0.08);

    font-family: var(--sans);

    font-size: 8px;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.summary-row span:first-child {

    color: var(--cream-muted);
}


.summary-row span:last-child {

    text-align: right;

    color: var(--cream);
}


/* =========================================
   CONTINUE
========================================= */

#continue-booking {

    margin-top: 25px;
}


/* =========================================
   SCENE 05
   BOOKING DETAILS
========================================= */

.booking-details-section {

    display: flex;

    align-items: center;

    padding: 120px 10vw;
}


.details-content {

    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}


.details-content > .eyebrow {

    margin-bottom: 22px;

    font-family: var(--sans);

    font-size: 9px;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: var(--cream-muted);
}


.details-content h2 {

    margin: 0 0 25px;

    font-family: var(--serif);

    font-size: clamp(
        52px,
        6vw,
        84px
    );

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: -0.045em;
}


.details-content > p {

    max-width: 450px;

    margin: 0 0 45px;

    font-family: var(--serif);

    font-size: 18px;

    line-height: 1.5;

    color: var(--cream-muted);
}


/* =========================================
   FORM
========================================= */

#booking-form {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 28px 35px;

    max-width: 800px;
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 10px;
}


.form-group.full-width {

    grid-column: 1 / -1;
}


.form-group label {

    font-family: var(--sans);

    font-size: 8px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--cream-muted);
}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 14px 0;

    border: none;

    border-bottom:
        1px solid rgba(226, 215, 190, 0.2);

    outline: none;

    background: transparent;

    color: var(--cream);

    font-family: var(--serif);

    font-size: 16px;

    transition:
        border-color 0.3s ease;
}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color:
        rgba(226, 215, 190, 0.35);
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-bottom-color:
        var(--cream);
}


.form-group select {

    cursor: pointer;
}


.form-group select option {

    background: #0b0908;

    color: var(--cream);
}


.form-group textarea {

    resize: vertical;

    min-height: 90px;
}


#booking-form .primary-button {

    grid-column: 1 / -1;

    justify-self: start;

    margin-top: 10px;
}


/* =========================================
   SCENE 06
   CONFIRMATION
========================================= */

.confirmation-section {

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 100px 10vw;
}


.confirmation-content {

    max-width: 700px;
}


.confirmation-content .eyebrow {

    margin-bottom: 25px;

    font-family: var(--sans);

    font-size: 9px;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: var(--cream-muted);
}


.confirmation-content h2 {

    margin: 0;

    font-family: var(--serif);

    font-size: clamp(
        70px,
        10vw,
        140px
    );

    font-weight: 400;

    line-height: 0.85;

    letter-spacing: -0.055em;

    color: var(--cream);
}


.confirmation-content > p {

    margin: 30px 0;

    font-family: var(--serif);

    font-size: 20px;

    color: var(--cream-muted);
}


/* =========================================
   CONFIRMATION STAMP
========================================= */

.confirmation-stamp {

    display: inline-block;

    margin: 20px 0;

    padding: 13px 22px;

    border:
        1px solid rgba(226, 215, 190, 0.25);

    font-family: var(--sans);

    font-size: 10px;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    color: var(--cream);
}


.confirmation-note {

    font-size: 14px !important;

    letter-spacing: 0.04em;

    color:
        rgba(226, 215, 190, 0.55) !important;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {

    .booking-content {

        grid-template-columns:
            minmax(240px, 0.7fr)
            minmax(400px, 1fr);

        gap: 5vw;
    }


    .booking-summary {

        grid-column: 1 / -1;

        max-width: 700px;

        width: 100%;

        margin: 0 auto;
    }

}


@media (max-width: 1000px) {

    .booking-content {

        grid-template-columns: 1fr;

        gap: 50px;
    }


    .booking-section {

        padding-top: 150px;
        padding-bottom: 100px;
    }


    .booking-intro {

        max-width: 600px;
    }


    .booking-calendar {

        width: 100%;

        max-width: 700px;

        box-sizing: border-box;

        margin: 0 auto;
    }


    .booking-summary {

        grid-column: auto;

        max-width: 700px;

        margin: 0 auto;
    }

}


@media (max-width: 700px) {

    .booking-section,
    .booking-details-section,
    .confirmation-section {

        padding-left: 8vw;
        padding-right: 8vw;
    }


    .booking-calendar {

        padding: 25px;
    }


    .calendar-weekdays {

        gap: 4px;
    }


    .booking-calendar-grid {

        gap: 4px;
    }


    .calendar-day {

        font-size: 14px;
    }


    .booking-times {

        grid-template-columns:
            repeat(2, 1fr);
    }


    #booking-form {

        grid-template-columns: 1fr;

        gap: 25px;
    }


    .form-group.full-width {

        grid-column: auto;
    }


    #booking-form .primary-button {

        grid-column: auto;
    }


    .confirmation-content h2 {

        font-size: clamp(
            64px,
            18vw,
            100px
        );
    }

}


@media (max-width: 480px) {

    .booking-calendar {

        padding: 20px;
    }


    .calendar-header {

        grid-template-columns:
            38px 1fr 38px;
    }


    .calendar-nav {

        width: 36px;
        height: 36px;
    }


    .calendar-day {

        font-size: 13px;
    }


    .calendar-weekdays {

        gap: 3px;
    }


    .booking-calendar-grid {

        gap: 3px;
    }


    .summary-row {

        gap: 15px;

        font-size: 8px;
    }

}
/* ==========================================
   BOOKING MODAL
   ========================================== */

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(7, 5, 4, 0.78);
    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal-panel {
    position: relative;

    width: min(460px, 90vw);

    padding: 42px 42px 38px;

    background:
        linear-gradient(
            145deg,
            rgba(31, 24, 19, 0.98),
            rgba(14, 11, 9, 0.98)
        );

    border: 1px solid rgba(218, 200, 174, 0.22);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55);

    transform: translateY(25px) scale(0.97);

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal.active .booking-modal-panel {
    transform: translateY(0) scale(1);
}

.booking-modal-panel::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 70px;
    height: 1px;

    background: var(--cream);
}

.booking-modal-label {
    margin: 0 0 18px;

    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.2em;
    text-transform: uppercase;

    color: var(--cream-muted);
}

.booking-modal-title {
    margin: 0 0 14px;

    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;

    line-height: 0.95;
    letter-spacing: -0.03em;

    color: var(--cream);
}

.booking-modal-message {
    margin: 0;

    max-width: 360px;

    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.5;

    color: var(--cream-muted);
}

.booking-modal-close {
    margin-top: 32px;

    min-width: 130px;
    padding: 14px 20px;

    border: 1px solid rgba(218, 200, 174, 0.35);

    background: transparent;

    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--cream);

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.booking-modal-close:hover {
    background: var(--cream);
    color: #0b0908;
    border-color: var(--cream);
}

.booking-modal-index {
    position: absolute;

    right: 24px;
    bottom: 20px;

    font-family: var(--sans);
    font-size: 8px;
    letter-spacing: 0.15em;

    color: rgba(218, 200, 174, 0.35);
}


/* =========================================
   CONFIRMATION
   Hidden until a booking is made
   (booking.js reveals it)
========================================= */

.confirmation-section[hidden] {

    display: none;
}


/* Room for the scene label above the form on phones */

@media (max-width: 800px) {

    .booking-details-section {

        padding-top: 150px;
    }
}
