* {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
}

/* Banner background */
.banner {
  background-image: url('https://aefpk.org/wp-content/uploads/2025/10/AEF-Web-Banner-scaled.jpg');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 60px;
  padding-left: 250px;
}

/* Between 1000px and 1570px */
@media (min-width: 1000px) and (max-width: 1570px) {
  .banner {
    background-image: url('https://aefpk.org/wp-content/uploads/2025/10/AEF-Web-Banner-scaled.jpg');
    padding-left: 30px;
  }
}

/* Tablet & Mobile (up to 991px) */
@media (max-width: 991px) {
  .banner {
    background-image: url('https://aefpk.org/wp-content/uploads/2025/10/laptop-banner.jpg');
    padding-left: 30px; /* reduce left padding */
  }
}

/* Mobile only (up to 575px) */
@media (max-width: 575px) {
  .banner {
    background-image: url('https://aefpk.org/wp-content/uploads/2025/10/laptop-banner.jpg');
    padding-left: 60px; /* keep same smaller padding */
  }
}

/* Donation form box */
.donation-form {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 25px rgba(0, 90, 120, 0.15);
}

.donation-form h2 {
  color: #1E2A5E;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
}

.donation-form p {
  color: #333;
  text-align: center;
  margin-bottom: 25px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.tabs button {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: #D9F4F9;
  cursor: pointer;
  font-weight: 600;
  color: #1E2A5E;
  transition: all 0.3s ease;
}

.tabs button.active {
  background: #0CAED6;
  color: #fff;
}

.amounts,
.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amounts button,
.types button {
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #B7E5ED;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #1E2A5E;
  transition: all 0.3s ease;
}

.amounts button:hover,
.types button:hover,
.types button.active {
  background: #0CAED6;
  color: #fff;
  border-color: #0CAED6;
}

/* Dropdown styling */
.donation-select {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #B7E5ED;
  background: #fff;
  color: #1E2A5E;
  font-weight: 600;
  margin-bottom: 20px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%230CAED6' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

.donate-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: #1E2A5E;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background: #14204A;
}

.note {
  margin-top: 15px;
  font-size: 13px;
  color: #333;
  text-align: center;
  line-height: 1.5;
}

.secure {
  text-align: center;
  font-size: 12px;
  color: #7A8C99;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .banner {
    justify-content: center;
    padding: 20px;
    height: auto;
  }

  .donation-form {
    max-width: 100%;
    padding: 30px 20px;
  }
}

/* ===== Donation Details Page (AEF color palette) ===== */
.donation-details {
  /*background-color: #D9F4F9;  light blue background tone */
  padding: 60px 20px;
  /*min-height: 90vh;*/
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.donation-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 25px rgba(0, 90, 120, 0.15);
  border: 1px solid #B7E5ED;
   max-width: 600px;
  width: 100%;
}

/* Heading bar consistent with main form style */
.form-section-title {
  background-color: #F6F4F7;
  color: #1D285D;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 22x;
}

.form-section-title span{font-family: "Berkshire Swash", cursive;
  color:#00B3CF;  
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 22px;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Inputs styled like main donation form */
.form-grid input,
.form-grid select {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #B7E5ED;
  background: #fff;
  font-size: 15px;
  color: #1E2A5E;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: #0CAED6;
  box-shadow: 0 0 5px rgba(12, 174, 214, 0.3);
  outline: none;
}

.form-grid select {
  grid-column: span 2;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%230CAED6' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

/* Button same navy color as Donate Now */
.next-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: #1E2A5E;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 25px;
  transition: background 0.3s ease;
}

.next-btn:hover {
  background: #14204A;
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* Active states for button selections */
.amount-btn.active,
.type-btn.active,
.tab-btn.active {
  background: #0CAED6;
  color: #fff;
  border-color: #0CAED6;
}

.amount-btn,
.type-btn,
.tab-btn {
  transition: all 0.3s ease;
}

/* Custom amount input */
.donation-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #B7E5ED;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 15px;
  color: #1E2A5E;
}

.donation-message {
  max-width: 550px;
  margin: 80px auto;
  padding: 40px 30px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 25px rgba(0, 90, 120, 0.1);
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  border-top: 5px solid transparent;
  animation: fadeIn 0.6s ease-in-out;
}

.donation-message.warning {
  border-top-color: #D6AD0C;
}

.donation-message.success {
  border-top-color: #0CAED6;
}

.donation-message.failed {
  border-top-color: #D9534F;
}

.donation-message h2 {
  font-size: 28px;
  color: #1E2A5E;
  margin-bottom: 10px;
}

.donation-message p {
  font-size: 15px;
  color: #333;
  margin: 8px 0;
}

.donation-message .details {
  margin-top: 15px;
  text-align: left;
  background: #F4FBFC;
  padding: 15px 20px;
  border-radius: 10px;
}

.donation-message .details p {
  margin: 5px 0;
  color: #1E2A5E;
}

.donation-message .icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.footer-note {
  margin-top: 25px;
  font-size: 14px;
  color: #7A8C99;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .donation-message {
    margin: 40px 15px;
    padding: 30px 20px;
  }
}
/*buttons*/
.btn-group {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 25px;
}

.donate-btn.link {
  display: inline-block;
  text-decoration: none;
  background: #0CAED6;
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(12, 174, 214, 0.2);
}

.donate-btn.link:hover {
  background: #13C2E3; /* slightly lighter teal */
  box-shadow: 0 4px 14px rgba(12, 174, 214, 0.35);
}

.donate-btn.link.alt {
  background: #1E2A5E;
  box-shadow: 0 3px 10px rgba(30, 42, 94, 0.2);
}

.donate-btn.link.alt:hover {
  background: #263578; /* richer navy tone */
  box-shadow: 0 4px 14px rgba(30, 42, 94, 0.35);
}

.donation-message .btn-group {
    margin-top: 20px;
}

.form-field {
  position: relative;
  margin-bottom: 22px;
  font-family: inherit;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: white;
  outline: none;
  transition: border-color 0.2s ease;
  height: auto;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #13C2E3; /* or your theme color */
}

.form-field label {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease all;
  background-color: white;
  padding: 0 4px;
  font-weight: 500;
}

/* When input is focused or filled — float up */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:valid + label {
  top: -8px;
  left: 10px;
  font-size: 13px;
  color: #1E2A5E;
}


