/* ═══════════════════════════════════════════════
   DONATE PAGE — SPA X OB
   Requires: styles.css loaded first (CSS vars)
═══════════════════════════════════════════════ */

/* ─── DONATE HERO ─── */
.donate-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.donate-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--coast);
  margin-bottom: 1.25rem;
}
.donate-hero__lede {
  color: var(--muted);
  line-height: 1.8;
  max-width: 54ch;
  margin: 0 auto 2.5rem;
  font-size: 1.06rem;
}

/* ─── PHONE PILL ─── */
.donate-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,0.98) 0%, rgba(255,244,247,0.92) 100%);
  border: 1px solid rgba(240,156,184,0.4);
  box-shadow: 0 8px 32px rgba(17,17,17,0.08), 0 2px 8px rgba(240,156,184,0.2);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.donate-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(17,17,17,0.12), 0 4px 16px rgba(240,156,184,0.25);
}
.donate-phone__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--pink);
}
.donate-phone__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--coast);
  letter-spacing: 0.02em;
}

/* ─── DONATE SECTION ─── */
.donate-section {
  padding: 3rem 0 5rem;
  text-align: center;
}
.donate-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--coast);
  margin-bottom: 0.75rem;
}
.donate-section__note {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
  max-width: 580px;
  margin: 0 auto 2.8rem;
}

/* ─── AMOUNT GRID ─── */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0 auto;
  max-width: 720px;
}
.donate-amount {
  position: relative;
  padding: 1.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(17,17,17,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,252,248,0.82) 100%);
  box-shadow: 0 8px 24px rgba(17,17,17,0.06);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--coast);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  text-align: center;
  overflow: hidden;
}
.donate-amount:hover {
  transform: translateY(-5px);
  border-color: rgba(240,156,184,0.5);
  background: linear-gradient(180deg, #fff 0%, #fff4f7 100%);
  box-shadow: 0 20px 48px rgba(17,17,17,0.1), 0 4px 12px rgba(240,156,184,0.2);
}
.donate-amount:active { transform: translateY(-2px); }
.donate-amount .amount-label {
  display: block;
  font-size: 0.64rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 0.35rem;
}

/* ─── CUSTOM AMOUNT CARD ─── */
.donate-custom {
  max-width: 520px;
  margin: 2.2rem auto 0;
  padding: 1.8rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,250,240,0.92) 100%);
  border: 1.5px solid rgba(17,17,17,0.09);
  box-shadow: 0 8px 32px rgba(17,17,17,0.07);
  text-align: left;
}
.donate-custom label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.85rem;
}
.donate-custom__row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.donate-custom__input {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(17,17,17,0.12);
  border-radius: 999px;
  background: #fff;
  padding: 0 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.donate-custom__input:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(240,156,184,0.15);
}
.donate-custom__prefix {
  font-weight: 700;
  color: var(--coast);
  font-size: 1.1rem;
  padding-right: 0.2rem;
}
.donate-custom__input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.95rem 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--coast);
}
.donate-custom__input input::placeholder { color: #b0a9a0; }
.donate-custom__input input::-webkit-outer-spin-button,
.donate-custom__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donate-custom__input input[type=number] { -moz-appearance: textfield; }
.donate-custom__row .button {
  white-space: nowrap;
  padding: 0.9rem 1.6rem;
  flex-shrink: 0;
}

/* ─── MODAL OVERLAY ─── */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.donate-modal[hidden] { display: none; }
.donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(6px);
}

/* ─── MODAL CARD ─── */
.donate-modal__card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: linear-gradient(165deg, #fff 0%, #fff8f0 100%);
  border: 1.5px solid rgba(17,17,17,0.08);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(17,17,17,0.18), 0 8px 32px rgba(17,17,17,0.1);
  padding: 2.5rem;
  animation: donate-pop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes donate-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.donate-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17,17,17,0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.donate-modal__close:hover { background: rgba(17,17,17,0.12); color: var(--coast); }

.donate-modal__badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--coast);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

/* Numbered step list */
.donate-modal__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.85rem;
  counter-reset: steps;
}
.donate-modal__steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  counter-increment: steps;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.97rem;
}
.donate-modal__steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), rgba(125,189,223,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coast);
  margin-top: 0.15rem;
}
.donate-modal__steps b { color: var(--coast); }

/* Amazon CTA button */
.donate-modal .button--primary,
.donate-modal .button--wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: var(--coast);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(17,17,17,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.donate-modal .button--primary:hover,
.donate-modal .button--wide:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(17,17,17,0.25);
}

.donate-modal__recopy {
  display: block;
  margin: 1rem auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
  width: 100%;
  font-family: inherit;
}
.donate-modal__recopy:hover { color: var(--coast); }

.donate-modal__status {
  text-align: center;
  margin-top: 0.6rem;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--pink);
  font-weight: 600;
}

/* ─── TOAST NOTIFICATION ─── */
.donate-toast {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%) translateY(150%);
  z-index: 70;
  background: var(--coast);
  color: #fff;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(17,17,17,0.22);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  max-width: calc(100% - 3rem);
  text-align: center;
  pointer-events: none;
}
.donate-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 680px) {
  .donate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .donate-amount { font-size: 1.7rem; padding: 1.4rem 0.8rem; }
  .donate-custom { padding: 1.4rem 1.2rem; }
  .donate-custom__row { flex-direction: column; }
  .donate-custom__row .button { width: 100%; }
  .donate-phone { width: 100%; justify-content: center; }
  .donate-modal__card { padding: 2rem 1.5rem; }
  .donate-hero { padding: 4rem 0 2.5rem; }
}

@media (max-width: 400px) {
  .donate-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .donate-amount { font-size: 1.5rem; padding: 1.2rem 0.6rem; }
}
