/* =====================================================================
   BOBN checkout dialogs + donation/membership layout (2026-11-02)
   Modelled on PPSV's donate page, in BOBN colours. Scoped to .bc-* and
   .give-* classes so the shared styles.css .modal rules are untouched.
   ===================================================================== */
:root { --bc-red: #c8102e; --bc-red-dark: #a00d25; --bc-ink: #1a1a2e; --bc-gold: #ffc107; --bc-muted: #5f6475; --bc-line: #e3e5ec; }

/* ---------- Page layout (PPSV "Choose How You Want to Give") ---------- */
.give-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; margin-top: 2rem; align-items: start; text-align: left; }
.give-toggle { display: inline-flex; background: #fff; border: 1px solid var(--bc-line); border-radius: 999px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.give-toggle button { border: 0; background: transparent; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; color: var(--bc-muted); cursor: pointer; font-size: 1rem; }
.give-toggle button[aria-selected="true"] { background: var(--bc-red); color: #fff; }
.give-toggle-wrap { text-align: center; margin-bottom: 1.25rem; }
.give-note { color: var(--bc-muted); font-size: .95rem; margin: .75rem auto 0; max-width: 620px; text-align: center; }
.give-note a { color: var(--bc-red); font-weight: 600; }
.give-trust { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--bc-line); border-left: 4px solid var(--bc-red); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.give-trust i.fa-lock { color: var(--bc-red); font-size: 1.4rem; }
.give-trust strong { display: block; color: var(--bc-ink); }
.give-trust span { color: var(--bc-muted); font-size: .9rem; }
.give-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.08); padding: 1.75rem; margin-bottom: 1.25rem; }
.give-card h3 { color: var(--bc-ink); margin: 0 0 .5rem; }
.give-card p { color: var(--bc-muted); }
.give-amounts { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .5rem; }
.give-amounts .btn { min-width: 96px; }
.give-caption { color: var(--bc-muted); font-size: .85rem; margin: .5rem 0 0; }
.give-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.give-plan { border: 1px solid var(--bc-line); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; text-align: center; background: #fff; transition: box-shadow .2s, transform .2s; }
.give-plan:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.give-plan h4 { margin: 0 0 .35rem; color: var(--bc-ink); font-size: 1.1rem; }
.give-plan .give-price { color: var(--bc-red); font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin: .25rem 0 .5rem; }
.give-plan .give-price small { font-size: .95rem; font-weight: 600; color: var(--bc-muted); }
.give-plan p { font-size: .9rem; flex: 1; margin: 0 0 1rem; }
.give-plan .btn { width: 100%; }
.give-plan.featured { border: 2px solid var(--bc-red); }
.give-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.give-impact div { background: #fff; border-radius: 12px; padding: 1rem; border: 1px solid var(--bc-line); color: var(--bc-muted); font-size: .9rem; }
.give-impact strong { display: block; color: var(--bc-ink); margin-bottom: .25rem; }
.give-side ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.give-side li { padding: .4rem 0; color: var(--bc-ink); }
.give-side li i { color: var(--bc-red); margin-right: .5rem; }
@media (max-width: 960px) { .give-layout { grid-template-columns: 1fr; } .give-plans { grid-template-columns: 1fr; } .give-impact { grid-template-columns: 1fr; } }

/* ---------------------------- Dialogs ---------------------------- */
.bc-overlay { position: fixed; inset: 0; z-index: 13000; background: rgba(15, 17, 30, .62); display: none; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.bc-overlay.open { display: flex; }
.bc-dialog { position: relative; background: #fff; width: 100%; max-width: 520px; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; margin: auto; animation: bcIn .18s ease-out; text-align: left; }
@keyframes bcIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bc-head { background: linear-gradient(135deg, var(--bc-ink) 0%, #2a2a4a 100%); color: #fff; padding: 1.4rem 1.5rem 1.2rem; text-align: center; border-bottom: 4px solid var(--bc-red); }
.bc-head img { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: block; margin: 0 auto .5rem; }
.bc-head h2 { margin: 0; font-size: 1.35rem; color: #fff; letter-spacing: .01em; }
.bc-head p { margin: .35rem 0 0; color: rgba(255,255,255,.82); font-size: .9rem; }
.bc-close { position: absolute; top: .65rem; right: .75rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bc-close:hover, .bc-close:focus-visible { background: rgba(255,255,255,.25); outline: 2px solid var(--bc-gold); outline-offset: 2px; }
.bc-steps { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; font-size: .78rem; color: rgba(255,255,255,.7); }
.bc-steps span { padding: .2rem .65rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.bc-steps span.on { background: var(--bc-red); border-color: var(--bc-red); color: #fff; }
.bc-body { padding: 1.4rem 1.5rem 1.1rem; }
.bc-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff5f6; border: 1px solid #f6c9d1; border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1.1rem; }
.bc-summary .bc-sum-label { color: var(--bc-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.bc-summary .bc-sum-name { color: var(--bc-ink); font-weight: 700; }
.bc-summary .bc-sum-price { color: var(--bc-red); font-weight: 800; font-size: 1.5rem; white-space: nowrap; }
.bc-summary .bc-sum-price small { font-size: .85rem; color: var(--bc-muted); font-weight: 600; }
.bc-link { background: none; border: 0; color: var(--bc-red); font-weight: 600; cursor: pointer; padding: 0; font-size: .85rem; text-decoration: underline; }
.bc-stepper { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .9rem; border-radius: 12px; background: #f6f7fa; margin-bottom: 1.1rem; }
.bc-stepper button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bc-red); background: #fff; color: var(--bc-red); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.bc-stepper button:hover, .bc-stepper button:focus-visible { background: var(--bc-red); color: #fff; }
.bc-stepper output { font-size: 2.2rem; font-weight: 800; color: var(--bc-red); min-width: 120px; text-align: center; }
.bc-tiers { display: grid; gap: .65rem; margin-bottom: .25rem; }
.bc-tier { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; border: 2px solid var(--bc-line); background: #fff; border-radius: 12px; padding: .85rem 1rem; cursor: pointer; font: inherit; color: var(--bc-ink); }
.bc-tier:hover, .bc-tier:focus-visible { border-color: var(--bc-red); outline: none; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.bc-tier .bc-tier-price { margin-left: auto; color: var(--bc-red); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.bc-tier .bc-tier-price small { color: var(--bc-muted); font-weight: 600; font-size: .8rem; }
.bc-tier .bc-tier-name { font-weight: 700; display: block; }
.bc-tier .bc-tier-desc { color: var(--bc-muted); font-size: .85rem; display: block; margin-top: .15rem; }
.bc-field { margin-bottom: .9rem; }
.bc-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--bc-ink); margin-bottom: .35rem; }
.bc-field label .opt { color: var(--bc-muted); font-weight: 400; }
.bc-field input { width: 100%; box-sizing: border-box; padding: .75rem .85rem; border: 1px solid #cfd3dc; border-radius: 10px; font-size: 1rem; background: #fff; color: var(--bc-ink); }
.bc-field input:focus { outline: none; border-color: var(--bc-red); box-shadow: 0 0 0 3px rgba(200,16,46,.14); }
.bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.bc-card { padding: .85rem; border: 1px solid #cfd3dc; border-radius: 10px; background: #fff; min-height: 22px; }
.bc-card.StripeElement--focus { border-color: var(--bc-red); box-shadow: 0 0 0 3px rgba(200,16,46,.14); }
.bc-card.StripeElement--invalid { border-color: #d93025; }
.bc-error { display: none; background: #fdecea; color: #a50e0e; border: 1px solid #f5c2c0; border-radius: 10px; padding: .65rem .8rem; font-size: .9rem; margin: .25rem 0 .9rem; }
.bc-error.show { display: block; }
.bc-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1rem; border: 0; border-radius: 12px; background: var(--bc-red); color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.bc-submit:hover { background: var(--bc-red-dark); }
.bc-submit:disabled { opacity: .7; cursor: not-allowed; }
.bc-submit:focus-visible { outline: 3px solid var(--bc-gold); outline-offset: 2px; }
.bc-spin { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: bcSpin .8s linear infinite; }
@keyframes bcSpin { to { transform: rotate(360deg); } }
.bc-fine { color: var(--bc-muted); font-size: .8rem; line-height: 1.45; margin: .8rem 0 0; text-align: center; }
.bc-fine a { color: var(--bc-red); }
.bc-foot { display: flex; align-items: center; justify-content: center; gap: .45rem; border-top: 1px solid var(--bc-line); background: #fafbfc; color: var(--bc-muted); font-size: .8rem; padding: .7rem 1rem; }
.bc-foot i { color: #635bff; }
.bc-success { text-align: center; padding: 1.75rem 1.5rem 1.5rem; }
.bc-success .bc-check { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ec; color: #1e8e3e; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto .9rem; }
.bc-success h3 { margin: 0 0 .4rem; color: var(--bc-ink); }
.bc-success p { color: var(--bc-muted); margin: 0 0 1.1rem; }
.bc-hidden { display: none !important; }
.bc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.bc-lock { overflow: hidden; }
@media (max-width: 560px) {
  .bc-overlay { padding: 0; align-items: flex-end; }
  .bc-dialog { max-width: none; border-radius: 18px 18px 0 0; max-height: 96vh; overflow-y: auto; }
  .bc-row { grid-template-columns: 1fr; }
  .bc-stepper output { font-size: 1.8rem; min-width: 90px; }
}
