/* ============================================================
   DONATE PAGE — combined donate + volunteer + yard-sign page
   Modeled after the Chuck West donation layout, restyled in
   Gary Parker brand (red accent / gold / ink / paper).
   ============================================================ */

.donate-page {
  background: var(--paper);
  padding: clamp(3rem, 5.5vw, 5rem) var(--gutter) clamp(3rem, 5vw, 4.5rem);
}
.donate-page__inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---- Intro ------------------------------------------------ */
.donate-page__intro {
  max-width: 760px;
  margin: 0 0 clamp(2rem, 3.5vw, 3rem);
}
.donate-page__intro .overline {
  border-top: 2px solid var(--gold);
  padding-top: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
}
.donate-page__intro .overline--mark .mark--gold {
  background: var(--gold); color: var(--ink);
}
.donate-page__h {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 0.96; letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.donate-page__sub {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}

/* ---- Two-column grid -------------------------------------- */
.donate-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) 340px;
  gap: clamp(1.5rem, 2.5vw, 2rem);
  align-items: start;
  justify-content: start;
}
@media (max-width: 980px) {
  .donate-page__grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

/* ============================================================
   DONATION FORM — Anedot iframe embed
   ============================================================ */
.dform-embed {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -28px rgba(15,27,45,0.32);
  overflow: hidden;
}
.dform-embed::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  z-index: 1;
}
.dform-embed__frame {
  display: block;
  width: 100%;
  height: 3200px;
  border: 0;
  background: #fff;
}

/* ============================================================
   DONATION FORM CARD
   ============================================================ */
.dform {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 24px 50px -28px rgba(15,27,45,0.32);
  display: flex; flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.dform::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

/* Brand strip in the card */
.dform__brand {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0.5rem;
}
.dform__brand-logo {
  height: 64px; width: auto;
  display: block;
}

/* Section labels */
.dform__label {
  font-family: var(--display); font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
}

/* Segmented control (one-time/monthly + card/bank) */
.dform__segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.dform__seg {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--body); font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dform__seg[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}
.dform__seg:hover:not([aria-pressed="true"]) { color: var(--ink); }
.dform__segmented--pay { margin-top: 0.5rem; }

/* Amount tiles grid */
.dform__amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 560px) {
  .dform__amounts { grid-template-columns: repeat(2, 1fr); }
}
.dform__amount {
  appearance: none;
  font-family: var(--display); font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 0.95rem 0.5rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dform__amount:hover { background: var(--accent-2); }
.dform__amount[aria-pressed="true"] {
  background: var(--ink);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.dform__amount--other {
  grid-column: 1 / -1;
  background: var(--accent);
}

/* Express checkout */
.dform__express {
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.dform__express-label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.dform__gpay {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem;
  background: var(--ink);
  color: var(--on-ink);
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--body); font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.dform__gpay:hover { background: var(--ink-2); }
.dform__gpay-mark {
  font-family: 'Arial', sans-serif; font-weight: 700;
  background: linear-gradient(135deg, #4285F4, #34A853 60%, #FBBC04 80%, #EA4335);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.1rem;
}

/* OR divider */
.dform__divider {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin: 0.2rem 0;
}
.dform__divider::before, .dform__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* Already have an account */
.dform__signin {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: right;
  margin: 0;
}
.dform__signin a { color: var(--accent); font-weight: 600; }
.dform__signin a:hover { color: var(--accent-2); text-decoration: underline; }

/* Fields */
.dform__field { display: flex; flex-direction: column; gap: 0.35rem; }
.dform__field label {
  font-family: var(--body); font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
}
.dform__req {
  color: var(--accent);
  margin-left: 2px;
}
.dform__field input,
.dform__field select,
.dform__field textarea {
  font-family: var(--body); font-size: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dform__field input:focus,
.dform__field select:focus,
.dform__field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(176,37,43,0.15);
}
.dform__field input::placeholder { color: rgba(90,104,120,0.55); }

/* Two-up row */
.dform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .dform__row { grid-template-columns: 1fr; }
}

/* Inline opt-in checkboxes */
.dform__opt {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}
.dform__opt input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  display: inline-grid; place-content: center;
  cursor: pointer;
}
.dform__opt input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.dform__opt input[type="checkbox"]:checked::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
.dform__opt em {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.2rem;
}

.dform__fine {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: -0.2rem 0 0;
}

/* Radios */
.dform__radios {
  border: 0; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.dform__radios legend {
  font-family: var(--body); font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0; margin: 0 0 0.4rem;
}
.dform__radio {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.dform__radio input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  display: inline-grid; place-content: center;
  cursor: pointer;
}
.dform__radio input[type="radio"]:checked {
  border-color: var(--accent);
}
.dform__radio input[type="radio"]:checked::after {
  content: '';
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 999px;
}
.dform__radios > .dform__radio { display: inline-flex; }
.dform__radios { flex-direction: row; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.dform__radios legend { width: 100%; }

/* Card number block */
.dform__field--card .dform__card-wrap {
  position: relative;
  display: flex; align-items: center;
}
.dform__field--card input {
  width: 100%;
  padding-right: 8.5rem;
}
.dform__card-brands {
  position: absolute; right: 0.7rem; top: 50%;
  transform: translateY(-50%);
  display: flex; gap: 0.35rem;
  pointer-events: none;
}
.dform__card-brands span {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.35rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}

/* Submit button */
.dform__submit {
  appearance: none;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  font-family: var(--display); font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  margin-top: 0.4rem;
}
.dform__submit:hover { background: var(--accent-2); }
.dform__submit:active { transform: translateY(1px); }
.dform__submit-amt {
  background: rgba(255,255,255,0.18);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.dform__secure {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.dform__lock { font-size: 0.95rem; }

.dform__paylogos {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  flex-wrap: wrap;
}
.dform__paylogos span {
  font-family: var(--display); font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
}
.dform__paylogos-note {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   ASIDE — SIDE CARDS
   ============================================================ */
.dside {
  display: flex; flex-direction: column;
  gap: 1rem;
}

.dside-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2vw, 1.6rem) clamp(1.3rem, 2vw, 1.6rem);
  overflow: hidden;
}

/* Dark ink — Why It Matters quote */
.dside-card--dark {
  background: var(--ink);
  color: var(--on-ink);
}
.dside-card__mark {
  position: absolute; top: -16px; right: -20px;
  width: 110px; height: 110px;
  background: radial-gradient(circle at 30% 30%, rgba(200,162,74,0.18), transparent 60%);
  border-radius: 999px;
  pointer-events: none;
}
.dside-card--dark .dside-card__label { color: var(--gold); }
.dside-card__quote {
  font-family: var(--display); font-weight: 500;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0 0 0.7rem;
  letter-spacing: -0.005em;
}
.dside-card__quote-glyph {
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.18em;
  margin-right: 0.05em;
  color: var(--gold);
  font-style: normal;
}
.dside-card__attr {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* Paper — Volunteer card */
.dside-card--paper {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.dside-card__h {
  font-family: var(--display); font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.dside-card__h--on-dark { color: #fff; }
.dside-card__body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.dside-card__body--on-dark { color: rgba(255,255,255,0.85); }
.dside-card__label {
  font-family: var(--mono); font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.dside-card__label--gold { color: var(--gold); }

.dside-card__list {
  list-style: none; padding: 0;
  margin: 0 0 1rem;
  display: flex; flex-direction: column;
  gap: 0.4rem;
}
.dside-card__list li {
  font-family: var(--body); font-size: 0.95rem;
  color: var(--ink);
  display: flex; align-items: center; gap: 0.55rem;
}
.dside-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 999px;
  flex: 0 0 6px;
}

/* CTA buttons inside side cards */
.dside-card__btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  font-family: var(--display); font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dside-card__btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.dside-card__btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}
.dside-card__btn--solid {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.dside-card__btn--solid:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Accent (red) yard sign card */
.dside-card--accent {
  background: var(--accent);
  color: #fff;
}
.dside-card--accent .dside-card__mark {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 60%);
}

/* Compliance line */
.donate-page__compliance {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--muted);
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  max-width: 90ch;
}
