* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f4f7f2;
  color: #1e2a2f;
  line-height: 1.5;
}

/* Hero background with transaction imagery */
.donation-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(
      135deg,
      rgba(20, 55, 40, 0.88),
      rgba(10, 35, 24, 0.92)
    ),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

.donation-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 40%,
    rgba(30, 80, 50, 0.3),
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
}

.donation-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: stretch;
  justify-content: center;
}

/* Info panel */
.donation-info {
  flex: 1.2;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  border: 1px solid rgba(70, 130, 90, 0.3);
}

.donation-info:hover {
  transform: translateY(-5px);
}

.donation-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e5631;
  margin-bottom: 0.75rem;
  border-left: 5px solid #3c9e6d;
  padding-left: 1rem;
}

.subhead {
  font-size: 1rem;
  color: #2d4a3b;
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.impact-badge {
  background: #e9f5ec;
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e6b3b;
}

.method-card {
  background: #fefefe;
  border-radius: 1.2rem;
  margin-bottom: 1.3rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid #dee9e0;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}

.method-card i {
  font-size: 2rem;
  color: #2c7a4b;
  width: 45px;
  text-align: center;
}

.method-details {
  flex: 2;
}

.method-details h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1e3a2f;
}

.method-details p {
  font-size: 0.85rem;
  color: #4a5b52;
}

.paybill-number {
  background: #1a3f2c;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.highlight-box {
  background: #ebf9ef;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
  border-left: 5px solid #3c9e6d;
}

/* Donation Form Card */
.donation-form-card {
  flex: 1;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
  border-radius: 2rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(80, 140, 100, 0.4);
}

.donation-form-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1c5a37;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.donation-form-card h3 i {
  font-size: 1.9rem;
  color: #f5b042;
}

.form-group {
  margin-bottom: 1.3rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #1f3b2c;
}

label i {
  margin-right: 8px;
  color: #398a54;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 60px;
  border: 1.5px solid #cfdfd4;
  font-family: "Poppins", sans-serif;
  background: #fff;
  transition: 0.2s;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2c8c55;
  box-shadow: 0 0 0 3px rgba(44, 140, 85, 0.2);
}

.amount-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 8px;
}

.amount-preset {
  background: #eff7f1;
  border: none;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #1a5336;
  font-size: 0.9rem;
}

.amount-preset.active,
.amount-preset:hover {
  background: #2c7a4b;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.donate-btn {
  width: 100%;
  background: linear-gradient(95deg, #1d6e42, #0e5433);
  border: none;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 60px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem 0 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.donate-btn:hover {
  background: linear-gradient(95deg, #0f5933, #094327);
  transform: scale(0.98);
}

.donate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.secure-note {
  text-align: center;
  font-size: 0.75rem;
  color: #5a6e63;
  margin-top: 1rem;
}

.thanks-message {
  background: #d9f0e2;
  border-radius: 60px;
  padding: 14px;
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  animation: fadeInUp 0.4s ease;
}

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

.transaction-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-item {
  background: rgba(255, 255, 240, 0.2);
  border-radius: 20px;
  overflow: hidden;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 200, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 850px) {
  .donation-hero {
    padding: 5rem 1rem;
    background-attachment: scroll;
  }
  .donation-info,
  .donation-form-card {
    flex: 1 1 100%;
  }
  .method-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .paybill-number {
    align-self: flex-start;
    margin-top: 6px;
  }
}

.donation-footer {
  text-align: center;
  padding: 1.5rem;
  background: #10261d;
  color: #bdd9cc;
  font-size: 0.85rem;
}

.donation-footer a {
  color: #b5e3c8;
  text-decoration: none;
}

.back-home-link {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(255, 255, 240, 0.2);
  padding: 8px 20px;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.bg-texture {
  background-image: radial-gradient(
    rgba(60, 158, 109, 0.1) 2px,
    transparent 2px
  );
  background-size: 30px 30px;
}

.floating-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.2;
  font-size: 5rem;
  pointer-events: none;
  z-index: 1;
}
