/* ============================================================
   style.css  –  Nayagi Kalvi Seva Trust Donation Page
   Redesigned UI matching new design spec
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+Tamil:wght@400;600;700&display=swap');

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --saffron:    #E8621A;
  --saffron-lt: #F5884A;
  --gold:       #D4A017;
  --gold-lt:    #F0C94A;
  --crimson:    #9B1C24;
  --deep:       #0A0F1E;
  --ink:        #1C1007;
  --cream:      #FBF7EF;
  --warm:       #F5EFE4;
  --border:     #E8DFC8;
  --text-muted: #8B7355;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', 'Segoe UI', Arial, sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Latha', Arial Unicode MS, sans-serif;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.14);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  background: #F0E9DC url("data:image/svg+xml,%3Csvg width='320' height='320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M160 10 C100 10 60 50 60 100 C60 140 80 170 110 190 C80 210 60 240 60 280 L80 280 C80 250 100 225 130 210 C145 217 152 220 160 220 C168 220 175 217 190 210 C220 225 240 250 240 280 L260 280 C260 240 240 210 210 190 C240 170 260 140 260 100 C260 50 220 10 160 10 Z' fill='none' stroke='rgba(212,160,23,0.06)' stroke-width='2'/%3E%3C/svg%3E") repeat;
}

/* ── Trust Header Banner ──────────────────────────────────── */
.trust-header {
  width: 100%;
  background: linear-gradient(90deg,#0d1535 0%,#111d45 40%,#1a1040 70%,#0d1535 100%);
  border-bottom: 2px solid rgba(212,160,23,.45);
  position: relative; overflow: hidden;
}
.trust-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%,rgba(212,160,23,.08) 0%,transparent 60%),
              radial-gradient(ellipse at 80% 50%,rgba(232,98,26,.06) 0%,transparent 50%);
  pointer-events: none;
}
.trust-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px clamp(16px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: relative; z-index: 1;
}
.trust-header-left {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; flex: 1; min-width: 0;
}
.th-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#D4A017,#E8621A);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: #fff; box-shadow: 0 0 0 3px rgba(212,160,23,.3);
}
.th-info { min-width: 0; }
.th-name { font-family: var(--font-sans); font-size: .82rem; font-weight: 700; color: #D4A017; letter-spacing: .12em; white-space: nowrap; }
.th-reg  { font-size: .68rem; color: rgba(255,255,255,.55); margin-top: 1px; }
.th-addr { font-size: .68rem; color: rgba(255,255,255,.7); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-tagline { font-size: .63rem; color: rgba(255,255,255,.45); margin-top: 4px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-tamil), var(--font-sans); }
.th-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.th-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-family: var(--font-sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap; text-decoration: none; transition: all .2s;
}
.th-pill-year { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
.th-pill-admin { background: rgba(212,160,23,.15); border: 1px solid rgba(212,160,23,.35); color: #D4A017; cursor: pointer; }
.th-pill-admin:hover { background: rgba(212,160,23,.28); border-color: rgba(212,160,23,.6); color: #f0c840; }
.th-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.th-divider { width: 1px; height: 20px; background: rgba(255,255,255,.15); flex-shrink: 0; }
.th-home-link { font-family: var(--font-sans); font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; white-space: nowrap; }
.th-home-link:hover { color: rgba(255,255,255,.9); }
@media(max-width:600px){
  .th-addr,.th-tagline{display:none}
  .th-name{font-size:.72rem}
  .th-avatar{width:40px;height:40px;font-size:1rem}
  .trust-header-inner{padding:10px 14px}
}

/* ── Page Layout ─────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(24px,4vw,52px) clamp(16px,5vw,60px) clamp(40px,6vw,80px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-compact {
  text-align: center;
  padding: clamp(28px,4vw,48px) 0 clamp(20px,3vw,36px);
  animation: fadeUp .7s .1s both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  border: 1px solid rgba(212,160,23,.4);
  background: rgba(232,98,26,.07);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--saffron);
  margin-bottom: 20px;
}
.pip { width:6px; height:6px; border-radius:50%; background:var(--saffron); animation:blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.2} }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem,5.5vw,4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 12px;
}
.hero-title .italic {
  font-style: italic;
  background: linear-gradient(135deg,var(--gold),var(--saffron));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tamil {
  font-family: var(--font-tamil);
  font-size: clamp(.85rem,1.8vw,1rem);
  color: rgba(28,16,7,.36); display: block; margin-top: 6px;
}
.hero-sub {
  font-size: clamp(.82rem,1.5vw,.95rem);
  color: rgba(28,16,7,.52);
  max-width: 460px; margin: 14px auto 0;
  line-height: 1.7; font-weight: 300;
}

/* ── Two-Column Layout ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px,4vw,56px);
  align-items: start;
  animation: fadeUp .7s .22s both;
}
.left { position: relative; z-index: 1; min-width: 0; }

/* ── Left Panel ────────────────────────────────────────────── */
.left .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .65rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--saffron); margin-bottom: 14px;
}
.left .chip::before { content: ''; display: block; width: 20px; height: 2px; background: var(--saffron); border-radius: 2px; }
.left h2 { font-family: var(--font-serif); font-size: clamp(1.6rem,2.8vw,2.4rem); font-weight: 700; color: var(--ink); line-height: 1.15; margin-bottom: 12px; }
.left h2 em { font-style: italic; color: var(--saffron); }
.left p { font-size: .85rem; color: rgba(28,16,7,.58); line-height: 1.75; margin-bottom: 26px; }
.trust-list { display: flex; flex-direction: column; gap: 11px; }
.trust-item { display: flex; align-items: flex-start; gap: 11px; font-size: .8rem; color: rgba(28,16,7,.63); }
.trust-item .ti { width: 32px; height: 32px; border-radius: 9px; background: rgba(232,98,26,.08); border: 1px solid rgba(212,160,23,.3); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.trust-item strong { color: var(--ink); display: block; margin-bottom: 1px; font-size: .82rem; }

.pay-section { margin-top: 24px; }
.pay-section h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; margin-top: 26px; }
.upi-box { background: linear-gradient(135deg,rgba(232,98,26,.08),rgba(212,160,23,.07)); border: 1px solid rgba(212,160,23,.35); border-radius: var(--r-md); padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.upi-box .upi-id { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--saffron); }
.upi-box small { font-size: .72rem; color: rgba(28,16,7,.5); }
.upi-copy { margin-left: auto; padding: 8px 18px; border-radius: var(--r-sm); background: linear-gradient(135deg,var(--saffron),var(--gold)); color: #fff; font-weight: 700; font-size: .78rem; border: none; cursor: pointer; transition: transform .2s; white-space: nowrap; }
.upi-copy:hover { transform: scale(1.04); }
.qr-section { display: flex; flex-direction: column; align-items: center; background: #fff; border: 2px solid rgba(212,160,23,.3); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; text-align: center; }
.qr-section img { width: 180px; height: 180px; border-radius: 6px; image-rendering: pixelated; display: block; }
.qr-label { font-size: .72rem; color: rgba(28,16,7,.52); margin-top: 10px; line-height: 1.4; }
.qr-label strong { color: var(--saffron); }
.bank-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; margin-top: 12px; }
.bf { background: #f9f6f0; border: 1px solid rgba(212,160,23,.25); border-radius: 10px; padding: 12px 14px; }
.bf label { font-size: .6rem; color: rgba(28,16,7,.42); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.bf .bv { font-size: .82rem; font-weight: 600; color: var(--saffron); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.bf .bv:hover { color: var(--ink); }
.copy-btn { background: rgba(212,160,23,.12); border: 1px solid rgba(212,160,23,.35); color: var(--saffron); font-size: .58rem; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; cursor: pointer; }
.copy-btn.done { color: #2e7d32; border-color: rgba(46,125,50,.4); background: rgba(46,125,50,.08); }
.tax-banner { background: rgba(212,160,23,.06); border: 1px solid rgba(212,160,23,.28); border-radius: 12px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: .78rem; color: rgba(28,16,7,.6); line-height: 1.55; }
.tax-banner .icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.tax-banner strong { color: var(--ink); display: block; margin-bottom: 3px; font-size: .82rem; }
.tax-banner code { background: rgba(212,160,23,.15); color: var(--saffron); padding: 1px 7px; border-radius: 4px; font-size: .72rem; }

/* ── Receipt Guide (bilingual) ─────────────────────────── */
.receipt-guide { background: linear-gradient(135deg,rgba(26,85,232,.04),rgba(26,160,232,.03)); border: 1.5px solid rgba(26,86,232,.18); border-radius: 14px; padding: 18px 20px; margin-top: 14px; }
.rg-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rg-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.rg-title { font-size: .88rem; font-weight: 700; color: #1a3a8a; line-height: 1.3; }
.rg-title-ta { font-size: .75rem; color: rgba(26,58,138,.7); margin-top: 3px; font-family: var(--font-tamil, 'Noto Sans Tamil', sans-serif); line-height: 1.5; }
.rg-steps { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.rg-step { display: flex; align-items: flex-start; gap: 10px; }
.rg-num { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#1a56e8,#1aa8d4); color: #fff; font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.rg-step > div { font-size: .78rem; color: rgba(28,16,7,.72); line-height: 1.5; }
.rg-step strong { color: var(--ink); font-size: .8rem; }
.rg-ta { font-family: var(--font-tamil, 'Noto Sans Tamil', sans-serif); font-size: .72rem; color: rgba(28,16,7,.52); margin-top: 3px; line-height: 1.6; }
.rg-footer { background: rgba(26,86,232,.06); border-radius: 8px; padding: 9px 13px; font-size: .74rem; color: rgba(28,16,7,.6); border: 1px solid rgba(26,86,232,.12); }
.rg-footer strong { color: #1a3a8a; }

/* ═══════════════════════════════════════════════════════════
   DONATE FORM  –  New Clean Card Design (matching screenshot)
   ═══════════════════════════════════════════════════════════ */
.donate-form {
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px,4vw,44px);
  box-shadow: 0 8px 48px rgba(28,16,7,.10), 0 2px 12px rgba(28,16,7,.06);
  border: 1px solid rgba(232,223,200,.6);
  position: relative; z-index: 10;
}

/* Form header */
.form-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.form-header-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 4px 16px rgba(232,98,26,.3);
}
.form-header-text {}
.form-head { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.form-sub  { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

/* Amount Buttons */
.amounts {
  display: grid; grid-template-columns: repeat(6,1fr);
  gap: 8px; margin-bottom: 18px;
}
.amt {
  padding: 11px 4px; border: 2px solid var(--border); border-radius: 12px;
  background: transparent; font-family: var(--font-sans);
  font-size: .8rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: all .2s; text-align: center;
  position: relative;
}
.amt:hover:not(.on) { border-color: var(--saffron); color: var(--saffron); }
.amt.on {
  background: linear-gradient(135deg,var(--saffron) 0%,var(--gold) 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(232,98,26,.38);
}
/* Checkmark on selected */
.amt.on::before {
  content: '✓';
  position: absolute; left: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: .72rem; font-weight: 800;
}
@media(max-width:480px){.amounts{grid-template-columns:repeat(3,1fr)}}

/* Form Groups */
.fg { margin-bottom: 14px; }
.fg label {
  display: block; font-size: .65rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-sans); font-size: .88rem;
  color: var(--ink); background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.fg input:focus, .fg select:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232,98,26,.1); }
.fg .hint { font-size: .65rem; color: var(--text-muted); margin-top: 5px; }
.fg .err-msg { font-size: .65rem; color: var(--crimson); margin-top: 3px; display: none; }
.fg.has-error input, .fg.has-error select { border-color: var(--crimson); }
.fg.has-error .err-msg { display: block; }

/* Input with icon prefix */
.inp-wrap { position: relative; }
.inp-wrap .inp-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem; color: var(--text-muted); 
  pointer-events: none;  /* Chrome fix: never intercept clicks */
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.inp-wrap input, .inp-wrap select {
  padding-left: 42px;
}
/* Amount input — ₹ prefix text */
.pfx-wrap { position: relative; }
.pfx-wrap .pfx-sym {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-weight: 700;
  color: var(--text-muted); font-size: .9rem; pointer-events: none;
}
.pfx-wrap input { padding-left: 30px; }

/* Row of two fields */
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ID Type Tabs — pill style */
.id-tabs { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.id-tab {
  padding: 7px 16px; border-radius: 24px;
  border: 1.5px solid var(--border); background: transparent;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .18s;
  display: flex; align-items: center; gap: 6px;
}
.id-tab.active {
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 10px rgba(232,98,26,.3);
}
.id-tab:hover:not(.active) { border-color: var(--saffron); color: var(--saffron); }

/* Section Divider */
.form-divider-wrap { position: relative; margin: 18px 0; }
.form-divider { border: none; border-top: 1px solid var(--border); }
.form-divider-label {
  position: absolute; top: -9px; left: 50%;
  transform: translateX(-50%); background: #fff;
  padding: 0 12px; font-size: .6rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}

/* PAN input — special shield icon */
.pan-wrap { position: relative; }
.pan-wrap .pan-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: .95rem; pointer-events: none;
}
.pan-wrap input { padding-left: 42px; text-transform: uppercase; letter-spacing: .08em; }

/* Submit Button */
.submit-btn {
  width: 100%; padding: 16px 24px; border-radius: 16px; border: none;
  background: linear-gradient(135deg,var(--saffron) 0%,var(--gold) 100%);
  color: #fff; font-family: var(--font-sans);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 6px;
  box-shadow: 0 6px 24px rgba(232,98,26,.42);
  transition: all .25s; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,98,26,.55); }
.submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.submit-btn .btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-btn.loading .btn-spinner { display: inline-block; }
.submit-btn.loading .btn-text { opacity: .7; }
.submit-btn .btn-leaf { font-size: 1.15rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.secure {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: .7rem; color: var(--text-muted); margin-top: 12px;
}
.secure-dot { width:3px; height:3px; border-radius:50%; background:var(--border); display:inline-block; }

/* ═══════════════════════════════════════════════════════════
   PAYMENT MODAL — matching screenshot 2 & 3
   ═══════════════════════════════════════════════════════════ */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,15,30,.82); backdrop-filter: blur(7px);
  align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.overlay.open { display: flex; }

.modal {
  background: #FBF7EF;
  border-radius: 28px;
  padding: clamp(22px,4vw,34px);
  max-width: 480px; width: 100%;
  position: relative; color: var(--ink);
  animation: popIn .38s cubic-bezier(.34,1.45,.64,1) both;
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
  max-height: 92vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(232,98,26,.25) transparent;
}
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: rgba(232,98,26,.3); border-radius: 4px; }

/* Top close × */
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #E8DFC8; border: none; font-size: 16px;
  color: #6B5C3E; cursor: pointer; display: grid; place-items: center; z-index: 2;
  transition: background .2s;
}
.modal-x:hover { background: #ddd; }

/* Icon */
.modal-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  display: grid; place-items: center; font-size: 26px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 22px rgba(232,98,26,.35);
}

/* Title */
.modal h3 {
  font-family: var(--font-serif); font-size: 1.75rem;
  font-weight: 700; text-align: center; margin-bottom: 8px;
}
.modal p { text-align: center; font-size: .82rem; color: #6B5C3E; line-height: 1.65; margin-bottom: 4px; }
.modal .receipt-no-line { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-align: center; margin-bottom: 14px; }

/* QR wrap */
.modal-qr-wrap {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 2px solid var(--border);
  border-radius: 18px; padding: 18px 20px; margin-bottom: 14px;
}
.modal-qr-wrap img { width: 170px; height: 170px; border-radius: 6px; display: block; object-fit: contain; }
.modal-qr-label { margin-top: 10px; font-size: .73rem; color: #8B7355; text-align: center; line-height: 1.45; }
.modal-qr-label strong { color: var(--saffron); font-size: .8rem; display: block; margin-bottom: 3px; }

/* UPI ID row */
.modal-upi-id {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 14px;
}
.modal-upi-id span { font-size: .88rem; font-weight: 600; color: #4a3520; letter-spacing: .02em; }
.modal-upi-id button {
  background: linear-gradient(135deg,rgba(232,98,26,.12),rgba(212,160,23,.1));
  border: 1px solid rgba(212,160,23,.3);
  font-size: .72rem; font-weight: 700; color: var(--saffron);
  cursor: pointer; font-family: var(--font-sans);
  padding: 5px 12px; border-radius: 8px; white-space: nowrap; transition: all .2s;
}
.modal-upi-id button:hover { background: var(--saffron); color: #fff; }

/* Required label */
.pay-required-label {
  font-size: .7rem; color: #c0392b; text-align: center; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* Payment method toggle */
.pay-method-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 12px;
}
.pay-tab {
  padding: 10px 12px; border-radius: 12px;
  border: 2px solid var(--border); background: #fff;
  font-family: var(--font-sans); font-size: .8rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .18s; text-align: center;
}
.pay-tab.active {
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 12px rgba(232,98,26,.32);
}
.pay-tab:hover:not(.active) { border-color: var(--saffron); color: var(--saffron); }

/* UPI/Cheque panels */
.pay-panel-hint { font-size: .7rem; color: var(--text-muted); text-align: center; margin-bottom: 10px; }

.modal-ref-row { display: flex; gap: 8px; margin-bottom: 8px; }
.modal-ref-row input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: 12px; font-family: var(--font-sans); font-size: .82rem;
  color: var(--ink); background: #fff; outline: none; transition: border-color .2s;
}
.modal-ref-row input:focus { border-color: var(--saffron); }

.modal-cheque-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.modal-cheque-row input {
  width: 100%; padding: 11px 14px; border: 2px solid var(--saffron);
  border-radius: 12px; font-family: var(--font-sans); font-size: .82rem;
  color: var(--ink); background: #fff; outline: none; transition: border-color .2s;
}
.modal-cheque-row input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232,98,26,.1); }

.modal-confirm-btn {
  padding: 11px 18px; border-radius: 12px; border: none;
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  color: #fff; font-family: var(--font-sans); font-size: .82rem;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(232,98,26,.3); transition: opacity .2s;
}
.modal-confirm-btn:hover { opacity: .88; }

/* Confirm full-width for cheque */
.modal-confirm-full {
  display: block; width: 100%; padding: 13px; border-radius: 12px; border: none;
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  color: #fff; font-family: var(--font-sans); font-size: .88rem;
  font-weight: 700; cursor: pointer; margin-top: 8px;
  box-shadow: 0 4px 16px rgba(232,98,26,.32);
}
.modal-confirm-full:hover { opacity: .88; }

/* Close button */
.modal-close-btn {
  display: block; width: 100%; padding: 13px; border-radius: 14px; border: none;
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  color: #fff; font-family: var(--font-sans); font-size: .92rem;
  font-weight: 700; cursor: pointer; margin-top: 10px;
  box-shadow: 0 4px 18px rgba(232,98,26,.32); transition: opacity .2s;
}
.modal-close-btn:hover { opacity: .88; }

/* UPI Failure Notice */
.modal-pay-fail {
  display: none; background: rgba(155,28,36,.07);
  border: 1px solid rgba(155,28,36,.3);
  border-radius: 12px; padding: 14px 16px;
  margin-bottom: 12px; font-size: .8rem; color: #6B1A20; line-height: 1.55;
  animation: popIn .3s both;
}
.modal-pay-fail strong { display: block; font-size: .85rem; color: var(--crimson); margin-bottom: 6px; }
.modal-pay-fail ul { padding-left: 16px; margin-top: 4px; }
.modal-pay-fail ul li { margin-bottom: 4px; }
.modal-pay-fail .bank-details { background: #fff; border: 1px solid rgba(212,160,23,.3); border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: .78rem; color: #4a3520; }
.modal-pay-fail .bank-details dt { font-weight: 700; color: #8B7355; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.modal-pay-fail .bank-details dd { color: var(--saffron); font-weight: 600; margin-bottom: 6px; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10,15,30,.95); border: 1px solid rgba(212,160,23,.3);
  color: #fff; padding: 11px 24px; border-radius: 50px;
  font-size: .82rem; font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  z-index: 9999; transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes popIn  { from{opacity:0;transform:scale(.88) translateY(20px)} to{opacity:1;transform:none} }

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:860px) {
  .split { grid-template-columns: 1fr; }
  .donate-form { position: static; }
}
@media(max-width:520px) {
  .fg-row { grid-template-columns: 1fr; }
  .amounts { gap: 7px; }
  .modal-ref-row { flex-direction: column; }
  .modal-confirm-btn { width: 100%; }
}
