body.vg-booking-modal-open {
    overflow: hidden;
}

.vg-booking-modal[hidden] {
    display: none !important;
}

.vg-booking-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: inherit;
}

.vg-booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 28, 0.72);
    backdrop-filter: blur(3px);
}

.vg-booking-modal__dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 38px 38px 34px;
    border-radius: 16px;
    background: #fff;
    color: #20242b;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.vg-booking-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.vg-booking-modal__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff1f0;
    color: #b42318;
    font-size: 34px;
    font-weight: 700;
}

.vg-booking-modal__dialog h2 {
    margin: 0 0 12px;
    color: #172033;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.2;
}

.vg-booking-modal__dialog > p {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
}

.vg-booking-modal__dialog a {
    color: #a11b14;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
}

.vg-booking-modal__verification {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.vg-booking-modal__verification label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.vg-booking-modal__code-row {
    display: flex;
    gap: 10px;
}

.vg-booking-modal__code-row input {
    min-width: 0;
    flex: 1 1 auto;
    height: 48px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #9ca3af;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 16px;
}

.vg-booking-modal__code-row input:focus {
    border-color: #8b1d16;
    outline: 3px solid rgba(139, 29, 22, 0.15);
}

.vg-booking-modal__code-row button {
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: #8b1d16;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.vg-booking-modal__code-row button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.vg-booking-modal__feedback {
    min-height: 22px;
    margin: 8px 0 0;
    color: #b42318;
    font-size: 14px;
}

.acf-field input[type=text],
.acf-field input[type=password],
.acf-field input[type=date],
.acf-field input[type=datetime],
.acf-field input[type=datetime-local],
.acf-field input[type=email],
.acf-field input[type=month],
.acf-field input[type=number],
.acf-field input[type=search],
.acf-field input[type=tel],
.acf-field input[type=time],
.acf-field input[type=url],
.acf-field input[type=week],
.acf-field textarea,
.acf-field select {
    width: 100%;
    padding: 1px 8px;
    margin: 0;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
    height: 30px !important;
}

@media (max-width: 560px) {
    .vg-booking-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .vg-booking-modal__dialog {
        padding: 32px 20px 24px;
        border-radius: 14px;
    }

    .vg-booking-modal__code-row {
        flex-direction: column;
    }

    .vg-booking-modal__code-row button {
        width: 100%;
    }
}
