/* ============================================================
   Booking feature (Microsoft Bookings embed) - design tokens
   Palette: deep ink navy + warm amber accent.
   Type: Space Grotesk (display/CTA), Inter (body).
   ============================================================ */
:root {
    --ec-ink: #10161F;
    --ec-slate: #5B6472;
    --ec-mist: #F4F6F9;
    --ec-line: #E3E7EE;
    --ec-paper: #FFFFFF;
    --ec-accent: #E3A03D;
    --ec-accent-deep: #B9791F;
    --ec-radius: 14px;
    --ec-shadow: 0 20px 60px rgba(16,22,31,0.18);
    --ec-font-display: 'Space Grotesk',system-ui,sans-serif;
    --ec-font-body: 'Inter',system-ui,sans-serif;
}

/* ---------- CTA button ---------- */
.ec-book-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ec-font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--ec-ink);
    background: var(--ec-accent);
    border: none;
    padding: 14px 24px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(227,160,61,0.35);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .ec-book-cta:hover {
        background: var(--ec-accent-deep);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(185,121,31,0.4);
    }

    .ec-book-cta:focus-visible {
        outline: 3px solid var(--ec-ink);
        outline-offset: 3px;
    }

    .ec-book-cta svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.ec-book-cta--sticky {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    box-shadow: 0 10px 30px rgba(16,22,31,0.3);
}

@media (min-width:900px) {
    .ec-book-cta--sticky {
        display: none;
    }
}

/* Header variant - sized/aligned to sit inline next to the WhatsApp pill
   instead of wrapping to its own row underneath it. */
.ec-book-cta--header {
    padding: 10px 20px;
    font-size: 14px;
    margin-left: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width:1200px) {
    .ec-book-cta--header {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ---------- Modal shell ---------- */
.ec-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16,22,31,0.55);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1300;
    opacity: 0;
    transition: opacity .22s ease;
}

    .ec-modal-overlay.ec-open {
        opacity: 1;
    }

.ec-modal--booking {
    background: var(--ec-paper);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow);
    width: 100%;
    max-width: 900px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(18px) scale(.97);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}

.ec-modal-overlay.ec-open .ec-modal--booking {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ec-modal-overlay, .ec-modal--booking {
        transition: none;
    }
}

@media (max-width:640px) {
    .ec-modal--booking {
        height: 92vh;
        max-height: none;
    }
}

.ec-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--ec-line);
    flex-shrink: 0;
}

    .ec-modal-header h2 {
        font-family: var(--ec-font-display);
        font-size: 22px;
        margin: 0 0 4px;
        color: var(--ec-ink);
    }

    .ec-modal-header p {
        font-family: var(--ec-font-body);
        color: var(--ec-slate);
        margin: 0;
        font-size: 13px;
    }

.ec-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--ec-slate);
    line-height: 1;
    padding: 6px;
    border-radius: 8px;
}

    .ec-modal-close:hover {
        background: var(--ec-mist);
        color: var(--ec-ink);
    }

    .ec-modal-close:focus-visible {
        outline: 2px solid var(--ec-accent-deep);
    }

.ec-modal-body--iframe {
    position: relative;
    flex: 1;
    min-height: 0;
}

    .ec-modal-body--iframe iframe {
        width: 100%;
        height: 100%;
    }

.ec-iframe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ec-font-body);
    font-size: 14px;
    color: var(--ec-slate);
    background: var(--ec-paper);
}

.ec-modal-footer--iframe {
    padding: 10px 24px;
    border-top: 1px solid var(--ec-line);
    text-align: center;
    flex-shrink: 0;
}

.ec-fallback-link {
    font-family: var(--ec-font-body);
    font-size: 12px;
    color: var(--ec-slate);
    text-decoration: none;
}

    .ec-fallback-link:hover {
        color: var(--ec-accent-deep);
        text-decoration: underline;
    }

/* ---------- Loading spinner ---------- */
.ec-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    display: inline-block;
    animation: ec-spin .7s linear infinite;
    margin-right: 8px;
    vertical-align: -3px;
}

.ec-spinner--dark {
    border: 2px solid var(--ec-line);
    border-top-color: var(--ec-accent-deep);
}

@keyframes ec-spin {
    to {
        transform: rotate(360deg);
    }
}
