/* ============================================================
   Mahesh Foundation — icons.css
   Icon layer for the donation page. Load AFTER style.css.
   Uses Font Awesome 6 Free (already loaded in index.php).
   Nothing here changes JS hooks, ids, or form behaviour.
   ============================================================ */

:root {
  --ic:      #D99512;            /* icon gold (brand2) */
  --ic-soft: #FFF3D6;            /* icon chip background */
  --ic-ink:  #173B72;            /* navy */
}

/* ---------- Hero tag: heart chip ---------- */
.mf-tag { padding: 5px 16px 5px 5px; gap: 10px; }
.mf-tag-ic {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 14px;
}

/* ---------- Step tracker: numbered circles joined by a line ---------- */
.mf-steps {
  counter-reset: mfstep;
  flex-wrap: nowrap;
  gap: 10px;
  background: var(--bg);
  border-radius: 99px;
  padding: 6px;
}
.mf-steps .badgetab {
  counter-increment: mfstep;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  background: transparent;
  padding: 6px 14px 6px 6px;
}
.mf-steps .badgetab::before {
  content: counter(mfstep);
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #8A94A8; color: #fff;
  font-size: 14px; font-weight: 800;
  transition: background .2s;
}
.mf-steps .badgetab.active { background: #fff; color: var(--ic-ink); box-shadow: 0 4px 14px -8px rgba(23,59,114,.35); }
.mf-steps .badgetab.active::before { background: var(--brand); color: #fff; }
.mf-steps .mf-sep {
  flex: 1 1 24px; min-width: 18px; height: 2px;
  background: var(--line);
  font-size: 0; overflow: hidden;      /* hides the "/" glyph */
}

/* ---------- Section headings: gold bar ---------- */
#div_your_details > h2,
#div_extra_details > h2,
#div_donation_detail > h2 {
  position: relative;
  padding-left: 14px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ic-ink);
}
#div_your_details > h2::before,
#div_extra_details > h2::before,
#div_donation_detail > h2::before {
  content: "";
  position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 4px;
  background: var(--brand);
}

/* ---------- Input fields with leading icon ---------- */
.mf-input { position: relative; }
.mf-input > i {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 20px; text-align: center;
  color: #7A869C; font-size: 16px;
  pointer-events: none;
  transition: color .15s;
}
.mf-input.is-area > i { top: 20px; transform: none; }
.mf-field .mf-input input,
.mf-field .mf-input select,
.mf-field .mf-input textarea { padding-left: 46px; }
.mf-input:focus-within > i { color: var(--ic); }

/* ---------- Donation tiles with icon chip ---------- */
.sponsorType.has-ic {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 12px;
  align-content: center;
  align-items: start;
}
.sponsorType.has-ic .tile-ic   { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.sponsorType.has-ic .amount    { grid-column: 2; grid-row: 1; align-self: end; }
.sponsorType.has-ic .type      { grid-column: 2; grid-row: 2; margin-top: 2px; align-self: start; }
.sponsorType.has-ic.txt .amount { font-size: 16px; }

.tile-ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ic-soft);
  color: var(--ic);
  font-size: 21px;
  transition: background .15s, color .15s, transform .2s;
}
.sponsorType:hover .tile-ic { transform: translateY(-1px) scale(1.04); }
.sponsorType.active-cell .tile-ic { background: var(--brand); color: #fff; }

/* per-child tiles get the warm tint shown in the design */
.sponsorType.qty-tile { background: #FFFBF0; border-color: #F3DDA4; }
.sponsorType.qty-tile.active-cell { background: #FFF3D6; border-color: var(--brand2); }

/* "More ways to support" link tiles: icon above label */
a.mf-link-tile .tile-ic { margin-bottom: 8px; }
a.mf-link-tile:hover .tile-ic { background: var(--brand); color: #fff; }

/* group label */
.mf-group { color: var(--ic-ink); font-size: 14px; }

/* ---------- Sidebar: trust badges ---------- */
.mf-trust {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mf-trust > div {
  flex-direction: column;
  text-align: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 14px;
  background: #FFFBF0;
  font-size: 12.5px;
  line-height: 1.25;
}
.mf-trust .mf-ic {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--ic-soft);
  color: var(--ic);
  font-size: 22px;
}

/* ---------- Sidebar: stats with dividers ---------- */
.mf-stats { gap: 0; }
.mf-stats > div + div { border-left: 1.5px solid var(--line); }
.mf-stats b { font-size: 26px; }
.mf-stats span { display: block; margin-top: 2px; color: var(--ic-ink); font-size: 12.5px; }

/* ---------- Claim receipts ---------- */
.mf-claim-title {
  position: relative;
  padding-left: 12px;
  color: var(--ic-ink);
}
.mf-claim-title::before {
  content: "";
  position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; border-radius: 3px;
  background: var(--brand);
}
.mf-dl a { justify-content: space-between; background: #fff; border-color: #F3DDA4; }
.mf-dl .dl-l { display: inline-flex; align-items: center; gap: 10px; }
.mf-dl .dl-l i { font-size: 18px; color: var(--ic); }
.mf-dl .dl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800;
  color: var(--ic-ink);
}
.mf-dl .dl-badge i { font-size: 20px; }
.mf-dl .dl-badge .fa-file-pdf   { color: #D93025; }
.mf-dl .dl-badge .fa-file-excel { color: #1E8E3E; }

/* ---------- Secure line + CTA icons ---------- */
.mf-secure i { color: var(--ic); }
.mf-go i { margin-right: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .mf-steps { padding: 5px; gap: 6px; }
  .mf-steps .badgetab { font-size: 13px; padding-right: 10px; gap: 6px; }
  .mf-steps .badgetab::before { width: 26px; height: 26px; font-size: 13px; }
  #div_your_details > h2,
  #div_extra_details > h2,
  #div_donation_detail > h2 { font-size: 21px; }
  .mf-trust > div { font-size: 11.5px; }
  .mf-trust .mf-ic { width: 44px; height: 44px; font-size: 19px; }
  .mf-stats b { font-size: 22px; }
  .mf-stats span { font-size: 11.5px; }
}
@media (max-width: 420px) {
  /* tiles are single-column here, keep icon + text side by side */
  .sponsorType.has-ic { grid-template-columns: 42px minmax(0, 1fr); }
  .tile-ic { width: 42px; height: 42px; font-size: 19px; }
}

/* ============================================================
   FIX: per-child tiles ("₹20 / child") broke onto separate lines
   Cause: style.css has `.sponsorType .amount span { font-size: inherit }`
   which out-specifies `.per-unit`, so "/ child" rendered at 22px and wrapped.
   ============================================================ */
.sponsorType.has-ic .amount {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 3px;
  font-size: 21px;
  line-height: 1.15;
}
.sponsorType.has-ic .amount .per-unit {
  font-size: 12.5px;
  font-weight: 600;
  margin-left: 2px;
  letter-spacing: 0;
  color: var(--mute);
}
.sponsorType.has-ic.txt .amount { white-space: normal; font-size: 16px; }

/* tighter, evenly balanced tile layout */
.sponsorType.has-ic {
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  padding: 14px;
  min-height: 112px;
  align-content: center;
  align-items: center;
}
.sponsorType.has-ic .tile-ic { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
.sponsorType.has-ic .amount  { align-self: end; }
.sponsorType.has-ic .type    { align-self: start; margin-top: 3px; line-height: 1.3; }
.sponsorType.qty-tile.has-ic { padding-bottom: 14px; }   /* drop the old 22px hint padding */

/* mobile: keep tiles roomy */
@media (max-width: 420px) {
  .sponsorType.has-ic { grid-template-columns: 40px minmax(0, 1fr); }
  .sponsorType.has-ic .tile-ic { width: 40px; height: 40px; font-size: 18px; }
}