/* ======================================================
   RESET
====================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    background:
        #f7f3eb;

    color:
        #17251b;
}


/* ======================================================
   PÁGINA
====================================================== */

.reservation-page {
    min-height: 100vh;

    display: flex;

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

    padding: 40px 20px;
}


/* ======================================================
   TARJETA
====================================================== */

.reservation-card {
    width: 100%;
    max-width: 620px;

    background: #ffffff;

    border-radius: 24px;

    padding: 42px;

    box-shadow:
        0 20px 60px rgba(23, 37, 27, 0.10);
}


/* ======================================================
   CABECERA
====================================================== */

.reservation-header {
    margin-bottom: 32px;
}


.back-link {
    display: inline-block;

    margin-bottom: 28px;

    color: #6d746e;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.2s ease;
}


.back-link:hover {
    color: #b45335;
}


.restaurant-label {
    margin-bottom: 10px;

    color: #b45335;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.reservation-header h1 {
    margin-bottom: 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        34px,
        6vw,
        48px
    );

    line-height: 1.05;

    font-weight: 500;
}


.reservation-header p {
    max-width: 500px;

    color: #69716b;

    font-size: 16px;

    line-height: 1.6;
}


/* ======================================================
   FORMULARIO
====================================================== */

.reservation-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group label {
    color: #17251b;

    font-size: 14px;

    font-weight: 600;
}


.form-group label span {
    color: #8a918c;

    font-weight: 400;
}


.field-help {
    color: #858c87;

    font-size: 12px;

    line-height: 1.5;
}


/* ======================================================
   INPUTS
====================================================== */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #dfe2dc;

    border-radius: 12px;

    background: #fbfaf7;

    color: #17251b;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input,
.form-group select {
    height: 52px;

    padding:
        0 15px;
}


.form-group textarea {
    min-height: 110px;

    padding: 14px 15px;

    resize: vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a1a7a2;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #b45335;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(
            180,
            83,
            53,
            0.10
        );
}


/* ======================================================
   FILA FECHA / HORA
====================================================== */

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}


/* ======================================================
   BOTÓN
====================================================== */

.submit-button {
    width: 100%;

    min-height: 54px;

    margin-top: 4px;

    border: none;

    border-radius: 12px;

    background: #17251b;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}


.submit-button:hover {
    background: #26382a;

    transform:
        translateY(-1px);
}


.submit-button:active {
    transform:
        translateY(0);
}


.submit-button:disabled {
    cursor: not-allowed;

    opacity: 0.65;

    transform: none;
}


/* ======================================================
   LOADER
====================================================== */

.submit-loader {
    display: inline-flex;

    align-items: center;

    gap: 8px;
}


.submit-loader::after {
    content: "";

    width: 15px;
    height: 15px;

    border:
        2px solid
        rgba(255, 255, 255, 0.4);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        spin 0.7s linear infinite;
}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ======================================================
   MENSAJE DE ERROR
====================================================== */

.reservation-message {
    min-height: 0;

    color: #b45335;

    font-size: 14px;

    line-height: 1.5;
}


.reservation-message.error {
    padding: 12px 14px;

    border-radius: 10px;

    background: #fff4f0;

    border:
        1px solid
        #f0d0c5;
}


/* ======================================================
   AVISO
====================================================== */

.reservation-notice {
    color: #858c87;

    font-size: 12px;

    line-height: 1.5;

    text-align: center;
}


/* ======================================================
   PANEL ÉXITO
====================================================== */

.success-panel {
    text-align: center;
}


.success-icon {
    width: 64px;
    height: 64px;

    display: flex;

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

    margin:
        0 auto 22px;

    border-radius: 50%;

    background: #eef4ee;

    color: #31543a;

    font-size: 28px;

    font-weight: 700;
}


.success-panel h2 {
    margin-bottom: 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    font-weight: 500;
}


.success-panel p {
    max-width: 480px;

    margin:
        0 auto 26px;

    color: #69716b;

    font-size: 15px;

    line-height: 1.7;
}


.success-button {
    display: inline-flex;

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

    min-height: 48px;

    padding:
        0 22px;

    border-radius: 10px;

    background: #17251b;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.2s ease;
}


.success-button:hover {
    background: #26382a;
}


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

@media (max-width: 650px) {

    .reservation-page {
        padding:
            20px 14px;
    }


    .reservation-card {
        padding:
            28px 20px;

        border-radius: 18px;
    }


    .reservation-header {
        margin-bottom: 26px;
    }


    .reservation-header h1 {
        font-size: 36px;
    }


    .form-row {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 380px) {

    .reservation-card {
        padding:
            24px 16px;
    }


    .reservation-header h1 {
        font-size: 32px;
    }

}