/* Booking modal (Calendly inline) for pages that do not load css/personalized.css, such as the
   pricing pages. Same rules as personalized.css, which keeps its own copy for the landings. */
.booking-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 32px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 4000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.booking-modal__dialog {
    position: relative;
    width: min(100%, 1140px);
    height: min(92vh, 860px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.booking-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.booking-modal__close:hover {
    background: #ffffff;
    transform: scale(1.04);
}

.booking-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 0;
}

.booking-modal__widget {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.booking-modal__widget>*,
.booking-modal__widget .calendly-inline-widget,
.booking-modal__widget iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.booking-modal__loading,
.booking-modal__error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.6;
}

.booking-modal__error {
    color: #b91c1c;
}

@media (max-width: 640px) {
    .booking-modal {
        padding: 0.75rem;
    }

    .booking-modal__dialog {
        width: min(100%, 100%);
        height: min(94vh, 760px);
        border-radius: 1.125rem;
    }

    .booking-modal__widget {
        height: 100%;
    }
}
