/* ================= DONATION PAGE STYLES ================= */

.donation {
  padding: 100px 0;
  background: var(--light-bg);
}

.donation-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ================= LEFT CONTENT ================= */

.donation-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.donation-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 30px;
}

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

.donation-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
}

.donation-points li i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ================= RIGHT FORM CARD ================= */

.donation-card {
  background: var(--white-color);
  border-radius: 28px;
  padding: 40px 35px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.donation-card h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 30px;
  text-align: center;
}

.donation-card .form-control,
.donation-card .form-select {
  width: 100%;
  height: 52px;
  background: var(--light-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--dark-color);
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.donation-card .form-control:focus,
.donation-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
  background: var(--white-color);
}

.donation-card .form-control::placeholder {
  color: #9ca3af;
}

.donation-card textarea.form-control {
  height: auto;
  padding: 14px 18px;
  resize: vertical;
  min-height: 80px;
}

.donation-card textarea.form-control:focus {
  height: auto;
}

/* ================= AMOUNT SELECTOR ================= */

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.amount-options button {
  padding: 12px 10px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--white-color);
  color: var(--dark-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.amount-options button:hover {
  border-color: var(--primary-color);
  background: rgba(46, 125, 50, 0.05);
}

.amount-options button.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

/* ================= CUSTOM AMOUNT ================= */

.custom-amount input {
  height: 52px;
  background: var(--light-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--dark-color);
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.custom-amount input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
  background: var(--white-color);
}

/* ================= PAYMENT METHOD ================= */

.payment-method .form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.payment-method .form-select {
  cursor: pointer;
}

/* ================= BKASH FIELDS ================= */

.payment-info {
  background: rgba(46, 125, 50, 0.06);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
}

.payment-info strong {
  font-size: 14px;
  color: var(--dark-color);
  display: block;
  margin-bottom: 8px;
}

.payment-info p {
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
}

.payment-info p span {
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

/* ================= BANK FIELDS ================= */

.bank-info {
  background: rgba(21, 101, 192, 0.06);
  border: 1px solid rgba(21, 101, 192, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(21, 101, 192, 0.1);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
}

.info-item .value {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-color);
  text-align: right;
}

.payment-form input {
  width: 100%;
  height: 48px;
  background: var(--light-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--dark-color);
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.payment-form input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.08);
  background: var(--white-color);
}

/* ================= DONATE BUTTON ================= */

.donation-card .donate-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.2);
}

.donation-card .donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(46, 125, 50, 0.3);
}

.donation-card .donate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secure-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secure-note i {
  color: var(--primary-color);
}

/* ================= ERROR STYLES ================= */

.donation-card .form-control.error,
.donation-card .form-select.error,
.custom-amount input.error,
.payment-form input.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.donation-card .form-control.success,
.donation-card .form-select.success,
.custom-amount input.success,
.payment-form input.success {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08) !important;
}

.field-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
  margin-top: -10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

#donation-error {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}

#donation-error.show {
  display: block;
  background: rgba(220, 38, 38, 0.08);
}

/* ================= SUCCESS MODAL ================= */

.donation-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.donation-success-modal {
  background: var(--white-color);
  border-radius: 28px;
  padding: 50px 40px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.donation-success-overlay.active .donation-success-modal {
  transform: scale(1) translateY(0);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #43a047);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 38px;
  color: var(--white-color);
}

.donation-success-modal h4 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.donation-success-modal p {
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 25px;
}

.success-close-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}

.success-close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(46, 125, 50, 0.3);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991px) {
  .donation-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .donation-content h2 {
    font-size: 36px;
  }

  .donation-points {
    align-items: center;
  }

  .donation-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .donation {
    padding: 70px 0;
  }

  .donation-content h2 {
    font-size: 30px;
  }

  .donation-card {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .donation-card h4 {
    font-size: 20px;
  }

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

  .donation-success-modal {
    padding: 40px 25px 30px;
  }
}