.easy-event-booking {
    --ebp-bg: transparent;
    --ebp-surface: #ffffff;
    --ebp-surface-strong: #ffffff;
    --ebp-text: #a48f78;
    --ebp-text-dark: #8d7d6b;
    --ebp-line: rgba(126, 112, 98, 0.52);
    --ebp-shadow: 0 5px 12px rgba(132, 116, 98, 0.14);
    --ebp-button: #b8a287;
    --ebp-button-text: #fffaf5;
    color: var(--ebp-text-dark);
    font-family: "Libre Baskerville", Georgia, serif;
}

.easy-event-booking__shell {
    position: relative;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: var(--ebp-bg);
}

.easy-event-booking__shell::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -54px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(201, 187, 171, 0.48) 0%, rgba(201, 187, 171, 0) 72%);
    pointer-events: none;
}

.easy-event-booking__header,
.easy-event-booking__form {
    position: relative;
    z-index: 1;
}

.easy-event-booking__title {
    margin: 0 0 12px;
    color: var(--ebp-text);
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    line-height: 1.13;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.easy-event-booking__description {
    margin: 0 0 22px;
    max-width: 42rem;
    font-size: 0.98rem;
    line-height: 1.7;
}

.easy-event-booking__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18px;
}

.easy-event-booking__stack {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.easy-event-booking__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.easy-event-booking__field--services {
    grid-column: 1 / -1;
}

.easy-event-booking__checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(221, 214, 206, 0.96);
    border-radius: 14px;
    background: var(--ebp-surface);
    box-shadow: var(--ebp-shadow);
}

.easy-event-booking__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ebp-text-dark);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    cursor: pointer;
}

.easy-event-booking__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #b8a287;
}

.easy-event-booking__control-wrap {
    position: relative;
    display: block;
}

.easy-event-booking__label {
    color: rgba(111, 94, 77, 0.62);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.easy-event-booking__field select,
.easy-event-booking__field input[type="date"],
.easy-event-booking__field input[type="number"] {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(221, 214, 206, 0.96);
    border-radius: 10px;
    background: var(--ebp-surface-strong);
    box-shadow: var(--ebp-shadow);
    color: var(--ebp-text-dark);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.easy-event-booking__control-wrap--select select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
}

.easy-event-booking__control-wrap--date {
    position: relative;
    display: block;
}

.easy-event-booking__control-wrap--date .dtpicker-container {
    width: 100%;
}

.easy-event-booking__control-wrap--date .dtpicker-date {
    width: 100% !important;
}

.dtpicker-day.dtpicker-day-selected {
    color: #a8d8ff;
}

.easy-event-booking__control-wrap--date input[type="date"] {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
}

.easy-event-booking__control-wrap--date input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.easy-event-booking__control-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ebp-text-dark);
    transform: translateY(-50%);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.easy-event-booking__control-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.easy-event-booking__field--line input,
.easy-event-booking__field--message textarea {
    width: 100%;
    padding: 10px 2px 9px;
    border: 0;
    border-bottom: 1px solid var(--ebp-line);
    background: transparent;
    color: var(--ebp-text-dark);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    border-radius: 0;
    box-shadow: none;
}

.easy-event-booking__field--message textarea {
    min-height: 136px;
    padding: 14px 14px;
    border: 1px solid rgba(224, 217, 209, 0.95);
    border-radius: 14px;
    background: var(--ebp-surface);
    box-shadow: var(--ebp-shadow);
    resize: vertical;
}

.easy-event-booking__field input:focus,
.easy-event-booking__field select:focus,
.easy-event-booking__field textarea:focus {
    outline: none;
    border-color: rgba(177, 158, 135, 0.9);
    box-shadow: 0 10px 22px rgba(132, 116, 98, 0.16);
}

.easy-event-booking__footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.easy-event-booking__button {
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--ebp-button);
    color: var(--ebp-button-text);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(146, 122, 96, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.easy-event-booking__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(146, 122, 96, 0.28);
    background: #ab9577;
}

.easy-event-booking__response {
    margin: 0;
    min-height: 24px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.92rem;
}

.easy-event-booking__response.is-success {
    color: #4f7d59;
}

.easy-event-booking__response.is-error {
    color: #9b4d4d;
}

.easy-event-booking__form.is-submitting {
    opacity: 0.78;
}

.easy-event-booking__anti-bot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.easy-event-booking__popup[hidden] {
    display: none !important;
}

.easy-event-booking__popup {
    position: fixed;
    inset: 0;
    z-index: 10040;
}

.easy-event-booking__popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 3, 0.82);
    backdrop-filter: blur(3px);
}

.easy-event-booking__popup-dialog {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: min(94vw, 980px);
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 20px;
    overflow: auto;
    border-radius: 24px;
    background: #f7f1ea;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.easy-event-booking__popup-close {
    position: sticky;
    top: 10px;
    left: calc(100% - 42px);
    margin-left: 0;
    margin-right: 0;
    z-index: 6;
    display: block;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid rgba(92, 76, 61, 0.18);
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.easy-event-booking__popup-close::before,
.easy-event-booking__popup-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #4e4033;
    transform-origin: center;
}

.easy-event-booking__popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.easy-event-booking__popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.easy-event-booking__popup-close:hover {
    background: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.easy-event-booking__popup-close:focus,
.easy-event-booking__popup-close:active,
.easy-event-booking__popup-close:hover {
    border-color: rgba(92, 76, 61, 0.24);
    color: transparent !important;
    outline: none;
    text-decoration: none !important;
}

.easy-event-booking__modal[hidden] {
    display: none !important;
}

.easy-event-booking__modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.easy-event-booking__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
}

.easy-event-booking__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    margin: min(12vh, 100px) auto 0;
    padding: 28px 24px;
    border: 1px solid var(--e-global-color-6b1e6b4, #917E66);
    border-radius: 22px;
    background: var(--e-global-color-1f8f171, #ECDFB9);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.easy-event-booking__modal-title {
    margin: 0 0 10px;
    color: var(--e-global-color-primary, #B20000);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.05;
}

.easy-event-booking__modal-message {
    margin: 0 0 20px;
    color: var(--e-global-color-text, #000000);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.easy-event-booking__modal-button {
    min-width: 170px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--e-global-color-primary, #B20000);
    color: var(--e-global-color-17d59b0, #FFFFFF);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

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

body.easy-event-booking-popup-open {
    overflow: hidden;
}

.easy-event-booking__popup-dialog .dtpicker-container,
.easy-event-booking__popup-dialog .tpicker-container {
    width: 100%;
}

.easy-event-booking__popup-dialog .dtpicker-dropdown,
.easy-event-booking__popup-dialog .tpicker-dropdown {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    max-width: min(360px, calc(100vw - 48px));
}

@media (max-width: 767px) {
    .easy-event-booking__popup-dialog {
        width: min(96vw, 980px);
        max-height: calc(100vh - 24px);
        margin: 12px auto;
        padding: 20px;
        border-radius: 18px;
    }

    .easy-event-booking__popup-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .easy-event-booking__popup-dialog .dtpicker-dropdown,
    .easy-event-booking__popup-dialog .tpicker-dropdown {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        margin-top: 0;
    }

    .easy-event-booking .dtpicker-dropdown,
    .easy-event-booking .tpicker-dropdown {
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box;
    }

    .easy-event-booking__shell {
        padding: 0;
        border-radius: 0;
    }

    .easy-event-booking__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
    }

    .easy-event-booking__title {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .easy-event-booking__modal-dialog {
        margin-top: 14vh;
        padding: 24px 18px;
    }
}

@media (max-width: 520px) {
    .easy-event-booking__grid {
        grid-template-columns: 1fr 1fr;
    }

    .easy-event-booking__checkboxes {
        grid-template-columns: 1fr;
    }

    .easy-event-booking__field select,
    .easy-event-booking__field input[type="date"],
    .easy-event-booking__field input[type="number"] {
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .easy-event-booking__button {
        width: auto;
        min-width: 116px;
        justify-content: center;
    }
}
