/* Recipient flow — mobile-first. Pixel-tuned against screens.jsx from the Claude Design handoff. */

/* ── Banner ─────────────────────────────── */
.bh-banner {
  position: relative;
  width: 100%;
  height: 168px;
  background: var(--bh-cream);
  border-bottom: 1px solid var(--bh-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.bh-banner__logo {
  height: 76px;
  width: auto;
  max-width: 100%;
  display: block;
}
.bh-banner-rule {
  height: 3px;
  width: 100%;
  background: var(--bh-accent);
}

/* ── Page container ─────────────────────── */
.bh-recipient {
  max-width: 390px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  min-height: calc(100vh - 171px);
  display: flex;
  flex-direction: column;
}
.bh-recipient--centered > .bh-recipient__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 40px;
}

/* ── Typography ─────────────────────────── */
.bh-h1 {
  font-family: var(--bh-font-serif);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bh-ink);
  margin: 0 0 12px;
}
.bh-body-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--bh-body);
  margin: 0 0 24px;
}
.bh-eyebrow {
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--bh-muted);
  margin: 0 0 8px;
}
.bh-footnote {
  color: var(--bh-primary);
  font-size: 12.5px;
  text-align: center;
  margin: 12px 0 0;
}
.bh-muted { color: var(--bh-muted); font-size: 12.5px; }
.bh-center { text-align: center; }

.bh-quiet-footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--bh-muted);
  letter-spacing: 0.1px;
}

/* ── Stacks ─────────────────────────────── */
.bh-stack-14 { display: flex; flex-direction: column; gap: 14px; }
.bh-stack-20 > * + * { margin-top: 20px; }
.bh-stack-top-24 { margin-top: 24px; }

/* ── Buttons ────────────────────────────── */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: var(--bh-radius-md);
  font-family: var(--bh-font-sans);
  font-weight: 550;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: filter .12s ease, transform .12s ease, box-shadow .12s ease;
}
.bh-btn:hover:not(:disabled) { filter: brightness(0.96); }
.bh-btn:active:not(:disabled) { transform: scale(0.99); }
.bh-btn:disabled { opacity: .5; cursor: not-allowed; }

.bh-btn--xl { padding: 22px 24px; font-size: 19px; min-height: 64px; }
.bh-btn--lg { padding: 18px 22px; font-size: 17px; min-height: 56px; }
.bh-btn--md { padding: 12px 16px; font-size: 15px; min-height: 44px; }

.bh-btn--primary { background: var(--bh-primary); color: #fff; }
.bh-btn--positive { background: var(--bh-positive); color: #fff; }
.bh-btn--neutral {
  background: #fff;
  color: var(--bh-ink);
  box-shadow: inset 0 0 0 1.5px var(--bh-hairline);
}
.bh-btn--neutral:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--bh-primary); filter: none; }

/* button_to renders a form — strip its default styles */
form.button_to { margin: 0; }
form.button_to > .bh-btn { width: 100%; }

/* ── Platform card (review routing) ─────── */
.bh-platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  min-height: 72px;
  background: #fff;
  border: 1.5px solid var(--bh-hairline);
  border-radius: var(--bh-radius-md);
  text-decoration: none;
  color: var(--bh-ink);
  box-sizing: border-box;
  transition: border-color .12s ease, transform .12s ease;
  margin-bottom: 12px;
}
.bh-platform-card:hover { border-color: var(--bh-primary); }
.bh-platform-card:active { transform: scale(0.99); }
.bh-platform-card__icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--bh-hairline-soft);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-platform-card__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bh-platform-card__label { font-size: 16px; font-weight: 550; letter-spacing: -0.1px; }
.bh-platform-card__sub { font-size: 12.5px; color: var(--bh-muted); }
.bh-platform-card__chevron { color: var(--bh-muted); display: flex; }

.bh-back-link {
  font-size: 15px;
  color: var(--bh-primary);
  font-weight: 550;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.bh-back-link:hover { text-decoration: underline; }

/* ── Feedback form ──────────────────────── */
.bh-privacy-block {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bh-primary-soft);
  border-radius: 10px;
  margin-bottom: 24px;
  color: var(--bh-primary-dark);
}
.bh-privacy-block__icon { flex-shrink: 0; margin-top: 1px; }
.bh-privacy-block__text { font-size: 13.5px; line-height: 1.45; }

.bh-form { display: flex; flex-direction: column; gap: 18px; }

.bh-field { border: none; padding: 0; margin: 0; }
.bh-label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: var(--bh-ink);
  letter-spacing: -0.1px;
  margin-bottom: 6px;
}
.bh-label__required { color: var(--bh-danger); margin-left: 2px; }

.bh-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--bh-hairline);
  border-radius: 10px;
  font-family: var(--bh-font-sans);
  font-size: 16px;
  color: var(--bh-ink);
  background: #fff;
  resize: vertical;
  line-height: 1.5;
  outline: none;
  transition: box-shadow .12s, border-color .12s;
  box-sizing: border-box;
}
.bh-textarea:focus {
  border-color: var(--bh-primary);
  box-shadow: 0 0 0 4px var(--bh-primary-soft);
}

.bh-stars { display: flex; gap: 8px; }
.bh-star {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--bh-hairline);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s, color .12s;
  color: var(--bh-muted);
}
.bh-star input { position: absolute; opacity: 0; pointer-events: none; }
.bh-star svg { fill: none; }
.bh-star:hover { border-color: var(--bh-primary); }

/* Fill the selected star and every preceding sibling.
   CSS has no previous-sibling combinator, so we invert: select stars that
   either contain a checked input, or are followed by one that does. */
.bh-star:has(input:checked),
.bh-star:has(~ .bh-star input:checked) {
  background: var(--bh-primary-soft);
  border-color: var(--bh-primary);
  color: var(--bh-primary);
}
.bh-star:has(input:checked) svg,
.bh-star:has(~ .bh-star input:checked) svg { fill: currentColor; }

.bh-followup {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 2px 0;
  font-family: var(--bh-font-sans);
}
.bh-followup input { margin-top: 3px; accent-color: var(--bh-primary); width: 18px; height: 18px; }
.bh-followup__label { font-size: 15px; color: var(--bh-ink); font-weight: 500; display: block; }
.bh-followup__sub { font-size: 13px; color: var(--bh-muted); margin-top: 2px; display: block; }

/* ── Thanks / error marks ───────────────── */
.bh-thanks-mark {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.bh-thanks-mark--positive { background: var(--bh-positive-soft); color: var(--bh-positive); }
.bh-thanks-mark--neutral { background: var(--bh-primary-soft); color: var(--bh-primary); }

.bh-error-mark {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bh-warn-soft);
  color: var(--bh-warn);
}

/* ── Dev home page ──────────────────────── */
.bh-dev-home {
  max-width: 560px;
  margin: 6rem auto;
  padding: 2rem;
}
.bh-dev-home code {
  background: var(--bh-primary-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
