/* =========================================================
   Arvind Sir English — site styles
   Colours: navy + saffron gold on warm paper
   ========================================================= */
:root {
  --navy: #14275e;
  --navy-2: #1e3a8a;
  --navy-deep: #0c1a44;
  --gold: #d97706;
  --gold-2: #f59e0b;
  --gold-soft: #fef3c7;
  --paper: #fbf8f1;
  --card: #ffffff;
  --ink: #1b2437;
  --muted: #5b6478;
  --line: #e6e1d5;
  --ok: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 39, 94, .10);
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font: 600 15px var(--sans); border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.btn-gold { background: var(--gold-2); color: #1b1300; box-shadow: 0 6px 16px rgba(217, 119, 6, .30); }
.btn-gold:hover { background: #fbbf24; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-red { background: #fee2e2; color: var(--bad); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center;
  font: 900 17px var(--serif); border: 2px solid var(--gold-2); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 900 18px var(--serif); }
.brand-text small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.brand-light, .brand-light .brand-text b { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--navy-2); background: #eef2ff; }
.nav-cta { margin-left: 8px; padding: 10px 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(900px 400px at 85% -10%, rgba(245,158,11,.28), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy-2));
  color: #fff; padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: 'Aa'; position: absolute; right: -20px; bottom: -90px; font: 900 340px var(--serif); color: rgba(255,255,255,.045); line-height: 1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 900; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p.lead { font-size: 18px; color: #dbe3ff; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: 13px; font-weight: 600; color: #fff; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.30); border-top: 5px solid var(--gold-2); }
.hero-card h3 { font-size: 20px; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks .ic { color: var(--ok); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sec-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .fi { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-top { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 22px 22px 20px; position: relative; }
.course-top::after { content: ''; position: absolute; left: 22px; bottom: 0; width: 46px; height: 4px; background: var(--gold-2); border-radius: 4px 4px 0 0; }
.course-top .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.course-top h3 { color: #fff; font-size: 21px; margin: 6px 0 0; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 16px; }
.course-body p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-row span { font-size: 12px; font-weight: 600; background: #eef2ff; color: var(--navy-2); padding: 4px 10px; border-radius: 999px; }

.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy-2)); color: #fff; padding: 52px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 8px; }
.page-hero p { color: #dbe3ff; margin: 0 auto; max-width: 40em; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.about-photo { border-radius: 20px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); aspect-ratio: 5/4; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; color: var(--gold-2); font: 900 96px var(--serif); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; align-content: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .fi { width: 42px; height: 42px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; font-size: 19px; }
.contact-item b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-item a, .contact-item span { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); }

.cta-band { background: var(--gold-2); padding: 44px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); color: #1b1300; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c7d0ee; padding: 52px 0 0; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.3fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { display: block; color: #c7d0ee; margin-bottom: 8px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-2); }
.foot-note { margin-top: 14px; max-width: 30em; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; padding-bottom: 18px; text-align: center; font-size: 13px; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: #16a34a; color: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ---------- Forms ---------- */
.form-shell { max-width: 860px; margin: -34px auto 64px; position: relative; z-index: 2; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-card { padding: 30px; }
.fs { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.fs legend { display: flex; align-items: center; gap: 10px; font: 700 17px var(--serif); color: var(--navy); padding: 0; margin-bottom: 16px; width: 100%; border-bottom: 2px solid var(--gold-soft); padding-bottom: 10px; }
.fs legend i { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 13px var(--sans); font-style: normal; flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label em { color: var(--bad); font-style: normal; }
.field small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d6d1c4; border-radius: 10px; font: 400 16px var(--sans); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(30,58,138,.12); outline: none; }
textarea { resize: vertical; min-height: 84px; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 130px; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 12px; border: 1.5px solid #d6d1c4; border-radius: 10px; font-weight: 600; font-size: 15px; background: #fff; }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.photo-row { display: flex; gap: 18px; align-items: center; }
.photo-prev { width: 110px; height: 136px; border: 2px dashed #b9b29f; border-radius: 10px; background: #faf7ef center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; flex: none; padding: 6px; }
.photo-prev.has { border-style: solid; border-color: var(--navy); color: transparent; }
.photo-pick { flex: 1; min-width: 0; }
.photo-pick input[type=file] { width: 100%; font-size: 14px; padding: 10px; border: 1.5px solid #d6d1c4; border-radius: 10px; background: #fff; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: #faf7ef; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.agree input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; }
.alert-bad { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Form sheet toolbar ---------- */
.sheet-page { padding: 28px 0 64px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.success-note { max-width: 794px; margin: 0 auto 18px; text-align: center; }

/* =========================================================
   A4 ADMISSION FORM SHEET (screen + print + PDF)
   Fixed 794 x 1123 px = A4 @ 96dpi. Chhoti screen par JS se scale hota hai.
   ========================================================= */
.sheet-viewport { margin: 0 auto; width: 100%; max-width: 794px; overflow: hidden; }
.sheet { width: 794px; height: 1122px; background: #fff; padding: 22px; transform-origin: top left; font-family: var(--sans); color: #1b2437; box-shadow: 0 10px 40px rgba(0,0,0,.18); overflow: hidden; }
.sheet-frame { height: 100%; border: 3px solid #14275e; border-radius: 14px; padding: 5px; position: relative; display: flex; flex-direction: column; }
.sheet-frame::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid #d97706; border-radius: 9px; pointer-events: none; }
.sheet-frame > * { position: relative; z-index: 1; }
.sheet-wm { position: absolute !important; z-index: 0 !important; top: 52%; left: 50%; transform: translate(-50%, -50%) rotate(-38deg); font: 900 62px var(--serif); color: rgba(20,39,94,.05); white-space: nowrap; pointer-events: none; }
.sh-head { display: flex; align-items: center; gap: 18px; padding: 16px 30px 12px; margin: 0 6px; border-bottom: 4px double #14275e; }
.sh-mark { width: 82px; height: 82px; border-radius: 50%; background: #14275e; color: #f59e0b; border: 3px solid #f59e0b; display: flex; align-items: center; justify-content: center; font: 900 30px var(--serif); flex: none; }
.sh-title { flex: 1; text-align: center; padding-right: 40px; }
.sh-title h1 { font: 900 35px var(--serif); color: #14275e; margin: 0 0 4px; }
.sh-sub { font-size: 13px; font-weight: 700; color: #b45309; margin-bottom: 6px; }
.sh-addr { font-size: 11.5px; color: #374151; font-weight: 500; line-height: 1.5; }
.sh-ribbon { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px 6px; }
.sh-meta { width: 190px; font-size: 11px; color: #5b6478; }
.sh-meta span { display: block; font-weight: 600; }
.sh-meta b { font-size: 15px; color: #1b2437; }
.sh-meta b.sh-reg { color: #b91c1c; font-family: 'Courier New', monospace; font-size: 16px; }
.sh-right { text-align: right; }
.sh-pill { background: #14275e; color: #fff; font: 700 17px var(--sans); padding: 9px 28px; border-radius: 999px; border: 2px solid #f59e0b; }
.sh-body { display: flex; gap: 22px; padding: 0 30px; align-items: flex-start; }
.sh-main { flex: 1; min-width: 0; }
.sh-sec { font: 700 12.5px var(--sans); color: #fff; background: #1e3a8a; display: inline-block; padding: 4px 14px; border-radius: 4px 14px 14px 4px; margin: 14px 0 4px; text-transform: uppercase; }
.sheet-frame > .sh-sec { margin-left: 30px; align-self: flex-start; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet-frame > .sh-table { width: calc(100% - 60px); margin: 0 30px; }
.sh-table th { text-align: left; width: 150px; padding: 6px 8px 6px 0; color: #14275e; font-weight: 700; vertical-align: top; border-bottom: 1px solid #e5e7eb; }
.sh-table td { padding: 6px 0; font-weight: 600; color: #1b2437; border-bottom: 1px solid #e5e7eb; vertical-align: top; overflow-wrap: anywhere; }
.sh-table td.up { text-transform: uppercase; }
.sh-chip { display: inline-block; background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; padding: 1px 10px; border-radius: 6px; }
.sh-photo { width: 150px; flex: none; margin-top: 20px; text-align: center; }
.sh-photo-box { width: 150px; height: 185px; border: 2px solid #14275e; padding: 4px; background: #fff; }
.sh-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.sh-photo-cap { font-size: 10.5px; color: #5b6478; margin-top: 5px; }
.sh-decl { margin: 16px 30px 0; padding-top: 12px; border-top: 2px dashed #9ca3af; }
.sh-decl h3 { font: 700 13px var(--sans); color: #14275e; text-transform: uppercase; margin: 0 0 5px; }
.sh-decl p { font-size: 12px; color: #4b5563; text-align: justify; margin: 0; line-height: 1.6; }
.sh-sign { display: flex; justify-content: space-between; gap: 20px; padding: 34px 30px 0; margin-top: auto; }
.sh-sign div { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; color: #1b2437; }
.sh-sign i { display: block; border-bottom: 1.5px solid #1b2437; margin: 0 8px 6px; height: 1px; }
.sh-foot { margin: 18px 6px 6px; background: #14275e; color: #fff; text-align: center; font-size: 11.5px; font-weight: 600; padding: 8px; border-radius: 0 0 6px 6px; }

/* ---------- Admin ---------- */
.admin-body { background: #f3f4f8; }
.admin-top { background: var(--navy-deep); color: #fff; }
.admin-top .bar { min-height: 60px; }
.admin-top .brand-text b { color: #fff; font-size: 16px; }
.admin-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-links a { color: #dbe3ff; font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: 8px; }
.admin-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 26px 0 60px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; border-left: 4px solid var(--gold-2); }
.stat b { display: block; font: 900 28px var(--serif); color: var(--navy); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; margin-bottom: 16px; align-items: center; }
.filters input[type=search] { flex: 2; min-width: 200px; padding: 10px 12px; font-size: 15px; }
.filters select { flex: 1; min-width: 160px; padding: 10px 12px; font-size: 15px; }
.table-card { overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; background: #f8f7f3; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fbfaf6; }
.stu { display: flex; align-items: center; gap: 12px; }
.stu img { width: 42px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid #d6d1c4; flex: none; }
.stu b { display: block; color: var(--ink); }
.stu small { color: var(--muted); }
.tbl td.nw { white-space: nowrap; }
.reg { font-family: 'Courier New', monospace; font-weight: 700; color: var(--bad); white-space: nowrap; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: var(--navy-2); white-space: nowrap; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.new { background: var(--gold-soft); color: #92400e; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts form { margin: 0; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 13px; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; font-size: 14px; font-weight: 600; color: var(--ink); }
.pager span { background: var(--navy); color: #fff; border-color: var(--navy); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, var(--navy-deep), var(--navy-2)); }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 2px; box-shadow: 0 16px 24px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  /* Admin table -> cards */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px; border-bottom: 1px solid #e5e7eb; }
  .tbl td { padding: 4px 0; border: 0; }
  .tbl td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12px; font-weight: 600; }
  .tbl td.acts-cell { padding-top: 10px; }
}
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
  .g2, .g3, .g4, .fields, .foot-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .form-shell { margin-top: -24px; }
  .wrap { padding: 0 16px; }
  .brand-text b { font-size: 16px; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; }
  .hero-actions .btn, .toolbar .btn { flex: 1; }
  .cta-band .btn { width: 100%; }
}

/* ---------- Print: sirf form sheet print hogi ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  .sheet-page, .admin-main, .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .sheet-viewport { max-width: none; width: 794px; height: auto !important; overflow: visible; }
  .sheet { transform: none !important; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.admin-top .bar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.admin-top .brand-text { white-space: nowrap; }

/* ---------- Bulk PDF page ---------- */
.bulk .sheet-viewport { overflow-x: auto; overflow-y: hidden; margin-bottom: 24px; }
.bulk .sheet { height: 1118px; }
@media print {
  .bulk .sheet-viewport { margin: 0; page-break-after: always; break-after: page; overflow: visible; }
  .bulk .sheet-viewport:last-child { page-break-after: auto; break-after: auto; }
}
