/* ============================================================
   Mahesh Foundation / Vidyoday — style.css
   Clean merged version (brand theme folded into tokens)
   Mobile overflow fixes:
     - every grid track uses minmax(0, 1fr) so long content can't widen it
     - grid / flex children get min-width: 0
     - inputs & selects capped at 100% width
     - html/body clip horizontal overflow (sticky header still works)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;               /* no sideways scroll, doesn't break sticky */
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* Older browsers without overflow:clip */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

h1, h2, h3, h4, h5 { margin: 0 0 8px; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand2); }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; max-width: 100%; }

/* ---------- Design Tokens (Vidyoday brand) ---------- */
:root {
  --bg:        #F5F7FC;
  --card:      #FFFFFF;
  --ink:       #202B45;
  --mute:      #68758A;
  --line:      #E4E9F1;
  --brand:     #F4B32F;
  --brand2:    #D99512;
  --soft:      #FFF3D6;
  --navy:      #173B72;
  --ok:        #27864A;
  --danger:    #D64545;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 12px 40px -18px rgba(23, 59, 114, .18);
}
/* Page stays bright in every OS colour mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #F5F7FC; --card: #FFFFFF; --ink: #202B45;
    --mute: #68758A; --line: #E4E9F1; --soft: #FFF3D6; --navy: #173B72;
  }
}

/* ---------- Layout helpers ---------- */
.mf-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.mf-center { text-align: center; }
.mf-mt-lg { margin-top: 44px; }
.mf-card {
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .85) url("https://donate.maheshfoundation.co/images/loader.gif") no-repeat scroll 50% 50%;
  z-index: 50000;
  display: none;
}
.preloader.show { display: block; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.mf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.mf-header.scrolled { box-shadow: 0 8px 24px -14px rgba(14, 27, 61, .4); }
.mf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  min-width: 0;
}
.mf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
}
.mf-logo img {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.mf-logo small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--mute);
  margin-top: 2px;
  letter-spacing: 0;
}
.mf-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mute);
}
.mf-nav-links > li { position: relative; }
.mf-nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--mute);
}
.mf-nav-links > li > a:hover { color: var(--navy); }
.mf-nav-links > li > a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s;
}
.mf-nav-links > li > a:hover::after { transform: scaleX(1); }

/* Dropdowns */
.mf-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px -14px rgba(14, 27, 61, .22);
  padding: 8px;
  display: none;
  z-index: 30;
}
.mf-dropdown li { position: relative; }
.mf-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.mf-dropdown a:hover { background: var(--soft); color: var(--navy); }
.mf-dropdown .mf-sub {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 4px;
  min-width: 230px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px -14px rgba(14, 27, 61, .22);
  padding: 8px;
  display: none;
}
.mf-nav-links > li:hover > .mf-dropdown,
.mf-dropdown li:hover > .mf-sub { display: block; }

.mf-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F4B32F 0%, #E9A51E 100%);
  color: #173B72 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px -12px rgba(217, 149, 18, .65);
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.mf-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(217, 149, 18, .75);
}
.mf-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--ink);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mf-mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 20px 16px;
  background: var(--card);
}
.mf-mobile-menu.open { display: block; }
.mf-mobile-menu a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mf-mobile-menu a:hover { color: var(--navy); }
.mf-mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Dark mode: navy header so the white logo stays visible ---------- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .mf-header {
    background: #173B72;
    border-bottom-color: rgba(255, 255, 255, .14);
  }
  html:not([data-theme="light"]) body .mf-header .mf-logo,
  html:not([data-theme="light"]) body .mf-header .mf-logo small { color: #FFFFFF; }
  html:not([data-theme="light"]) body .mf-header .mf-nav-links > li > a { color: #EAF1FB; }
  html:not([data-theme="light"]) body .mf-header .mf-nav-links > li > a:hover { color: #F8C94E; }
  html:not([data-theme="light"]) body .mf-header .mf-burger {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, .35);
  }
  html:not([data-theme="light"]) body .mf-header .mf-mobile-menu {
    background: #173B72;
    border-top-color: rgba(255, 255, 255, .14);
  }
  html:not([data-theme="light"]) body .mf-header .mf-mobile-menu a {
    color: #EAF1FB;
    border-bottom-color: rgba(255, 255, 255, .14);
  }
  html:not([data-theme="light"]) body .mf-header .mf-mobile-menu a:hover { color: #F8C94E; }
}
html[data-theme="dark"] body .mf-header { background: #173B72; border-bottom-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] body .mf-header .mf-logo,
html[data-theme="dark"] body .mf-header .mf-nav-links > li > a { color: #EAF1FB; }
html[data-theme="dark"] body .mf-header .mf-burger { color: #FFFFFF; border-color: rgba(255, 255, 255, .35); }
html[data-theme="dark"] body .mf-header .mf-mobile-menu { background: #173B72; }
html[data-theme="dark"] body .mf-header .mf-mobile-menu a { color: #EAF1FB; border-bottom-color: rgba(255, 255, 255, .14); }

/* ============================================================
   HERO  (background image — desktop + mobile)
   Tweak --hero-pos / --hero-pos-mobile to move the focal point.
   ============================================================ */
.mf-hero {
  --hero-pos: right center;          /* desktop focal point  */
  --hero-pos-mobile: right center;   /* phone focal point — keeps the children in frame */

  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #173B72;
  padding: 72px 0 120px;
  min-height: 380px;
  background-color: #F4B32F;         /* fallback while image loads */
  background-image: url("https://donate.vidyoday.org/images/Donate%20Now%20Cover.png");
  background-size: cover;
  background-position: var(--hero-pos);
  background-repeat: no-repeat;
}
/* Readability veil: light fade on the text side only */
.mf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .35) 0%,
    rgba(255, 255, 255, .12) 45%,
    rgba(255, 255, 255, 0) 70%);
}
.mf-hero > .mf-wrap { position: relative; z-index: 2; }
.mf-hero-glow {
  position: absolute;
  z-index: 1;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .38), transparent 70%);
  animation: mf-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.mf-hero h1 {
  color: #173B72;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  max-width: 15em;
  margin-top: 16px;
  overflow-wrap: break-word;
  animation: mf-rise .8s .1s both;
}
.mf-hero p {
  max-width: 34em;
  color: #344B6D;
  font-size: 18px;
  margin: 14px 0 20px;
  animation: mf-rise .8s .25s both;
}
.mf-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  color: #173B72;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(23, 59, 114, .16);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  animation: mf-rise .8s .4s both;
}
.mf-tag-ic {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--navy);
  font-size: 10px;
  line-height: 1;
  flex: none;
}

/* ============================================================
   MAIN GRID (Form + Sidebar)
   ============================================================ */
.mf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: -72px;
  position: relative;
  z-index: 3;
  align-items: start;
}
.mf-grid > * { min-width: 0; }

/* Steps */
.mf-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}
.mf-steps .badgetab {
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--mute);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.mf-steps .badgetab.active { background: var(--soft); color: var(--navy); }
.mf-steps .mf-sep { color: var(--mute); }

/* Steps must always fit inside the card (id selector beats icons.css) */
#donation_form .mf-steps {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: space-between;
}
#donation_form .mf-steps .badgetab {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}
#donation_form .mf-steps .mf-sep {
  flex: 1 1 8px;
  min-width: 4px;
  max-width: 40px;
}

@media (max-width: 640px) {
  #donation_form .mf-steps { gap: 4px; font-size: 12px; }
  #donation_form .mf-steps .badgetab { padding: 5px 9px 5px 5px; font-size: 12px; }
  #donation_form .mf-steps .badgetab::before {
    width: 20px; height: 20px; min-width: 20px;
    line-height: 20px; font-size: 10.5px; margin-right: 5px;
  }
}
@media (max-width: 420px) {
  #donation_form .mf-steps { gap: 3px; font-size: 11px; }
  #donation_form .mf-steps .badgetab { padding: 4px 7px 4px 4px; font-size: 11px; letter-spacing: -0.01em; }
  #donation_form .mf-steps .badgetab::before {
    width: 18px; height: 18px; min-width: 18px;
    line-height: 18px; font-size: 10px; margin-right: 4px;
  }
}
@media (max-width: 340px) {
  #donation_form .mf-steps .badgetab { font-size: 10px; padding: 4px 6px 4px 4px; }
}

/* Fields */
.mf-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 16px;
  margin: 16px 0 28px;
}
.mf-field { display: flex; flex-direction: column; min-width: 0; }
.mf-field-full { grid-column: 1 / -1; }
.mf-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #52617A;
  margin-bottom: 6px;
}
.mf-field .mf-opt { font-weight: 500; font-size: 12px; color: var(--mute); }
.mf-field input,
.mf-field select,
.mf-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 16px;               /* 16px prevents iOS zoom-on-focus */
  font-weight: 500;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.mf-field select { text-overflow: ellipsis; }
.mf-field textarea { min-height: 90px; resize: vertical; }
.mf-field input:focus,
.mf-field select:focus,
.mf-field textarea:focus {
  outline: none;
  border-color: var(--brand2);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(244, 179, 47, .18);
}

/* Icon-inside-input wrapper */
.mf-field .mf-input {
  position: relative;
  width: 100%;
  min-width: 0;
}
.mf-field .mf-input > i {
  position: absolute;
  left: 15px;
  top: 25px;                      /* half of 50px field height */
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--mute);
  pointer-events: none;
  z-index: 1;
}
.mf-field .mf-input.is-area > i { top: 16px; transform: none; }
.mf-field .mf-input > input,
.mf-field .mf-input > select,
.mf-field .mf-input > textarea { padding-left: 42px; }

.error {
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 16px;
  margin-top: 4px;
}
.mf-center.error { text-align: center; margin-top: 10px; }

/* ============================================================
   DONATION AMOUNT TILES
   ============================================================ */
.mf-amts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.sponsorType {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  min-height: 116px;
  overflow-wrap: anywhere;
  transition: border-color .15s, background .15s, transform .1s;
}
.sponsorType:hover { border-color: #E7B64F; }
.sponsorType:active { transform: scale(.98); }
.sponsorType.active-cell {
  border-color: var(--brand2);
  background: #FFF8E9;
  box-shadow: 0 0 0 3px rgba(244, 179, 47, .16);
}
.sponsorType.active-cell .type,
.sponsorType.active-cell .amount { color: #173B72; }

.sponsorType .check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background .15s, color .15s, transform .2s;
}
.sponsorType .check.checked {
  background: var(--brand);
  color: #173B72;
  animation: mf-pop .3s ease-out;
}
.sponsorType .check.checked::before { content: "✓"; }

.sponsorType .amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
  padding-right: 22px;            /* room for the check bubble */
}
.sponsorType .amount i { font-size: 15px; opacity: .7; }
.sponsorType .amount span { font-size: inherit; }

.sponsorType .type {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.35;
  margin-top: auto;
}

/* Icon chip */
.sponsorType .tile-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--navy);
  font-size: 15px;
  line-height: 1;
  flex: none;
}
.sponsorType.active-cell .tile-ic { background: #FCE8B5; }

/* Icon + amount on one row, description below */
.sponsorType.has-ic {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}
.sponsorType.has-ic .tile-ic { order: 1; }
.sponsorType.has-ic .amount  { order: 2; flex: 1 1 auto; }
.sponsorType.has-ic .type    { order: 3; flex: 0 0 100%; margin-top: 2px; }

/* Text-only tiles */
.sponsorType.txt .amount { font-size: 16px; font-weight: 700; line-height: 1.25; }
.sponsorType.txt .type   { font-size: 13px; color: var(--mute); }

/* ---------- Per-child quantity UI ---------- */
.sponsorType .per-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin-left: 4px;
  letter-spacing: .02em;
}
.sponsorType.active-cell .per-unit { color: var(--brand2); }

.sponsorType.qty-tile { padding-bottom: 22px; }
.sponsorType.qty-tile::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand2);
  opacity: .75;
}
.sponsorType.qty-tile.active-cell::after { color: var(--brand2); opacity: 1; }

/* Modal: quantity stepper */
.qty-stepper {
  display: flex;
  align-items: stretch;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  margin: 8px 0 12px;
}
.qty-stepper button {
  width: 52px;
  border: none;
  background: var(--soft);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-stepper button:hover { background: var(--brand); color: var(--navy); }
.qty-stepper button:active { transform: scale(.96); }
.qty-stepper input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  padding: 0 6px;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty-total {
  text-align: center;
  padding: 10px 0 4px;
  font-size: 13.5px;
  color: var(--mute);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.qty-total b {
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.qty-stepper.invalid { border-color: var(--danger); animation: mf-shake .35s; }

/* Link tiles */
a.mf-link-tile {
  text-decoration: none;
  color: var(--ink);
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 96px;
}
a.mf-link-tile .amount { font-size: 16px; padding-right: 0; }
a.mf-link-tile:hover { background: var(--soft); color: var(--navy); }

.mf-amts-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mf-group {
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
  margin: 22px 0 0;
}

/* CTA */
.mf-go {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #F4B32F 0%, #E9A51E 100%);
  color: #173B72 !important;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px -12px rgba(217, 149, 18, .65);
  transition: transform .15s, box-shadow .2s;
}
.mf-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(217, 149, 18, .75);
}
.mf-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mute);
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

/* Legacy buttons (modals) */
.cutomeBtn {
  background: linear-gradient(135deg, #F4B32F 0%, #E9A51E 100%);
  border: none;
  border-radius: 10px;
  color: #173B72 !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  box-shadow: 0 8px 20px -12px rgba(217, 149, 18, .65);
  transition: transform .15s;
}
.cutomeBtn:hover { transform: translateY(-2px); }
.cutomeBtnSmall { padding: 8px 16px; font-size: 14px; }
.cancelBtn { background: #ACACAC !important; }
.w-30 { width: 40%; }
.p-10 { padding: 10px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.mf-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  position: sticky;
  top: 90px;
  min-width: 0;
}
.mf-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.mf-trust > div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}
.mf-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFF3D6;
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
}
.mf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.mf-stats b {
  display: block;
  font-size: 26px;
  color: var(--brand2);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mf-stats span { font-size: 12px; color: var(--mute); font-weight: 600; }

.mf-h2-sm { font-size: 18px; }
.mf-qr {
  width: 190px;
  height: 190px;
  margin: 12px auto;
  border-radius: 16px;
  border: 3px solid var(--brand);
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.mf-qr-ft { width: 190px; height: 20px; margin: 8px auto; object-fit: contain; }
.mf-upi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.mf-copy {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  transition: background .15s;
}
.mf-copy:hover { background: var(--soft); }
.mf-apps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.mf-apps span {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--mute);
}
.mf-claim-title { font-weight: 700; margin: 18px 0 8px; }
.mf-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mf-dl a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  min-width: 0;
  transition: transform .15s, background .2s;
}
.mf-dl a:hover { background: var(--soft); transform: translateY(-2px); }
.mf-dl .dl-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.mf-dl .dl-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--soft);
}

/* ============================================================
   SECTIONS / BANK / CLAIM
   ============================================================ */
.mf-section { padding: 64px 0 0; }
.mf-section h2 { font-size: 22px; margin-bottom: 6px; }
.mf-bank { max-width: 760px; margin: 18px auto 0; padding: 6px 24px; }
.mf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.mf-row:last-child { border: 0; }
.mf-row:hover { background: var(--soft); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.mf-row > span { color: var(--mute); font-size: 14px; }
.mf-row > b {
  font-weight: 700;
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mf-claim { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.mf-claim a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s;
}
.mf-claim a:hover { transform: translateY(-2px); background: #FCE8B5; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.mf-quote {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  border-radius: 24px;
  overflow: hidden;
  background: var(--soft);
  min-height: 460px;
  margin-top: 20px;
}
.mf-quote-left {
  position: relative;
  background-image: url('images/What%20people%20say.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  padding: 40px;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  isolation: isolate;
  overflow: hidden;
}
.mf-quote-overlay { position: absolute; inset: 0; z-index: -1; }
.mf-quote-left h2 {
  position: relative;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.mf-quote-body {
  position: relative;
  padding: 40px 40px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.mf-quote-track { position: relative; min-height: 300px; }
.mf-quote-slide {
  position: absolute;
  inset: 0;
  display: none;
  gap: 28px;
  align-items: center;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .5s ease, transform .5s ease;
}
.mf-quote-slide.on { display: flex; opacity: 1; transform: translateY(0); }
.mf-quote-text { flex: 1; min-width: 0; }
.mf-quote-icon { height: 24px; width: auto; margin-bottom: 14px; opacity: .55; }
.mf-quote-slide blockquote { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.mf-who { font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.3; }
.mf-who small { display: block; color: var(--mute); font-weight: 500; font-size: 13px; margin-top: 3px; }
.mf-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.mf-watch:hover { color: var(--brand2); }
.mf-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--navy);
  font-size: 17px;
  transition: transform .2s;
}
.mf-watch:hover .mf-play { transform: scale(1.08); }
.mf-progress {
  display: inline-block;
  width: 110px;
  height: 5px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
  vertical-align: middle;
}
.mf-progress > span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--brand);
  border-radius: 5px;
  animation: mf-progress 2s infinite alternate;
}
@keyframes mf-progress { 0% { width: 10%; } 100% { width: 100%; } }
.mf-quote-photo { flex: none; width: 190px; text-align: center; }
.mf-quote-photo a { display: block; text-decoration: none; }
.mf-quote-photo img {
  width: 100%;
  max-width: 190px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  box-shadow: 0 14px 34px -14px rgba(14, 27, 61, .45);
  transition: transform .3s, box-shadow .3s;
  background: var(--bg);
}
.mf-quote-photo a:hover img { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(14, 27, 61, .55); }
.mf-image-bar { display: block; width: 60%; height: 4px; background: var(--brand); border-radius: 2px; margin: 12px auto 0; }
.mf-dots {
  position: absolute;
  bottom: 22px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.mf-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.mf-dots button.on { background: var(--brand2); transform: scale(1.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.mf-footer {
  background: #173B72;
  color: #EAF1FB;
  margin-top: 72px;
  padding: 48px 0 28px;
  font-size: 14.5px;
}
.mf-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.mf-footer-grid > * { min-width: 0; }
.mf-footer .mf-logo { color: #fff; margin-bottom: 14px; }
.mf-footer .mf-logo small { color: rgba(255, 255, 255, .6); }
.mf-footer p { margin: 6px 0; overflow-wrap: anywhere; }
.mf-footer a { color: #EAF1FB; }
.mf-footer a:hover { color: #F8C94E; }
.mf-footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 24px;
  align-content: start;
}
.mf-footer-links a { display: block; padding: 2px 0; }
.mf-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
}
.mf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.mf-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  transition: background .2s, transform .2s;
}
.mf-social a:hover { background: var(--brand); color: var(--navy); transform: translateY(-3px); }
.mf-social img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }

/* ============================================================
   MODALS (Bootstrap)
   ============================================================ */
.modal-content { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
.modal-dialog { max-width: calc(100vw - 24px); }
@media (min-width: 576px) { .modal-dialog { max-width: 500px; } }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-title { font-weight: 700; }
.modal-body { font-size: 15px; }
.modal .close { background: transparent; border: none; font-size: 22px; line-height: 1; color: var(--mute); }
.modal .form-control {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
}
.modal .form-control:focus { border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(244, 179, 47, .16); }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-8 { margin-top: 8px; }
.mt-1 { margin-top: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-1.mb-2 { margin-top: 10px; margin-bottom: 8px; }
.displaynone { display: none !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes mf-rise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes mf-drift { to { transform: translate(-50px, 40px) scale(1.15); } }
@keyframes mf-pop   { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes mf-drop  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes mf-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.shake { animation: mf-shake .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mf-grid { grid-template-columns: minmax(0, 1fr); }
  .mf-aside { position: static; }
  .mf-quote { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .mf-quote-left { min-height: 200px; padding: 30px; }
  .mf-quote-left h2 { font-size: 32px; }
  .mf-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .mf-nav-links,
  .mf-nav > .mf-donate-btn { display: none; }
  .mf-burger { display: inline-flex; }

  .mf-header .mf-logo { display: flex !important; min-width: 0; }
  .mf-header .mf-logo img { display: block !important; }
  .mf-logo img { height: 44px; width: auto; max-width: 62vw; object-fit: contain; }
  .mf-logo small { font-size: 10px; }
  .mf-nav { height: 64px; gap: 10px; }

  .mf-amts,
  .mf-amts-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablets & phones: hero image re-framed + stronger veil for text */
@media (max-width: 768px) {
  .mf-hero {
    background-position: var(--hero-pos-mobile);
    padding: 44px 0 100px;
    min-height: 0;
  }
  /* Fade only behind the text (left); children on the right stay clear */
  .mf-hero::before {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, .78) 0%,
      rgba(255, 255, 255, .50) 45%,
      rgba(255, 255, 255, 0) 80%);
  }
  .mf-hero-glow { display: none; }
}

@media (max-width: 640px) {
  .mf-wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .mf-hero { padding: 36px 0 96px; }
  .mf-hero h1 { font-size: 28px; }
  .mf-hero p { font-size: 16px; }
  .mf-card { padding: 18px 16px; border-radius: 18px; }

  .mf-steps { gap: 4px; font-size: 12.5px; margin-bottom: 18px; }
  .mf-steps .badgetab { padding: 6px 11px; }

  .mf-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0 22px; }
  .mf-field input, .mf-field select, .mf-field textarea { min-height: 48px; }
  .mf-field .mf-input > i { top: 24px; }

  .mf-amts,
  .mf-amts-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sponsorType { padding: 13px; min-height: 100px; }
  .sponsorType .amount { font-size: 20px; }
  .sponsorType .tile-ic { width: 30px; height: 30px; font-size: 13px; }
  a.mf-link-tile { min-height: 82px; }

  .mf-go { height: 52px; font-size: 16px; }
  .mf-secure { font-size: 12.5px; }
  .mf-stats b { font-size: 22px; }
  .mf-dl a { padding: 11px 12px; font-size: 13px; }

  .mf-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mf-row > b { text-align: left; justify-content: flex-start; }

  .mf-quote-body { padding: 26px 20px 70px; }
  .mf-quote-track { min-height: 420px; }
  .mf-quote-left { min-height: 150px; padding: 26px; }
  .mf-quote-slide { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mf-quote-photo { width: 100%; }
  .mf-quote-photo img { max-width: 160px; height: 180px; margin: 0 auto; }
  .mf-quote-slide blockquote { font-size: 15.5px; }
  .mf-dots { left: 20px; right: 20px; }

  .mf-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .mf-footer-bottom { text-align: center; justify-content: center; }
}

@media (max-width: 420px) {
  .mf-amts, .mf-amts-links { grid-template-columns: minmax(0, 1fr); }
  .mf-logo img { height: 38px; max-width: 58vw; }
  .mf-steps { font-size: 12px; }
  .mf-hero h1 { font-size: 26px; }
  .mf-hero p { font-size: 15px; }
  .mf-tag { font-size: 12px; padding: 6px 11px; }
  .mf-trust { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legacy Classes (confirmation / regular pages) ---------- */
.mainSection { position: relative; }
.main-section-height { min-height: auto; }
.formBlock { width: 100%; }
.tabPanel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tabPanel h3 { font-size: 15px; margin: 0; cursor: pointer; }
.tabPanel h3.active { color: var(--navy); border-bottom: 2px solid var(--brand); padding-bottom: 4px; }
.titleSection { padding: 24px 0 40px; }
.headingSiteText { text-align: center; font-size: 15px; color: var(--mute); margin: 10px 0 0; }
.mobile-cover { display: none; }
.cover-image { display: none; }
.infoBox { padding: 0; }
.footer-div { margin-top: 40px; }
.socialMedia { display: none; }
.paymentMethod { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0; }
.paymentMethod img { height: 28px; opacity: .55; }

/* Accessible keyboard focus */
:where(a, button, input, select, textarea, .sponsorType):focus-visible {
  outline: 3px solid rgba(22, 135, 185, .45);
  outline-offset: 2px;
}