/* =========================================================
   CERFBOX - RÉSERVATION
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.reservation-section {
    width: 100%;

    padding:
            5.5vw
            7.5vw
            6.5vw;

    background: var(--color-white);
}


/* =========================================================
   BOX
   ========================================================= */

.reservation-box {
    width: 100%;

    display: grid;

    grid-template-columns:
        39% 61%;

    border: 5px solid var(--color-yellow);

    background: var(--color-white);
}


/* =========================================================
   LEFT / IMAGE
   ========================================================= */

.reservation-left {
    position: relative;

    grid-column: 1;
    grid-row: 1;

    min-width: 0;
    min-height: 100%;

    overflow: hidden;

    background: var(--color-cream);
}

.reservation-image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CONTACT OVERLAY
   ========================================================= */

.reservation-contact {
    position: absolute;

    z-index: 2;

    left: 0;
    right: 0;
    bottom: 30px;

    width: 100%;

    padding:
            1.8vw
            1.6vw
            1.7vw;

    background: var(--color-cream-overlay);
}

.reservation-contact-title,
.reservation-contact h3 {
    margin: 0;

    color: var(--color-black);

    font-family: var(--font-title);

    font-weight: var(--weight-semibold);

    line-height: 1.15;
}

.reservation-contact p {
    margin:
            1.1vw
            0
            0;

    color: var(--color-text);

    font-family: var(--font-text);

    font-weight: var(--weight-regular);

    line-height: 1.25;
}

.reservation-contact strong {
    color: var(--color-black);

    font-weight: var(--weight-bold);
}


/* =========================================================
   CONTENT
   ========================================================= */

.reservation-content {
    grid-column: 2;
    grid-row: 1;

    padding:
            4.6vw
            5vw
            3.7vw;

    transition:
            opacity 0.18s ease,
            transform 0.18s ease;
}

.reservation-content h2 {
    margin: 0;

    color: var(--color-black);

    font-family: var(--font-title);

    font-weight: var(--weight-semibold);

    line-height: 1.15;

    letter-spacing: -0.07vw;
}

.reservation-intro {
    margin:
            1.3vw
            0
            0;

    color: var(--color-text);

    font-family: var(--font-text);

    font-weight: var(--weight-regular);

    line-height: 1.25;
}


/* =========================================================
   FORM
   ========================================================= */

.reservation-form {
    margin-top: 2.3vw;
}

.reservation-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    column-gap: 3vw;
    row-gap: 1.6vw;
}

.reservation-field {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.reservation-field-full {
    margin-top: 1.6vw;
}

.reservation-field > label {
    margin-bottom: 0.65vw;

    color: var(--color-black);

    font-family: var(--font-text);

    font-size: 0.9vw;
    font-weight: var(--weight-bold);

    line-height: 1.2;
}


/* =========================================================
   INPUT / TEXTAREA
   ========================================================= */

.reservation-field input,
.reservation-field textarea {
    width: 100%;

    border: 0;
    outline: 0;

    border-radius: 0;

    background: var(--color-grey-light);

    color: var(--color-black);

    font-family: var(--font-text);

    font-size: 0.95vw;

    transition:
            background var(--transition-fast),
            box-shadow var(--transition-fast);
}

.reservation-field input {
    height: 3.3vw;

    padding:
            0
            1vw;
}

.reservation-field textarea {
    height: 7.2vw;

    padding: 1vw;

    resize: vertical;
}

.reservation-field input::placeholder,
.reservation-field textarea::placeholder {
    color: var(--color-placeholder);

    font-style: italic;

    opacity: 1;
}

.reservation-field input:focus,
.reservation-field textarea:focus {
    background: var(--color-grey-hover);

    box-shadow:
            inset
            0
            0
            0
            1px
            var(--color-border);
}


/* =========================================================
   SIZE SELECT
   ========================================================= */

.reservation-size-select {
    position: relative;

    width: 100%;
}


/* =========================================================
   SIZE TRIGGER
   ========================================================= */

.reservation-size-trigger {
    position: relative;

    width: 100%;
    min-height: 3.3vw;

    padding:
            0.8vw
            3.5vw
            0.8vw
            1vw;

    display: flex;
    align-items: center;

    border: 0;
    outline: 0;

    background: var(--color-grey-light);

    color: var(--color-black);

    font-family: var(--font-text);

    font-size: 0.95vw;
    font-weight: var(--weight-regular);

    line-height: 1.2;

    text-align: left;

    cursor: pointer;

    transition:
            background var(--transition-fast),
            box-shadow var(--transition-fast);
}

.reservation-size-trigger:hover {
    background: var(--color-grey-hover);
}

.reservation-size-trigger:focus {
    background: var(--color-grey-hover);

    box-shadow:
            inset
            0
            0
            0
            1px
            var(--color-border);
}


/* =========================================================
   SELECT VALUE
   ========================================================= */

.reservation-size-value {
    display: block;

    width: 100%;

    overflow: hidden;

    color: var(--color-grey-medium);

    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-size-select.has-value
.reservation-size-value {
    color: var(--color-black);
}


/* =========================================================
   SELECT ARROW
   ========================================================= */

.reservation-size-arrow {
    position: absolute;

    top: 50%;
    right: 1.2vw;

    width: 0.65vw;
    height: 0.65vw;

    border-right: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);

    pointer-events: none;

    transform:
            translateY(-70%)
            rotate(45deg);

    transition: transform var(--transition-fast);
}

.reservation-size-select.is-open
.reservation-size-arrow {
    transform:
            translateY(-25%)
            rotate(225deg);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.reservation-size-dropdown {
    position: absolute;

    z-index: 100;

    top: calc(100% + 2px);
    left: 0;

    width: 100%;
    max-height: 36vw;

    padding:
            1.5vw
            1.8vw;

    overflow-y: auto;

    background: var(--color-grey-light);

    border: 1px solid var(--color-border);

    box-shadow:
            0
            8px
            22px
            rgba(0, 0, 0, 0.1);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-5px);

    transition:
            opacity var(--transition-fast),
            transform var(--transition-fast),
            visibility 0s linear var(--transition-fast);
}

.reservation-size-select.is-open
.reservation-size-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);

    transition:
            opacity var(--transition-fast),
            transform var(--transition-fast),
            visibility 0s linear 0s;
}


/* =========================================================
   GROUP
   ========================================================= */

.reservation-size-group {
    padding-bottom: 1.4vw;
    margin-bottom: 1.4vw;

    border-bottom: 1px solid var(--color-grey-hover);
}

.reservation-size-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: 0;
}


/* =========================================================
   GROUP TITLE
   ========================================================= */

.reservation-size-group-title {
    margin-bottom: 1.1vw;

    color: var(--color-black);

    font-family: var(--font-text);

    font-size: 1.1vw;
    font-weight: var(--weight-bold);

    line-height: 1.2;

    text-transform: uppercase;
}


/* =========================================================
   SIZE OPTION
   ========================================================= */

.reservation-size-option {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 1.1vw;

    margin-bottom: 1.1vw;

    color: var(--color-black);

    cursor: pointer;
}

.reservation-size-option:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HIDE NATIVE RADIO
   ========================================================= */

.reservation-size-option input[type="radio"] {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: 0;
    padding: 0;

    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   CUSTOM SQUARE
   ========================================================= */

.reservation-size-checkbox {
    display: block;

    width: 1.8vw;
    height: 1.8vw;

    flex: 0 0 1.8vw;

    border: 1.5px solid var(--color-black);

    background: var(--color-white);

    transition:
            background var(--transition-fast),
            border-color var(--transition-fast);
}

.reservation-size-checkbox::after {
    display: none;
}


/* =========================================================
   SELECTED
   ========================================================= */

.reservation-size-option
input[type="radio"]:checked
+ .reservation-size-checkbox {
    background: var(--color-black);
    border-color: var(--color-black);
}


/* =========================================================
   SIZE LABEL
   ========================================================= */

.reservation-size-label {
    color: var(--color-black);

    font-family: var(--font-text);

    font-size: 1vw;
    font-weight: var(--weight-regular);

    line-height: 1.25;
}

.reservation-size-option:hover
.reservation-size-checkbox {
    border-color: var(--color-black);
}


/* =========================================================
   INSURANCE
   ========================================================= */

.reservation-insurance {
    margin-top: 1.8vw;
}

.reservation-insurance > p {
    margin:
            0
            0
            0.8vw;

    color: var(--color-black);

    font-family: var(--font-text);

    font-weight: var(--weight-bold);
}

.reservation-checkbox {
    display: flex;
    align-items: flex-start;

    gap: 0.9vw;

    margin-bottom: 0.8vw;

    color: var(--color-text);

    font-family: var(--font-text);

    font-size: 0.78vw;
    font-weight: var(--weight-regular);

    line-height: 1.25;

    cursor: pointer;
}

.reservation-checkbox:last-of-type {
    margin-bottom: 0;
}

.reservation-checkbox input {
    width: 1vw;
    height: 1vw;

    margin: 0.05vw 0 0;

    accent-color: var(--color-black);

    flex-shrink: 0;

    cursor: pointer;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.reservation-submit-wrap {
    margin-top: 2.3vw;

    display: flex;
    justify-content: flex-end;
}

.reservation-submit {
    min-height: 3.4vw;

    padding:
            0
            1vw
            0
            1.2vw;

    border: 0;

    display: inline-flex;
    align-items: center;

    gap: 1.1vw;

    background: var(--color-black);
    color: var(--color-white);

    font-family: var(--font-text);

    font-size: 0.95vw;
    font-weight: var(--weight-medium);

    cursor: pointer;

    transition:
            background var(--transition-fast),
            transform var(--transition-fast);
}

.reservation-submit:hover {
    background: var(--color-black-dark);

    transform: translateY(-1px);
}

.reservation-submit:disabled {
    opacity: 0.6;

    cursor: wait;
}

.reservation-submit-icon {
    width: 1.8vw;
    height: 2vw;

    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-submit-icon svg {
    width: 1.4vw;
    height: auto;
}


/* =========================================================
   ERRORS
   ========================================================= */

.reservation-error {
    display: block;

    min-height: 1.2em;

    margin-top: 0.35vw;

    color: #b42318;

    font-size: 0.75vw;
    line-height: 1.25;
}

.reservation-field-error input,
.reservation-field-error textarea,
.reservation-field-error .reservation-size-trigger {
    box-shadow:
            inset
            0
            0
            0
            1px
            #b42318;
}

.reservation-insurance-error {
    margin-top: 0.5vw;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.reservation-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    border: 0 !important;

    white-space: nowrap !important;
}


/* =========================================================
   FORM TRANSITIONS
   ========================================================= */

.reservation-content-hide {
    opacity: 0;

    transform: translateY(10px);
}

.reservation-content-show {
    opacity: 0;

    transform: translateY(10px);
}


/* =========================================================
   SUCCESS MODE
   ========================================================= */

.reservation-box.is-success {
    display: block;

    grid-template-columns: none;
}

.reservation-success {
    width: 100%;
    min-height: 36vw;

    padding:
            4vw
            6vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.reservation-success-icon {
    width: 2.6vw;

    margin-bottom: 1.6vw;

    color: var(--color-black);
}

.reservation-success-icon svg {
    display: block;

    width: 100%;
    height: auto;
}

.reservation-success h2 {
    width: 100%;

    margin:
            0
            0
            2vw;

    text-align: center;
}

.reservation-success-main {
    width: 100%;
    max-width: 58vw;

    margin:
            0
            auto
            2.5vw;

    text-align: center;
}

.reservation-success-main p {
    margin:
            0
            0
            0.35vw;

    line-height: 1.35;
}

.reservation-success-main p:last-child {
    margin-bottom: 0;
}

.reservation-success-contact {
    width: 100%;
    max-width: 42vw;

    margin:
            0
            auto
            2.5vw;

    font-size: 0.75vw;
    line-height: 1.45;

    text-align: center;
}

.reservation-back-button {
    border: 0;

    padding:
            0.7vw
            0.9vw;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.45vw;

    background: var(--color-grey-light);

    color: var(--color-black);

    font-size: 0.75vw;
    font-weight: var(--weight-medium);

    cursor: pointer;

    transition:
            background var(--transition-fast),
            transform var(--transition-fast);
}

.reservation-back-button:hover {
    background: var(--color-grey-hover);

    transform: translateY(-1px);
}


/* =========================================================
   DESKTOP MEDIUM
   ========================================================= */

@media (max-width: 1100px) and (min-width: 851px) {

    .reservation-section {
        padding:
                55px
                60px
                65px;
    }

    .reservation-content {
        padding:
                45px
                45px
                38px;
    }

    .reservation-content h2 {
        font-size: 27px;
    }

    .reservation-intro {
        margin-top: 15px;

        font-size: 16px;
    }

    .reservation-form {
        margin-top: 30px;
    }

    .reservation-grid {
        column-gap: 20px;
        row-gap: 20px;
    }

    .reservation-field-full {
        margin-top: 20px;
    }

    .reservation-field > label {
        margin-bottom: 8px;

        font-size: 14px;
    }

    .reservation-field input {
        height: 46px;

        padding:
                0
                14px;

        font-size: 15px;
    }

    .reservation-field textarea {
        height: 130px;

        padding: 14px;

        font-size: 15px;
    }

    .reservation-size-trigger {
        min-height: 46px;

        padding:
                12px
                45px
                12px
                14px;

        font-size: 15px;
    }

    .reservation-size-arrow {
        right: 17px;

        width: 8px;
        height: 8px;
    }

    .reservation-size-dropdown {
        max-height: 500px;

        padding:
                20px
                22px;
    }

    .reservation-size-group {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .reservation-size-group-title {
        margin-bottom: 15px;

        font-size: 15px;
    }

    .reservation-size-option {
        gap: 14px;

        margin-bottom: 14px;
    }

    .reservation-size-checkbox {
        width: 24px;
        height: 24px;

        flex-basis: 24px;
    }

    .reservation-size-label {
        font-size: 14px;
    }

    .reservation-insurance {
        margin-top: 24px;
    }

    .reservation-insurance > p {
        margin-bottom: 12px;

        font-size: 14px;
    }

    .reservation-checkbox {
        gap: 12px;

        margin-bottom: 12px;

        font-size: 13px;
    }

    .reservation-checkbox input {
        width: 16px;
        height: 16px;
    }

    .reservation-submit-wrap {
        margin-top: 30px;
    }

    .reservation-submit {
        min-height: 45px;

        padding:
                0
                14px
                0
                16px;

        gap: 15px;

        font-size: 14px;
    }

    .reservation-submit-icon {
        width: 22px;
        height: 25px;
    }

    .reservation-submit-icon svg {
        width: 18px;
    }

    .reservation-contact {
        bottom: 25px;

        padding:
                24px
                24px
                25px;
    }

    .reservation-contact-title,
    .reservation-contact h3 {
        font-size: 23px;
    }

    .reservation-contact p {
        margin-top: 13px;

        font-size: 14px;

        line-height: 1.35;
    }

    .reservation-error {
        margin-top: 5px;

        font-size: 12px;
    }

    .reservation-box.is-success
    .reservation-success {
        min-height: 520px;

        padding:
                50px
                40px;
    }

    .reservation-success-icon {
        width: 38px;

        margin-bottom: 22px;
    }

    .reservation-success h2 {
        margin-bottom: 25px;
    }

    .reservation-success-main {
        max-width: 650px;

        margin-bottom: 30px;
    }

    .reservation-success-contact {
        max-width: 600px;

        margin-bottom: 30px;

        font-size: 12px;
    }

    .reservation-back-button {
        padding:
                10px
                14px;

        gap: 7px;

        font-size: 12px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .reservation-section {
        padding:
                50px
                24px;
    }

    .reservation-box {
        grid-template-columns: 1fr;
    }

    .reservation-content {
        grid-column: 1;
        grid-row: 1;

        padding:
                42px
                32px;
    }

    .reservation-left {
        grid-column: 1;
        grid-row: 2;

        min-height: 520px;
    }

    .reservation-content h2 {
        font-size: 27px;
    }

    .reservation-intro {
        margin-top: 17px;

        font-size: 16px;

        line-height: 1.35;
    }

    .reservation-form {
        margin-top: 30px;
    }

    .reservation-grid {
        column-gap: 20px;
        row-gap: 20px;
    }

    .reservation-field-full {
        margin-top: 20px;
    }

    .reservation-field > label {
        margin-bottom: 8px;

        font-size: 14px;
    }

    .reservation-field input {
        height: 46px;

        padding:
                0
                14px;

        font-size: 15px;
    }

    .reservation-field textarea {
        height: 130px;

        padding: 14px;

        font-size: 15px;
    }

    .reservation-size-trigger {
        min-height: 46px;

        padding:
                12px
                45px
                12px
                14px;

        font-size: 15px;
    }

    .reservation-size-arrow {
        right: 17px;

        width: 8px;
        height: 8px;
    }

    .reservation-size-dropdown {
        max-height: 480px;

        padding:
                22px
                20px;
    }

    .reservation-size-group {
        padding-bottom: 20px;

        margin-bottom: 20px;
    }

    .reservation-size-group-title {
        margin-bottom: 16px;

        font-size: 17px;
    }

    .reservation-size-option {
        gap: 14px;

        margin-bottom: 16px;
    }

    .reservation-size-checkbox {
        width: 26px;
        height: 26px;

        flex-basis: 26px;
    }

    .reservation-size-label {
        font-size: 15px;
    }

    .reservation-insurance {
        margin-top: 24px;
    }

    .reservation-insurance > p {
        margin-bottom: 12px;

        font-size: 14px;
    }

    .reservation-checkbox {
        gap: 12px;

        margin-bottom: 12px;

        font-size: 13px;
    }

    .reservation-checkbox input {
        width: 16px;
        height: 16px;
    }

    .reservation-submit-wrap {
        margin-top: 30px;
    }

    .reservation-submit {
        min-height: 45px;

        font-size: 14px;
    }

    .reservation-contact {
        bottom: 25px;

        padding:
                24px
                24px
                25px;
    }

    .reservation-contact-title,
    .reservation-contact h3 {
        font-size: 23px;
    }

    .reservation-contact p {
        margin-top: 13px;

        font-size: 14px;

        line-height: 1.35;
    }

    .reservation-error {
        margin-top: 5px;

        font-size: 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .reservation-section {
        padding:
                40px
                18px;
    }

    .reservation-content {
        padding:
                32px
                20px;
    }

    .reservation-content h2 {
        font-size: 23px;
    }

    .reservation-intro {
        font-size: 15px;
    }

    .reservation-intro br {
        display: none;
    }

    .reservation-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .reservation-field-full {
        margin-top: 18px;
    }

    .reservation-field > label {
        font-size: 13px;
    }

    .reservation-field input {
        height: 44px;

        font-size: 14px;
    }

    .reservation-field textarea {
        height: 120px;

        font-size: 14px;
    }

    .reservation-size-trigger {
        min-height: 44px;

        padding:
                11px
                40px
                11px
                12px;

        font-size: 14px;
    }

    .reservation-size-arrow {
        right: 15px;

        width: 7px;
        height: 7px;
    }

    .reservation-size-dropdown {
        max-height: 420px;

        padding:
                20px
                16px;
    }

    .reservation-size-group {
        padding-bottom: 18px;

        margin-bottom: 18px;
    }

    .reservation-size-group-title {
        margin-bottom: 15px;

        font-size: 15px;
    }

    .reservation-size-option {
        align-items: flex-start;

        gap: 12px;

        margin-bottom: 15px;
    }

    .reservation-size-checkbox {
        width: 23px;
        height: 23px;

        flex-basis: 23px;
    }

    .reservation-size-label {
        font-size: 13px;

        line-height: 1.35;
    }

    .reservation-insurance > p {
        font-size: 13px;
    }

    .reservation-checkbox {
        font-size: 12px;

        line-height: 1.35;
    }

    .reservation-submit {
        width: 100%;

        justify-content: space-between;

        font-size: 14px;
    }

    .reservation-left {
        min-height: 450px;
    }

    .reservation-contact {
        bottom: 20px;

        padding:
                21px
                20px
                22px;
    }

    .reservation-contact-title,
    .reservation-contact h3 {
        font-size: 20px;
    }

    .reservation-contact p {
        margin-top: 11px;

        font-size: 13px;
    }

    .reservation-box.is-success
    .reservation-success {
        min-height: 450px;

        padding:
                40px
                20px;
    }

    .reservation-success-main,
    .reservation-success-contact {
        max-width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .reservation-section {
        padding:
                30px
                14px;
    }

    .reservation-content {
        padding:
                28px
                16px;
    }

    .reservation-content h2 {
        font-size: 21px;
    }

    .reservation-size-dropdown {
        padding:
                18px
                14px;
    }

    .reservation-size-group-title {
        font-size: 14px;
    }

    .reservation-size-label {
        font-size: 12px;
    }

    .reservation-size-checkbox {
        width: 22px;
        height: 22px;

        flex-basis: 22px;
    }
}