/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY BACKGROUND */
body {
  background: linear-gradient(
    135deg,
    #0f1e53 0%,     /* Royal Navy Blue */
    #1e3a8a 25%,    /* Deep Royal Blue */
    #2a52be 50%,    /* Cobalt Blue */
    #b8860b 75%,    /* Goldenrod */
    #ffd700 100%    /* Metallic Gold */
  );
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating subtle sparkles */
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 45px 45px;
  animation: float 40s linear infinite;
  pointer-events: none;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}

/* CARD */
.donation-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border-radius: 25px;
  padding: 40px 50px;
  width: 100%;
  max-width: 950px;
  box-shadow: 0 25px 60px rgba(15, 30, 83, 0.4);
  animation: fadeInUp 1s ease;
  border: 1.8px solid rgba(184, 134, 11, 0.3);
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #ffd700);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
  margin-bottom: 15px;
  animation: pulse 3s infinite;
}

.icon-wrapper::after {
  content: "💠";
  font-size: 40px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

h2 {
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f1e53, #b8860b);
  background-clip: text;              /* standard */
  -webkit-background-clip: text;      /* vendor-prefixed */
  color: transparent;                 /* fallback for some browsers */
  -webkit-text-fill-color: transparent;
}


.subtitle {
  color: #654321;
  margin-top: 8px;
  font-size: 1rem;
}

/* SECTIONS */
.form-section {
  margin: 25px 0 10px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px solid rgba(184, 134, 11, 0.3);
  padding-bottom: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.3rem;
}

/* FORM GRID */
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  color: #0f1e53;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.required {
  color: #b91c1c;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(30, 58, 138, 0.25);
  font-size: 1rem;
  outline: none;
  background: #ffffff;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b8860b;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23b8860b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.full {
  grid-column: 1 / -1;
}

/* CAPTCHA */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.captcha {
  background: linear-gradient(135deg, #0f1e53, #b8860b);
  padding: 10px 25px;
  border-radius: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.4);
}

.captcha-input {
  width: 120px;
  text-align: center;
  font-weight: 600;
}

/* BUTTON */
button {
  grid-column: 1 / -1;
  padding: 14px 30px;
  background: linear-gradient(135deg, #1e3a8a, #b8860b);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(184, 134, 11, 0.35);
}

button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #2a52be, #ffd700);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.45);
}

button:active {
  transform: translateY(0);
}

/* FOOTER */
.form-footer {
  text-align: center;
  margin-top: 25px;
  color: #0f1e53;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .donation-card {
    padding: 25px 20px;
  }
  h2 {
    font-size: 1.8rem;
  }
  form {
    grid-template-columns: 1fr;
  }
  .icon-wrapper {
    width: 65px;
    height: 65px;
  }
  .icon-wrapper::after {
    font-size: 30px;
  }
}

/* Wrapper to keep input + buttons inline */
.mobile-otp-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile input box */
.mobile-otp-inline input[type="tel"],
.mobile-otp-inline input[type="text"] {
  padding: 10px 14px;
  border: 2px solid #e7c97c;
  border-radius: 8px;
  font-size: 16px;
  width: 180px;
  outline: none;
  transition: 0.2s;
}

.mobile-otp-inline input:focus {
  border-color: #d4a73e;
  box-shadow: 0 0 5px rgba(212, 167, 62, 0.4);
}

/* Send OTP + Verify Buttons */
.send-otp-btn,
.verify-btn {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;

  background: linear-gradient(to right, #1f3c88, #f2c94c);
  color: white;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.12);
  transition: 0.2s ease-in-out;
}

.send-otp-btn:hover,
.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.18);
}

/* OTP box */
.otp-field {
  padding: 10px 14px;
  width: 100px;
  border: 2px solid #e7c97c;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}
