/* ─── MSSS NGO – Forms CSS ───────────────────────────────────────────────────── */

/* ── Form Page Layout ────────────────────────────────────────────────────────── */
.form-page {
  background: var(--bg-light);
  min-height: 60vh;
  padding: var(--section-py) 0;
}

.form-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.form-header {
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}
.form-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.form-header-title {
  font-family: var(--font-hindi);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.form-header-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.form-header-badge {
  position: absolute;
  top: 20px;
  right: 30px;
  background: var(--orange);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.form-body { padding: 36px 40px; }

/* Form sections */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--navy), transparent);
  opacity: 0.2;
}
.form-section-icon {
  width: 32px;
  height: 32px;
  background: rgba(26,107,47,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.9rem;
}

/* Payment section */
.payment-section {
  background: rgba(65,105,225,0.04);
  border: 1px solid rgba(65,105,225,0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.payment-modes { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.payment-mode-card {
  flex: 1;
  min-width: 120px;
  padding: 14px;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.payment-mode-card.selected {
  border-color: var(--royal-blue);
  background: rgba(65,105,225,0.06);
}
.payment-mode-card input[type="radio"] { display: none; }
.pmc-icon { font-size: 1.5rem; margin-bottom: 6px; }
.pmc-label { font-size: 0.8rem; font-weight: 700; color: var(--navy); }

/* QR code display */
.qr-display {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  max-width: 260px;
}
.qr-display img { max-width: 180px; margin: 0 auto 12px; border-radius: var(--radius-sm); }
.qr-upi-id { font-size: 0.8rem; font-weight: 700; color: var(--navy); font-family: monospace; }
.qr-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Declaration box */
.declaration-box {
  background: rgba(255,130,0,0.05);
  border: 1px solid rgba(255,130,0,0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.declaration-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  font-family: var(--font-hindi);
}
.declaration-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: pt;
}
.declaration-points p {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.65;
  font-family: var(--font-hindi);
  padding-left: 20px;
  position: relative;
  counter-increment: pt;
}
.declaration-points p::before {
  content: counter(pt) '.';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Verification form */
.verify-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  border: 1px solid var(--border);
}

/* Success card */
.success-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.success-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.success-icon {
  width: 80px;
  height: 80px;
  background: #e8f8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  color: #2e7d32;
}
.success-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.success-text { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; }

/* ── Donors Grid ─────────────────────────────────────────────────────────────── */
.donors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.donor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.donor-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.donor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--orange);
  background: var(--navy);
}
.donor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.donor-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.donor-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}
.donor-mobile { font-size: 0.75rem; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-body { padding: 24px 20px; }
  .form-header { padding: 24px 20px; }
  .form-header-badge { display: none; }
  .donors-grid { grid-template-columns: repeat(2,1fr); }
  .verify-form-wrap { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .donors-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
