#reservation-modal {
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.reservation-panel {
    position: relative;
    width: min(100%, 720px);
    max-height: calc(100dvh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(199, 139, 52, .13), transparent 24rem),
        #12110f;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .68);
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, .35) transparent;
}

.reservation-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.reservation-panel__eyebrow {
    margin: 0 0 .55rem;
    color: #d9a44f;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.reservation-panel__title {
    margin: 0;
    color: #fffaf1;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1;
}

.reservation-panel__close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .025);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.reservation-panel__close:hover {
    border-color: rgba(217, 164, 79, .5);
    color: #efbd6b;
    transform: rotate(5deg);
}

.reservation-progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: 1rem 2rem 0;
}

.reservation-progress__item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .8rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, .35);
    font-size: .59rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .25s ease, background .25s ease;
}

.reservation-progress__item::before {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: attr(data-number);
    font-size: .58rem;
    letter-spacing: 0;
}

.reservation-progress__item.is-active {
    color: #efc57f;
    background: rgba(217, 164, 79, .08);
}

.reservation-progress__item.is-active::before,
.reservation-progress__item.is-complete::before {
    border-color: #c88b35;
    color: #17100a;
    background: #d9a44f;
}

.reservation-progress__item.is-complete::before {
    content: "✓";
}

.reservation-form-view {
    padding: 1.75rem 2rem 2rem;
}

.reservation-step[hidden] {
    display: none !important;
}

.reservation-step__heading {
    margin: 0 0 .45rem;
    color: #f8f2e9;
    font-size: 1.05rem;
    font-weight: 600;
}

.reservation-step__copy {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .46);
    font-size: .77rem;
    line-height: 1.65;
}

.reservation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.reservation-field--full {
    grid-column: 1 / -1;
}

.reservation-field label,
.reservation-field__label {
    display: block;
    margin-bottom: .55rem;
    color: rgba(255, 255, 255, .52);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.reservation-required {
    color: #f06767;
}

.reservation-field input,
.reservation-field select,
.reservation-field textarea {
    width: 100%;
    min-height: 50px;
    padding: .8rem .95rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    outline: none;
    color: #fff;
    background: rgba(0, 0, 0, .24);
    font-size: .86rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reservation-field textarea {
    min-height: 82px;
    resize: vertical;
}

.reservation-field input:focus,
.reservation-field select:focus,
.reservation-field textarea:focus {
    border-color: rgba(218, 165, 80, .72);
    background: rgba(0, 0, 0, .36);
    box-shadow: 0 0 0 3px rgba(218, 165, 80, .1);
}

.reservation-field input:user-invalid,
.reservation-field select:user-invalid {
    border-color: rgba(240, 103, 103, .72);
}

.reservation-hint {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 1rem 0 0;
    padding: .8rem .9rem;
    border: 1px solid rgba(218, 165, 80, .12);
    border-radius: 12px;
    color: rgba(255, 255, 255, .46);
    background: rgba(218, 165, 80, .045);
    font-size: .68rem;
    line-height: 1.55;
}

.reservation-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding: .55rem;
    border: 1px solid rgba(218, 165, 80, .14);
    border-radius: 15px;
    background: rgba(218, 165, 80, .055);
}

.reservation-summary__item {
    min-width: 0;
    padding: .55rem .65rem;
}

.reservation-summary__label {
    display: block;
    margin-bottom: .25rem;
    color: rgba(255, 255, 255, .35);
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.reservation-summary__value {
    display: block;
    overflow: hidden;
    color: #f0c47c;
    font-size: .76rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-consent {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .46);
    font-size: .68rem;
    line-height: 1.55;
    cursor: pointer;
}

.reservation-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: .1rem;
    accent-color: #c88932;
}

.reservation-consent button {
    color: #e3af59;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reservation-error {
    margin: 1rem 0 0;
    padding: .75rem .9rem;
    border: 1px solid rgba(240, 103, 103, .22);
    border-radius: 10px;
    color: #ff9696;
    background: rgba(240, 103, 103, .07);
    font-size: .72rem;
    text-align: center;
}

.reservation-error.hidden {
    display: none;
}

.reservation-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
}

.reservation-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .8rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: rgba(255, 255, 255, .68);
    background: transparent;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.reservation-button--primary {
    flex: 1;
    border-color: #c78933;
    color: #17100a;
    background: linear-gradient(145deg, #e0ac55, #b97827);
    box-shadow: 0 12px 30px rgba(185, 120, 39, .2);
}

.reservation-button--primary:disabled {
    border-color: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .3);
    background: #25231f;
    box-shadow: none;
}

.reservation-status-note {
    margin: .8rem 0 0;
    color: rgba(255, 255, 255, .34);
    font-size: .56rem;
    letter-spacing: .13em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.reservation-success {
    padding: 3.5rem 2rem;
    text-align: center;
}

.reservation-success__icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    place-items: center;
    border: 1px solid rgba(218, 165, 80, .28);
    border-radius: 50%;
    color: #efbd6b;
    background: rgba(218, 165, 80, .08);
}

.reservation-success h3 {
    margin: 0 0 .75rem;
    color: #fffaf1;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
}

.reservation-success p {
    max-width: 430px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, .52);
    font-size: .82rem;
    line-height: 1.7;
}

.reservation-success__summary {
    width: fit-content;
    margin: 1.25rem auto 1.5rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    color: #e7b866;
    background: rgba(218, 165, 80, .07);
    font-size: .73rem;
    font-weight: 600;
}

.reservation-contact {
    padding: 3.25rem 2rem 2.25rem;
    text-align: center;
}

.reservation-contact__icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    place-items: center;
    border: 1px solid rgba(218, 165, 80, .28);
    border-radius: 50%;
    color: #efbd6b;
    background:
        radial-gradient(circle at 50% 20%, rgba(239, 189, 107, .18), transparent 60%),
        rgba(218, 165, 80, .08);
    box-shadow: 0 0 34px rgba(217, 164, 79, .16);
}

.reservation-contact__icon .material-symbols-outlined {
    font-size: 34px;
}

.reservation-contact h3 {
    margin: 0 0 .75rem;
    color: #fffaf1;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
}

.reservation-contact p {
    max-width: 460px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .55);
    font-size: .86rem;
    line-height: 1.75;
}

.reservation-contact__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    max-width: 520px;
    margin: 1.65rem auto 1rem;
}

.reservation-button--whatsapp {
    border-color: rgba(37, 211, 102, .38);
    color: #dfffe9;
    background: linear-gradient(145deg, rgba(37, 211, 102, .22), rgba(18, 140, 76, .22));
    box-shadow: 0 12px 30px rgba(18, 140, 76, .14);
}

.reservation-contact__phone {
    color: #e7b866 !important;
    font-size: .74rem !important;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    #reservation-modal {
        align-items: flex-end;
        padding: 0;
    }

    .reservation-panel {
        width: 100%;
        max-height: 94dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .reservation-panel__header {
        padding: 1.35rem 1.25rem 1rem;
    }

    .reservation-progress {
        padding: .75rem 1.25rem 0;
    }

    .reservation-progress__item {
        padding: .6rem;
        font-size: .52rem;
        letter-spacing: .1em;
    }

    .reservation-form-view {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .reservation-fields {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .reservation-summary {
        gap: .15rem;
    }

    .reservation-summary__item {
        padding: .45rem;
    }

    .reservation-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-right: -1.25rem;
        margin-bottom: -1.5rem;
        margin-left: -1.25rem;
        padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, .07);
        background: rgba(18, 17, 15, .94);
        backdrop-filter: blur(16px);
    }

    .reservation-button {
        min-height: 52px;
    }

    .reservation-success,
    .reservation-contact {
        padding: 3rem 1.25rem 3.5rem;
    }

    .reservation-contact__actions {
        grid-template-columns: 1fr;
        margin-top: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reservation-panel,
    .reservation-panel__close,
    .reservation-progress__item,
    .reservation-field input,
    .reservation-field select,
    .reservation-field textarea {
        transition: none;
    }
}
