/* ============================================================
   DONATE.CSS — JEUNES SCOLARISÉS
   Page: Donate — Invest in Youth Futures
   Aesthetic: Warm urgency · generous · hopeful · grounded
   Fonts: Cormorant Garamond (display) + Outfit (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ────────────────────────────────────────────
   ROOT TOKENS
──────────────────────────────────────────── */
:root {
  --green-deep:   #1b4d30;
  --green-mid:    #276140;
  --green-vivid:  #34a058;
  --gold:         #c8860a;
  --gold-warm:    #e9a825;
  --amber:        #f5c842;
  --cream:        #faf6ef;
  --parchment:    #f0e9d8;
  --ink:          #161c18;
  --text-dark:    #1a1a1a;
  --text-body:    #2e2e2e;
  --text-muted:   #5a5a5a;
  --white:        #ffffff;
  --border:       rgba(27, 77, 48, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --radius:       18px;
  --radius-sm:    10px;
  --radius-pill:  50px;
  --shadow:       0 6px 32px rgba(27, 77, 48, 0.09);
  --shadow-hover: 0 20px 60px rgba(27, 77, 48, 0.18);
  --transition:   all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────
   BASE
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  margin: 0;
}

/* ════════════════════════════════════════════
   SECTION WRAPPER
════════════════════════════════════════════ */
.section {
  position: relative;
  padding: 100px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Diagonal stripe background (full viewport) ── */
.section::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 40px,
      rgba(27, 77, 48, 0.025) 40px,
      rgba(27, 77, 48, 0.025) 41px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Gold sunburst glow top-right ── */
.section::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -200px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.section > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════ */

/* Eyebrow */
.section > h1::before {
  content: 'MAKE AN IMPACT TODAY';
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Title */
.section > h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--green-deep);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  max-width: 820px;

  /* Italic the "Invest…" part via em faux-style */
  animation: titleIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Subtitle */
.section > p:first-of-type {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.85;
  max-width: 580px;
  margin: 0 0 68px;
  padding-left: 22px;
  border-left: 4px solid var(--gold-warm);

  animation: paraIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

@keyframes paraIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ════════════════════════════════════════════
   PAYMENT CARD GRID
════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 80px;

  animation: gridIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

@keyframes gridIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ════════════════════════════════════════════
   PAYMENT METHOD CARD  (.card)
════════════════════════════════════════════ */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 44px 40px 40px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Top gradient bar ── */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* MoMo card — gold gradient */
.card:nth-child(1)::before {
  background: linear-gradient(to right, var(--gold), var(--amber));
}

/* Bank card — green gradient */
.card:nth-child(2)::before {
  background: linear-gradient(to right, var(--green-mid), var(--green-vivid));
}

/* ── Large watermark icon ── */
.card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.045;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card:nth-child(1)::after {
  background: var(--gold);
}

.card:nth-child(2)::after {
  background: var(--green-vivid);
}

.card:hover::after {
  opacity: 0.09;
  transform: scale(1.15);
}

/* ── Hover lift ── */
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 168, 37, 0.28);
}

/* ── Card icon label (MoMo / Bank) ── */
.card:nth-child(1) h3::before {
  content: '📱';
  margin-right: 10px;
  font-style: normal;
}

.card:nth-child(2) h3::before {
  content: '🏦';
  margin-right: 10px;
  font-style: normal;
}

/* ── Card heading (h3) ── */
.card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 16px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--green-mid);
}

/* ── Description paragraph ── */
.card p:first-of-type {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 20px;
  font-weight: 300;
}

/* ── Contact info paragraph ── */
.card p:nth-of-type(2) {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--parchment);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-warm);
}

.card p:nth-of-type(2) strong {
  font-weight: 600;
  color: var(--green-deep);
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Action button in card ── */
.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ── Staggered entrance ── */
.card:nth-child(1) { animation: cardIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.30s both; }
.card:nth-child(2) { animation: cardIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.42s both; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Focus ring (accessibility) ── */
.card:focus-visible {
  outline: 3px solid var(--gold-warm);
  outline-offset: 4px;
}

/* ════════════════════════════════════════════
   FINAL CTA BLOCK  (.final-cta)
════════════════════════════════════════════ */
.final-cta {
  position: relative;
  background: var(--green-deep);
  border-radius: var(--radius);
  padding: 72px 48px 68px;
  overflow: hidden;
  text-align: center;

  animation: ctaIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.50s both;
}

@keyframes ctaIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Diagonal stripes on CTA bg */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,0.025) 18px,
      rgba(255,255,255,0.025) 19px
    );
  pointer-events: none;
}

/* Glowing bottom-right blob */
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta > * { position: relative; z-index: 1; }

/* Eyebrow inside CTA */
.final-cta::before {
  /* override for eyebrow — handled via h2::before */
}

.final-cta h2::before {
  content: 'PARTNERSHIP & SPONSORSHIP';
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

/* CTA heading */
.final-cta h2,
.final-cta h2.center {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* CTA subtext */
.final-cta p,
.final-cta p.center {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Utility classes ── */
.center { text-align: center !important; }

.mt-24 { margin-top: 24px !important; }
.mt-48 { margin-top: 48px !important; }

/* ── CTA Button ── */
.btn.btn-primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 42px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.btn.btn-primary::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.30) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn.btn-primary:hover,
.btn-primary:hover {
  background: var(--gold-warm);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(233, 168, 37, 0.45);
  color: var(--ink);
  text-decoration: none;
}

.btn.btn-primary:hover::before,
.btn-primary:hover::before {
  left: 140%;
}

/* ── Focus ring ── */
.btn.btn-primary:focus-visible,
.btn-primary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

/* ── Secondary Button ── */
.btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid var(--green-mid);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn.btn-secondary:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 77, 48, 0.25);
  text-decoration: none;
  border-color: var(--green-deep);
}

/* ── Security Note ── */
.security-note {
  text-align: center;
  margin: 40px 0 60px;
  padding: 20px;
  background: var(--parchment);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.security-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* ════════════════════════════════════════════
   DONATION FORM STYLES
════════════════════════════════════════════ */
.donation-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;

  animation: formIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.60s both;
}

@keyframes formIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Form Row (Bootstrap-like grid) ── */
.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* ── Form Groups ── */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-deep);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
  color: var(--gold);
}

.form-label .text-muted {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-label .text-danger {
  color: #dc3545;
}

/* ── Form Controls (inputs, textarea, select) ── */
.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 134, 10, 0.15);
  background: var(--cream);
  transform: translateY(-1px);
}

/* Input group for amount field */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--parchment);
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-left: 0;
}

.input-group .form-control:focus {
  border-left: none;
}

/* Textarea specific styling */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Select styling */
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Form Actions ── */
.form-actions {
  text-align: center;
  margin-top: 40px;
}

.form-actions .btn {
  min-width: 200px;
  font-size: 1.1rem;
  padding: 16px 32px;
  margin-bottom: 16px;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* ── Alert Styles ── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid;
  font-weight: 500;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.alert-success strong {
  color: #28a745;
  margin-right: 8px;
}

/* ── Invalid Feedback ── */
.invalid-feedback {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ════════════════════════════════════════════
   RESPONSIVE FORM
════════════════════════════════════════════ */
@media (max-width: 768px) {
  .donation-form {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 24px;
  }

  .form-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .section {
    padding: 80px 24px 100px;
  }

  .final-cta {
    padding: 56px 36px 52px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 64px 20px 80px;
  }

  .section > h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .section > p:first-of-type {
    margin-bottom: 48px;
    padding-left: 16px;
    border-left-width: 3px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 56px;
  }

  .card {
    padding: 36px 28px 32px;
  }

  .final-cta {
    padding: 48px 24px 44px;
    border-radius: var(--radius-sm);
  }

  .final-cta h2,
  .final-cta h2.center {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
}

@media (max-width: 575.98px) {
  .card p:last-of-type {
    font-size: 0.82rem;
  }

  .btn.btn-primary,
  .btn-primary {
    padding: 14px 32px;
    font-size: 0.9rem;
  }
}