/* ==========================================================================
   Blood bank — landing (blood_bank.html) and forms (donor / request)
   Builds on home.css (--hp-* tokens) and service.css (.sv glass system).
   Gold stays the brand; a deep blood-red is the accent. Dark default, light via data-theme.
   ========================================================================== */

.bb {
  --bb-red:       #E5485D;
  --bb-red-hi:    #FF7A8A;
  --bb-red-deep:  #A51C30;
  --bb-red-soft:  rgba(229, 72, 93, .12);
  --bb-red-line:  rgba(229, 72, 93, .38);
  --bb-red-glow:  rgba(196, 30, 58, .55);
  --sv-edge:      rgba(240, 122, 136, .5);
  --sv-spot:      rgba(229, 72, 93, .14);
}
html[data-theme="light"] .bb {
  --bb-red:       #C21F36;
  --bb-red-hi:    #E0465B;
  --bb-red-deep:  #8E1526;
  --bb-red-soft:  rgba(194, 31, 54, .07);
  --bb-red-line:  rgba(194, 31, 54, .28);
  --bb-red-glow:  rgba(194, 31, 54, .35);
  --sv-edge:      rgba(194, 31, 54, .4);
  --sv-spot:      rgba(194, 31, 54, .09);
}

.lux-home.bb .hp-eyebrow { color: var(--bb-red); }
.lux-home.bb .hp-eyebrow::before,
.lux-home.bb .hp-eyebrow::after { background: var(--bb-red); }
.lux-home.bb .hp-title em { color: var(--bb-red); }
.lux-home .bb-hero h1 em,
.lux-home .bb-formpage h1 em { color: #FF8E9C; -webkit-text-fill-color: #FF8E9C; font-style: italic; }
.bb .sv-hero .hp-eyebrow, .bb .bb-formpage .hp-eyebrow { color: #FF8E9C; }
.bb .sv-hero .hp-eyebrow::before, .bb .bb-formpage .hp-eyebrow::before { background: #FF8E9C; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.lux-home .bb-btn {
  border-color: transparent;
  background: linear-gradient(180deg, #EC5468, #A51C30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 40px -16px var(--bb-red-glow);
  color: #fff;
}
.lux-home .bb-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 50px -14px var(--bb-red-glow); }
.lux-home .bb-btn--light { background: #fff; color: #A51C30; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.lux-home .bb-btn--light:hover { color: #A51C30; }
.lux-home.bb .sv-btn--line:hover { border-color: var(--bb-red); color: var(--bb-red); }

/* ── Heartbeat line ──────────────────────────────────────────────── */
.bb-pulse {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 3%;
  width: 100%;
  height: 120px;
  pointer-events: none;
  opacity: .55;
}
.bb-pulse path {
  fill: none;
  stroke: #FF6F82;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 520 1600;
  stroke-dashoffset: 2100;
  filter: drop-shadow(0 0 6px rgba(255, 90, 110, .9));
  animation: bb-beat 3.6s linear infinite;
}
@keyframes bb-beat { to { stroke-dashoffset: 0; } }

/* ══ Hero ═════════════════════════════════════════════════════════ */
.bb-hero { min-height: clamp(520px, 74vh, 700px); }
.bb-hero__veil {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(196, 30, 58, .38), transparent 60%),
    linear-gradient(90deg, rgba(10, 6, 6, .94) 0%, rgba(14, 8, 8, .82) 45%, rgba(20, 8, 10, .45) 100%),
    linear-gradient(0deg, rgba(10, 6, 6, .7), transparent 40%);
}
.bb-facts dt { font-variant-numeric: tabular-nums; }
.bb .sv-hero__facts-label { color: #FF8E9C; }
.lux-home .bb-call svg { background: linear-gradient(180deg, #EC5468, #A51C30); stroke: #fff; }
.bb-call:hover { color: #FF8E9C; }

.bb-ambient { --sv-ambient: rgba(229, 72, 93, .1); }

/* ══ Requests ═════════════════════════════════════════════════════ */
.bb-requests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.bb-req {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 22px 22px 22px;
  transition: transform .45s var(--hp-ease);
}
.lux-home .bb-req.visible:hover { transform: translateY(-4px); }
.bb-req.is-urgent { border-color: var(--bb-red-line); }
.bb-req.is-urgent::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 120% at 0% 50%, var(--bb-red-soft), transparent 70%);
  pointer-events: none;
}
.bb-req.is-past { opacity: .55; }
.bb-req.is-past .bb-req__drop { filter: grayscale(.8); }

/* the drop badge — a true teardrop (rotated square with one sharp corner) */
.bb-req__drop,
.bb-donor__drop,
.bb-compat__drop {
  --d: 64px;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) * .16) calc(var(--d) * .12) 0;
  border-radius: 0 50% 50% 50%;
  background: radial-gradient(circle at 70% 70%, #FF9AA6, #E5485D 42%, #8E1526 100%);
  box-shadow: inset -3px -3px 5px rgba(255, 255, 255, .35), inset 6px 6px 14px rgba(0, 0, 0, .28), 0 18px 30px -14px var(--bb-red-glow);
  transform: rotate(45deg);
}
.bb-req__drop span,
.bb-donor__drop span,
.bb-compat__drop span { transform: rotate(-45deg); color: #fff; font-family: var(--hp-serif); font-size: 24px; font-weight: 600; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.bb-req.is-urgent .bb-req__drop { animation: bb-throb 1.6s ease-in-out infinite; }
@keyframes bb-throb { 50% { scale: 1.08; box-shadow: inset -3px -3px 5px rgba(255, 255, 255, .35), inset 6px 6px 14px rgba(0, 0, 0, .28), 0 0 0 8px rgba(229, 72, 93, .14), 0 18px 30px -14px var(--bb-red-glow); } }

.bb-req__body { min-width: 0; }
.bb-req__when { display: inline-flex; align-items: center; gap: 8px; color: var(--bb-red); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.bb-req.is-urgent .bb-req__when::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-red); box-shadow: 0 0 10px var(--bb-red); animation: bb-blink 1s steps(2) infinite; }
@keyframes bb-blink { 50% { opacity: .2; } }
.bb-req.is-past .bb-req__when { color: var(--hp-muted); }
.lux-home .bb-req h3 { margin: 6px 0 10px; font-family: var(--hp-serif); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--hp-heading); overflow-wrap: anywhere; }
.bb-req__info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.bb-req__info li { display: inline-flex; align-items: center; gap: 7px; color: var(--hp-text); font-size: 13.5px; }
.bb-req__info svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--bb-red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bb-req__call { min-height: 46px; padding: 0 18px; font-size: 11px; white-space: nowrap; }
.bb-req__call svg { width: 15px; height: 15px; }
.lux-home .bb-req__call:hover svg { transform: none; }

/* ══ Finder ═══════════════════════════════════════════════════════ */
.bb-finder { display: grid; gap: 14px; margin-bottom: 26px; }
.bb-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; }
.bb-chip {
  min-width: 58px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--hp-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--hp-heading);
  font-family: var(--hp-serif);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .3s var(--hp-ease), box-shadow .3s ease;
}
.bb-chip:first-child { font-family: var(--hp-sans); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.bb-chip:hover { border-color: var(--bb-red-line); color: var(--bb-red); transform: translateY(-2px); }
.bb-chip.is-active { border-color: transparent; background: linear-gradient(180deg, #EC5468, #A51C30); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -12px var(--bb-red-glow); }

.bb-compat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
}
.bb-compat[hidden] { display: none; }
.bb-compat.is-in { animation: sv-rise .6s var(--hp-ease) both; }
.bb-compat__drop { --d: 72px; }
.bb-compat__drop span { font-size: 28px; }
.bb-compat__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.bb-compat__rows small,
.bb-compat__count small { display: block; color: var(--hp-muted); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.bb-compat__rows p { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.bb-compat__rows p span { padding: 5px 10px; border: 1px solid var(--bb-red-line); background: var(--bb-red-soft); color: var(--hp-heading); font-size: 13px; font-weight: 600; }
.bb-compat__count { text-align: right; }
.bb-compat__count strong { display: block; font-family: var(--hp-serif); font-size: 50px; font-weight: 500; line-height: 1; color: var(--bb-red); }

.bb-donors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bb-donor { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; transition: transform .4s var(--hp-ease), box-shadow .4s ease; }
.bb-donor[hidden] { display: none; }
.lux-home .bb-donor.visible:hover { transform: translateY(-4px); }
.bb-donor.is-exact { border-color: var(--bb-red-line); box-shadow: inset 0 1px 0 var(--sv-glass-hi), 0 0 0 1px var(--bb-red-line), var(--sv-glass-shadow); }
.bb-donor__drop { --d: 46px; }
.bb-donor__drop span { font-size: 17px; }
.lux-home .bb-donor h3 { margin: 0 0 4px; font-family: var(--hp-serif); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--hp-heading); overflow-wrap: anywhere; }
.bb-donor p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--hp-muted); font-size: 13px; }
.bb-donor p svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--bb-red); stroke-width: 1.6; }
.bb-donor__last { margin-top: 3px !important; font-size: 12px !important; }
.bb-donor__call {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bb-red-line);
  border-radius: 50%;
  color: var(--bb-red);
  transition: background .3s ease, color .3s ease, transform .3s var(--hp-ease);
}
.bb-donor__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bb-donor__call:hover { background: linear-gradient(180deg, #EC5468, #A51C30); border-color: transparent; color: #fff; transform: scale(1.06); }
.bb-none { margin: 22px 0 0; color: var(--hp-muted); text-align: center; }
.bb-none a { color: var(--bb-red); }

/* empty states */
.bb-empty { max-width: 640px; margin: 0 auto; padding: 46px 34px; text-align: center; }
.bb-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #FF9AA6, #E5485D 45%, #8E1526 100%); box-shadow: 0 14px 28px -12px var(--bb-red-glow); }
.bb-empty__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lux-home .bb-empty h3 { margin: 18px 0 8px; font-family: var(--hp-serif); font-size: 28px; font-weight: 600; color: var(--hp-heading); }
.bb-empty p { margin: 0 0 22px; color: var(--hp-muted); }
.bb-empty p:last-child { margin-bottom: 0; }

/* ══ Steps (red variant of the service process) ═══════════════════ */
.bb-steps::after { background: linear-gradient(90deg, #8E1526, #FF7A8A, #E5485D); box-shadow: 0 0 14px rgba(229, 72, 93, .6); transition: transform 1.6s var(--hp-ease) .3s; }
.bb-steps .sv-step__node { background: radial-gradient(circle at 32% 28%, #FFC2CA, #E5485D 52%, #8E1526 100%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .6), inset 0 -6px 12px rgba(0, 0, 0, .25), 0 14px 30px -12px var(--bb-red-glow); }
.bb-steps .sv-step__node::after { border-color: var(--bb-red-line); }
.bb-steps .sv-step__node span { color: #fff; }
@media (min-width: 1101px) { .bb-steps::before, .bb-steps::after { right: calc((100% - 54px) / 4 - 32px); } }

/* ══ Eligibility ═════════════════════════════════════════════════ */
.bb-elig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.bb-elig .hp-lead { margin-top: 22px; }
.bb-elig__actions { margin-top: 30px; }
.bb-elig__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bb-elig__list li { padding: 26px 22px; }
.bb-elig__list strong { display: block; font-family: var(--hp-serif); font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1; color: var(--bb-red); }
.bb-elig__list span { display: block; margin-top: 10px; color: var(--hp-muted); font-size: 14px; }

/* ══ CTA band ═════════════════════════════════════════════════════ */
.bb-cta {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0;
  overflow: hidden;
  background:
    radial-gradient(50% 120% at 15% 0%, rgba(255, 140, 155, .35), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(60, 0, 10, .55), transparent 60%),
    linear-gradient(120deg, #8E1526, #C41E3A 55%, #7A0F1F);
  text-align: center;
  isolation: isolate;
}
.bb-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.lux-home .bb-cta .hp-eyebrow { color: #FFD3D9; }
.lux-home .bb-cta .hp-eyebrow::before,
.lux-home .bb-cta .hp-eyebrow::after { background: #FFD3D9; }
.lux-home .bb-cta h2 { max-width: 820px; margin: 14px auto 0; font-family: var(--hp-serif); font-size: clamp(36px, 4.6vw, 64px); font-weight: 400; line-height: 1.08; color: #fff; }
.lux-home .bb-cta h2 em { color: #FFD3D9; font-style: italic; }
.bb-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* ══ Form pages ═══════════════════════════════════════════════════ */
.bb-formpage {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 100px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
  background: #0E0809;
}
.bb-formpage__media { position: absolute; inset: 0; z-index: -3; }
.bb-formpage__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.bb-formpage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 70% at 10% 20%, rgba(196, 30, 58, .38), transparent 60%),
    radial-gradient(40% 60% at 95% 90%, rgba(201, 168, 76, .14), transparent 60%),
    linear-gradient(90deg, rgba(10, 6, 6, .9), rgba(10, 6, 6, .7));
}
.bb-pulse--form { bottom: 2%; opacity: .3; }

.bb-formpage__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(36px, 6vw, 90px); align-items: center; }
.bb-formpage__copy > * { animation: sv-rise .9s var(--hp-ease) both; }
.bb-formpage__copy > :nth-child(2) { animation-delay: .08s; }
.bb-formpage__copy > :nth-child(3) { animation-delay: .16s; }
.bb-formpage__copy > :nth-child(4) { animation-delay: .24s; }
.bb-formpage__copy > :nth-child(5) { animation-delay: .32s; }
.lux-home .bb-formpage h1 { margin: 18px 0 18px; font-family: var(--hp-serif); font-size: clamp(42px, 5.2vw, 74px); font-weight: 400; line-height: 1.02; color: #fff; }
.bb-formpage__copy > p { max-width: 520px; margin: 0; color: rgba(245, 240, 232, .78); font-size: clamp(15px, 1.2vw, 17.5px); font-weight: 300; line-height: 1.75; }
.bb-formpage .pg-crumbs { margin-bottom: 26px; }

.bb-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 122, 138, .45);
  border-radius: 999px;
  background: rgba(196, 30, 58, .18);
  color: #FFB3BD;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bb-alert i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A6E; box-shadow: 0 0 10px #FF5A6E; animation: bb-blink 1s steps(2) infinite; }

.bb-perks { display: grid; gap: 14px; max-width: 480px; margin: 34px 0 0; padding: 0; list-style: none; }
.bb-perks li { display: flex; align-items: center; gap: 14px; }
.bb-perks__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid rgba(255, 122, 138, .4); border-radius: 50%; background: rgba(196, 30, 58, .16); }
.bb-perks__icon svg { width: 19px; height: 19px; fill: none; stroke: #FF8E9C; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bb-perks strong { display: block; color: #fff; font-size: 15px; font-weight: 500; }
.bb-perks small { display: block; margin-top: 2px; color: rgba(245, 240, 232, .62); font-size: 13px; }
.bb-perks a { color: #FF8E9C; }

/* the form card — always a dark glass panel over the photo, in both themes */
.lux-home .bb-form {
  --hp-heading: #fff;
  --hp-text: #F5F0E8;
  --hp-muted: rgba(245, 240, 232, .62);
  --hp-line: rgba(255, 255, 255, .1);
  --hp-line-strong: rgba(255, 255, 255, .2);
  padding: clamp(26px, 3.2vw, 40px);
  background: linear-gradient(150deg, rgba(40, 18, 22, .78), rgba(16, 10, 11, .82));
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .8);
  animation: sv-rise 1s var(--hp-ease) .3s both;
}
.lux-home .bb-form::after { opacity: .8; background: linear-gradient(135deg, rgba(255, 122, 138, .7), transparent 35%, transparent 65%, rgba(232, 201, 122, .6)); }
html[data-theme="light"] .lux-home .bb-form {
  --hp-heading: #15181C;
  --hp-text: #2A2E33;
  --hp-muted: #626A73;
  --hp-line: rgba(28, 30, 26, .1);
  --hp-line-strong: rgba(28, 30, 26, .2);
  background: linear-gradient(150deg, rgba(255, 255, 255, .97), rgba(255, 247, 248, .92));
  border-color: rgba(194, 31, 54, .14);
  box-shadow: inset 0 1px 0 #fff, 0 40px 80px -30px rgba(0, 0, 0, .55);
}

.bb-form__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--hp-line); }
.bb-form__drop { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #FF9AA6, #E5485D 45%, #8E1526 100%); box-shadow: 0 12px 24px -10px var(--bb-red-glow); }
.bb-form__drop svg { width: 22px; height: 22px; fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-width: 1.6; }
.bb-form .pp-role { color: var(--bb-red-hi); }
html[data-theme="light"] .bb-form .pp-role { color: var(--bb-red); }
.lux-home .bb-form h2 { margin: 2px 0 0; font-family: var(--hp-serif); font-size: 28px; font-weight: 600; color: var(--hp-heading); }

/* floating-label fields */
.bb-field { position: relative; margin-bottom: 16px; }
.bb-field input {
  width: 100%;
  height: 60px;
  padding: 24px 18px 8px;
  border: 1px solid var(--hp-line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--hp-heading);
  font-family: var(--hp-sans);
  font-size: 15.5px;
  outline: none;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
          appearance: none;
}
html[data-theme="light"] .bb-field input { background: #fff; }
.bb-field label {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--hp-muted);
  font-size: 15px;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: transform .25s var(--hp-ease), color .25s ease, top .25s var(--hp-ease);
}
.bb-field input:focus { border-color: var(--bb-red); background: rgba(229, 72, 93, .06); box-shadow: 0 0 0 4px rgba(229, 72, 93, .14); }
.bb-field input:focus + label,
.bb-field input:not(:placeholder-shown) + label,
.bb-field--date label { top: 14px; color: var(--bb-red-hi); transform: translateY(-50%) scale(.74); letter-spacing: .06em; }
html[data-theme="light"] .bb-field input:focus + label,
html[data-theme="light"] .bb-field input:not(:placeholder-shown) + label,
html[data-theme="light"] .bb-field--date label { color: var(--bb-red); }
.bb-field input[type="date"] { color-scheme: dark; }
html[data-theme="light"] .bb-field input[type="date"] { color-scheme: light; }
.bb-field.is-invalid input,
.bb-stepper.is-invalid .bb-stepper__ctrl { border-color: #FF5A6E; box-shadow: 0 0 0 4px rgba(255, 90, 110, .15); }
.bb-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

/* blood group picker */
.bb-groups { margin: 4px 0 18px; padding: 0; border: 0; min-width: 0; }
.bb-groups legend { margin-bottom: 10px; padding: 0; color: var(--hp-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.bb-groups__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bb-groups__item { position: relative; cursor: pointer; }
.bb-groups__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bb-groups__item span {
  display: grid;
  place-items: center;
  height: 52px;
  border: 1px solid var(--hp-line-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--hp-heading);
  font-family: var(--hp-serif);
  font-size: 21px;
  font-weight: 600;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s var(--hp-ease), box-shadow .25s ease;
}
.bb-groups__item:hover span { border-color: var(--bb-red-line); transform: translateY(-2px); }
.bb-groups__item input:focus-visible + span { box-shadow: 0 0 0 3px rgba(229, 72, 93, .45); }
.bb-groups__item input:checked + span {
  border-color: transparent;
  background: linear-gradient(180deg, #EC5468, #A51C30);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 24px -12px var(--bb-red-glow);
  animation: bb-pop .35s var(--hp-ease);
}
@keyframes bb-pop { 50% { transform: scale(1.08); } }
.bb-groups.is-invalid .bb-groups__item span { border-color: rgba(255, 90, 110, .6); }

/* units stepper */
.bb-stepper { margin-bottom: 16px; }
.bb-stepper__label { display: block; margin-bottom: 6px; color: var(--hp-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.bb-stepper__ctrl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; height: 40px; border: 1px solid var(--hp-line-strong); transition: border-color .25s ease; }
.bb-stepper__ctrl:focus-within { border-color: var(--bb-red); }
.bb-stepper button { border: 0; background: transparent; color: var(--bb-red-hi); font-size: 20px; cursor: pointer; transition: background .25s ease; }
html[data-theme="light"] .bb-stepper button { color: var(--bb-red); }
.bb-stepper button:hover { background: rgba(229, 72, 93, .12); }
.bb-stepper input { width: 100%; min-width: 0; border: 0; border-left: 1px solid var(--hp-line); border-right: 1px solid var(--hp-line); background: transparent; color: var(--hp-heading); font-family: var(--hp-serif); font-size: 20px; font-weight: 600; text-align: center; outline: none; -moz-appearance: textfield; }
.bb-stepper input::-webkit-outer-spin-button,
.bb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bb-field-row .bb-field--date input { height: 60px; }
.bb-field-row:has(.bb-stepper) { align-items: end; }

.bb-form__error { margin: 4px 0 14px; padding: 12px 14px; border-left: 3px solid #FF5A6E; background: rgba(255, 90, 110, .12); color: #FFB3BD; font-size: 13.5px; }
html[data-theme="light"] .bb-form__error { color: #8E1526; }
.bb-form__error[hidden] { display: none; }
.bb-form__submit { width: 100%; min-height: 58px; margin-top: 6px; }
.bb-form__submit.is-busy { pointer-events: none; opacity: .8; }
.bb-form__submit.is-busy svg { animation: bb-spin .8s linear infinite; }
@keyframes bb-spin { to { transform: rotate(360deg); } }
.bb-form__note { margin: 16px 0 0; color: var(--hp-muted); font-size: 13.5px; text-align: center; }
.bb-form__note a { color: var(--bb-red-hi); text-decoration: none; border-bottom: 1px solid currentColor; }
html[data-theme="light"] .bb-form__note a { color: var(--bb-red); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bb-requests { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .bb-formpage__layout,
  .bb-elig { grid-template-columns: minmax(0, 1fr); }
  .bb-form { max-width: 600px; }
  .bb-compat { grid-template-columns: auto minmax(0, 1fr); }
  .bb-compat__count { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .bb-compat__count strong { font-size: 36px; }
}

@media (max-width: 640px) {
  .bb-req { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px; }
  .bb-req__drop { --d: 52px; }
  .bb-req__drop span { font-size: 20px; }
  .bb-req__call { grid-column: 1 / -1; width: 100%; }
  .bb-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-chip { min-width: 0; }
  .bb-chip:first-child { grid-column: 1 / -1; }
  .bb-compat { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .bb-compat__drop { --d: 58px; }
  .bb-compat__rows { grid-template-columns: 1fr; }
  .bb-donors { grid-template-columns: 1fr; }
  .bb-elig__list li { padding: 20px 16px; }
  .bb-field-row { grid-template-columns: 1fr; }
  .bb-groups__grid { gap: 6px; }
  .bb-groups__item span { height: 48px; font-size: 19px; }
  .bb-cta__actions .sv-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-pulse path, .bb-req.is-urgent .bb-req__drop, .bb-alert i, .bb-req.is-urgent .bb-req__when::before { animation: none; }
  .bb-pulse path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .bb-formpage__copy > *, .lux-home .bb-form { animation: none; }
}
