/*==============================================*/
/*=====----- NARROW VARIANT (default) -----=====*/
/*==============================================*/

.booking-widget {
    position: relative;
    width: 100%;
    max-width: 590px;
    padding: 0 20px;
    margin: 0 auto 54px;
    color: var(--merlot-dark);
}

.booking-widget .inner {
    position: relative;
    padding: 30px 25px;
    background: var(--gray-light);
}

.booking-widget .inner::before {
    position: absolute;
    inset: 10px;
    display: block;
    border: 1px solid var(--gray-alt);
    content: '';
    pointer-events: none;
}

.booking-widget .header {
    margin-bottom: 16px;
    text-align: center;
}

.booking-widget .title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-family: var(--font-script);
    font-weight: var(--font-weight-semibold);
    font-size: 28px;
    font-style: italic;
    line-height: calc(8/7);
    letter-spacing: 0.025em;
    color: inherit;
}

.booking-widget .title::before,
.booking-widget .title::after {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: block;
    background: var(--merlot);
    content: '';
}

.booking-widget .title::before {
    width: 160px;
    height: 2px;
}

.booking-widget .title::after {
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.booking-widget .subtitle {
    display: block;
    font-family: var(--font-sofia);
    font-weight: var(--font-weight-bold);
    font-size: 20px;
    font-style: normal;
    text-transform: uppercase;
}

.booking-widget .tabs {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 41px;
}

.booking-widget .tab-button {
    display: block;
    font-family: var(--font-script);
    font-weight: var(--font-weight-semibold);
    font-size: 19px;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--gray);
    text-decoration: none;
}

.booking-widget .tab-button.active {
    color: var(--merlot-dark);
    text-decoration: underline 1px;
}

.booking-widget .form {
    display: grid;
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.booking-widget .form-field.wide,
.booking-widget .button-field {
    grid-column: span 2;
}

.booking-widget .button-field {
    display: flex;
    justify-content: center;
}

.booking-widget input,
.booking-widget select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 11px 13px;
    background: var(--white);
    border: none;
    font-family: var(--font-body);
    font-weight: normal;
    font-size: 14px;
    line-height: 1;
    color: var(--gray-dark-alt);
}

@media (min-width: 40em) {
    .booking-widget {
        padding: 0 50px;
        margin-bottom: 20px;
    }

    .booking-widget .inner {
        padding: 35px 43px;
    }

    .booking-widget .header {
        padding-bottom: 17px;
        margin-bottom: 23px;
    }

    .booking-widget .title {
        font-size: 50px;
    }

    .booking-widget .subtitle {
        font-size: 30px;
    }

    .booking-widget .tab-button {
        font-size: 28px;
    }

    .booking-widget .form {
        grid-template: auto / repeat(6, minmax(0, 1fr));
        gap: 20px;
    }

    .booking-widget .form-field {
        grid-column: span 3;
    }

    .booking-widget .form-field:nth-child(n + 3),
    .booking-widget .form-field.wide {
        grid-column: span 2;
    }

    .booking-widget .button-field {
        grid-column: span 6;
    }
}

@media (min-width: 64em) {
    .booking-widget .submit {
        /* margin-left: 30px; */
    }
}

/*----- inside intro panel -----*/

.panel-intro .booking-widget {
    padding: 0;
}

@media (min-width: 64em) {
    .panel-intro .booking-widget {
        margin-bottom: 0;
    }
}

/*==================================*/
/*=====----- WIDE VARIANT -----=====*/
/*==================================*/

.booking-widget.wide {
    max-width: none;
    padding: 20px;
    margin: 0 0 15px;
    background:
        url('../png/booking_grape_accent_small_64241ab5-2f65-43a6-829d-d598a4bc97f1.png') no-repeat right bottom / 375px auto,
        var(--gray-light);
}

.booking-widget.wide .inner {
    max-width: 1164px;
    padding: 0;
    margin: 0 auto;
    background: none;
}

.booking-widget.wide .inner::before {
    display: none;
}

.booking-widget.wide .header {
    margin-bottom: 18px;
}

.booking-widget.wide .title {
    padding: 0;
    margin-bottom: 8px;
    font-family: var(--font-sofia);
    font-weight: var(--font-weight-semibold);
    font-size: 22px;
    font-style: normal;
    line-height: calc(31/22);
    color: var(--merlot);
    text-transform: uppercase;
}

.booking-widget.wide .title::before,
.booking-widget.wide .title::after {
    display: none;
}

.booking-widget.wide .subtitle {
    display: inline;
    font: inherit;
    text-transform: inherit;
}

@media (min-width: 40em) {
    .booking-widget.wide .form {
        align-items: end;
    }

    .booking-widget.wide .header {
        padding: 0;
    }

    .booking-widget.wide .title {
        font-size: 35px;
    }

    .booking-widget.wide .form-field,
    .booking-widget.wide .button-field {
        grid-column: span 1 !important;
    }
}

@media (min-width: 64em) {
    .booking-widget.wide {
        padding: 20px 20px 27px;
        margin-bottom: 30px;
        background:
            url('../png/booking_grape_accent_large_9dfabda3-b827-4f16-82ab-2210a12ea247.png') no-repeat right bottom / auto 100%,
            var(--gray-light);
    }

    .booking-widget.wide .header {
        display: flex;
        align-items: center;
        gap: 50px;
        margin-bottom: 15px;
        text-align: left;
    }

    .booking-widget.wide .title {
        margin: 0;
    }

    .booking-widget.wide .form {
        grid-template: auto / repeat(2, 19.06%) repeat(3, 12.48%) minmax(0, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 1002px;
    }

    .booking-widget.wide .form-field.wide,
    .booking-widget.wide .button-field {
        grid-column: span 1;
    }

    .booking-widget.wide .button-field {
        display: block;
        margin-left: 9px;
    }

    .booking-widget.wide .submit {
        margin: 0;
    }
}