/* =====================================================
   VT COFFEE
   RESERVAS / CONSULTA DE DISPONIBILIDAD
===================================================== */


/* =====================================================
   HERO
===================================================== */

.hero--reservas {
    height: clamp(500px, 68svh, 690px);
}


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

.booking-intro {
    width: min(900px, 86%);
    margin: 0 auto;

    padding:
        clamp(90px, 9vw, 135px)
        0
        clamp(70px, 7vw, 100px);

    text-align: center;
}


.booking-kicker {
    margin: 0 0 18px;

    font-family: var(--font-hand);
    font-size: 18px;
    font-weight: 500;

    color: #a45f49;
}


.booking-intro h1 {
    max-width: 780px;

    margin:
        0
        auto
        28px;

    font-family: var(--font-main);
    font-size: clamp(42px, 4.5vw, 64px);
    font-weight: 500;
    line-height: 1.04;

    color: var(--green);
}


.booking-intro-copy {
    max-width: 720px;

    margin: 0 auto;

    font-family: var(--font-main);
    font-size: clamp(18px, 1.45vw, 21px);
    font-weight: 300;
    line-height: 1.6;

    color: var(--mineral);
}


/* =====================================================
   SECCIÓN FORMULARIO
===================================================== */

.booking-section {
    padding:
        0
        6%
        clamp(120px, 10vw, 170px);
}


.booking-layout {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.38fr);

    align-items: start;

    gap: clamp(55px, 7vw, 95px);
}


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

.booking-form {
    min-width: 0;
}


.booking-block {
    padding:
        0
        0
        clamp(65px, 6vw, 90px);

    margin-bottom:
        clamp(65px, 6vw, 90px);

    border-bottom:
        1px solid rgba(78, 101, 71, 0.20);
}


.booking-block-heading {
    display: grid;
    grid-template-columns: auto 1fr;

    align-items: start;

    gap: 20px;

    margin-bottom: 42px;
}


.booking-number {
    display: flex;

    width: 42px;
    height: 42px;

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

    border:
        1px solid rgba(78, 101, 71, 0.34);

    border-radius: 50%;

    font-size: 14px;
    font-weight: 500;

    color: var(--green);
}


.booking-mini {
    margin: 0 0 7px;

    font-family: var(--font-hand);
    font-size: 15px;
    font-weight: 500;

    color: #a45f49;
}


.booking-block-heading h2 {
    margin: 0;

    font-family: var(--font-main);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.1;

    color: var(--green);
}


/* =====================================================
   CAMPOS
===================================================== */

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 28px 24px;
}


.booking-grid--dates {
    grid-template-columns:
        1.25fr
        0.85fr
        0.85fr;
}


.booking-field {
    min-width: 0;
}


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


.booking-field label {
    display: block;

    margin-bottom: 9px;

    font-size: 15px;
    font-weight: 500;

    color: var(--green);
}


.booking-field label span {
    margin-left: 5px;

    font-size: 13px;
    font-weight: 300;

    color: var(--mineral);
}


.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;

    margin: 0;
    padding: 15px 16px;

    border:
        1px solid rgba(78, 101, 71, 0.28);

    border-radius: 0;

    outline: none;

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

    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;

    color: var(--mineral);

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


.booking-field textarea {
    resize: vertical;

    min-height: 135px;

    line-height: 1.5;
}


.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    border-color: var(--green);

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

    box-shadow:
        0 0 0 3px rgba(78, 101, 71, 0.08);
}


.booking-field textarea::placeholder {
    color: rgba(95, 91, 84, 0.56);
}


/* =====================================================
   SELECCIÓN DE HABITACIÓN
===================================================== */

.room-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.room-choice {
    position: relative;

    cursor: pointer;
}


.room-choice input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.room-choice-card {
    min-height: 175px;

    display: flex;
    flex-direction: column;

    padding: 27px;

    border:
        1px solid rgba(78, 101, 71, 0.24);

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

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


.room-choice-card .material-symbols-outlined {
    margin-bottom: 22px;

    font-size: 34px;

    color: #a45f49;
}


.room-choice-card strong {
    display: block;

    margin-bottom: 9px;

    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;

    color: var(--green);
}


.room-choice-card small {
    display: block;

    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;

    color: var(--mineral);
}


.room-choice:hover .room-choice-card {
    transform: translateY(-2px);

    border-color:
        rgba(78, 101, 71, 0.44);
}


.room-choice input:checked + .room-choice-card {
    border-color: var(--green);

    background: #e9dfc9;

    box-shadow:
        inset 0 0 0 1px var(--green);
}


.room-choice input:focus-visible + .room-choice-card {
    outline:
        3px solid rgba(78, 101, 71, 0.18);

    outline-offset: 3px;
}


.room-choice--camping .room-choice-card .material-symbols-outlined {
    color: var(--green);
}


.room-choice--camping input:checked + .room-choice-card {
    background: rgba(78, 101, 71, 0.10);
}


.booking-room-note {
    margin: 16px 0 0;

    font-size: 14px;
    font-weight: 300;

    color: var(--mineral);
}


/* =====================================================
   ENVÍO
===================================================== */

.booking-submit {
    max-width: 620px;
}


.booking-submit-button {
    display: inline-flex;

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

    padding: 16px 32px;

    border: 0;
    border-radius: 999px;

    background: #ce6b34;
    color: #ffffff;

    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}


.booking-submit-button:hover {
    transform: translateY(-2px);
}


.booking-submit-button:focus-visible {
    outline:
        3px solid rgba(206, 107, 52, 0.28);

    outline-offset: 4px;
}


.booking-submit p {
    margin: 20px 0 0;

    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;

    color: var(--mineral);
}


/* =====================================================
   LATERAL
===================================================== */

.booking-aside {
    position: sticky;

    top: 35px;
}


.booking-aside-card {
    position: relative;

    padding:
        46px
        38px
        42px;

    background: #e9dfc9;
}


.booking-aside-icon {
    width: 66px;
    height: auto;

    margin-bottom: 25px;

    transform: rotate(-8deg);
}


.booking-aside-hand {
    margin: 0 0 8px;

    font-family: var(--font-hand);
    font-size: 17px;
    font-weight: 500;

    color: #a45f49;
}


.booking-aside-card h2 {
    margin: 0 0 20px;

    font-size: 32px;
    font-weight: 500;
    line-height: 1.08;

    color: var(--green);
}


.booking-aside-card > p:not(.booking-aside-hand) {
    margin: 0;

    font-size: 17px;
    font-weight: 300;
    line-height: 1.55;

    color: var(--mineral);
}


.booking-aside-divider {
    height: 1px;

    margin: 34px 0;

    background:
        rgba(78, 101, 71, 0.22);
}


.booking-aside-info {
    display: grid;
    grid-template-columns: auto 1fr;

    gap: 15px;

    align-items: start;

    margin-bottom: 24px;
}


.booking-aside-info:last-child {
    margin-bottom: 0;
}


.booking-aside-info .material-symbols-outlined {
    font-size: 27px;

    color: #a45f49;
}


.booking-aside-info strong {
    display: block;

    margin-bottom: 2px;

    font-size: 16px;
    font-weight: 500;

    color: var(--green);
}


.booking-aside-info p {
    margin: 0;

    font-size: 15px;
    font-weight: 300;
    line-height: 1.4;

    color: var(--mineral);
}


/* =====================================================
   CIERRE
===================================================== */

.booking-closing {
    padding:
        clamp(80px, 8vw, 120px)
        7%;

    background: var(--green);

    text-align: center;
}


.booking-closing p {
    margin: 0;

    font-family: var(--font-hand);
    font-size: clamp(25px, 2.7vw, 38px);
    font-weight: 500;
    line-height: 1.3;

    color: #ffffff;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .booking-layout {
        grid-template-columns: 1fr;

        gap: 75px;
    }


    .booking-aside {
        position: static;

        width: min(560px, 100%);
    }

}


@media (max-width: 768px) {

    .hero--reservas {
        height: 520px;
        min-height: 520px;
        max-height: 520px;
    }


    .booking-intro {
        width: 86%;

        padding:
            80px
            0
            70px;
    }


    .booking-intro h1 {
        font-size: 40px;
        line-height: 1.07;
    }


    .booking-intro-copy {
        font-size: 18px;
        line-height: 1.55;
    }


    .booking-section {
        padding:
            0
            7%
            100px;
    }


    .booking-block {
        padding-bottom: 65px;
        margin-bottom: 65px;
    }


    .booking-block-heading {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 34px;
    }


    .booking-block-heading h2 {
        font-size: 32px;
    }


    .booking-grid,
    .booking-grid--dates,
    .room-choice-grid {
        grid-template-columns: 1fr;
    }


    .booking-field--full {
        grid-column: auto;
    }


    .room-choice-card {
        min-height: 0;

        padding: 24px;
    }


    .booking-aside-card {
        padding:
            38px
            30px
            36px;
    }


    .booking-aside-card h2 {
        font-size: 30px;
    }


    .booking-submit-button {
        width: 100%;
    }

}


/* =====================================================
   MENSAJES DE ENVÍO
===================================================== */

.booking-message {
    display: grid;
    grid-template-columns: auto 1fr;

    gap: 16px;

    align-items: start;

    margin-bottom: 45px;
    padding: 22px 24px;

    border: 1px solid rgba(78, 101, 71, 0.20);
}


.booking-message .material-symbols-outlined {
    margin-top: 1px;

    font-size: 30px;
}


.booking-message strong {
    display: block;

    margin-bottom: 5px;

    font-size: 18px;
    font-weight: 500;
}


.booking-message p {
    margin: 0;

    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
}


.booking-message--success {
    background: rgba(78, 101, 71, 0.08);

    color: var(--green);
}


.booking-message--error {
    background: rgba(181, 82, 62, 0.08);

    color: #8f3f31;
}
