/* ============================================================
   Hurtorius.com — donation tab (candlelit). Reuses the design tokens.
   Step 1: custom amount. Step 2: a dark Stripe Payment Element.
   ============================================================ */
.donate {
  max-width: 30rem;
  margin: clamp(2.5rem, 8vh, 5rem) auto;
  padding: 0 1.25rem clamp(3rem, 9vh, 6rem);
  text-align: center;
}
.donate > .heading-lum {
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 0;
}
.donate__intro {
  max-width: 24rem;
  margin: 1em auto 0;
  color: var(--ink-dim);
  text-shadow: var(--text-glow);
  text-wrap: pretty;
}

/* ---- step 1: presets + custom amount ---- */
.donate__amount-form { max-width: 22rem; margin: 1.8rem auto 0; }

.donate__chips { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 1.1rem; }
.donate__chip {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-dim);
  background: rgba(247, 233, 205, 0.03);
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  text-shadow: var(--text-glow);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.donate__chip:hover { color: var(--ink); border-color: rgba(233, 200, 120, 0.55); transform: translateY(-1px); }
.donate__chip.is-on {
  color: var(--ink);
  border-color: rgba(233, 200, 120, 0.7);
  background: rgba(247, 233, 205, 0.06);
  box-shadow: 0 0 16px rgba(255, 236, 196, 0.12);
}
.donate__chip:focus-visible { outline: 2px solid rgba(247, 233, 205, 0.7); outline-offset: 3px; }
.donate__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 16rem;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  background: rgba(247, 233, 205, 0.02);
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.donate__field:focus-within {
  border-color: rgba(233, 200, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 233, 205, 0.1), 0 0 16px rgba(255, 236, 196, 0.1);
}
.donate__cur { font-size: 1.4rem; color: var(--ink-dim); text-shadow: var(--text-glow); }
.donate__field input {
  flex: 1 1 auto;
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  text-shadow: var(--text-glow);
  -moz-appearance: textfield;
}
.donate__field input::-webkit-outer-spin-button,
.donate__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donate__field input::placeholder { color: rgba(203, 196, 182, 0.45); font-size: 1.1rem; }

/* ---- shared primary button ---- */
.donate__go {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(247, 233, 205, 0.05);
  border: 1px solid rgba(233, 200, 120, 0.45);
  border-radius: 8px;
  padding: 0.7rem 2rem;
  margin-top: 1.4rem;
  cursor: pointer;
  text-shadow: var(--text-glow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.donate__go:hover { background: rgba(247, 233, 205, 0.09); border-color: rgba(233, 200, 120, 0.75); box-shadow: 0 0 22px rgba(255, 236, 196, 0.14); transform: translateY(-1px); }
.donate__go:focus-visible { outline: 2px solid rgba(247, 233, 205, 0.7); outline-offset: 3px; }
.donate__go:disabled { opacity: 0.55; cursor: default; box-shadow: none; transform: none; }

.donate__status { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.2em; color: var(--ink-dim); }
.donate__status[data-kind="error"] { color: #e6b9b0; }

/* ---- step 2: payment ---- */
.donate__pay-form { max-width: 24rem; margin: 1.8rem auto 0; text-align: left; }
#donate-payment { min-height: 2rem; }
.donate__pay { display: block; width: 100%; margin-top: 1.5rem; text-align: center; }
.donate__back {
  display: block;
  margin: 0.9rem auto 0;
  padding: 0.3rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink-dim);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}
.donate__back:hover { color: var(--ink); }
.donate__back:focus-visible { outline: 2px solid rgba(247, 233, 205, 0.7); outline-offset: 2px; border-radius: 4px; }
.donate__pay-form .donate__status { text-align: center; }

/* ---- thank-you ---- */
.donate__thanks { margin-top: 1rem; }
.donate__thanks-line {
  margin: 0;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.7rem);
  font-style: italic;
  color: var(--ink);
  text-shadow: var(--text-glow-strong);
  text-wrap: balance;
}

@media (max-width: 600px) {
  .donate { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .donate__field, .donate__go, .donate__back { transition: none; }
}
