/* ===== PAGE BANNER ===== */
.page-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 110px 0 75px;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,30,0.88) 0%, rgba(200,16,46,0.5) 100%);
}
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.banner-content h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #c8102e; }
.breadcrumb i { font-size: 11px; color: #c8102e; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* ===== DONATE LAYOUT ===== */
.donate-section { background: #f4f4f4; }
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 35px;
  align-items: start;
}

/* ===== FORM WRAP ===== */
.donate-form-wrap {
  background: #fff;
  border-radius: 6px;
  padding: 45px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.07);
}
.donate-form-header { margin-bottom: 35px; }
.donate-form-header p { color: #666; font-size: 15px; margin-top: 10px; }

/* Step label */
.donate-step { margin-bottom: 35px; }
.donate-step:last-of-type { margin-bottom: 0; }
.step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.step-num {
  width: 32px;
  height: 32px;
  background: #c8102e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Amount grid */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.d-amount-btn {
  padding: 14px 10px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  transition: all 0.25s;
}
.d-amount-btn:hover { border-color: #c8102e; color: #c8102e; }
.d-amount-btn.active {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
}

/* Custom amount */
.custom-amount-wrap { margin-bottom: 20px; }
.custom-amount-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.custom-amount-input {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.custom-amount-input:focus-within { border-color: #c8102e; }
.currency-symbol {
  padding: 12px 16px;
  background: #f8f8f8;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #c8102e;
  border-right: 2px solid #e0e0e0;
}
.custom-amount-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Oswald', sans-serif;
  color: #1a1a2e;
}

/* Frequency */
.frequency-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.frequency-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.freq-btn {
  padding: 9px 22px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 30px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}
.freq-btn:hover { border-color: #c8102e; color: #c8102e; }
.freq-btn.active { background: #c8102e; border-color: #c8102e; color: #fff; }

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group label span { color: #c8102e; }
.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #c8102e; }

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.payment-label { cursor: pointer; display: block; }
.payment-label input[type="radio"] { display: none; }
.payment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.25s;
  background: #fff;
}
.payment-label input[type="radio"]:checked + .payment-card {
  border-color: #c8102e;
  background: #fff8f9;
  box-shadow: 0 4px 20px rgba(200,16,46,0.1);
}
.payment-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.paystack-logo { height: 28px; }
.payment-info { flex: 1; }
.payment-info strong { display: block; font-size: 15px; color: #1a1a2e; margin-bottom: 2px; }
.payment-info span { font-size: 13px; color: #888; }
.payment-check { color: #e0e0e0; font-size: 20px; transition: color 0.25s; }
.payment-label input[type="radio"]:checked + .payment-card .payment-check { color: #c8102e; }

/* Summary */
.donation-summary {
  background: #f8f8f8;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 22px;
  border-left: 4px solid #c8102e;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #555;
}
.summary-row:last-child { border-bottom: none; }
.summary-row strong { color: #1a1a2e; font-size: 15px; }
.summary-total { padding-top: 12px; }
.summary-total span { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: #1a1a2e; }
.summary-total strong { font-family: 'Oswald', sans-serif; font-size: 22px; color: #c8102e; }

/* PayPal button wrapper */
.paypal-btn-wrap { margin-bottom: 15px; }
#paypal-button-container { min-height: 50px; }

/* Paystack button */
.paystack-btn-wrap { margin-bottom: 15px; }
.btn-paystack {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  background: #00c3f7;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-paystack img { height: 22px; filter: brightness(0) invert(1); }
.btn-paystack:hover { background: #00a8d6; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,195,247,0.35); }

/* Legal */
.donate-legal {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.donate-legal i { color: #c8102e; margin-right: 4px; }
.donate-legal a { color: #c8102e; text-decoration: underline; }

/* ===== SIDEBAR ===== */
.donate-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 100px;
}
.donate-sidebar > div {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}
.donate-sidebar h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c8102e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.donate-sidebar h3 i { color: #c8102e; }

/* Impact */
.impact-items { display: flex; flex-direction: column; gap: 16px; }
.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.impact-item:last-child { border-bottom: none; padding-bottom: 0; }
.impact-icon {
  width: 42px;
  height: 42px;
  background: #fff0f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8102e;
  font-size: 16px;
  flex-shrink: 0;
}
.impact-item strong { display: block; font-family: 'Oswald', sans-serif; font-size: 18px; color: #c8102e; }
.impact-item p { font-size: 13px; color: #666; margin: 0; line-height: 1.5; }

/* Progress */
.progress-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.raised { font-weight: 700; color: #c8102e; font-family: 'Oswald', sans-serif; font-size: 16px; }
.goal { color: #888; }
.progress-bar-wrap {
  height: 10px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8102e, #ff4d6d);
  border-radius: 10px;
  transition: width 1.5s ease;
}
.progress-stats { display: flex; justify-content: space-between; }
.prog-stat { text-align: center; }
.prog-stat strong { display: block; font-family: 'Oswald', sans-serif; font-size: 20px; color: #1a1a2e; }
.prog-stat span { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

/* Secure badges */
.secure-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secure-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  background: #f8f8f8;
  padding: 8px 10px;
  border-radius: 4px;
}
.secure-badge i { color: #c8102e; }

/* Contact */
.sidebar-contact p { font-size: 14px; color: #666; margin-bottom: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.contact-link i { color: #c8102e; width: 16px; }
.contact-link:hover { color: #c8102e; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .donate-layout { grid-template-columns: 1fr; }
  .donate-sidebar { position: static; }
  /* Show sidebar as 2-col grid on tablet */
  .donate-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .page-banner { padding: 80px 0 55px; }
  .banner-content h1 { font-size: 34px; }
  .donate-form-wrap { padding: 22px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .d-amount-btn { font-size: 17px; padding: 12px 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .secure-badges { grid-template-columns: 1fr 1fr; }
  .donate-sidebar { grid-template-columns: 1fr; }
  .payment-card { padding: 14px 15px; gap: 12px; }
  .payment-logo { height: 26px; }
}
@media (max-width: 480px) {
  .banner-content h1 { font-size: 26px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .d-amount-btn { font-size: 16px; }
  .donate-form-wrap { padding: 18px; }
  .modal-box { padding: 35px 22px; }
  .modal-box h2 { font-size: 22px; }
  .secure-badges { grid-template-columns: 1fr; }
  .progress-stats { gap: 5px; }
  .prog-stat strong { font-size: 16px; }
}

/* ===== SUCCESS / ERROR MODAL ===== */
.donation-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,10,30,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.donation-modal.visible { opacity: 1; }
.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 50px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.donation-modal.visible .modal-box { transform: translateY(0); }
.modal-icon { font-size: 60px; margin-bottom: 20px; }
.modal-icon.success { color: #22c55e; }
.modal-icon.error   { color: #c8102e; }
.modal-box h2 { font-size: 28px; color: #1a1a2e; margin-bottom: 14px; }
.modal-box p  { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 10px; }
.modal-box p strong { color: #c8102e; }
.modal-ref { font-size: 13px; color: #888; }
.modal-ref code { background: #f4f4f4; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.modal-close-btn { margin-top: 20px; }

/* SDK placeholder (shown when client-id not set) */
.sdk-placeholder {
  background: #f8f8f8;
  border: 2px dashed #ddd;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #888;
  line-height: 1.8;
}
.sdk-placeholder i { font-size: 28px; color: #003087; display: block; margin-bottom: 8px; }
.sdk-placeholder code { background: #eee; padding: 2px 6px; border-radius: 3px; font-size: 12px; color: #c8102e; }
