/* ==========================================================================
   Booking Monster — public booking form
   Scoped under .bm-wrap; Chase Custom onboarding look (numbered step cards,
   soft borders, blue→indigo gradient) with Round Monster branding.
   ========================================================================== */

:root {
    --bm-blue: #2563eb;
    --bm-indigo: #6366f1;
    --bm-ink: #0f172a;
    --bm-slate: #475569;
    --bm-muted: #64748b;
    --bm-line: #e2e8f0;
}

.bm-wrap {
    --bm-blue: #2563eb;
    --bm-indigo: #6366f1;
    --bm-ink: #0f172a;
    --bm-slate: #475569;
    --bm-muted: #64748b;
    --bm-line: #e2e8f0;
    --bm-bg-soft: #f8fafc;
    --bm-green: #16a34a;
    --bm-amber: #d97706;
    --bm-red: #dc2626;

    max-width: 720px;
    margin: 0 auto;
    padding: 8px 16px 56px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
    color: var(--bm-ink);
    line-height: 1.55;
}

.bm-wrap *, .bm-wrap *::before, .bm-wrap *::after { box-sizing: border-box; }

.bm-hidden { display: none !important; }

/* --- Hero ---------------------------------------------------------------- */

.bm-hero { text-align: center; margin: 0 0 20px; }

.bm-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.bm-card-logo {
    position: absolute;
    top: 18px;
    right: 18px;
    width: auto;
    height: 64px;
    max-width: 72px;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.bm-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid #dbeafe;
    color: var(--bm-blue);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.bm-hero-title {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.15;
}

.bm-hero-title span {
    background: linear-gradient(135deg, var(--bm-blue), var(--bm-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bm-hero-sub {
    color: var(--bm-slate);
    font-size: 16px;
    max-width: 540px;
    margin: 0 auto 16px;
}

.bm-hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 14px;
    color: var(--bm-slate);
}

.bm-tick { color: var(--bm-green); font-weight: 700; margin-right: 5px; }

/* --- Step cards ----------------------------------------------------------- */

.bm-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: 18px;
    padding: 26px 26px 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
}

.bm-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.bm-card:has(.bm-card-logo) .bm-card-head {
    padding-right: 80px;
}

.bm-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bm-blue), var(--bm-indigo));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.5);
}

.bm-card-head h2 { margin: 2px 0 3px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.bm-card-head p  { margin: 0; color: var(--bm-muted); font-size: 14px; }

.bm-picked {
    margin: -8px 0 18px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 650;
    color: var(--bm-blue);
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
}

/* --- Fields ---------------------------------------------------------------- */

.bm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 560px) {
    .bm-grid-2 { grid-template-columns: 1fr; }
    .bm-card { padding: 20px 16px; }
    .bm-card-logo { height: 52px; max-width: 56px; top: 14px; right: 14px; }
    .bm-card:has(.bm-card-logo) .bm-card-head,
    .bm-card:has(.bm-card-logo) .bm-manage-top { padding-right: 64px; }
}

.bm-field { margin-bottom: 16px; }

.bm-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.bm-field label em { color: var(--bm-red); font-style: normal; }
.bm-optional { color: #94a3b8; font-weight: 500; }

.bm-field input[type="text"],
.bm-field input[type="email"],
.bm-field input[type="tel"],
.bm-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--bm-ink);
    background: var(--bm-bg-soft);
    border: 1.5px solid var(--bm-line);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.bm-field input:focus,
.bm-field textarea:focus {
    border-color: var(--bm-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.bm-field input.bm-invalid,
.bm-field textarea.bm-invalid {
    border-color: var(--bm-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.bm-field small { display: block; margin-top: 5px; color: #94a3b8; font-size: 12.5px; }

.bm-field textarea { resize: vertical; min-height: 76px; }

/* Radio pills */
.bm-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }

.bm-choice { position: relative; cursor: pointer; }
.bm-choice input { position: absolute; opacity: 0; pointer-events: none; }

.bm-choice span {
    display: inline-block;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-slate);
    background: var(--bm-bg-soft);
    border: 1.5px solid var(--bm-line);
    border-radius: 999px;
    transition: all 0.15s;
}

.bm-choice input:checked + span {
    color: var(--bm-blue);
    background: #eff6ff;
    border-color: var(--bm-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bm-choice input:focus-visible + span { outline: 2px solid var(--bm-blue); outline-offset: 2px; }

/* Honeypot */
.bm-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* --- Buttons ---------------------------------------------------------------- */

.bm-card-foot { margin-top: 6px; }
.bm-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.15s, background 0.15s, opacity 0.15s, border-color 0.15s;
}
a.bm-btn,
a.bm-btn:link,
a.bm-btn:visited,
a.bm-btn:hover,
a.bm-btn:focus,
a.bm-btn:active {
    text-decoration: none;
}

.bm-btn-primary,
a.bm-btn-primary:link,
a.bm-btn-primary:visited {
    background: linear-gradient(135deg, var(--bm-blue), var(--bm-indigo));
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.55);
}

.bm-btn-primary:hover:not(:disabled),
a.bm-btn-primary:hover,
a.bm-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.6);
}
.bm-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.bm-btn-ghost,
a.bm-btn-ghost:link,
a.bm-btn-ghost:visited {
    background: #fff;
    color: var(--bm-ink);
    border-color: var(--bm-line);
}

.bm-btn-ghost:hover,
a.bm-btn-ghost:hover,
a.bm-btn-ghost:focus {
    border-color: var(--bm-blue);
    background: #eff6ff;
    color: var(--bm-blue);
}

.bm-consent { margin: 14px 0 0; color: #94a3b8; font-size: 12.5px; text-align: center; }

.bm-hero-compact { margin-bottom: 14px; }
.bm-hero-compact .bm-hero-badge { margin-bottom: 0; }

.bm-manage-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bm-card:has(.bm-card-logo) .bm-manage-top {
    padding-right: 80px;
}
.bm-manage-top h2 { margin: 2px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.bm-manage-when {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-blue);
}
.bm-manage-who {
    margin: 0 0 22px;
    color: var(--bm-slate);
    font-size: 15px;
    line-height: 1.5;
}
.bm-manage-who strong { color: var(--bm-ink); font-weight: 700; }
.bm-manage-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bm-btn-block { width: 100%; justify-content: center; }
.bm-manage-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bm-manage-actions-row .bm-btn { width: 100%; justify-content: center; }
.bm-btn-text-danger {
    appearance: none;
    background: none;
    border: 0;
    display: block;
    width: 100%;
    padding: 10px 8px;
    margin: 2px 0 0;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #b91c1c;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.bm-btn-text-danger:hover { text-decoration: underline; }
.bm-btn-text-danger:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) {
    .bm-manage-actions-row { grid-template-columns: 1fr; }
}

/* --- Calendar ----------------------------------------------------------------- */

.bm-loading { display: flex; align-items: center; gap: 10px; color: var(--bm-muted); font-size: 14px; padding: 18px 0; }

.bm-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid var(--bm-line);
    border-top-color: var(--bm-blue);
    border-radius: 50%;
    animation: bm-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes bm-spin { to { transform: rotate(360deg); } }

.bm-day-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
}
.bm-day-nav .bm-day-strip {
    flex: 1;
    min-width: 0;
}
.bm-day-arrow {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.5px solid var(--bm-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bm-ink);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.bm-day-arrow:hover:not(:disabled) {
    border-color: var(--bm-blue);
    background: #eff6ff;
    color: var(--bm-blue);
}
.bm-day-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
@media (min-width: 700px) {
    .bm-day-nav.is-overflow .bm-day-arrow { display: inline-flex; }
}

.bm-day-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.bm-day {
    flex: 0 0 auto;
    width: 74px;
    padding: 10px 4px 9px;
    text-align: center;
    background: var(--bm-bg-soft);
    border: 1.5px solid var(--bm-line);
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.bm-day:hover:not(:disabled) { border-color: #93c5fd; }

.bm-day.bm-day-active {
    background: #eff6ff;
    border-color: var(--bm-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bm-day:disabled { opacity: 0.45; cursor: not-allowed; }

.bm-day-wk  { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bm-muted); }
.bm-day-num { display: block; font-size: 20px; font-weight: 800; color: var(--bm-ink); line-height: 1.2; }
.bm-day-mo  { display: block; font-size: 11px; color: var(--bm-muted); }

.bm-day-state { display: block; font-size: 10px; font-weight: 700; margin-top: 3px; }
.bm-day-state.free   { color: var(--bm-green); }
.bm-day-state.full   { color: var(--bm-amber); }
.bm-day-state.closed { color: #94a3b8; }

.bm-slots-head { font-size: 14px; font-weight: 700; color: #334155; margin: 8px 0 10px; }

.bm-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.bm-slot {
    padding: 11px 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--bm-blue);
    background: #fff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.13s;
}

.bm-slot:hover:not(:disabled) { background: #eff6ff; border-color: var(--bm-blue); transform: translateY(-1px); }

.bm-slot.bm-slot-active {
    background: linear-gradient(135deg, var(--bm-blue), var(--bm-indigo));
    border-color: var(--bm-blue);
    color: #fff;
    box-shadow: 0 6px 14px -5px rgba(37, 99, 235, 0.6);
}

.bm-slot:disabled {
    color: #94a3b8;
    background: var(--bm-bg-soft);
    border-color: var(--bm-line);
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.bm-slot .bm-slot-tag { display: block; font-size: 10px; font-weight: 700; text-decoration: none; margin-top: 1px; text-transform: uppercase; letter-spacing: 0.05em; }

.bm-slots-empty { grid-column: 1 / -1; color: var(--bm-muted); font-size: 14px; padding: 14px 4px; }

.bm-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--bm-muted); margin-bottom: 4px; }
#bm-waitlist { margin-top: 12px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; color: #92400e; font-size: 14px; }
.bm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.bm-dot-free   { background: var(--bm-green); }
.bm-dot-booked { background: #cbd5e1; }

.bm-error {
    margin: 14px 0 0;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 12px;
    font-size: 14px;
}

/* --- Success ---------------------------------------------------------------- */

.bm-success { text-align: center; padding: 40px 26px; }

.bm-success-icon {
    width: 68px; height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -8px rgba(22, 163, 74, 0.6);
}

.bm-success h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }

.bm-success-when { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--bm-blue); }

.bm-success-note { margin: 0 auto 22px; max-width: 420px; color: var(--bm-slate); font-size: 14.5px; }

.bm-success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.bm-success-tip { margin: 0 auto; max-width: 440px; font-size: 13.5px; color: var(--bm-muted); background: var(--bm-bg-soft); border: 1px solid var(--bm-line); border-radius: 12px; padding: 12px 16px; }
.bm-success-tip a { color: var(--bm-blue); font-weight: 700; }

/* Hide the THEME page title only — never the booking form hero. */
body.bm-hide-page-title .entry-title,
body.bm-hide-page-title .wp-block-post-title,
body.bm-hide-page-title .ast-page-title,
body.bm-hide-page-title .elementor-page-title,
body.bm-hide-page-title header.entry-header,
body.bm-hide-page-title .rm-post-header,
body.bm-hide-page-title .rm-page-hero,
body.bm-hide-page-title h1.rm-display,
body.bm-hide-page-title .wwc-page-title-hero,
body.bm-hide-page-title .wwc-main > .wwc-container > article > h1:first-child {
    display: none !important;
}
body.bm-hide-page-title .bm-hero,
body.bm-hide-page-title .bm-hero-title,
body.bm-hide-page-title .bm-hero-sub,
body.bm-hide-page-title .bm-hero-points {
    display: block !important;
}
body.bm-hide-page-title .bm-hero-badge {
    display: inline-block !important;
}
body.bm-hide-page-title .bm-hero-title {
    visibility: visible !important;
    color: var(--bm-ink) !important;
}
body.bm-hide-page-title .bm-page {
    padding-top: 16px;
    padding-bottom: 48px;
}
/* Whitbreads dual header has no .wwc-main offset — clear the fixed bar. */
body.wwc-header-dual.bm-hide-page-title .bm-page {
    padding-top: calc(var(--wwc-header-offset, 120px) + 16px);
}

.bm-launch--float { position: static; }
.bm-launch--float .bm-launch-btn {
    position: fixed; right: 20px; bottom: 20px; z-index: 99990;
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff; border: 0; border-radius: 999px;
    padding: 14px 20px; font-family: inherit; font-size: 15px; font-weight: 800;
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.65);
    cursor: pointer;
}
.bm-launch--float .bm-launch-btn:hover { transform: translateY(-1px); }
.bm-launch:not(.bm-launch--float) .bm-launch-btn {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff; border: 0; border-radius: 12px;
    padding: 12px 18px; font-family: inherit; font-size: 15px; font-weight: 800;
    cursor: pointer;
}
.bm-launch-panel {
    position: fixed; inset: 0; z-index: 99991;
    background: rgba(15, 23, 42, 0.42);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 16px;
}
.bm-launch-panel[hidden] { display: none !important; }
.bm-launch-card {
    width: min(420px, 100%);
    background: #fff; border-radius: 20px;
    padding: 20px 20px 18px;
    box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.45);
    margin-bottom: 64px;
}
.bm-launch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bm-launch-head strong { font-size: 17px; letter-spacing: -0.02em; }
.bm-launch-close {
    width: 34px; height: 34px; border: 0; background: #f1f5f9;
    border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; color: #475569;
}
.bm-launch-lead { margin: 8px 0 14px; color: #64748b; font-size: 14px; }
.bm-launch-form { display: flex; flex-direction: column; gap: 10px; }
.bm-launch-form label { font-size: 13px; font-weight: 700; color: #334155; }
.bm-launch-form input {
    width: 100%; margin-top: 4px; padding: 10px 12px;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-family: inherit; font-size: 15px; background: #f8fafc; box-sizing: border-box;
}
.bm-launch-form input:focus { outline: none; border-color: #2563eb; background: #fff; }
.bm-launch-form .bm-btn { width: 100%; justify-content: center; margin-top: 6px; }
.bm-launch-form.is-invalid input:invalid { border-color: #fecaca; }
@media (min-width: 600px) {
    .bm-launch-panel { align-items: center; }
    .bm-launch-card { margin-bottom: 0; }
}

/* --- Homepage embed (replaces the fake calendar) ------------------------- */

.bm-wrap--embed {
    max-width: none;
    margin: 0;
    padding: 0;
}
.bm-wrap--embed .bm-card {
    margin-bottom: 0;
    padding: 18px 16px 16px;
    box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.28);
}
.bm-wrap--embed .bm-card-logo { display: none; }
.bm-wrap--embed .bm-card-head { padding-right: 0; margin-bottom: 14px; }
.bm-wrap--embed .bm-card-head h2 { font-size: 17px; }
.bm-wrap--embed .bm-grid-2 { grid-template-columns: 1fr; }
.bm-wrap--embed .bm-day { width: 68px; padding: 8px 3px 7px; }
.bm-wrap--embed .bm-day-num { font-size: 18px; }
.bm-wrap--embed .bm-slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.bm-wrap--embed .bm-success-icon { margin-top: 4px; }
.bm-wrap--embed #bm-step-calendar .bm-card-foot { display: none; }
