/* =========================================================
   Booking calendar enhancements
   ========================================================= */
.booking-shell {
    position: relative;
    padding: 34px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(241,245,248,0.88));
    border: 1px solid rgba(18, 34, 49, 0.08);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.booking-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(199, 160, 107, 0.08), transparent 24%);
    pointer-events: none;
}

.booking-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 24px;
    align-items: start;
}

.booking-aside {
    display: grid;
    gap: 22px;
}

.booking-note-card {
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(20, 59, 97, 0.98), rgba(43, 110, 164, 0.92));
    color: #fff;
    box-shadow: 0 22px 42px rgba(20, 59, 97, 0.18);
}

.booking-note-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.booking-note-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.76);
    font-size: 14px;
}

.booking-card {
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(18, 34, 49, 0.08);
    box-shadow: 0 20px 40px rgba(12, 20, 28, 0.1);
}

.booking-card__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 24px;
}

.booking-card__head h3 {
    margin: 0 0 8px;
    font-family: Manrope, Inter, sans-serif;
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.booking-card__head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    max-width: 440px;
}

.booking-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(20, 59, 97, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-form { display: grid; gap: 18px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.booking-calendar-box {
    display: grid;
    gap: 12px;
}

.booking-calendar {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(246,249,252,0.94));
    border: 1px solid rgba(18, 34, 49, 0.08);
    box-shadow: var(--shadow-sm);
}

.booking-calendar.is-ready .booking-calendar-fallback {
    display: none;
}

.booking-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.booking-calendar__title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.booking-calendar__nav {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(18, 34, 49, 0.08);
    background: rgba(255,255,255,0.9);
    cursor: pointer;
}

.booking-calendar__weekdays,
.booking-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.booking-calendar__weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.booking-calendar__grid {
    margin-top: 10px;
}

.booking-calendar__day {
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    cursor: pointer;
    transition: 0.22s ease;
    font-size: 14px;
}

.booking-calendar__day:hover {
    border-color: rgba(20, 59, 97, 0.14);
    box-shadow: var(--shadow-sm);
}

.booking-calendar__day.is-muted,
.booking-calendar__day.is-disabled {
    color: #95a4b4;
    background: rgba(243,246,249,0.9);
    cursor: not-allowed;
}

.booking-calendar__day.is-selected {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(20, 59, 97, 0.2);
}

.booking-calendar__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(20, 59, 97, 0.06);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.booking-calendar__summary span {
    color: var(--muted);
    font-weight: 500;
}

.booking-calendar-fallback {
    min-height: 58px;
}

.booking-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-slot {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(18, 34, 49, 0.1);
    background: rgba(255,255,255,0.9);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    transition: 0.22s ease;
}

.booking-slot:hover {
    border-color: rgba(20, 59, 97, 0.18);
    box-shadow: var(--shadow-sm);
}

.booking-slot.is-selected {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
}

.booking-time-select {
    display: none;
}

.booking-form.is-submitting {
    opacity: 0.72;
    pointer-events: none;
}

.booking-form__error {
    display: none;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(180, 36, 36, 0.08);
    border: 1px solid rgba(180, 36, 36, 0.14);
    color: #8f1f1f;
    font-weight: 600;
}

.booking-form__error.is-visible {
    display: block;
}

@media (max-width: 980px) {
    .booking-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}


.booking-embed {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(18, 34, 49, 0.08);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.booking-calendly {
    min-height: 780px;
}

.booking-embed__frame {
    display: block;
    width: 100%;
    min-height: 860px;
    border: 0;
    background: #fff;
}

.booking-external-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.booking-card--calendly .booking-card__head,
.booking-card--google_calendar .booking-card__head {
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .booking-card { padding: 20px; }

    .booking-card__head h3 { font-size: 26px; }

    .booking-calendly {
        min-height: 700px;
    }

    .booking-embed__frame {
        min-height: 760px;
    }

    .booking-external-actions .btn {
        width: 100%;
    }
}


.booking-card__head > * {
    min-width: 0;
}

.booking-card__head h3,
.booking-card__head p,
.booking-note-card strong,
.booking-note-card span,
.booking-calendar__summary,
.booking-calendar__title {
    overflow-wrap: anywhere;
}

.booking-calendar__summary {
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .booking-note-card,
    .booking-card,
    .booking-shell {
        border-radius: 26px;
    }

    .booking-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-badge {
        align-self: flex-start;
    }

    .booking-calendly {
        min-height: 720px;
    }

    .booking-embed__frame {
        min-height: 760px;
    }
}

@media (max-width: 640px) {
    .booking-shell,
    .booking-note-card,
    .booking-card,
    .booking-calendar {
        border-radius: 22px;
    }

    .booking-shell {
        padding: 20px;
    }

    .booking-note-card {
        padding: 20px;
    }

    .booking-calendar__weekdays,
    .booking-calendar__grid {
        gap: 6px;
    }

    .booking-calendar__day {
        min-height: 38px;
        border-radius: 12px;
        font-size: 13px;
    }

    .booking-time-slots {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-slot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        white-space: normal;
        text-align: center;
        padding: 10px 12px;
        min-height: 48px;
    }

    .booking-calendly {
        min-height: 640px;
    }

    .booking-embed__frame {
        min-height: 680px;
    }
}

@media (max-width: 420px) {
    .booking-time-slots {
        grid-template-columns: 1fr;
    }

    .booking-calendar {
        padding: 14px;
    }

    .booking-calendar__header {
        gap: 8px;
    }

    .booking-calendar__nav {
        width: 34px;
        height: 34px;
    }

    .booking-calendly {
        min-height: 560px;
    }

    .booking-embed__frame {
        min-height: 620px;
    }
}
