/* ZP Kanker recruitment portal · government enterprise theme */
:root {
  --navy-900: #0b2340;
  --navy: #12335b;
  --navy-600: #1d4a80;
  --navy-50: #eaf0f8;
  --saffron: #d9661f;
  --saffron-50: #fdf1e8;
  --green: #1f7a3a;
  --green-50: #e9f5ec;
  --red: #b42318;
  --red-50: #fdecea;
  --amber-50: #fff6e0;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #d5dbe4;
  --line-soft: #e7ebf0;
  --text: #1c2632;
  --muted: #5a6778;
  --radius: 6px;
  --font: 'Noto Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  --fs: 15px;
}

* { box-sizing: border-box; }
html { font-size: var(--fs); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; font-weight: 400; }
a { color: var(--navy-600); }
h1, h2, h3, h4, strong, b, th { font-weight: 600; }
h1 { font-size: 1.55rem; margin: 0 0 6px; color: var(--navy-900); }
h2 { font-size: 1.2rem; margin: 0; color: var(--navy-900); }
h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy-900); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.en { color: var(--muted); font-size: .82rem; font-weight: 400; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 50; }

/* ── top utility bar ─────────────────────────────── */
.utility { background: var(--navy-900); color: #cfd8e6; font-size: .8rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 12px; flex-wrap: wrap; }
.utility a, .utility button { color: #cfd8e6; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 2px 4px; }
.utility a:hover, .utility button:hover { color: #fff; }
.utility .tools { display: flex; align-items: center; gap: 6px; }
.utility .sep { opacity: .4; }
.tricolor { height: 4px; background: linear-gradient(90deg, #ff9933 0 33.3%, #ffffff 33.3% 66.6%, #138808 66.6%); }

/* ── masthead ───────────────────────────────────── */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.masthead img.logo { height: 66px; width: auto; border-radius: 4px; }
.masthead .office { flex: 1; min-width: 0; }
.masthead .office .t1 { font-size: 1.45rem; font-weight: 600; color: var(--navy-900); line-height: 1.25; }
.masthead .office .t2 { font-size: .92rem; color: var(--saffron); font-weight: 500; }
.masthead .office .t3 { font-size: .9rem; color: var(--navy); }
.masthead .contact { text-align: right; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.masthead .contact b { color: var(--navy); font-weight: 600; }

/* ── nav ────────────────────────────────────────── */
.mainnav { background: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.mainnav .container { display: flex; flex-wrap: wrap; }
.mainnav a { color: #e6ecf5; text-decoration: none; padding: 11px 16px; font-size: .9rem; font-weight: 500; border-bottom: 3px solid transparent; }
.mainnav a:hover { background: var(--navy-600); }
.mainnav a.active { border-bottom-color: var(--saffron); color: #fff; background: rgba(255,255,255,.06); }
.mainnav .right { margin-left: auto; }

/* ── ticker / breadcrumb ────────────────────────── */
.ticker { background: var(--saffron-50); border-bottom: 1px solid #f1d4bf; font-size: .86rem; }
.ticker .container { display: flex; gap: 12px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.ticker .tag { background: var(--saffron); color: #fff; padding: 1px 8px; border-radius: 3px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.crumbs { font-size: .82rem; color: var(--muted); padding: 14px 0 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

main { padding-bottom: 40px; min-height: 60vh; }

/* ── cards ──────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #f8fafc; border-radius: var(--radius) var(--radius) 0 0; }
.card-head .num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 600; flex-shrink: 0; }
.card-head .sub { margin-left: auto; font-size: .78rem; color: var(--muted); }
.card-body { padding: 18px; }

.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 18px; flex-wrap: wrap; }
.page-title p { margin: 0; color: var(--muted); }

/* ── buttons ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; padding: 10px 18px; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-accent { background: var(--saffron); color: #fff; }
.btn-accent:hover { background: #c4561a; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #18652f; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

/* ── alerts ─────────────────────────────────────── */
.alert { border: 1px solid; border-left-width: 4px; padding: 11px 14px; border-radius: 4px; margin: 14px 0; font-size: .9rem; }
.alert-error { background: var(--red-50); border-color: #f2b8b2; border-left-color: var(--red); color: #7a1a12; }
.alert-success { background: var(--green-50); border-color: #b9dcc3; border-left-color: var(--green); color: #134d25; }
.alert-info { background: var(--navy-50); border-color: #c4d3e8; border-left-color: var(--navy); color: var(--navy-900); }
.alert-warn { background: var(--amber-50); border-color: #f0d79a; border-left-color: #c58a00; color: #5d4200; }

/* ── tables ─────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table.gx { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.gx th, table.gx td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
table.gx thead th { background: var(--navy-50); color: var(--navy-900); font-weight: 600; }
table.gx.center td, table.gx.center th { text-align: center; }
table.gx tr.total td, table.gx tr.total th { background: #f3f5f8; font-weight: 600; }
table.gx td.num, table.gx th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.kv th { width: 38%; text-align: left; font-weight: 500; color: var(--muted); padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.kv td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }

/* ── home ───────────────────────────────────────── */
.hero { background: linear-gradient(120deg, var(--navy-900), var(--navy-600)); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hero h1 { color: #fff; font-size: 1.6rem; }
.hero p { margin: 4px 0 0; color: #d6e0ee; }
.hero .facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .fact { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 6px 12px; font-size: .84rem; }
.hero .fact b { color: #ffd2b0; }
.hero .cta { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 38px; font-size: .9rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--saffron-50); color: var(--saffron); border: 1px solid #f1c7a9; display: grid; place-items: center; font-size: .78rem; font-weight: 600; }
.cond { margin: 0; padding-left: 22px; font-size: .9rem; }
.cond li { margin-bottom: 7px; }
.doclink { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--text); margin-bottom: 8px; }
.doclink:hover { border-color: var(--navy); background: var(--navy-50); }
.doclink .ico { width: 34px; height: 40px; border-radius: 3px; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-size: .66rem; font-weight: 600; flex-shrink: 0; }

/* ── stepper ────────────────────────────────────── */
.stepper { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 18px; overflow: hidden; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: .86rem; color: var(--muted); border-right: 1px solid var(--line-soft); }
.stepper .st:last-child { border-right: 0; }
.stepper .st .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .78rem; font-weight: 600; flex-shrink: 0; }
.stepper .st.done { color: var(--green); }
.stepper .st.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.stepper .st.cur { color: var(--navy-900); background: var(--navy-50); font-weight: 500; }
.stepper .st.cur .n { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── form ───────────────────────────────────────── */
.form-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.side-nav { position: sticky; top: 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; font-size: .86rem; }
.side-nav a { display: flex; gap: 8px; padding: 8px 14px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--navy-50); border-left-color: var(--navy); }
.side-nav a span { color: var(--muted); width: 18px; }
.side-nav .note { padding: 10px 14px 4px; border-top: 1px solid var(--line-soft); margin-top: 6px; color: var(--muted); font-size: .78rem; }
.fgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.field label.lbl { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.field label.lbl .req { color: var(--red); margin-left: 2px; }
.field label.lbl .en { display: block; }
.gx-input { width: 100%; border: 1px solid #bcc6d3; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: .92rem; background: #fff; color: var(--text); }
.gx-input:focus { outline: 2px solid rgba(29,74,128,.25); border-color: var(--navy-600); }
textarea.gx-input { resize: vertical; }
.gx-input-sm { padding: 6px 8px; font-size: .86rem; }
.field.has-error .gx-input, .has-error .gx-input { border-color: var(--red); background: #fffafa; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--red); font-size: .8rem; }
.help { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios div { display: contents; }
.radios label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #bcc6d3; border-radius: 4px; padding: 7px 12px; font-size: .88rem; cursor: pointer; background: #fff; }
.radios label:has(input:checked) { border-color: var(--navy); background: var(--navy-50); color: var(--navy-900); }
.radios input { accent-color: var(--navy); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.cond-block { grid-column: span 12; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; padding: 14px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 4px; }
.cond-block[hidden] { display: none; }
.calc { display: inline-block; background: var(--navy-50); color: var(--navy-900); border-radius: 4px; padding: 7px 12px; font-size: .88rem; }
.declaration { background: var(--saffron-50); border: 1px solid #f1d4bf; border-radius: 4px; padding: 14px 16px; font-size: .9rem; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: sticky; bottom: 0; box-shadow: 0 -4px 12px rgba(16,35,64,.06); flex-wrap: wrap; }
.qual-table input { min-width: 80px; }
.qual-table td:first-child { white-space: nowrap; color: var(--muted); }
.pct { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── uploads ────────────────────────────────────── */
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload { border: 1px solid var(--line); border-radius: 4px; padding: 14px; background: #fff; display: flex; gap: 14px; align-items: flex-start; }
.upload.has-error { border-color: var(--red); background: #fffafa; }
.upload .thumb { width: 64px; height: 78px; border: 1px dashed var(--line); border-radius: 3px; display: grid; place-items: center; color: var(--muted); font-size: .7rem; text-align: center; flex-shrink: 0; overflow: hidden; background: #f8fafc; }
.upload .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload .meta { flex: 1; min-width: 0; }
.upload .meta .lbl { font-weight: 500; font-size: .9rem; }
.upload .state { font-size: .78rem; margin: 4px 0 8px; }
.upload .state.ok { color: var(--green); }
.upload .state.miss { color: var(--saffron); }
.gx-file { font: inherit; font-size: .82rem; max-width: 100%; }

/* ── preview / ack ──────────────────────────────── */
.ack { text-align: center; padding: 30px 20px; }
.ack .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.ack .appno { display: inline-block; font-size: 1.4rem; font-weight: 600; letter-spacing: .5px; color: var(--navy-900); border: 1px dashed var(--navy); padding: 8px 20px; border-radius: 4px; margin: 10px 0; background: var(--navy-50); }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 500; background: var(--navy-50); color: var(--navy-900); }
.status-pill.SUBMITTED, .status-pill.RECEIVED { background: var(--amber-50); color: #6b4a00; }
.status-pill.ELIGIBLE, .status-pill.VERIFIED, .status-pill.SELECTED { background: var(--green-50); color: var(--green); }
.status-pill.INELIGIBLE, .status-pill.REJECTED { background: var(--red-50); color: var(--red); }
.preview-photo { display: flex; gap: 12px; }
.preview-photo img { width: 100px; height: 120px; object-fit: cover; border: 1px solid var(--line); }
.preview-photo img.sig { width: 160px; height: 60px; object-fit: contain; background: #fff; }

/* ── stat tiles (office) ────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { font-size: .8rem; color: var(--muted); }
.tile .v { font-size: 1.6rem; font-weight: 600; color: var(--navy-900); }

/* ── footer ─────────────────────────────────────── */
footer.site { background: var(--navy-900); color: #b9c5d6; font-size: .84rem; }
footer.site .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 26px; padding-bottom: 20px; }
footer.site h4 { color: #fff; margin: 0 0 8px; font-size: .92rem; }
footer.site a { color: #b9c5d6; text-decoration: none; display: block; margin-bottom: 4px; }
footer.site a:hover { color: #fff; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 10px 0; font-size: .76rem; }
footer.site .bottom .container { display: flex; justify-content: space-between; padding: 0 16px; flex-wrap: wrap; gap: 8px; }

/* ── layout safety: grid children may shrink below their content ── */
.form-layout > *, .grid-2 > *, .fgrid > *, .cond-block > *, .card, .field { min-width: 0; }
.gx-input { min-height: 40px; }
input[type="date"].gx-input { display: block; -webkit-appearance: none; appearance: none; }
.grid-aside { grid-template-columns: 1fr 320px; }
.grid-status { grid-template-columns: 420px 1fr; }
.aside-sticky { position: sticky; top: 64px; }
.prarup-wrap { overflow: hidden; }
.pr-scroll { overflow-x: auto; }
.qual-table .w-year { width: 96px; } .qual-table .w-marks { width: 96px; } .qual-table .w-obt { width: 110px; }
.q-lbl { display: none; }
.masthead .office .t2, .masthead .office .t3 { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .form-layout, .grid-2, .hero { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  footer.site .container { grid-template-columns: 1fr; }
  .masthead .contact { display: none; }
}
@media (max-width: 640px) {
  .c3, .c4, .c6, .c8 { grid-column: span 12; }
  .uploads { grid-template-columns: 1fr; }
  .stepper .st .t { display: none; }
  .masthead img.logo { height: 48px; }
  .masthead .office .t1 { font-size: 1.1rem; }
}

/* ── prarup (official application format) ──────── */
.prarup { background: #fff; color: #111; font-size: 14px; line-height: 1.5; padding: 28px 34px; max-width: 820px; margin: 0 auto; }
.prarup b { font-weight: 600; }
.pr-top { display: flex; justify-content: flex-end; font-size: 12px; }
.pr-meta { text-align: right; }
.pr-draft { color: var(--red); border: 1px solid var(--red); padding: 1px 8px; display: inline-block; }
.pr-title { text-align: center; color: #1f5fa8; font-size: 1.35rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; margin: 6px 0 14px; }
.pr-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pr-photo { width: 151px; height: 170px; border: 1px solid #111; display: grid; place-items: center; text-align: center; font-size: 12px; overflow: hidden; }
.pr-photo img { width: 100%; height: 100%; object-fit: cover; }
.pr-rows { width: 100%; border-collapse: collapse; }
.pr-rows td { padding: 4px 0; vertical-align: top; }
.pr-rows td.k { width: 46%; }
.pr-rows td.d { width: 4%; text-align: center; }
.pr-rows td.v { border-bottom: 1px dotted #666; }
.pr-muted { color: #555; font-size: 12px; }
.pr-grid { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13px; }
.pr-grid th, .pr-grid td { border: 1px dashed #555; padding: 5px 6px; text-align: center; font-weight: 400; }
.pr-grid tr.pr-idx td { padding: 1px; font-size: 12px; }
.pr-grid tbody td { height: 34px; }
.pr-sub { margin: 14px 0 4px; }
.pr-docs { columns: 2; margin: 0 0 10px; padding-left: 52px; }
.pr-sign { display: flex; justify-content: space-between; align-items: flex-end; margin: 16px 0; gap: 20px; }
.pr-sig { text-align: center; }
.pr-sig img { max-height: 46px; max-width: 170px; display: block; margin: 0 auto 2px; }
.pr-decl { margin-top: 20px; border-top: 1px solid #ccc; padding-top: 10px; }
.pr-decl p { text-indent: 60px; text-align: justify; margin: 0; }
@media (max-width: 640px) { .prarup { padding: 16px; } .pr-rows td.k { width: 50%; } .pr-photo { width: 100px; height: 120px; } }

/* ── tablet ─────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-aside, .grid-status { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .mainnav .container { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .mainnav a { white-space: nowrap; }
}

/* ── phone ──────────────────────────────────────── */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { padding: 0 12px; }
  .utility .container { min-height: 28px; justify-content: center; }
  .utility .tools a, .utility .tools .sep:first-of-type { display: none; }
  .utility .container > div:first-child { display: none; }
  .masthead .container { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .masthead .office .t2 { font-size: .78rem; line-height: 1.35; }
  .masthead .office .t3 { font-size: .78rem; }
  .ticker .container { align-items: flex-start; font-size: .8rem; }
  h1 { font-size: 1.3rem; }
  .page-title { margin: 4px 0 12px; }

  .card-head { padding: 10px 12px; flex-wrap: wrap; }
  .card-head .sub { margin-left: 0; width: 100%; }
  .card-head .num ~ .sub { margin-left: 36px; }
  .card-head h2 { font-size: 1.05rem; }
  .card-body { padding: 14px 12px; }
  .fgrid, .cond-block { gap: 12px; }
  .cond-block { padding: 12px 10px; }

  /* 16px inputs stop iOS from zooming in on focus */
  .gx-input, .gx-input-sm, select.gx-input, textarea.gx-input { font-size: 16px; min-height: 44px; }

  /* radio groups: full-width tappable rows; Yes/No side by side */
  .radios { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .radios label { width: 100%; padding: 10px 12px; min-height: 44px; }
  .radios:has(input[value="True"]) { grid-template-columns: 1fr 1fr; }
  #fld-relation .radios { grid-template-columns: 1fr 1fr; }
  .check { font-size: .88rem; }
  .check input { width: 20px; height: 20px; margin-top: 2px; }

  /* key/value tables stack */
  table.stack-mobile.kv, table.stack-mobile.kv tbody, table.stack-mobile.kv tr,
  table.stack-mobile.kv th, table.stack-mobile.kv td { display: block; width: 100%; }
  table.stack-mobile.kv th { border-bottom: 0; padding: 8px 0 0; font-size: .8rem; }
  table.stack-mobile.kv td { padding: 2px 0 8px; overflow-wrap: anywhere; }

  /* qualification table becomes one card per exam */
  .qual-table.stack-mobile, .qual-table.stack-mobile tbody, .qual-table.stack-mobile tr { display: block; width: 100%; }
  .qual-table.stack-mobile thead { display: none; }
  .qual-table.stack-mobile tr { border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin-bottom: 12px; background: #fff;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .qual-table.stack-mobile tr.has-error { border-color: var(--red); }
  .qual-table.stack-mobile td { display: block; border: 0; padding: 0; width: auto !important; min-width: 0; }
  .qual-table.stack-mobile td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
  .qual-table.stack-mobile td.q-no { grid-column: 1 / -1; max-width: none; font-size: .92rem; font-weight: 600; color: var(--navy-900); border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; }
  .qual-table.stack-mobile td[data-label="परीक्षा का नाम"],
  .qual-table.stack-mobile td[data-label="बोर्ड / विवि का नाम"],
  .qual-table.stack-mobile td[data-label="विषय"] { grid-column: 1 / -1; }
  .qual-table.stack-mobile td.pct { grid-column: 1 / -1; background: var(--navy-50); border-radius: 4px; padding: 6px 10px; }
  .qual-table.stack-mobile td.pct::before { display: inline; margin-right: 8px; }
  .qual-table input { min-width: 0; width: 100%; }
  .qual-table .q-lbl { display: inline; }
  .qual-table .q-idx { display: none; }
  .tbl-wrap:has(.qual-table) { overflow: visible; }

  /* stepper: numbers only, current step keeps its label */
  .stepper .st { padding: 10px 8px; justify-content: center; }
  .stepper .st.cur { flex: 2.4; justify-content: flex-start; }
  .stepper .st.cur .t { display: block; font-size: .8rem; line-height: 1.25; }

  .form-actions { flex-direction: column-reverse; align-items: stretch; padding: 12px; gap: 8px; }
  .form-actions .btn { width: 100%; padding: 13px 16px; font-size: 1rem; }
  .form-actions > span { text-align: center; font-size: .78rem; }

  .upload { padding: 12px; gap: 12px; }
  .upload .thumb { width: 56px; height: 68px; }
  .gx-file { width: 100%; }

  .hero { padding: 20px 16px; margin: 12px 0; }
  .hero h1 { font-size: 1.3rem; }
  .hero .cta { min-width: 0; }
  .hero .fact { font-size: .8rem; }

  .ack { padding: 22px 12px; }
  .ack .appno { font-size: 1.1rem; padding: 8px 12px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }

  .prarup { font-size: 13px; padding: 14px 12px; }
  .pr-head { gap: 10px; }
  .pr-photo { width: 90px; height: 110px; font-size: 10px; flex-shrink: 0; }
  .pr-rows td.k { width: 48%; }
  .pr-rows td.v { overflow-wrap: anywhere; }
  .pr-docs { columns: 1; padding-left: 24px; }
  .pr-sign { flex-direction: column; align-items: flex-start; }
  .pr-decl p { text-indent: 24px; }

  footer.site .container { padding-top: 20px; gap: 16px; }
  footer.site .bottom .container { flex-direction: column; }
}
