/* --- Card wrapper --- */
.donation-card {
  max-width: 680px;
  margin: 0 auto 40px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  overflow: hidden;
  background: #fff;
  font-family: Arial, sans-serif;
}

/* --- Teal header --- */
.donation-hero {
  background: #18b6a6;
  color: #fff;
  padding: 28px 26px;
  text-align: center;
}
.donation-hero h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}
.donation-hero p {
  margin: 0 0 14px;
  opacity: .95;
}
.secure-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  background: white;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 0px 12px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  color:black;
}

/* --- Form body --- */
.donation-form {
  padding: 26px;
  font-family: 'poppins';
}
.donation-form h3 {
  font-size: 22px;
  margin: 20px 0 8px;
  color: #122836;
}
.donation-form p {
  color: #6b6f75;
  margin-bottom: 15px;
  font-family: 'poppins';
}
.donation-form label {
  display: block;
  font-weight: 600;
  color: #122836;
}

.project-select, .custom-amount, .donation-type-select {
  width: 100%;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  margin-bottom: 20px;
  background: #fff;
}

/* --- Frequency toggle --- */
.toggle-pills {
  display: flex;
  gap: 0;
  margin: 10px 0 20px;
  border: 1.5px solid #cfd4d9;
  border-radius: 10px;
  overflow: hidden;
}
.toggle-pills input { display: none; }
.toggle-pills label {
  flex: 1;
  text-align: center;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 500;
  background: #f9fafb;
  color: #333;
  transition: all .2s ease;
  user-select: none;
  border-right: 1.5px solid #cfd4d9;
}
.toggle-pills label:last-of-type {
  border-right: none;
}
.toggle-pills input:checked + label {
  background: #18b6a6;
  color: #fff;
  font-weight: 600;
}

/* --- Amount pills --- */
.amount-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}
.amount-pills input { display: none; }
.amount-pills label {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 12px 18px;
  border: 1.5px solid #cfd4d9;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
  transition: all .2s ease;
}
.amount-pills label:hover {
  border-color: #18b6a6;
  color: #18b6a6;
}
.amount-pills input:checked + label {
  background: #18b6a6;
  color: #fff;
  border-color: #18b6a6;
}

.currency-label {
  margin: 6px 0 10px;
  font-weight: 600;
  color: #565c62;
}

/* --- Custom amount --- */
.custom-amount {
  border: 1px solid #e4e7eb;
  background: #f7f7f8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

/* --- Button --- */
.donate-btn {
  margin-top: 6px;
  background: #18b6a6;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background .2s ease, transform .15s ease;
}
.donate-btn:hover { background: #129084; transform: translateY(-2px); }

/* Small screens */
@media (max-width: 480px) {
  .donation-hero { padding: 22px 18px; }
  .donation-hero h2 { font-size: 24px; }
  .amount-pills label { min-width: 100px; }
}

.donation-hero > h3{
  color: inherit;
  font-size: var(--givewp-font-size-heading-md);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  font-family: 'poppins';
  margin-bottom: 15px !important;
}

.donation-hero>p{
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: 'poppins';
  margin-bottom: 15px !important;
}
.inner-heading-form{
  margin-bottom: 10px !important;
  color: black !important;
}

/* Loader overlay */
.form-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.form-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #18b6a6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
