/* ===========================
   DONATE PAGE
   =========================== */

.donate-hero {
  min-height: 36vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  background:
    linear-gradient(150deg, rgba(29,52,15,.92) 0%, rgba(123,45,62,.75) 100%),
    url('https://images.unsplash.com/photo-1516979187457-637abb4f9353?w=1400&q=80') center/cover no-repeat;
  color: var(--cream);
}
.donate-hero h1 { color: #fff; margin-bottom: 1rem; }
.donate-hero p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 55ch; }

.donate-section { padding: 4rem 0 6rem; }

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

/* ---- Steps ---- */
.donate-form-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.donate-step.hidden { display: none; }

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.step-header h2 { margin: 0; font-size: 1.5rem; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.back-btn {
  background: none;
  border: none;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  margin-right: auto;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--amber); }

/* ---- Frequency ---- */
.freq-toggle {
  display: flex;
  background: var(--parchment);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 1.75rem;
  width: fit-content;
}
.freq-btn {
  padding: .5rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray);
  transition: all var(--transition);
  cursor: pointer;
}
.freq-btn.active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ---- Amount grid ---- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.amount-btn {
  padding: .9rem;
  border: 2px solid var(--light);
  border-radius: var(--radius);
  background: var(--parchment);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  transition: all var(--transition);
}
.amount-btn:hover { border-color: var(--amber); background: var(--cream); }
.amount-btn.active {
  border-color: var(--amber);
  background: var(--amber);
  color: #fff;
}

.custom-amount-wrap { margin-bottom: 1.75rem; }
.custom-amount-wrap label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: .5rem;
}
.custom-amount-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--light);
  border-radius: var(--radius);
  background: var(--parchment);
  overflow: hidden;
  transition: border-color var(--transition);
}
.custom-amount-input:focus-within { border-color: var(--amber); }
.dollar-sign {
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--forest);
  background: var(--light);
}
.custom-amount-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  color: var(--ink);
}

.btn--full { width: 100%; justify-content: center; }

/* ---- Donation summary ---- */
.donation-summary {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.donation-summary span { color: var(--amber); font-family: var(--font-head); font-size: 1.4rem; }

/* ---- Stripe ---- */
#payment-element {
  background: var(--parchment);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .9rem;
}

.stripe-setup-note {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: #555;
  margin-bottom: 1rem;
}
.stripe-setup-note code {
  background: rgba(0,0,0,.07);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .8rem;
}
.stripe-setup-note a { color: var(--amber); text-decoration: underline; }

.payment-message {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.payment-message.error { background: #fce8ed; color: var(--burgundy); }
.payment-message.success { background: #eaf4e0; color: var(--forest); }
.payment-message.hidden { display: none; }

.secure-note {
  text-align: center;
  font-size: .8rem;
  color: var(--gray);
  margin-top: .75rem;
  max-width: none;
}

/* ---- Spinner ---- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Success ---- */
.success-icon { font-size: 4rem; text-align: center; margin-bottom: 1rem; }
#step-success { text-align: center; padding: 1rem 0; }
#step-success h2 { margin-bottom: 1rem; }
#step-success p { margin-inline: auto; color: var(--gray); }

/* ---- Sidebar ---- */
.donate-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.trust-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.trust-card--green { background: var(--forest); color: var(--cream); }
.trust-card--green h3 { color: #fff; }
.trust-card--green p  { color: rgba(255,255,255,.8); }
.trust-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.trust-list { display: flex; flex-direction: column; gap: .6rem; }
.trust-list li { font-size: .88rem; color: var(--gray); }
.trust-card--green .trust-list li { color: rgba(255,255,255,.8); }
.trust-list a { color: var(--amber); text-decoration: underline; }
.trust-badges {
  display: flex;
  gap: .75rem;
}
.badge {
  flex: 1;
  background: var(--parchment);
  border-radius: var(--radius);
  padding: .75rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.4;
}

/* Checkbox label */
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--gray);
  font-weight: 400 !important;
  cursor: pointer;
}
.checkbox-label input { margin-top: .15rem; accent-color: var(--amber); flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .donate-grid { grid-template-columns: 1fr; }
  .donate-sidebar { flex-direction: row; flex-wrap: wrap; }
  .trust-card { flex: 1 1 240px; }
  .trust-badges { flex: 1 1 100%; }
}
@media (max-width: 500px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-form-wrap { padding: 1.5rem; }
}
