:root {
    --bc-accent: #F4B400;
    --bc-accent-hover: #ffcc00;
    --bc-ink: #1a1a1a;
    --bc-surface: #0e0e0e;
    --bc-card: #ffffff;
}

/* ------------------------------------------------------------------
   Button reset — no size change on hover / focus / active, ever.
   The trick: force every size-affecting property on every pseudo-class.
   `appearance: none` strips native browser button chrome (some browsers
   grow the box when an inner focus/bevel kicks in).
   ------------------------------------------------------------------ */
.bc-banner__cta,
.bc-modal__primary,
.bc-modal__close {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box !important;
    transition: none !important;
    transform: none !important;
    border-width: 0 !important;
    border-style: solid !important;
}

/* Banner */
.bc-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bc-accent);
    color: var(--bc-ink);
    padding: 14px 24px;
    font: 600 18px/1.4 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.bc-banner__icon { flex: 0 0 auto; }
.bc-banner__msg { flex: 1 1 auto; }
.bc-banner__cta {
    flex: 0 0 auto;
    background: #fff;
    color: var(--bc-ink);
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font: 600 14px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    line-height: 1 !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}
.bc-banner__cta:hover,
.bc-banner__cta:focus,
.bc-banner__cta:active,
.bc-banner__cta:focus-visible {
    background: #fff7e0 !important;
    border: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}
.bc-banner__cta:focus-visible {
    outline: 2px solid var(--bc-ink);
    outline-offset: 2px;
}

/* Overlay + modal */
.bc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}
.bc-overlay.is-open { display: flex; }

.bc-modal {
    background: var(--bc-card);
    color: var(--bc-ink);
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    position: relative;
    box-sizing: border-box;
    font: 400 16px/1.45 'Inter', system-ui, sans-serif;
}
.bc-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1 !important;
    padding: 4px 8px;
    cursor: pointer;
    color: #555;
}
.bc-modal__close:hover,
.bc-modal__close:focus,
.bc-modal__close:active,
.bc-modal__close:focus-visible {
    color: var(--bc-ink) !important;
    border: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.bc-modal__close:focus-visible {
    outline: 2px solid var(--bc-accent);
    outline-offset: 2px;
}
.bc-modal h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.bc-modal__sub { margin: 0 0 22px; color: #555; }
.bc-modal label { display: block; font-size: 14px; margin: 14px 0 6px; font-weight: 600; }
.bc-modal .optional { font-weight: 400; color: #888; }
.bc-modal .required { color: #b3261e; }
.bc-modal input {
    width: 100%;
    box-sizing: border-box;
    /* Explicit white — Steinhart's dark-luxury theme paints all inputs near-black,
       which would look out of place inside this white modal card. */
    background-color: #fff !important;
    background-image: none !important;
    color: #1f2937 !important;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}
/* Chrome/Edge autofill yellow + Firefox's auto-fill-back-fill both must lose to white. */
.bc-modal input:-webkit-autofill,
.bc-modal input:-webkit-autofill:hover,
.bc-modal input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    caret-color: #1f2937;
}
.bc-modal input::placeholder {
    color: #9aa3af;
    opacity: 1;
}
.bc-modal input:focus {
    outline: 0;
    border-color: var(--bc-accent);
    box-shadow: 0 0 0 3px rgba(244,180,0,0.25);
}
.bc-modal__primary {
    width: 100%;
    margin-top: 22px;
    background: var(--bc-accent);
    color: var(--bc-ink);
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    font: 700 16px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    line-height: 1 !important;
    font-size: 16px !important;
}
.bc-modal__primary:hover,
.bc-modal__primary:focus,
.bc-modal__primary:active,
.bc-modal__primary:focus-visible {
    background: var(--bc-accent-hover) !important;
    border: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}
.bc-modal__primary:focus-visible {
    outline: 2px solid var(--bc-ink);
    outline-offset: 2px;
}
.bc-modal__error { color: #b3261e; margin: 6px 0 0; font-size: 13px; display: none; }
.bc-modal__error.is-shown { display: block; }
.bc-modal__feedback { margin-top: 12px; font-size: 14px; display: none; color: #2e7d32; }
.bc-modal__feedback.is-shown { display: block; }
.bc-modal__feedback.is-error { color: #b3261e; }

/* Disabled state — keep visual but don't change on hover */
.bc-modal__primary:disabled,
.bc-banner__cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.bc-modal__primary:disabled:hover { background: var(--bc-accent); }

/* Mobile */
@media (max-width: 600px) {
    .bc-banner { font-size: 16px; padding: 12px 16px; flex-wrap: wrap; }
    .bc-banner__msg {
        flex-basis: 100%;
        order: 2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bc-banner__cta { order: 1; margin-left: auto; }
    .bc-overlay { align-items: flex-end; padding: 0; }
    .bc-modal { border-radius: 16px 16px 0 0; max-width: 100%; }
}
