.bc-booking,
.bc-confirmation {
    --bc-text: #112034;
    --bc-muted: #5d6f88;
    --bc-border: #d6deea;
    --bc-focus: var(--wp--preset--color--primary, #0f7bd6);
    --bc-primary: var(--wp--preset--color--primary, #1766ff);
    --bc-primary-dark: var(--wp--preset--color--secondary, #1247d8);
    --bc-accent: var(--wp--preset--color--tertiary, #1eb894);
    --bc-surface: #ffffff;
    --bc-soft-surface: #f7faff;
    --bc-shadow: 0 28px 64px rgba(13, 34, 71, 0.16);
    --bc-shell-radius: 28px;
    --bc-pane-height: 430px;
    max-width: 820px;
    margin: 24px auto;
    font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--bc-text);
}

.bc-booking * ,
.bc-confirmation * {
    box-sizing: border-box;
}

.bc-shell {
    position: relative;
    border-radius: var(--bc-shell-radius);
    padding: 1px;
    background: linear-gradient(125deg, var(--bc-primary), var(--bc-accent));
    overflow: hidden;
    isolation: isolate;
}

.bc-shell::before,
.bc-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(0.5px);
    z-index: 0;
}

.bc-shell::before {
    width: 170px;
    height: 170px;
    top: -44px;
    right: -30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.bc-shell::after {
    width: 190px;
    height: 190px;
    left: -50px;
    bottom: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.bc-card {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(214, 222, 234, 0.9);
    border-radius: calc(var(--bc-shell-radius) - 1px);
    padding: 28px;
    background:
        radial-gradient(circle at 0 8%, rgba(255, 255, 255, 0.54), transparent 42%),
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.42), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, var(--bc-soft-surface) 100%);
    box-shadow: var(--bc-shadow);
    overflow: hidden;
}

.bc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.bc-card-header > div {
    flex: 1;
    min-width: 0;
}

.bc-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2275b6;
}

.bc-title-row {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.bc-title-row {
    display: none;
}

.bc-heading {
    margin: 0 !important;
    font-size: clamp(30px, 3.8vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: #0b1a2d;
}

.bc-subheading {
    display: none;
}

.bc-timezone-note {
    display: none;
}

.bc-duration-chip {
    display: none;
}

.bc-progress {
    margin-top: 18px;
    display: flex;
    gap: 8px;
}

.bc-progress {
    display: none;
}

.bc-progress-item {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d4dde8;
    background: #f5f8fd;
    color: #61758f;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.bc-progress-slots {
    background: #ecf5ff;
    border-color: #bcd4f8;
    color: #1456b8;
}

.bc-booking.bc-has-selection .bc-progress-slots {
    background: #eef2f8;
    border-color: #cad3df;
    color: #5f7087;
}

.bc-booking.bc-has-selection .bc-progress-details {
    background: #ecf8f4;
    border-color: #bce9da;
    color: #0d7f66;
}

.bc-step {
    margin-top: 20px;
    border: none;
    border-radius: 18px;
    background: #ffffff;
    padding: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: bc-fade-up 0.32s ease;
}

.bc-section-title {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #10243b;
}

.bc-section-title {
    display: none;
}

.bc-step-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.bc-calendar-panel,
.bc-slots-panel {
    border: 1px solid #d6dfec;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding: 14px;
    height: var(--bc-pane-height);
    min-height: var(--bc-pane-height);
    box-shadow: 0 10px 26px rgba(16, 39, 70, 0.05);
}

.bc-calendar-panel {
    display: flex;
    flex-direction: column;
}

.bc-calendar-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bc-calendar-month {
    margin: 0;
    text-align: center;
    font-size: 17px;
    color: #122c46;
    font-weight: 800;
}

.bc-booking button.bc-btn-calendar-nav {
    border: 1px solid #c1d2e8;
    border-radius: 12px;
    padding: 8px 12px;
    background: #f4f8ff !important;
    color: #1b3e64 !important;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.bc-booking button.bc-btn-calendar-nav:hover {
    border-color: #adc3de;
    background: #ebf2fc !important;
}

.bc-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 8px;
}

.bc-calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #5d718a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 42px;
    gap: 6px;
    flex: 1;
    align-content: start;
}

.bc-booking button.bc-calendar-day {
    border: 1px solid #d3ddea;
    border-radius: 12px;
    width: 100% !important;
    height: 100% !important;
    min-height: 42px;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
    color: #16395f !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bc-booking button.bc-calendar-day:hover {
    border-color: #99b3d1;
    background: #eef4fc !important;
}

.bc-booking button.bc-calendar-day.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(22, 89, 221, 0.28);
}

.bc-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(23, 102, 255, 0.22);
}

.bc-calendar-day-blank {
    border: 1px solid transparent;
    min-height: 42px;
    border-radius: 10px;
    background: transparent;
}

.bc-slots-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bc-slots-date {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #173b5e;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.bc-field {
    margin-bottom: 14px;
}

.bc-timezone-field {
    max-width: 380px;
}

.bc-field label {
    display: block;
    margin-bottom: 7px;
    color: #1b314d;
    font-size: 14px;
    font-weight: 700;
}

.bc-field input,
.bc-field select,
.bc-field textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #c9d5e5;
    border-radius: 12px;
    padding: 11px 12px;
    background: #ffffff;
    color: #12253f;
    font-size: 15px;
    line-height: 1.35;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.bc-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #577193 50%),
        linear-gradient(135deg, #577193 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.bc-field textarea {
    min-height: 118px;
    resize: vertical;
}

.bc-field input:focus,
.bc-field select:focus,
.bc-field textarea:focus {
    outline: none;
    border-color: var(--bc-focus);
    box-shadow: 0 0 0 4px rgba(15, 123, 214, 0.16);
    background: #fbfeff;
}

.bc-slots-wrap {
    margin-top: 6px;
}

.bc-slots-status {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f3f7fd;
    border: 1px solid #dce5f1;
    color: #5c708a;
    font-size: 14px;
    font-weight: 600;
}

.bc-slots-status:empty {
    display: none;
}

.bc-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.bc-booking .bc-btn,
.bc-booking button.bc-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bc-booking .bc-btn-slot,
.bc-booking .bc-slot-btn {
    border: 1px solid #b8cbdf;
    background: linear-gradient(180deg, #ffffff 0%, #f1f6fd 100%) !important;
    color: #193a5f !important;
    border-radius: 12px;
    padding: 11px 18px;
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(17, 48, 91, 0.1);
}

.bc-booking .bc-btn-slot:hover,
.bc-booking .bc-slot-btn:hover {
    transform: translateY(-1px);
    border-color: #8eaed0;
    box-shadow: 0 8px 16px rgba(17, 48, 91, 0.16);
}

.bc-booking .bc-btn-slot:focus-visible,
.bc-booking .bc-slot-btn:focus-visible {
    outline: none;
    border-color: #4f8de6;
    box-shadow: 0 0 0 4px rgba(59, 135, 233, 0.16);
}

.bc-booking .bc-btn-slot.is-active,
.bc-booking .bc-btn-slot.is-active:hover,
.bc-booking .bc-btn-slot.is-active:focus-visible,
.bc-booking .bc-slot-btn.is-active,
.bc-booking .bc-slot-btn.is-active:hover,
.bc-booking .bc-slot-btn.is-active:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 22px rgba(22, 89, 221, 0.30);
}

.bc-selected-slot {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #b8e5da;
    background: linear-gradient(180deg, #effcf7 0%, #e3f9f1 100%);
    color: #0f6d59;
    font-size: 14px;
    font-weight: 700;
}

.bc-booking .bc-btn-primary,
.bc-booking .bc-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
    color: #ffffff !important;
    font-size: 16px;
    box-shadow: 0 12px 24px rgba(22, 89, 221, 0.30);
    font-weight: 800;
}

.bc-confirm-slot {
    margin-top: 12px;
    border-radius: 12px !important;
}

.bc-step-2 {
    position: relative;
}

.bc-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c6d4e6;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #f4f8fd !important;
    color: #1d4268 !important;
    font-size: 14px;
    font-weight: 700;
}

.bc-btn-back-icon {
    font-size: 15px;
    line-height: 1;
}

.bc-btn-back:hover {
    background: #eaf2fc;
}

.bc-booking .bc-btn-primary:hover,
.bc-booking .bc-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 14px 26px rgba(22, 89, 221, 0.44);
}

.bc-booking .bc-btn-primary:focus,
.bc-booking .bc-submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(23, 102, 255, 0.2), 0 12px 24px rgba(22, 89, 221, 0.34);
}

.bc-booking .bc-btn-primary[disabled],
.bc-booking .bc-submit[disabled] {
    opacity: 0.72;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.bc-form-message {
    min-height: 18px;
    margin: 10px 0 0;
    color: #b53a3a;
    font-size: 14px;
    font-weight: 600;
}

.bc-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

.bc-confirmation .bc-card {
    border-color: rgba(255, 255, 255, 0.56);
    background:
        radial-gradient(circle at 8% 0, rgba(30, 184, 148, 0.16), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f0fbf7 100%);
}

.bc-confirmation-details {
    margin-top: 14px;
    border-top: 1px solid #cde8df;
    padding-top: 12px;
}

.bc-confirmation-details p {
    margin: 6px 0;
    color: #1b4f45;
    font-size: 15px;
}

@keyframes bc-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .bc-booking,
    .bc-confirmation {
        --bc-shell-radius: 20px;
        --bc-pane-height: auto;
    }

    .bc-card {
        padding: 18px;
    }

    .bc-step {
        padding: 0;
    }

    .bc-shell::before,
    .bc-shell::after {
        display: none;
    }

    .bc-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .bc-title-row {
        display: flex;
        flex-wrap: wrap;
    }

    .bc-subheading {
        white-space: normal;
    }

    .bc-duration-chip {
        align-self: flex-start;
    }

    .bc-progress {
        flex-wrap: wrap;
    }

    .bc-step-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bc-calendar-panel,
    .bc-slots-panel {
        height: auto;
        min-height: 0;
        padding: 12px;
    }

    .bc-calendar-month {
        font-size: 16px;
    }

    .bc-booking button.bc-btn-calendar-nav {
        padding: 7px 10px;
        font-size: 12px;
    }

    .bc-slots {
        max-height: 300px;
    }
}
