/* ==========================================================================
   Instituto para el Desarrollo Humano (IpDH - Bolivia)
   Donation Platform Stylesheet (HTML5 / CSS3 / JS)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Palette (IpDH Official Colors from Logo) */
  --primary-deep: #0a0847;         /* Deep Royal Navy */
  --primary: #120e80;              /* Official IpDH Royal Blue (#120e80) */
  --primary-hover: #1c16a6;        /* Vibrant Royal Blue */
  --primary-light: #eef0ff;        /* Soft Blue Surface */
  --primary-border: #c8cdff;

  --brand-yellow: #ffcf00;         /* Official IpDH Golden Yellow (#ffcf00) */
  --brand-yellow-hover: #e6ba00;   /* Slightly deeper yellow for hover */
  --brand-yellow-light: #fff9db;   /* Soft warm surface */
  --brand-yellow-dark: #8c6f00;    /* Accessible gold text */
  
  --accent-health: #10b981;
  --accent-health-light: #ecfdf5;
  --accent-warm: #ffcf00;
  --accent-warm-light: #fff9db;
  --accent-purple: #6c54d9;
  --accent-purple-light: #f5f3ff;
  --accent-whatsapp: #25D366;
  --accent-whatsapp-hover: #1ebd5a;

  /* Neutrals & Surfaces */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f3f5fb;
  
  --border-subtle: #e2e8f0;
  --border-focus: #120e80;

  /* Typography Colors */
  --text-main: #0c0d21;
  --text-muted: #576075;
  --text-light: #8e98ab;
  --text-inverse: #ffffff;

  /* Elevation / Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 14, 128, 0.05), 0 1px 2px rgba(18, 14, 128, 0.03);
  --shadow-md: 0 4px 10px -2px rgba(18, 14, 128, 0.08), 0 2px 5px -2px rgba(18, 14, 128, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(18, 14, 128, 0.12), 0 6px 14px -4px rgba(18, 14, 128, 0.06);
  --shadow-xl: 0 24px 38px -10px rgba(18, 14, 128, 0.18), 0 10px 16px -6px rgba(18, 14, 128, 0.08);
  --shadow-gold: 0 8px 24px rgba(255, 207, 0, 0.35);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
}

/* --- Layout Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--primary-deep);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-yellow);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-badge {
  font-weight: 700;
  color: var(--brand-yellow);
}

.top-divider {
  color: rgba(255, 255, 255, 0.3);
}

.external-link {
  color: var(--brand-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.external-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.nav-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--primary-deep);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px 28px;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  padding: 8px 0;
}

.mobile-nav-link.highlight {
  color: var(--primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(18, 14, 128, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(18, 14, 128, 0.38);
}

.btn-gold {
  background-color: var(--brand-yellow);
  color: var(--primary-deep);
  font-weight: 700;
  border: 1px solid #ebc000;
  box-shadow: 0 4px 14px rgba(255, 207, 0, 0.35);
}

.btn-gold:hover {
  background-color: var(--brand-yellow-hover);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 207, 0, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-outline-secondary {
  background-color: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-outline-secondary:hover {
  background-color: var(--bg-muted);
  color: var(--text-main);
}

.btn-whatsapp {
  background-color: var(--accent-whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--accent-whatsapp-hover);
  color: #ffffff;
}

.btn-light {
  background-color: #ffffff;
  color: var(--primary-deep);
}

.btn-light:hover {
  background-color: #f1f5f9;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 16px 32px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.shadow-glow {
  box-shadow: 0 8px 24px rgba(18, 14, 128, 0.35);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle.light {
  color: var(--brand-yellow);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title.light {
  color: #ffffff;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f7f8ff 0%, #fffdf0 50%, #f4f6ff 100%);
  padding: 80px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape-1 {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 14, 128, 0.08) 0%, rgba(18, 14, 128, 0) 70%);
}

.shape-2 {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 0, 0.16) 0%, rgba(255, 207, 0, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary-deep);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid #ffe57f;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 140px;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background-color: var(--border-subtle);
}

/* Hero Visual / QR Card Preview */
.hero-visual-col {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--primary-border);
  width: 100%;
  max-width: 400px;
  position: relative;
  transition: transform var(--transition-normal);
}

.hero-card:hover {
  transform: translateY(-4px);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.qr-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a6000;
  background-color: var(--brand-yellow-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
}

.hero-card-inst {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.hero-qr-frame {
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px dashed #cbd5e1;
}

.hero-qr-img {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.hero-card-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.hero-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.hero-guarantee-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--primary-deep);
  background-color: var(--brand-yellow-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-yellow);
}

/* --- Causes Grid --- */
.causes-section {
  background-color: #ffffff;
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.cause-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.cause-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.cause-card-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cause-card-icon-wrap img {
  width: 36px;
  height: 36px;
}

.icon-salud { background-color: #eef0ff; }
.icon-prevencion { background-color: #fff9db; }
.icon-social { background-color: #fffbeb; }
.icon-infraestructura { background-color: #f5f3ff; }

.cause-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 6px;
}

.cause-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.cause-desc {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.6;
}

.cause-features {
  list-style: none;
  font-size: 0.86rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.cause-card-footer {
  margin-top: auto;
}

/* --- 48-Hour Guarantee Highlight Notice --- */
.guarantee-banner {
  background: linear-gradient(135deg, #0a0847 0%, #17129c 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  border: 1px solid rgba(255, 207, 0, 0.2);
  border-left: 6px solid var(--brand-yellow);
  position: relative;
  overflow: hidden;
}

.guarantee-banner::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 207, 0, 0.15) 0%, rgba(255, 207, 0, 0) 70%);
  border-radius: 50%;
}

.guarantee-icon-box {
  background-color: rgba(255, 207, 0, 0.18);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-yellow);
}

.guarantee-text {
  flex: 1;
}

.guarantee-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.guarantee-body {
  font-size: 0.98rem;
  color: #eef0ff;
  line-height: 1.55;
}

.guarantee-badge {
  background-color: var(--brand-yellow);
  color: var(--primary-deep);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.guarantee-badge span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #614a00;
}

.guarantee-badge strong {
  font-size: 1.25rem;
  color: var(--primary-deep);
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
}

/* --- Donation Interactive Layout --- */
.donation-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.donation-form-card,
.donation-qr-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.card-inner-header {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  color: var(--primary-deep);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.form-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-inner-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 28px 0;
}

/* Form Controls */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.required {
  color: #ef4444;
}

.optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.label-help {
  font-size: 0.8rem;
  font-weight: 400;
  color: #0369a1;
  display: inline-block;
  margin-left: 4px;
}

/* Cause Chips */
.cause-selector-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.chip-item {
  position: relative;
  cursor: pointer;
}

.chip-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 12px;
  background-color: var(--bg-muted);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  transition: all var(--transition-fast);
}

.chip-item input[type="radio"]:checked + .chip-label {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  box-shadow: 0 0 0 1px var(--primary);
}

/* Amount Presets */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.amount-btn {
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.amount-btn:hover {
  background-color: var(--bg-muted);
  border-color: #94a3b8;
}

.amount-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--brand-yellow);
  box-shadow: 0 4px 14px rgba(18, 14, 128, 0.3);
}

.custom-amount-wrapper {
  margin-top: 10px;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: #64748b;
  font-size: 0.95rem;
}

.input-with-prefix .form-control {
  padding-left: 44px;
}

/* Inputs with Icons */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-with-icon .form-control {
  padding-left: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fff5f5;
}

.field-error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 500;
}

.field-error-msg.visible {
  display: block;
}

/* Form Checkbox */
.form-check-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  background-color: var(--bg-muted);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
  cursor: pointer;
}

.submit-donation-btn {
  margin-top: 10px;
}

/* --- Right Column: QR Presentation --- */
.qr-card-header {
  margin-bottom: 20px;
}

.qr-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #eff6ff;
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #0284c7;
}

.qr-header-title {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.qr-header-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Live Summary Pill */
.live-summary-pill {
  background: linear-gradient(135deg, #f7f8ff 0%, #fffde8 100%);
  border: 1.5px solid #ffe57f;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.live-summary-item {
  display: flex;
  flex-direction: column;
}

.live-label {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.live-value {
  font-size: 0.95rem;
  color: var(--primary-deep);
  font-weight: 600;
}

.live-value.highlight-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.live-summary-divider {
  width: 1px;
  height: 32px;
  background-color: #ffe57f;
}

/* QR Code Display */
.qr-code-presentation {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.qr-image-wrapper {
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  margin-bottom: 16px;
  max-width: 270px;
  border: 1px solid #e2e8f0;
}

.main-qr-image {
  width: 100%;
  height: auto;
  display: block;
}

.qr-action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Step-by-Step Payment Instructions */
.qr-instructions {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.instructions-heading {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--primary-deep);
}

.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.inst-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-deep);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.inst-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

/* Bank Account Accordion */
.bank-details-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--bg-muted);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: #e2e8f0;
}

.acc-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-chevron {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.bank-details-accordion.open .acc-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 16px 18px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.bank-details-accordion.open .accordion-body {
  display: block;
}

.bank-info-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 4px 0;
}

.info-key {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.highlight-row {
  background-color: #f0fdf4;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed #86efac;
}

.btn-copy {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
}

.btn-copy:hover {
  background-color: var(--primary-hover);
}

/* --- Transparency Section --- */
.transparency-section {
  background-color: var(--bg-muted);
}

.transparency-card {
  background: linear-gradient(135deg, #0a0847 0%, #06052b 100%);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-xl);
  color: #ffffff;
  border-top: 3px solid var(--brand-yellow);
  border-bottom: 3px solid var(--brand-yellow);
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.transparency-p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.65;
}

.transparency-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.point-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.point-item h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.point-item p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.highlight-badge {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 207, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.shield-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.highlight-badge h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.highlight-badge p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 22px;
  line-height: 1.5;
}

.highlight-contact-card {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.highlight-contact-card span {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* --- FAQ Section --- */
.faq-section {
  background-color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-deep);
  text-align: left;
}

.faq-chevron {
  font-size: 1.2rem;
  color: #64748b;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- Institutional Footer --- */
.site-footer {
  background-color: #07052e;
  color: #e2e8f0;
  padding-top: 70px;
  border-top: 3px solid var(--brand-yellow);
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo-wrapper {
  background-color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
}

.footer-description {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--brand-yellow);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--brand-yellow);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-yellow);
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.text-accent {
  color: var(--brand-yellow);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Modals & Overlays --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 26, 43, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header-success {
  background: linear-gradient(135deg, #0a0847 0%, #151096 100%);
  color: #ffffff;
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 3px solid var(--brand-yellow);
}

.success-icon-animation {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(255, 207, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--brand-yellow);
}

.modal-title {
  color: #ffffff;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.modal-header-desc {
  font-size: 0.92rem;
  color: #fff9db;
}

.modal-body {
  padding: 24px 28px;
}

/* Modal 48-Hour Notice */
.modal-notice-box {
  background-color: #f7f8ff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--primary-deep);
}

.modal-notice-box .notice-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.modal-notice-box p {
  margin-top: 2px;
  line-height: 1.45;
}

.receipt-summary-card {
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.receipt-label {
  color: var(--text-muted);
}

.receipt-value {
  color: var(--text-main);
  font-weight: 500;
}

.code-pill {
  font-family: monospace;
  background-color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  color: var(--primary-deep);
}

.receipt-row.total-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  margin-top: 4px;
}

.receipt-amount {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.modal-whatsapp-callout {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.modal-whatsapp-callout p {
  font-size: 0.85rem;
  color: #166534;
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Modal QR Zoom */
.modal-qr-zoom {
  max-width: 440px;
}

.modal-zoom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.close-zoom-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.modal-zoom-body {
  padding: 24px;
  text-align: center;
}

.zoomed-qr-img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
}

.zoom-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Toast Feedback Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary-deep);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid,
  .donation-layout-grid,
  .transparency-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-visual-col {
    justify-content: center;
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-donate-btn {
    display: none;
  }

  .top-bar-left {
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 50px 0 70px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .guarantee-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .guarantee-badge {
    width: 100%;
  }

  .donation-form-card,
  .donation-qr-card {
    padding: 24px 20px;
  }

  .transparency-card {
    padding: 32px 20px;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }

  .amount-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Print Stylesheet for Receipt --- */
@media print {
  body * {
    visibility: hidden;
  }
  .receipt-summary-card,
  .receipt-summary-card * {
    visibility: visible;
  }
  .receipt-summary-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 1px solid #000;
  }
}
