/* Minimal, on-brand styling for the standalone donation app. Mirrors the main
   site's navy/gold identity so it feels consistent if adopted. */
:root {
  --navy: #0d1925;
  --navy-deep: #060e17;
  --gold: #e8b858;
  --gold-deep: #8d6c2b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #2d3748;
  --muted: #4a5568;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(6, 14, 23, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(232, 184, 88, 0.10), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 3rem 1.25rem; }

h1 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  color: var(--navy);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.lead { color: var(--muted); margin: 0 0 2rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; padding: 0; }

.presets { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.preset {
  flex: 1 1 auto;
  min-width: 80px;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preset:hover { border-color: var(--gold); }
.preset[aria-pressed="true"] { border-color: var(--gold); background: #fdf8ec; }

div.custom, label.email { display: block; margin-bottom: 1.25rem; }
.custom > label, label.email > span, #fee-details > label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.input-money { display: flex; align-items: center; gap: 0.5rem; }
.input-money > span { font-size: 1.2rem; color: var(--muted); }

input[type="number"], input[type="email"], select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  min-width: 0;
  max-width: 100%;
  font-size: 1.05rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: #f0c060; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.link {
  background: none;
  border: 0;
  color: var(--gold-deep);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 0 1rem;
}
.link:hover { text-decoration: underline; }

.error {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  color: #7a271a;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

#checkout { min-height: 320px; }

a { color: var(--gold-deep); }

.note { color: var(--muted); font-size: 0.875rem; margin: 0.5rem 0 1rem; }
.fee-choice { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.check-label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; cursor: pointer; }
.check-label input { flex-shrink: 0; width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--navy); }
.donation-summary { margin: 1.5rem 0; font-variant-numeric: tabular-nums; }
.donation-summary > div { display: flex; justify-content: space-between; gap: 1rem; margin: 0.5rem 0; }
.donation-summary dd { margin: 0; white-space: nowrap; }
.summary-total { border-top: 1px solid var(--border); padding-top: 0.75rem; font-weight: 700; color: var(--navy); }
fieldset:disabled { opacity: 0.65; }
