/* campaign.css — Donation campaign page styles for Folia */
/* Uses design tokens from theme.css */

/* ===== CAMPAIGN HERO ===== */
.campaign-hero {
  padding: 140px 2rem 80px;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}
.campaign-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 50%, rgba(45,90,45,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(26,58,26,0.5) 0%, transparent 45%);
  pointer-events: none;
}
.campaign-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.campaign-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7ab87a;
  margin-bottom: 1.25rem;
}
.campaign-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #f8f4ed;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.campaign-sub {
  font-size: 1.05rem;
  color: rgba(248,244,237,0.72);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 3rem;
}

/* ===== PROGRESS BAR ===== */
.progress-section { margin-bottom: 2.5rem; }
.progress-bar-wrap {
  height: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #2d6a2d, var(--accent-warm));
  border-radius: 999px;
  transition: width 1.2s ease;
  min-width: 4px;
}
.progress-meta {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}
.progress-raised {
  font-size: 1.1rem;
  color: #f8f4ed;
}
.progress-raised strong { font-weight: 700; }
.progress-goal {
  font-size: 0.9rem;
  color: rgba(248,244,237,0.55);
}

/* ===== IMPACT GRID ===== */
.impact-grid {
  display: flex;
  gap: 1.5rem;
}
.impact-card {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}
.impact-card--secondary {
  background: rgba(212,168,67,0.1);
  border-color: rgba(212,168,67,0.25);
}
.impact-value {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #f8f4ed;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.impact-card--secondary .impact-value { color: var(--accent-warm); }
.impact-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(248,244,237,0.6);
  line-height: 1.4;
}

/* ===== DONATION SECTION ===== */
.donation-section {
  padding: 5rem 2rem;
  background: var(--bg);
}
.donation-inner {
  max-width: 680px;
  margin: 0 auto;
}
.donation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.donation-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.donation-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

/* ===== AMOUNT SELECTOR ===== */
.amount-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.amount-option {
  position: relative;
  cursor: pointer;
}
.amount-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.amount-label {
  display: block;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
.amount-option input:checked + .amount-label {
  border-color: var(--accent);
  background: var(--green-light);
  color: var(--accent);
}
.amount-option:hover .amount-label {
  border-color: var(--accent);
}

/* ===== CUSTOM AMOUNT ===== */
.custom-amount-wrap { margin-bottom: 1.5rem; }
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: var(--surface);
  transition: border-color 0.2s;
  outline: none;
}
.field-input:focus { border-color: var(--accent); }
.field-input::placeholder { color: var(--fg-muted); opacity: 0.6; }

/* ===== FORM ROW ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.field-group { margin-bottom: 0; }

/* ===== SUBMIT BUTTON ===== */
.donate-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.donate-btn:hover:not(:disabled) { background: var(--green-mid); transform: translateY(-1px); }
.donate-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  color: #c0392b;
  font-size: 0.875rem;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ===== RECENT DONORS ===== */
.recent-donors {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.recent-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.donor-list { display: flex; flex-direction: column; gap: 0.5rem; }
.donor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.donor-row:last-child { border-bottom: none; }
.donor-name { color: var(--fg); font-weight: 500; }
.donor-amount { color: var(--accent); font-weight: 600; }

/* ===== THANK YOU PAGE ===== */
.thankyou-page {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.thankyou-inner {
  max-width: 520px;
  text-align: center;
  padding: 4rem 2rem;
}
.thankyou-icon { margin-bottom: 2rem; }
.thankyou-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.thankyou-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.thankyou-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 3rem;
}
.thankyou-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--green-light); }
.btn-ghost {
  padding: 0.75rem 1.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--fg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .campaign-hero { padding: 120px 1.5rem 60px; }
  .impact-grid { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .amount-selector { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { flex-direction: column; gap: 0.75rem; align-items: center; }
  .donation-card { padding: 1.75rem 1.5rem; }
}