/* =====================================================
   DONATION-NEW.CSS — Donation.php
   Load AFTER style-New.css and Home.css (uses their variables)
   Save as: /css/donation-new.css   (sab lowercase: server pe naam case-sensitive hota hai)
   ===================================================== */

[hidden] { display: none !important; }

/* ---------- hero ---------- */
.dn-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 360px; display: flex; align-items: center;
  padding: 80px 8% 90px; background: var(--deep, #071f1a);
}
.dn-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dn-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(7,31,26,.93) 0%, rgba(7,31,26,.72) 45%, rgba(7,31,26,.3) 100%),
    linear-gradient(0deg, rgba(7,31,26,.8) 0%, transparent 45%);
}
.dn-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ring, linear-gradient(90deg,#1f9d3a,#0f8a7a,#c9a74a)); }
.dn-hero-in { position: relative; width: 100%; max-width: 680px; }
.dn-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 7px 16px; border-radius: 50px; font-size: .85rem; font-weight: 700; color: #fff;
  background: rgba(7,31,26,.55); border: 1px solid rgba(201,167,74,.75);
}
.dn-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; margin-bottom: 14px; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.dn-hero h1::after { content: ""; display: block; width: 92px; height: 5px; margin-top: 16px; border-radius: 3px; background: var(--ring, linear-gradient(90deg,#1f9d3a,#0f8a7a,#c9a74a)); }
.dn-hero p { font-size: 1.12rem; color: #e6f2ec; max-width: 520px; }
.dn-crumb { margin-top: 22px; display: flex; gap: 10px; align-items: center; font-size: .88rem; color: #b7d0c3; }
.dn-crumb a { color: #fff; text-decoration: none; font-weight: 600; }
.dn-crumb a:hover { color: var(--gold-light, #e6cf86); }
.dn-crumb i { font-size: .65rem; }

/* ---------- section + grid ---------- */
.dn-sec { padding: 70px 0 60px; }
.dn-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}

/* ---------- form card ---------- */
.dn-card {
  position: relative; background: #fff; border: 1px solid var(--line, #dfe9e3);
  border-radius: 26px; padding: 34px 34px 26px; scroll-margin-top: 96px;
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(7,31,26,.14));
  border-top: 5px solid var(--green, #1f9d3a);
}
.dn-card h2 { font-size: 1.6rem; font-weight: 800; color: var(--ink, #0d2a22); margin-bottom: 6px; }
.dn-sub { color: var(--muted, #5b7268); margin-bottom: 22px; font-size: .98rem; }

/* steps indicator */
.dn-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 26px; }
.dn-steps .dot {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; background: #eef4f0; color: var(--muted, #5b7268);
  border: 2px solid var(--line, #dfe9e3); transition: all .3s;
}
.dn-steps .dot.on { background: var(--green, #1f9d3a); border-color: var(--green, #1f9d3a); color: #fff; box-shadow: 0 6px 16px rgba(31,157,58,.35); }
.dn-steps .bar { width: 90px; height: 4px; border-radius: 3px; background: var(--line, #dfe9e3); transition: background .3s; }
.dn-steps .bar.on { background: var(--green, #1f9d3a); }

/* amount cards (6 presets, 3 per row) */
.dn-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.dn-amt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer;
  min-height: 98px; padding: 14px 6px; border-radius: 16px; font-family: inherit; text-align: center;
  background: #f6faf7; border: 2px solid var(--line, #dfe9e3); color: var(--ink, #0d2a22);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.dn-amt i { font-size: 1.15rem; color: var(--green-dark, #167a2d); margin-bottom: 2px; }
.dn-amt b { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.dn-amt span { font-size: .76rem; color: var(--muted, #5b7268); line-height: 1.2; }
.dn-amt:hover { transform: translateY(-3px); border-color: var(--green, #1f9d3a); }
.dn-amt.active {
  background: linear-gradient(145deg, var(--green-dark, #167a2d), var(--green, #1f9d3a));
  border-color: var(--green-dark, #167a2d); color: #fff; box-shadow: 0 10px 24px rgba(31,157,58,.35);
}
.dn-amt.active i, .dn-amt.active span { color: #eaf7ef; }

/* fields */
.dn-field { margin-bottom: 16px; }
.dn-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink, #0d2a22); }
.dn-field label em { font-style: normal; font-weight: 500; color: var(--muted, #5b7268); font-size: .82rem; }
.dn-input {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 2px solid var(--line, #dfe9e3); border-radius: 14px; padding: 0 16px;
  transition: border-color .25s, box-shadow .25s;
}
.dn-input:focus-within { border-color: var(--green, #1f9d3a); box-shadow: 0 0 0 4px rgba(31,157,58,.14); }
.dn-input input {
  flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; box-shadow: none; border-radius: 0;
  padding: 14px 0; font-size: 1rem; font-family: inherit; color: var(--ink, #0d2a22);
}
.dn-input input::placeholder { color: #7f968b; }
.dn-input.big { padding: 0 20px; }
.dn-input.big span { font-size: 1.6rem; font-weight: 800; color: var(--green-dark, #167a2d); }
.dn-input.big input { font-size: 1.6rem; font-weight: 800; padding: 12px 0; }
#pan { text-transform: uppercase; letter-spacing: .08em; }
#pan::placeholder { letter-spacing: .08em; }

/* error */
.dn-err {
  display: none; margin-bottom: 14px; padding: 11px 14px; border-radius: 12px;
  background: #fdecec; border: 1px solid #f5b7b7; color: #b42318; font-size: .9rem; font-weight: 600;
}
.dn-err.show { display: block; }

/* buttons */
.dn-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 15px 20px; border: 0; border-radius: 50px; cursor: pointer; font-family: inherit;
  font-size: 1.05rem; font-weight: 800; color: #fff; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, var(--green-dark, #167a2d), var(--green, #1f9d3a));
  box-shadow: 0 12px 28px rgba(31,157,58,.35); transition: transform .25s, box-shadow .25s, opacity .25s;
}
.dn-btn b { font-weight: 800; }
.dn-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(31,157,58,.45); }
.dn-btn:disabled { opacity: .8; cursor: not-allowed; transform: none; }
.dn-btn .fa-heart, .dn-btn .fa-arrow-right { color: #fff; }
.dn-back {
  background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 700;
  color: var(--green-dark, #167a2d); margin-bottom: 14px; padding: 8px 0; font-size: .92rem; min-height: 40px;
}
.dn-back:hover { color: var(--teal-dark, #0b6b5e); }
.dn-skip {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px;
  font-size: .88rem; font-weight: 700; color: var(--green-dark, #167a2d); text-decoration: none;
}
.dn-skip:hover { color: var(--teal-dark, #0b6b5e); text-decoration: underline; }

.dn-card a:focus-visible, .dn-card button:focus-visible, .dn-bank button:focus-visible, .dn-qr a:focus-visible {
  outline: 3px solid var(--teal, #0f8a7a); outline-offset: 3px; border-radius: 10px;
}

/* trust row */
.dn-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; font-size: .82rem; color: var(--muted, #5b7268); text-align: center; }
.dn-mini i { color: var(--green, #1f9d3a); margin-right: 4px; }

/* summary */
.dn-summary {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
  padding: 16px 20px; border-radius: 16px; background: #eef8f1; border: 1px dashed var(--green, #1f9d3a);
}
.dn-summary span { color: var(--muted, #5b7268); font-weight: 600; }
.dn-summary b { font-size: 1.6rem; font-weight: 800; color: var(--green-dark, #167a2d); }

/* ---------- info side ---------- */
.dn-info .section-tag {
  display: inline-block; margin-bottom: 10px; padding: 6px 14px; border-radius: 50px;
  background: #e3f3e8; color: var(--green-dark, #167a2d); font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
}
.dn-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: var(--ink, #0d2a22); }
.dn-info > p { color: var(--muted, #5b7268); line-height: 1.8; margin-bottom: 12px; }

.dn-pts { display: grid; gap: 14px; margin: 22px 0; }
.dn-pt {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 16px 18px;
  border: 1px solid var(--line, #dfe9e3); border-left: 4px solid var(--green, #1f9d3a); border-radius: 16px;
  transition: transform .3s, box-shadow .3s;
}
.dn-pt:nth-child(even) { border-left-color: var(--teal, #0f8a7a); }
.dn-pt:hover { transform: translateX(4px); box-shadow: var(--shadow, 0 10px 30px rgba(7,31,26,.1)); }
.dn-pt > i {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: #e3f3e8; color: var(--green-dark, #167a2d); font-size: 1.15rem;
}
.dn-pt h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 2px; color: var(--ink, #0d2a22); }
.dn-pt p { font-size: .9rem; color: var(--muted, #5b7268); line-height: 1.55; margin: 0; }

.tax {
  padding: 18px 20px; border-radius: 18px; margin-bottom: 18px;
  background: linear-gradient(145deg, #fff9e6, #fdf3cf); border: 1px solid var(--gold-light, #e6cf86);
}
.tax p { font-size: .92rem; line-height: 1.65; color: #5a4a10; margin: 0 0 8px; }
.tax p:last-child { margin-bottom: 0; }

.dn-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 14px; }
.dn-contact a { color: var(--green-dark, #167a2d); font-weight: 700; text-decoration: none; font-size: .95rem; padding: 4px 0; }
.dn-contact a:hover { color: var(--teal-dark, #0b6b5e); }
.dn-contact i { margin-right: 6px; }
.dn-reg { font-size: .82rem; color: var(--muted, #5b7268); line-height: 1.6; }

.dn-terms { max-width: 900px; margin: 34px auto 0; padding: 0 20px; text-align: center; font-size: .82rem; color: var(--muted, #5b7268); line-height: 1.6; }

/* ---------- UPI + bank section ---------- */
.dn-alt { padding: 70px 0 60px; background: #fff; scroll-margin-top: 90px; }
.dn-alt-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.dn-alt-head .section-tag {
  display: inline-block; margin-bottom: 10px; padding: 6px 14px; border-radius: 50px;
  background: #e3f3e8; color: var(--green-dark, #167a2d); font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
}
.dn-alt-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 10px; color: var(--ink, #0d2a22); }
.dn-alt-head p { color: var(--muted, #5b7268); line-height: 1.7; }

.dn-alt-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: stretch; }

/* QR card */
.dn-qr {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 26px; padding: 34px 28px;
  background: linear-gradient(150deg, var(--deep, #071f1a), var(--green-dark, #167a2d));
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(7,31,26,.14));
}
.dn-qr::before {
  content: ""; position: absolute; right: -70px; top: -70px; width: 210px; height: 210px;
  border-radius: 50%; border: 26px solid rgba(255,255,255,.07);
}
.dn-qr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ring, linear-gradient(90deg,#1f9d3a,#0f8a7a,#c9a74a)); }
.dn-qr-tag {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 7px 16px; border-radius: 50px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(201,167,74,.7); color: #fff;
}
.dn-qr-frame {
  position: relative; width: 100%; max-width: 250px; margin: 0 auto 20px; padding: 14px;
  background: #fff; border-radius: 22px; box-shadow: 0 0 0 4px var(--gold-light, #e6cf86), 0 18px 40px rgba(0,0,0,.35);
}
.dn-qr-frame img { display: block; width: 100%; height: auto; border-radius: 10px; }
.dn-qr h3 { position: relative; font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.dn-qr p { position: relative; color: #d6eadf; font-size: .92rem; margin-bottom: 16px; line-height: 1.6; }
.dn-dl {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 24px; margin-bottom: 18px; border-radius: 50px; text-decoration: none;
  font-weight: 800; font-size: .92rem; color: var(--deep, #071f1a); background: var(--gold-light, #e6cf86);
  transition: transform .25s;
}
.dn-dl:hover { transform: translateY(-2px); }
.dn-apps { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dn-apps span {
  font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 50px;
  background: rgba(255,255,255,.12); color: #fff;
}
.dn-apps i { margin-right: 5px; color: var(--gold-light, #e6cf86); }

/* bank card */
.dn-bank {
  background: #fff; border: 1px solid var(--line, #dfe9e3); border-top: 5px solid var(--teal, #0f8a7a);
  border-radius: 26px; padding: 30px; box-shadow: var(--shadow-lg, 0 24px 60px rgba(7,31,26,.1));
}
.dn-bank-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dn-bank-ico {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; background: linear-gradient(145deg, var(--teal-dark, #0b6b5e), var(--teal, #0f8a7a));
}
.dn-bank-top h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink, #0d2a22); margin: 0; }
.dn-bank-top p { color: var(--muted, #5b7268); font-size: .88rem; margin: 2px 0 0; }

.dn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; margin-bottom: 10px; border-radius: 16px;
  background: #f6faf7; border: 1px solid var(--line, #dfe9e3); transition: border-color .25s, background .25s;
}
.dn-row:hover { border-color: var(--green, #1f9d3a); background: #eef8f1; }
.dn-row > div { min-width: 0; }
.dn-row small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #5b7268); margin-bottom: 2px; }
.dn-row b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink, #0d2a22); word-break: break-word; }
#bkAcc, #bkIfsc { letter-spacing: .06em; font-family: "Courier New", monospace; }

.dn-copy {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: inherit;
  min-height: 40px; padding: 8px 16px; border-radius: 50px; font-size: .82rem; font-weight: 700;
  background: #fff; color: var(--green-dark, #167a2d); border: 2px solid var(--green, #1f9d3a);
  transition: background .25s, color .25s;
}
.dn-copy:hover { background: var(--green, #1f9d3a); color: #fff; }
.dn-copy.ok { background: var(--green-dark, #167a2d); border-color: var(--green-dark, #167a2d); color: #fff; }

.dn-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(145deg, #fff9e6, #fdf3cf); border: 1px solid var(--gold-light, #e6cf86);
  font-size: .88rem; line-height: 1.6; color: #5a4a10;
}
.dn-note i { margin-top: 3px; color: var(--gold, #c9a74a); }
.dn-note a { color: var(--green-dark, #167a2d); font-weight: 700; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .dn-alt { padding: 50px 0 40px; }
  .dn-alt-grid { grid-template-columns: 1fr; }
  .dn-grid { grid-template-columns: 1fr; gap: 30px; }
  .dn-hero { min-height: 280px; padding: 56px 6% 64px; }
  .dn-sec { padding: 0 0 40px; }
  .dn-card { margin-top: -28px; position: relative; z-index: 2; }   /* form hero ke upar thoda chadha hua, jaldi dikhe */
}

@media (max-width: 560px) {
  .dn-hero { min-height: 240px; padding: 44px 5% 56px; }
  .dn-hero p { font-size: 1rem; }
  .dn-hero .hero-eyebrow { font-size: .78rem; padding: 6px 13px; }
  .dn-crumb { margin-top: 16px; }

  .dn-card { padding: 22px 16px 18px; border-radius: 22px; margin-top: -24px; scroll-margin-top: 80px; }
  .dn-card h2 { font-size: 1.4rem; }
  .dn-sub { margin-bottom: 18px; font-size: .94rem; }
  .dn-steps { margin-bottom: 20px; }
  .dn-steps .bar { width: 64px; }

  .dn-amts { gap: 8px; margin-bottom: 18px; }
  .dn-amt { min-height: 88px; padding: 12px 3px; border-radius: 14px; }
  .dn-amt i { font-size: 1rem; }
  .dn-amt b { font-size: 1rem; }
  .dn-amt span { font-size: .7rem; }

  .dn-input { padding: 0 14px; }
  .dn-input input { font-size: 16px; }              /* iPhone pe auto-zoom na ho */
  .dn-input.big input, .dn-input.big span { font-size: 1.5rem; }

  /* Continue / Donate button screen ke neeche chipka rahe, angoothe ki pahunch mein */
  .dn-actions {
    position: sticky; bottom: 0; z-index: 5;
    margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
  }
  .dn-mini { margin-top: 6px; }

  .dn-pt { padding: 14px; gap: 12px; }
  .dn-pt:hover { transform: none; }

  .dn-alt-head { margin-bottom: 26px; }
  .dn-qr { padding: 26px 18px; border-radius: 22px; }
  .dn-qr-frame { max-width: 220px; }
  .dn-bank { padding: 22px 14px; border-radius: 22px; }
  .dn-bank-top { gap: 12px; }
  .dn-bank-ico { width: 48px; height: 48px; font-size: 1.2rem; }
  .dn-row { padding: 12px; gap: 10px; }
  .dn-row b { font-size: .94rem; }
  .dn-copy { padding: 8px 12px; }
  .dn-contact { flex-direction: column; gap: 6px; }
  .dn-contact a { padding: 8px 0; }
}

@media (max-width: 360px) {
  .dn-amt span { display: none; }
  .dn-amt { min-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .dn-card *, .dn-card *::before, .dn-card *::after, .dn-bank *, .dn-qr * { transition-duration: .01ms !important; animation: none !important; }
}