:root {
    --reservation-shadow: 0 24px 80px rgba(26, 26, 26, 0.18);
}

.reservation-open-btn {
    border: 1px solid rgba(107, 68, 35, 0.15);
    background: var(--secondary);
    color: var(--text-light);
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    box-shadow: 0 10px 24px rgba(107, 68, 35, 0.18);
}

.reservation-open-btn:hover {
    background: #552d14;
    transform: translateY(-2px);
}

.reservation-modal-open {
    overflow: hidden;
}

.reservation-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.reservation-modal.is-open {
    display: flex;
}

.reservation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 10, 0.58);
    backdrop-filter: blur(6px);
}

.reservation-modal__panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 32px;
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 165, 116, 0.18),
            transparent 28%
        ),
        linear-gradient(180deg, #fffdf9 0%, #f7f1e7 100%);
    box-shadow: var(--reservation-shadow);
}

.reservation-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.06);
    color: var(--secondary);
    cursor: pointer;
}

.reservation-modal__eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
}

.reservation-modal__title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
}

.reservation-modal__copy {
    margin: 0 0 28px;
    max-width: 56ch;
    color: rgba(42, 42, 42, 0.75);
}

.reservation-modal__hours {
    margin: -18px 0 24px;
    color: rgba(42, 42, 42, 0.68);
    font-size: 0.92rem;
    font-weight: 600;
}

.reservation-mode-note {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(107, 68, 35, 0.08);
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 700;
}

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

.reservation-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
}

.reservation-field span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.reservation-field input,
.reservation-field select,
.reservation-field textarea {
    width: 100%;
    border: 1px solid rgba(107, 68, 35, 0.18);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.reservation-field input:focus,
.reservation-field select:focus,
.reservation-field textarea:focus {
    outline: none;
    border-color: rgba(107, 68, 35, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.18);
}

.reservation-field select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
        linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.6rem;
}

.reservation-field--full {
    width: 100%;
}

.reservation-date-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: min(320px, 86vw);
    border: 1px solid rgba(107, 68, 35, 0.16);
    border-radius: 14px;
    padding: 14px;
    background: #fffdf9;
    box-shadow: 0 18px 44px rgba(72, 45, 25, 0.16);
}

.reservation-date-picker__header {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.reservation-date-picker__header strong {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.reservation-date-picker__header button,
.reservation-date-picker__grid button {
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    font-weight: 700;
}

.reservation-date-picker__header button {
    height: 36px;
    font-size: 1.35rem;
}

.reservation-date-picker__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.reservation-date-picker__day-name {
    text-align: center;
    color: rgba(42, 42, 42, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
}

.reservation-date-picker__grid button {
    aspect-ratio: 1;
    color: var(--text-dark);
    font-size: 0.86rem;
}

.reservation-date-picker__grid button:hover:not(:disabled),
.reservation-date-picker__grid button.is-selected {
    background: var(--secondary);
    color: #fff;
}

.reservation-date-picker__grid button:disabled {
    color: rgba(57, 45, 37, 0.24);
    cursor: not-allowed;
    text-decoration: line-through;
}

.reservation-tables {
    margin: 4px 0 18px;
}

.reservation-tables__title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.reservation-table-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    min-height: 82px;
    border: 1px solid rgba(107, 68, 35, 0.18);
    border-radius: 14px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.reservation-table-option:hover {
    border-color: rgba(107, 68, 35, 0.42);
    transform: translateY(-1px);
}

.reservation-table-option input {
    grid-row: span 2;
}

.reservation-table-option strong {
    min-width: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.reservation-table-option span {
    color: rgba(42, 42, 42, 0.68);
    font-size: 0.86rem;
}

.reservation-table-option:has(input:checked) {
    border-color: rgba(107, 68, 35, 0.62);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.18);
}

.reservation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reservation-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}

.reservation-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.reservation-btn--primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(107, 68, 35, 0.18);
}

.reservation-btn--secondary {
    background: rgba(107, 68, 35, 0.08);
    color: var(--secondary);
}

.reservation-status,
.reservation-feedback {
    min-height: 24px;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.reservation-status.is-pending {
    color: #8a5a27;
}

.reservation-status.is-success,
.reservation-feedback.is-success {
    color: #1f7a4f;
}

.reservation-status.is-error,
.reservation-feedback.is-error {
    color: #b43d3d;
}

@media (max-width: 768px) {
    .reservation-open-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.82rem;
    }

    .reservation-modal__panel {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .reservation-form__grid {
        grid-template-columns: 1fr;
    }

    .reservation-tables__grid {
        grid-template-columns: 1fr;
    }

    .reservation-actions {
        flex-direction: column;
    }

    .reservation-btn {
        width: 100%;
    }
}
