/**
 * pandit.css — the "Become a Moktra pandit" page: hero stat tiles, the
 * payout explainer with its wallet mock, and the application form.
 */

.pandit-hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(44px, 7vw, 78px) 0 clamp(48px, 7vw, 80px);
}
.pandit-hero__copy { flex: 1 1 440px; min-width: 0; }
.pandit-hero__copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(31px, 6.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 19ch;
  text-shadow: 0 4px 40px rgba(224, 163, 37, .26);
}
.pandit-hero__copy > p {
  margin-bottom: 26px;
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.6;
  color: rgba(255, 248, 240, .84);
  max-width: 50ch;
}
.pandit-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pandit-hero__stats {
  flex: 1 1 320px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.stat-tile {
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 248, 240, .18);
  background: rgba(255, 248, 240, .07);
  backdrop-filter: blur(8px);
  transition: all var(--t-slow);
}
.stat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 163, 37, .6);
  box-shadow: 0 0 30px -8px rgba(224, 163, 37, .7);
}
.stat-tile svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }
.stat-tile b {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--on-dark);
}
.stat-tile span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: rgba(255, 248, 240, .72); }

/* ================= DUTIES ================= */
.duty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.duty {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: all var(--t-slow);
}
.duty:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px -16px rgba(224, 163, 37, .85);
}
.duty__when {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.duty h3 { margin: 7px 0 9px; font-family: var(--font-body); font-size: clamp(16px, 1.9vw, 17.5px); font-weight: 700; line-height: 1.25; }
.duty p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ================= PAYOUT ================= */
.payout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  align-items: flex-start;
}
.payout__copy { flex: 1 1 420px; min-width: 0; }
.payout__copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.12;
  max-width: 24ch;
}
.payout__copy > p {
  margin-bottom: 28px;
  font-size: clamp(14.5px, 1.7vw, 16px);
  line-height: 1.65;
  color: rgba(238, 246, 242, .78);
  max-width: 52ch;
}
.payout__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(238, 246, 242, .14);
}
.payout__step h3 { margin: 0; font-family: var(--font-body); font-size: clamp(15.5px, 1.8vw, 17px); font-weight: 700; line-height: 1.3; }
.payout__step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.payout__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--gold);
  white-space: nowrap;
}
.payout__step p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: rgba(238, 246, 242, .74); max-width: 46ch; }

/* ---------- Wallet mock ---------- */
.wallet-mock {
  flex: 1 1 330px;
  min-width: 0;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(224, 163, 37, .5);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), 0 0 40px -12px rgba(224, 163, 37, .5);
}
.wallet-mock__head {
  padding: 22px clamp(18px, 3vw, 24px);
  background: linear-gradient(150deg, var(--maroon-800), var(--maroon-600));
  color: var(--on-dark);
}
.wallet-mock__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-mock__top > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, .72);
}
.wallet-mock__top svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }
.wallet-mock__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(224, 163, 37, .2);
  color: var(--gold-soft);
}
.wallet-mock__label { margin-top: 16px; font-size: 12.5px; color: rgba(255, 248, 240, .68); }
.wallet-mock__amount {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.wallet-mock__pending { margin-top: 4px; font-size: 12.5px; color: var(--gold-soft); }
.wallet-mock__ledger { padding: 8px clamp(14px, 2.5vw, 18px) 4px; }
.wallet-mock__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.wallet-mock__row b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-mock__row small { display: block; font-size: 12px; margin-top: 3px; }
.wallet-mock__foot { padding: 14px clamp(14px, 2.5vw, 18px) 20px; display: flex; flex-direction: column; gap: 10px; }
.wallet-mock__foot p { margin: 0; font-size: 12px; color: var(--ink-5); line-height: 1.55; text-align: center; }

/* ================= APPLY ================= */
.apply {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 44px);
  align-items: flex-start;
}
.apply__main { flex: 1 1 460px; min-width: 0; }
.apply__main > h2 {
  margin: 10px 0 12px;
  font-size: clamp(25px, 4.2vw, 34px);
  line-height: 1.15;
  max-width: 24ch;
}
.apply__main > p { margin-bottom: 26px; }

.apply-form {
  padding: clamp(20px, 3.4vw, 30px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 26px -14px rgba(61, 17, 25, .35);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 18px);
}
.apply-form .field--full { grid-column: 1 / -1; }
.phone-input {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
}
.phone-input__cc {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-4);
  background: #f6efe1;
  border-right: 1px solid var(--line);
}
.phone-input input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 15px;
  min-height: 48px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: .03em;
}
.phone-input input:focus-visible { outline: none; box-shadow: none; }
.field[data-invalid="true"] .phone-input { border-color: var(--error); background: #fdf6f4; }

.apply-form__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding-top: 4px;
}
.apply-form__submit p { margin: 0; font-size: 12.5px; color: var(--ink-5); line-height: 1.55; max-width: 34ch; }

/* Optional extras, collapsed by default so the form still reads as five fields. */
.apply-extras {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
  overflow: hidden;
}
.apply-extras > summary {
  padding: 14px 16px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--maroon-600);
  list-style: none;
}
.apply-extras > summary::-webkit-details-marker { display: none; }
.apply-extras > summary svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t); }
.apply-extras[open] > summary svg { transform: rotate(180deg); }
.apply-extras__body {
  padding: 4px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 14px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-grid input { width: 17px; height: 17px; accent-color: var(--maroon-600); }
.file-drop {
  display: block;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.file-drop:hover { border-color: var(--gold); }
.file-drop input { display: none; }

.apply-success {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background: #e9f2ee;
  border: 1px solid #b9d5cc;
  box-shadow: 0 0 34px -14px rgba(47, 93, 86, .6);
}
.apply-success__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-800);
  color: var(--green-ink);
  box-shadow: 0 0 26px -6px rgba(31, 64, 59, .8);
}
.apply-success__mark svg { width: 24px; height: 24px; }
.apply-success h3 { margin: 16px 0 8px; font-size: clamp(20px, 3vw, 25px); line-height: 1.2; }
.apply-success p { margin: 0 0 18px; font-size: 14.5px; color: #3d4f4a; line-height: 1.6; max-width: 46ch; }

.apply__aside {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 18px);
}
.aside-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.aside-card--rose { background: var(--maroon-tint); border-color: var(--maroon-tint-border); }
.aside-card h3 { margin: 0 0 14px; font-size: 19px; }
.aside-card--rose h3 { color: var(--maroon-800); }
.criteria { display: flex; flex-direction: column; gap: 11px; }
.criteria span { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: #4a2b31; }
.criteria svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--maroon-600); }
.after-list { display: flex; flex-direction: column; gap: 14px; }
.after-list > div { display: flex; gap: 12px; align-items: flex-start; }
.after-list__n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  padding-top: 2px;
  flex-shrink: 0;
}
.after-list strong { display: block; font-size: 14px; line-height: 1.35; }
.after-list span { font-size: 13px; color: var(--ink-3); line-height: 1.55; }

/* ================= FAQ CARDS ================= */
.faq-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}
.faq-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--t-slow);
}
.faq-card:hover { border-color: var(--gold); box-shadow: 0 10px 30px -16px rgba(224, 163, 37, .9); }
.faq-card h3 { margin: 0 0 9px; font-family: var(--font-body); font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.faq-card p { font-size: 14px; color: var(--ink-3); line-height: 1.65; }

/* ================= CLOSING ================= */
.pandit-closing {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(44px, 7vw, 74px);
}
.pandit-closing__copy { flex: 1 1 420px; min-width: 0; }
.pandit-closing__copy h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.pandit-closing__copy p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255, 248, 240, .82);
  line-height: 1.6;
  max-width: 46ch;
}
