﻿/* =========================================================
   GLOBAL BOOKING PAGE
   ========================================================= */

#book-now-container {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 40px 16px;
    background: #f4f2f0;
    color: #2b2926;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

    #book-now-container *,
    #book-now-container *::before,
    #book-now-container *::after {
        box-sizing: border-box;
    }


/* =========================================================
   MAIN CARD
   ========================================================= */

.booking-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e7e3df;
    border-radius: 20px;
}


/* =========================================================
   TOP INFO BAR
   ========================================================= */

.topbar {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e7e3df;
    border-radius: 14px;
    overflow: hidden;
}

.topbar-field {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .topbar-field + .topbar-field {
        border-left: 1px solid #ece8e4;
    }

.topbar-label {
    font-size: 12px;
    line-height: 1.3;
    color: #8a8580;
}

.topbar-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    font-size: 16px;
    color: #2b2926;
}

.guest-icon {
    font-size: 16px;
}


/* =========================================================
   PARTY SIZE PANEL
   ========================================================= */

.party-panel {
    width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e7e3df;
    border-radius: 14px;
}

.panel-title {
    margin-bottom: 16px;
    font-size: 14px;
    color: #6f6a65;
}

.party-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

    .party-row + .party-row {
        border-top: 1px solid #f0ede9;
    }

.party-row-label {
    font-size: 15px;
    color: #2b2926;
}


/* =========================================================
   STEPPER
   ========================================================= */

.stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .stepper button {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid #d8d3ce;
        border-radius: 50%;
        background: #fff;
        color: #4a4642;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    }

        .stepper button:hover {
            background: #f7f5f3;
            border-color: #c7c1bb;
        }

        .stepper button:active {
            transform: scale(0.92);
        }

        .stepper button:focus-visible {
            outline: 2px solid #3f4a5a;
            outline-offset: 2px;
        }

    .stepper .count {
        min-width: 20px;
        text-align: center;
        font-size: 15px;
    }


/* =========================================================
   CHECK NOW BUTTON
   ========================================================= */

.check-now-button {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    background: #3f4a5a;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .check-now-button:hover {
        background: #33404f;
    }

    .check-now-button:active {
        transform: scale(0.99);
    }

    .check-now-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* =========================================================
   SAFETY NOTICE
   ========================================================= */

.safety-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #e7e3df;
    border-radius: 10px;
    color: #4a4642;
    font-size: 13px;
}

.safety-info {
    width: 15px;
    height: 15px;
    border: 1px solid #a5a09a;
    border-radius: 50%;
    color: #7a746e;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   DATE SELECTION
   ========================================================= */

.date-selection {
    margin-bottom: 8px;
    border-radius: 14px;
}

.date-selection label {
    display: block;
    margin-top: 2px;
    margin-bottom: 4px;
    color: #6f6a65;
    font-size: 13px;
}

.date-input-wrapper {
    position: relative;
}

    .date-input-wrapper input {
        width: 100%;
        height: 44px;
        padding: 8px 42px 8px 12px;
        border: 1px solid #dbd6d1;
        border-radius: 8px;
        background: #fff;
        color: #2b2926;
        font-family: inherit;
        font-size: 15px;
        cursor: pointer;
        outline: none;
    }

        .date-input-wrapper input:focus {
            border-color: #8b2f26;
        }

    .date-input-wrapper i {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        color: #77716b;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* =========================================================
   AVAILABLE TIMES
   ========================================================= */

.available-times-section {
    width: 100%;
}

.available-times-header {
    margin-bottom: 14px;
}

    .available-times-header h2 {
        margin: 0 0 4px;
        color: #2b2926;
        font-size: 20px;
        font-weight: 600;
    }

    .available-times-header p {
        margin: 0;
        color: #8a8580;
        font-size: 13px;
    }


/* =========================================================
   TIME SLOTS
   ========================================================= */

.slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.slot {
    min-height: 70px;
    padding: 12px 8px;
    border: none;
    border-radius: 10px;
    background: #8b2f26;
    color: #fff;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .slot:hover {
        background: #7a2921;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .slot:active {
        transform: scale(0.98);
    }

    .slot:focus-visible {
        outline: 2px solid #3f4a5a;
        outline-offset: 2px;
    }

.slot-selected {
    background: #3f4a5a !important;
    box-shadow: 0 0 0 3px rgba(63, 74, 90, 0.18);
}

.slot .time {
    font-size: 16px;
    font-weight: 600;
}

.slot .type {
    margin-top: 3px;
    opacity: 0.9;
    font-size: 12px;
}

.times-empty-message {
    grid-column: 1 / -1;
    padding: 30px 20px;
    border: 1px dashed #d8d3ce;
    border-radius: 10px;
    color: #77716b;
    font-size: 14px;
    text-align: center;
}

.error-message {
    color: #8b2f26;
}


/* =========================================================
   MODAL BASE
   ========================================================= */

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

body.booking-modal-open {
    overflow: hidden;
}

.booking-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   BOOKING FORM MODAL HEADER
   ========================================================= */

.booking-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #0470B4;
    color: #fff;
}

.booking-modal-title {
    font-size: 21px;
    font-weight: 600;
}

.booking-modal-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.modal-separator {
    margin: 0 6px;
}

.modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        opacity: 0.75;
    }


/* =========================================================
   BOOKING FORM
   ========================================================= */

.booking-modal-body {
    background: #fff;
}

#booking-form {
    padding-bottom: 24px;
}

.booking-form-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
}

.form-field {
    width: 50%;
}

.single-field {
    flex-direction: column;
    gap: 0;
}

    .single-field .elcurioso-label {
        width: 100%;
    }

    .single-field .elcurioso-input {
        width: 100%;
    }

.elcurioso-label {
    display: block;
    padding-bottom: 6px;
    color: #66615d;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

    .elcurioso-label sup {
        color: #f44336;
    }

.optional {
    color: #999;
    font-weight: 400;
}

.elcurioso-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #dbd9d7;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 15px;
}

    .elcurioso-input:focus {
        border-color: #0470B4;
        box-shadow: 0 0 0 2px rgba(4, 112, 180, 0.08);
    }

.iti {
    width: 100%;
}

    .iti input {
        width: 100%;
    }


/* =========================================================
   CHECKBOXES
   ========================================================= */

.checkbox-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-container {
    position: relative;
    display: block;
    width: 100%;
    min-height: 28px;
    padding-left: 36px;
    padding-top: 2px;
    color: #4a4642;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

    .checkbox-container input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
        cursor: pointer;
    }

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    width: 23px;
    height: 23px;
    border: 2px solid #aaa;
    border-radius: 5px;
    background: #fff;
}

.checkbox-container:hover .checkmark {
    background: #f3f1ef;
}

.checkbox-container input:checked ~ .checkmark {
    border-color: #f44336;
    background: #f44336;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 1px;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}


/* =========================================================
   COMPLETE BOOKING BUTTON
   ========================================================= */

.booking-submit-row {
    display: flex;
    justify-content: center;
    padding: 10px 24px 20px;
}

.complete-booking-button {
    width: 80%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #f44336;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

    .complete-booking-button:hover {
        background: #d9362b;
    }

    .complete-booking-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* =========================================================
   TERMS
   ========================================================= */

.booking-terms {
    padding: 0 24px;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

    .booking-terms a {
        color: #f44336;
        text-decoration: none;
    }

        .booking-terms a:hover {
            text-decoration: underline;
        }


/* =========================================================
   VERIFY MODAL
   ========================================================= */

.verify-modal-dialog {
    max-width: 500px;
    overflow: hidden;
    background: #0470B4;
}

.verify-body {
    position: relative;
}

.verify-close {
    position: absolute;
    top: 8px;
    right: 8px;
}

.sms-send-header {
    padding: 50px 40px 25px;
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

.verify-description {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 400;
}

#smsPhoneNumber {
    display: block;
    margin-top: 8px;
    font-size: 17px;
}

.sms-send-body {
    padding: 20px 30px 30px;
}

.verify-form-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.verify-code-field {
    width: 70%;
}

.verify-button-field {
    width: 30%;
}

.v-label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 14px;
}

.complete-verify-button {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #f44336;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.sms-send-footer {
    padding: 18px 30px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

    .sms-send-footer a {
        color: #0470B4;
    }


/* =========================================================
   DEPOSIT MODAL
   ========================================================= */

.deposit-modal-dialog {
    max-width: 500px;
    padding: 0;
}

.deposit-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px;
}

    .deposit-form h2 {
        margin: 0 0 10px;
        color: #222;
        font-size: 22px;
    }

    .deposit-form p {
        margin: 0 0 22px;
        color: #555;
        font-size: 14px;
        line-height: 1.5;
    }

#deposit-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    background: #f7f9fc;
}

    #deposit-amount span {
        color: #444;
        font-size: 15px;
    }

    #deposit-amount strong {
        color: #111;
        font-size: 24px;
    }

#pay-deposit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #0078ff;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

    #pay-deposit-button:hover {
        background: #006be0;
    }

    #pay-deposit-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* =========================================================
   SUCCESS MODAL
   ========================================================= */

.booking-success-dialog {
    width: 500px;
    max-width: 100%;
    background: transparent;
}

.wrapperAlert {
    width: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fff;
}

.topHalf {
    position: relative;
    width: 100%;
    min-height: 250px;
    overflow: hidden;
    padding: 40px 0;
    background: linear-gradient( 45deg, #019871, #a0ebcf );
    color: #fff;
    text-align: center;
}

    .topHalf p {
        position: relative;
        z-index: 3;
        margin-bottom: 25px;
    }

    .topHalf h1 {
        position: relative;
        z-index: 3;
        display: block;
        margin: 0;
        font-size: 2rem;
        font-weight: 500;
        letter-spacing: 0.12rem;
        text-shadow: 0 2px rgba(128, 128, 128, 0.6);
    }

    .topHalf svg {
        position: relative;
        z-index: 3;
        fill: #fff;
    }


/* =========================================================
   SUCCESS BUBBLES
   ========================================================= */

.bg-bubbles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.wrapperAlert li {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    list-style: none;
    bottom: -160px;
    background: rgba(255, 255, 255, 0.15);
    animation: square 20s infinite;
    transition-timing-function: linear;
}

    .wrapperAlert li:nth-child(1) {
        left: 10%;
    }

    .wrapperAlert li:nth-child(2) {
        left: 20%;
        width: 80px;
        height: 80px;
        animation-delay: 2s;
        animation-duration: 17s;
    }

    .wrapperAlert li:nth-child(3) {
        left: 25%;
        animation-delay: 4s;
    }

    .wrapperAlert li:nth-child(4) {
        left: 40%;
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.3);
        animation-duration: 22s;
    }

    .wrapperAlert li:nth-child(5) {
        left: 70%;
    }

    .wrapperAlert li:nth-child(6) {
        left: 80%;
        width: 120px;
        height: 120px;
        background: rgba(255, 255, 255, 0.2);
        animation-delay: 3s;
    }

    .wrapperAlert li:nth-child(7) {
        left: 32%;
        width: 160px;
        height: 160px;
        animation-delay: 7s;
    }

    .wrapperAlert li:nth-child(8) {
        left: 55%;
        width: 20px;
        height: 20px;
        animation-delay: 15s;
        animation-duration: 40s;
    }

    .wrapperAlert li:nth-child(9) {
        left: 25%;
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.3);
        animation-delay: 2s;
        animation-duration: 40s;
    }

    .wrapperAlert li:nth-child(10) {
        left: 90%;
        width: 160px;
        height: 160px;
        animation-delay: 11s;
    }


/* =========================================================
   SUCCESS BOTTOM
   ========================================================= */

.bottomHalf {
    padding: 32px;
    text-align: center;
}

    .bottomHalf p {
        margin: 0 0 20px;
        font-size: 16px;
        font-weight: 500;
    }

.wrapperAlert button {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: #019871;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

    .wrapperAlert button:hover {
        background: #85ddbf;
    }


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes square {

    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-500px) rotate(600deg);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #book-now-container {
        padding: 16px 10px;
    }

    .booking-card {
        padding: 12px;
        border-radius: 16px;
    }


    /* TOP BAR */

    .topbar {
        flex-direction: column;
    }

    .topbar-field {
        padding: 12px 16px;
    }

        .topbar-field + .topbar-field {
            border-left: none;
            border-top: 1px solid #ece8e4;
        }


    /* PARTY */

    .party-panel {
        padding: 16px;
    }


    /* DATE */

    .date-selection {
        padding: 16px;
    }


    /* TIME SLOTS */

    .slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .slot {
        min-height: 66px;
    }

        .slot .time {
            font-size: 15px;
        }

        .slot .type {
            font-size: 11px;
        }


    /* MODAL */

    .booking-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .booking-modal-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 16px 16px 0 0;
    }


    /* BOOKING FORM */

    .booking-form-row {
        flex-direction: column;
        gap: 14px;
        padding: 12px 16px;
    }

    .form-field {
        width: 100%;
    }

    .single-field {
        gap: 0;
    }

    .booking-submit-row {
        padding-left: 16px;
        padding-right: 16px;
    }

    .complete-booking-button {
        width: 100%;
    }

    .booking-terms {
        padding: 0 16px 20px;
    }


    /* VERIFY */

    .sms-send-header {
        padding: 45px 20px 20px;
        font-size: 19px;
    }

    .sms-send-body {
        padding: 16px;
    }

    .verify-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .verify-code-field,
    .verify-button-field {
        width: 100%;
    }

    .sms-send-footer {
        padding: 16px;
    }


    /* DEPOSIT */

    .deposit-modal-dialog {
        border-radius: 16px;
    }

    .deposit-form {
        padding: 22px;
    }


    /* SUCCESS */

    .booking-success-dialog {
        width: 100%;
    }

    .topHalf h1 {
        font-size: 1.6rem;
    }

    .bottomHalf {
        padding: 26px 20px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .slot {
        padding: 10px 5px;
    }

        .slot .time {
            font-size: 14px;
        }

        .slot .type {
            font-size: 10px;
        }

    .stepper {
        gap: 10px;
    }
}


/* =========================================================
   BOOKING FORM POPUP: compact, in the look of the site's own popups (Contact Us)
   Scoped to #time_list_modal, so the verify and deposit popups keep theirs.
   ========================================================= */

#time_list_modal .booking-modal-dialog {
    max-width: 620px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
}

#time_list_modal .booking-modal-header {
    padding: 14px 22px;
    background: #fff;
    color: #222;
    border-bottom: 1px solid #eee;
}

#time_list_modal .booking-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: #222;
}

#time_list_modal .booking-modal-subtitle {
    margin-top: 2px;
    color: #8b2f26;
    font-size: 14px;
    font-weight: 500;
}

#time_list_modal .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #555;
    font-size: 28px;
    transition: background 0.15s ease;
}

    #time_list_modal .modal-close:hover {
        background: #f1f1f1;
        opacity: 1;
    }

#time_list_modal #booking-form {
    padding: 8px 0 16px;
}

#time_list_modal .booking-form-row {
    gap: 12px;
    padding: 6px 22px;
}

#time_list_modal .elcurioso-label {
    padding-bottom: 4px;
    color: #555;
    font-size: 13px;
}

    #time_list_modal .elcurioso-label sup {
        color: #8b2f26;
    }

#time_list_modal .elcurioso-input {
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid #d8d8d8;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    #time_list_modal .elcurioso-input:focus {
        border-color: #8b2f26;
        box-shadow: 0 0 0 3px rgba(139, 47, 38, 0.10);
    }

#time_list_modal .checkbox-row {
    gap: 6px;
    padding-top: 8px;
}

#time_list_modal .checkbox-container {
    min-height: 24px;
    padding-left: 32px;
    padding-top: 1px;
    font-size: 13px;
    line-height: 1.45;
}

#time_list_modal .checkmark {
    top: 1px;
    width: 20px;
    height: 20px;
}

    #time_list_modal .checkmark::after {
        left: 5px;
        top: 1px;
        width: 6px;
        height: 11px;
    }

#time_list_modal .checkbox-container input:checked ~ .checkmark {
    border-color: #8b2f26;
    background: #8b2f26;
}

#time_list_modal .booking-submit-row {
    padding: 8px 22px 10px;
}

#time_list_modal .complete-booking-button {
    width: 220px;
    height: 44px;
    background: #8b2f26;
    font-size: 16px;
    font-weight: 500;
}

    #time_list_modal .complete-booking-button:hover {
        background: #7a2921;
    }

    #time_list_modal .complete-booking-button:disabled {
        background: #8b2f26;
    }

#time_list_modal .booking-terms {
    padding: 0 22px;
    font-size: 11.5px;
    line-height: 1.5;
}

    #time_list_modal .booking-terms a {
        color: #8b2f26;
    }

@media (max-width: 767px) {

    #time_list_modal .booking-modal-dialog {
        border-radius: 18px 18px 0 0;
    }

    #time_list_modal .booking-form-row {
        gap: 10px;
        padding: 6px 16px;
    }

    #time_list_modal .booking-submit-row,
    #time_list_modal .booking-terms {
        padding-left: 16px;
        padding-right: 16px;
    }

    #time_list_modal .complete-booking-button {
        width: 100%;
    }
}


/* =========================================================
   BOOKING WIZARD (the form popup in four steps)
   The popup keeps its size (620px wide, as before): the steps share one height, so it does not jump
   from one step to the next.
   ========================================================= */

#time_list_modal .wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px 6px;
}

#time_list_modal .wizard-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #d8d8d8;
    background: #fff;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    #time_list_modal .wizard-dot.active {
        border-color: #8b2f26;
        background: #8b2f26;
        color: #fff;
    }

    #time_list_modal .wizard-dot.done {
        border-color: #8b2f26;
        background: #fff;
        color: #8b2f26;
    }

#time_list_modal .wizard-line {
    flex: 0 0 56px;
    height: 2px;
    background: #e4e4e4;
}

#time_list_modal .wizard-step-title {
    padding: 4px 22px 4px;
    color: #222;
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    font-weight: 500;
    text-align: center;
}

#time_list_modal .wizard-steps {
    min-height: 290px;
    padding-top: 6px;
}

#time_list_modal .wizard-step {
    display: none;
}

    #time_list_modal .wizard-step[data-step="1"] {
        display: block;
    }

#time_list_modal .wizard-hint {
    padding: 4px 22px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

    #time_list_modal .wizard-hint a {
        color: #8b2f26;
    }

#time_list_modal .wizard-verify-text {
    padding: 8px 22px 4px;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

    #time_list_modal .wizard-verify-text strong {
        display: block;
        margin-top: 4px;
        font-size: 17px;
    }

#time_list_modal .verify-code-wizard {
    width: 100%;
}

    #time_list_modal .verify-code-wizard .elcurioso-input {
        width: 100%;
        letter-spacing: 6px;
        font-size: 20px;
        text-align: center;
    }

#time_list_modal .wizard-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px 0;
}

#time_list_modal .wizard-spacer {
    flex: 1;
}

#time_list_modal .wizard-back {
    height: 44px;
    padding: 0 18px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 15px;
    cursor: pointer;
}

    #time_list_modal .wizard-back:hover {
        background: #f6f6f6;
    }

#time_list_modal .wizard-next {
    height: 44px;
    min-width: 140px;
    padding: 0 22px;
    border: none;
    border-radius: 8px;
    background: #8b2f26;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

    #time_list_modal .wizard-next:hover {
        background: #7a2921;
    }

#time_list_modal .wizard-footer .complete-booking-button {
    width: auto;
    min-width: 160px;
    padding: 0 22px;
}

/* The hidden button that lets the Enter key submit the form. */
#time_list_modal .wizard-enter {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 767px) {

    #time_list_modal .wizard-steps {
        min-height: 330px;
    }

    #time_list_modal .wizard-footer {
        padding: 8px 16px 0;
    }

    #time_list_modal .wizard-line {
        flex-basis: 34px;
    }
}


/* =========================================================
   BOOKING WIZARD, FIVE STEPS: one popup of one size
   The popup is the same size on every step (the width it always had, a fixed height that gives way on
   a small screen). The step shown scrolls inside it when it is longer, and the buttons stay at the foot.
   ========================================================= */

#time_list_modal .booking-modal-dialog {
    display: flex;
    flex-direction: column;
    height: 690px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

#time_list_modal .booking-modal-header {
    flex: 0 0 auto;
}

#time_list_modal .booking-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#time_list_modal #booking-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 0 16px;
}

#time_list_modal .wizard-steps {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#time_list_modal .wizard-footer {
    flex: 0 0 auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}


/* STEP 1: the party size, date and time of the booking page, made compact to fit the popup */

#time_list_modal .wizard-card {
    padding: 2px 22px 8px;
}

#time_list_modal .topbar {
    margin-bottom: 12px;
}

#time_list_modal .topbar-field {
    padding: 10px 14px;
}

#time_list_modal .party-panel {
    margin-bottom: 12px;
    padding: 12px 16px;
}

#time_list_modal .panel-title {
    margin-bottom: 4px;
}

#time_list_modal .party-row {
    padding: 6px 0;
}

#time_list_modal .check-now-button {
    margin-top: 10px;
    padding: 11px 16px;
}

#time_list_modal .safety-notice {
    display: none;
}

#time_list_modal .available-times-header {
    margin-bottom: 8px;
}

    #time_list_modal .available-times-header h2 {
        font-size: 17px;
    }

#time_list_modal .slots {
    gap: 8px;
}

#time_list_modal .slot {
    min-height: 56px;
    padding: 8px 6px;
}

#time_list_modal .times-empty-message {
    padding: 18px 16px;
}

@media (max-width: 767px) {

    #time_list_modal .booking-modal-dialog {
        height: calc(100vh - 20px);
    }

    #time_list_modal .wizard-steps {
        min-height: 0;
    }

    #time_list_modal .wizard-card {
        padding: 2px 14px 8px;
    }
}


/* The booking page itself: a card with a button that opens the popup */

.booking-cta {
    padding: 40px 24px;
    text-align: center;
}

    .booking-cta h2 {
        margin: 0 0 8px;
        color: #2b2926;
        font-size: 26px;
        font-weight: 600;
    }

    .booking-cta p {
        margin: 0 0 20px;
        color: #77716b;
        font-size: 15px;
    }

    .booking-cta .check-now-button {
        max-width: 280px;
        margin: 0 auto;
        background: #8b2f26;
    }

        .booking-cta .check-now-button:hover {
            background: #7a2921;
        }


/* =========================================================
   TOUCH CALENDAR AND TOUCH-FRIENDLY CONTROLS (booking step 1)
   ========================================================= */

.date-input-wrapper {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .date-input-wrapper input {
        pointer-events: none;      /* the whole box is the button */
    }

    .date-input-wrapper[aria-expanded="true"] input {
        border-color: #8b2f26;
    }

.tc-cal {
    margin: -8px 0 20px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e7e3df;
    border-radius: 14px;
    user-select: none;
}

    .tc-cal[hidden] {
        display: none;
    }

.tc-quick {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

    .tc-quick button {
        flex: 1;
        min-height: 44px;
        border: 1px solid #d8d3ce;
        border-radius: 22px;
        background: #fff;
        color: #2b2926;
        font-family: inherit;
        font-size: 15px;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .tc-quick button:active {
            background: #f3f1ef;
        }

.tc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tc-title {
    font-size: 17px;
    font-weight: 600;
    color: #2b2926;
}

.tc-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f3f1ef;
    color: #2b2926;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .tc-nav:active {
        background: #e7e3df;
    }

    .tc-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.tc-week,
.tc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.tc-week {
    margin-bottom: 4px;
    text-align: center;
    color: #8a8580;
    font-size: 12px;
    font-weight: 600;
}

.tc-day {
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #2b2926;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, transform 0.12s ease;
}

    .tc-day:active:not(:disabled) {
        transform: scale(0.94);
    }

    .tc-day.tc-today {
        border-color: #8b2f26;
    }

    .tc-day.tc-selected {
        background: #8b2f26;
        border-color: #8b2f26;
        color: #fff;
        font-weight: 600;
    }

    .tc-day:disabled {
        color: #c9c4bf;
        cursor: not-allowed;
    }

    .tc-day:focus-visible,
    .tc-nav:focus-visible,
    .tc-quick button:focus-visible {
        outline: 2px solid #3f4a5a;
        outline-offset: 2px;
    }

@media (hover: hover) {

    .tc-day:hover:not(:disabled):not(.tc-selected) {
        background: #f3f1ef;
    }
}

/* Touch screens: no sticky hover colours, and controls big enough for a finger (at least 44px). */
@media (hover: none), (pointer: coarse) {

    .slot {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .slot:hover {
            background: #8b2f26;
            box-shadow: none;
        }

    .stepper button {
        width: 44px;
        height: 44px;
        font-size: 22px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .stepper button:hover {
            background: #fff;
            border-color: #d8d3ce;
        }

    .check-now-button {
        min-height: 48px;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {

    .tc-cal {
        padding: 10px;
    }

    .tc-day {
        min-height: 42px;
        font-size: 15px;
    }
}
