/* Parivahan Sewa portal — Government of India theme */
:root {
  --saffron: #FF9933;
  --india-green: #138808;
  --navy: #0B3D91;
  --navy-deep: #08306B;
  --navy-soft: #1B4FA7;
  --gold: #C99A2E;
  --link: #0B3D91;
  --link-hover: #C0392B;
  --text: #212121;
  --muted: #555;
  --line: #d8d8d8;
  --bg: #f5f5f5;
  --tile-bg: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 18px rgba(11,61,145,0.18);
  --font-en: "Open Sans", "Segoe UI", Tahoma, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Mangal", "Open Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lang-hi { font-family: var(--font-hi); }

/* ===== Top utility strip ===== */
.top-strip {
  background: #08306B;
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-strip a { color: #fff; opacity: 0.9; }
.top-strip a:hover { opacity: 1; text-decoration: underline; }
.top-strip .links { display: flex; gap: 14px; flex-wrap: wrap; }
.top-strip .tools { display: flex; align-items: center; gap: 12px; }
.top-strip .skip-link {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.top-strip .skip-link:focus {
  position: static; width: auto; height: auto;
  background: #fff; color: #08306B; padding: 4px 8px;
}
.text-size button, .lang-toggle button {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
  padding: 1px 6px; cursor: pointer; font-size: 11px; border-radius: 2px;
}
.text-size button:hover, .lang-toggle button:hover { background: rgba(255,255,255,0.15); }
.text-size button.active, .lang-toggle button.active { background: var(--saffron); border-color: var(--saffron); color: #08306B; font-weight: 700; }

/* ===== Tricolor band ===== */
.tricolor {
  height: 4px;
  background: linear-gradient(to right,
    var(--saffron) 0 33.33%,
    #fff 33.33% 66.66%,
    var(--india-green) 66.66% 100%);
}

/* ===== Masthead ===== */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.masthead .container {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.masthead .emblem { height: 72px; width: auto; }
.masthead .title-block { flex: 1; min-width: 240px; }
.masthead .title-block .hi {
  font-family: var(--font-hi);
  font-size: 18px; font-weight: 700;
  color: var(--navy-deep); margin: 0;
}
.masthead .title-block .en {
  font-size: 20px; font-weight: 700;
  color: var(--navy-deep); margin: 2px 0 4px;
  letter-spacing: 0.2px;
}
.masthead .title-block .sub {
  font-size: 12px; color: var(--muted); margin: 0;
}
.masthead .right-logos {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.masthead .right-logos img {
  height: 56px; width: auto;
}
.masthead .right-logos .badge-text {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 11px; font-weight: 600; line-height: 1.2;
  color: var(--navy-deep); text-align: center;
}

/* ===== Main nav ===== */
.main-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: relative; z-index: 50;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.main-nav li { position: relative; }
.main-nav > .container > ul > li > a {
  display: block; padding: 12px 16px;
  color: #fff; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.main-nav > .container > ul > li > a:hover,
.main-nav > .container > ul > li.active > a {
  background: var(--navy-soft); text-decoration: none;
}
.main-nav .caret { font-size: 9px; margin-left: 4px; }

.main-nav .submenu {
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 260px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border-top: 3px solid var(--saffron);
  display: none; flex-direction: column;
}
.main-nav li:hover > .submenu { display: flex; }
.main-nav .submenu li { width: 100%; }
.main-nav .submenu a {
  display: block; padding: 10px 14px;
  color: var(--text); font-size: 13px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--line);
}
.main-nav .submenu a:hover { background: #f0f4ff; color: var(--navy); text-decoration: none; }

.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff;
  padding: 10px 14px; font-size: 18px; cursor: pointer;
}

/* ===== Marquee / announcement ===== */
.announce-bar {
  background: #fff7e6;
  border-bottom: 1px solid #f0d99b;
  padding: 6px 0;
  display: flex; align-items: center;
  font-size: 13px;
}
.announce-bar .label {
  background: var(--saffron); color: #08306B;
  padding: 4px 10px; font-weight: 700; font-size: 12px;
  margin-right: 12px; text-transform: uppercase;
  letter-spacing: 0.4px; border-radius: 2px;
  flex-shrink: 0; margin-left: 16px;
}
.announce-bar .marquee {
  overflow: hidden; flex: 1;
}
.announce-bar .marquee-track {
  display: inline-block; white-space: nowrap;
  padding-left: 100%;
  animation: marquee 40s linear infinite;
}
.announce-bar .marquee-track span { margin-right: 60px; color: var(--text); }
.announce-bar .marquee-track a { color: var(--link); font-weight: 600; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.92), rgba(8,48,107,0.88)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'><g fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'><path d='M0 100 Q150 40 300 100 T600 100'/><path d='M0 130 Q150 70 300 130 T600 130'/><path d='M0 160 Q150 100 300 160 T600 160'/></g></svg>");
  color: #fff;
  padding: 38px 0;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.hero h1 {
  font-size: 30px; line-height: 1.25; margin: 0 0 10px;
  font-weight: 700;
}
.hero h1 .hi { display: block; font-size: 18px; opacity: 0.9; margin-bottom: 6px; }
.hero p { font-size: 15px; opacity: 0.92; margin: 0 0 18px; max-width: 540px; }
.hero .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron); color: #08306B;
  padding: 10px 20px; font-weight: 700; font-size: 14px;
  border-radius: 3px; text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hero .cta:hover { background: #ffb35c; text-decoration: none; color: #08306B; }

.quick-search {
  background: #fff; color: var(--text);
  border-radius: 6px; padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.quick-search h3 {
  margin: 0 0 12px; color: var(--navy-deep);
  font-size: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--saffron);
}
.quick-search .tabs {
  display: flex; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.quick-search .tabs button {
  flex: 1; background: transparent; border: 0; padding: 8px 4px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent;
}
.quick-search .tabs button.active {
  color: var(--navy); border-bottom-color: var(--saffron);
}
.quick-search label {
  display: block; font-size: 12px; color: var(--muted);
  margin-bottom: 4px; font-weight: 600;
}
.quick-search input {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid #ccc; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 1px;
}
.quick-search input:focus { outline: 2px solid var(--saffron); border-color: var(--saffron); }
.quick-search .captcha-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px;
  align-items: end; margin-top: 10px;
}
.quick-search .captcha-box {
  background: repeating-linear-gradient(45deg, #eef 0 4px, #fff 4px 8px);
  border: 1px solid #ccc; padding: 8px;
  font-family: "Courier New", monospace; font-weight: 700;
  font-size: 18px; letter-spacing: 3px; text-align: center;
  color: var(--navy); user-select: none;
  text-decoration: line-through wavy var(--saffron);
}
.quick-search .btn-row { display: flex; gap: 8px; margin-top: 12px; }
.quick-search .btn-primary {
  background: var(--navy); color: #fff; border: 0;
  padding: 10px 22px; font-weight: 600; cursor: pointer;
  border-radius: 3px; font-size: 13px; text-transform: uppercase;
}
.quick-search .btn-primary:hover { background: var(--navy-deep); }
.quick-search .btn-ghost {
  background: #fff; color: var(--navy); border: 1px solid var(--navy);
  padding: 10px 22px; font-weight: 600; cursor: pointer;
  border-radius: 3px; font-size: 13px;
}

/* ── App download CTA card (replaces verify form) ── */
.app-cta-card{
  background:#fff;color:var(--text);border-radius:8px;padding:28px 24px;
  box-shadow:0 20px 40px rgba(0,0,0,0.18);text-align:center;
  border-top:4px solid var(--saffron);position:relative;
}
.app-cta-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,#138808,#0d5b06);color:#fff;
  padding:5px 12px;border-radius:20px;font-size:10.5px;font-weight:700;
  letter-spacing:.8px;text-transform:uppercase;margin-bottom:16px;
  box-shadow:0 4px 12px rgba(19,136,8,.3);
}
.app-cta-badge svg{fill:#fff}
.app-cta-icon{
  width:88px;height:88px;margin:0 auto 16px;border-radius:20px;
  overflow:hidden;box-shadow:0 8px 20px rgba(229,57,53,.35);
  background:#e53935;
}
.app-cta-icon img{width:100%;height:100%;object-fit:cover;display:block}
.app-cta-title{
  font-size:22px;font-weight:700;color:var(--navy-deep);
  margin-bottom:10px;letter-spacing:-.2px;line-height:1.15;
  border-bottom:0;padding:0;
}
.app-cta-lead{
  font-size:14.5px;color:#333;line-height:1.55;margin-bottom:20px;
  max-width:420px;margin-left:auto;margin-right:auto;
}
.app-cta-lead b{color:var(--navy-deep);font-weight:700}
.app-cta-features{
  list-style:none;text-align:left;max-width:360px;margin:0 auto 22px;
  padding:0;font-size:13px;color:#333;line-height:1.5;
}
.app-cta-features li{
  display:flex;align-items:flex-start;gap:10px;padding:5px 0;
}
.app-cta-features .tick{
  flex:0 0 auto;width:18px;height:18px;background:var(--green);
  border-radius:50%;position:relative;margin-top:1px;
}
.app-cta-features .tick::before{
  content:'';position:absolute;left:5px;top:3px;width:5px;height:9px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.app-cta-buttons{
  display:flex;flex-direction:column;gap:10px;
  max-width:340px;margin:0 auto;
}
.app-cta-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(135deg,var(--saffron) 0%,#ea580c 100%);
  color:#fff;font-weight:700;font-size:15px;padding:14px 22px;
  border-radius:6px;text-decoration:none;letter-spacing:.4px;
  box-shadow:0 8px 22px rgba(255,153,51,.4);transition:transform .15s,box-shadow .2s;
  text-transform:uppercase;
}
.app-cta-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(255,153,51,.5);
}
.app-cta-primary .icon{font-size:20px;font-weight:900;line-height:1}
.app-cta-secondary{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--navy);color:#fff;font-weight:600;font-size:14px;
  padding:12px 20px;border-radius:6px;text-decoration:none;
}
.app-cta-secondary:hover{background:var(--navy-deep)}
.app-cta-secondary svg{width:18px;height:18px;fill:#fff}
.app-cta-meta{
  font-size:11px;color:var(--muted);margin-top:16px;letter-spacing:.3px;
}

/* ── e-Verification 4-field flow ── */
.quick-search.verify-flow .verify-sub {
  font-size: 12px; color: var(--muted); margin: -4px 0 14px; line-height: 1.5;
}
.quick-search.verify-flow .verify-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px;
  margin-bottom: 14px;
}
.quick-search.verify-flow .verify-grid .field { display: flex; flex-direction: column; }
.quick-search.verify-flow .verify-grid input.verify-input {
  width: 100%; padding: 9px 11px; font-size: 13px;
  border: 1px solid #ccc; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Segoe UI', system-ui, sans-serif;
}
.quick-search.verify-flow .verify-grid input.verify-input:focus,
.quick-search.verify-flow .verify-grid textarea.verify-input:focus {
  outline: 2px solid var(--saffron); border-color: var(--saffron);
}
.quick-search.verify-flow .verify-grid input[type="date"].verify-input {
  text-transform: none; letter-spacing: 0;
}
.quick-search.verify-flow .verify-grid .field-full { grid-column: 1 / -1; }
.quick-search.verify-flow .verify-grid textarea.verify-textarea {
  width: 100%; padding: 9px 11px; font-size: 13px;
  border: 1px solid #ccc; border-radius: 3px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.3px;
  resize: vertical; min-height: 54px;
}

@media (max-width: 620px) {
  .quick-search.verify-flow .verify-grid { grid-template-columns: 1fr; }
}

/* ── 2-step verify modal ── */
.verify-stepper {
  display: flex; gap: 0; margin: 0 -20px 16px; padding: 0 20px 12px;
  border-bottom: 1px solid #eee;
}
.verify-stepper .step {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #999; font-weight: 600; letter-spacing: 0.3px;
}
.verify-stepper .step .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #e5e7eb; color: #6b7280;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.verify-stepper .step.done .num { background: #138808; color: #fff; }
.verify-stepper .step.active { color: var(--navy-deep); }
.verify-stepper .step.active .num { background: var(--saffron); color: #fff; }
.verify-stepper .divider {
  flex: 0.4; height: 1px; background: #ddd; align-self: center; margin: 0 4px;
}

.verify-loading {
  display: flex; flex-direction: column; align-items: center; padding: 40px 20px; gap: 14px;
}
.verify-loading .spinner {
  width: 44px; height: 44px; border: 3px solid #eee;
  border-top-color: var(--navy); border-radius: 50%;
  animation: vspin 0.8s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }
.verify-loading .msg {
  color: #444; font-size: 14px; font-weight: 500; text-align: center;
}
.verify-loading .sub {
  color: #888; font-size: 12px; text-align: center; margin-top: -4px;
}

.verify-summary {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 12px;
}
.verify-summary .row {
  display: flex; justify-content: space-between; padding: 3px 0;
  border-bottom: 1px dashed #ddd;
}
.verify-summary .row:last-child { border-bottom: 0; }
.verify-summary .k { color: #666; font-weight: 500; }
.verify-summary .v { color: #222; font-weight: 700; font-family: 'Consolas', monospace; }

.verify-next-btn {
  display: block; width: 100%; margin-top: 14px;
  background: var(--saffron); color: #fff; border: 0;
  padding: 12px 20px; font-weight: 700; cursor: pointer;
  border-radius: 4px; font-size: 14px; letter-spacing: 0.5px;
  text-transform: uppercase; text-align: center; text-decoration: none;
  transition: transform 0.1s, box-shadow 0.2s;
}
.verify-next-btn:hover { box-shadow: 0 8px 20px rgba(255,153,51,0.35); transform: translateY(-1px); }

.verify-final-hero {
  background: linear-gradient(135deg, #FF9933 0%, #ea580c 100%);
  color: #fff; margin: -16px -20px 12px; padding: 22px 20px; text-align: center;
}
.verify-final-hero .icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.verify-final-hero .icon img { width: 100%; height: 100%; border-radius: 16px; }
.verify-final-hero h4 {
  font-size: 17px; margin: 0 0 4px; font-weight: 700; letter-spacing: 0.2px;
}
.verify-final-hero p { margin: 0; font-size: 12px; opacity: 0.95; }
.verify-final-hero .verified-tag {
  display: inline-block; background: rgba(255,255,255,0.22); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.6px; margin-bottom: 10px; text-transform: uppercase;
}
.quick-search .helper { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ===== Section heading ===== */
.section { padding: 40px 0; }
.section h2 {
  font-size: 22px; color: var(--navy-deep);
  margin: 0 0 4px; font-weight: 700;
}
.section h2 .hi { display: block; font-size: 15px; color: var(--muted); font-weight: 500; }
.section .sub { color: var(--muted); margin: 6px 0 24px; font-size: 14px; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===== Service tiles ===== */
.tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tile {
  background: var(--tile-bg); border-radius: 6px;
  padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line); border-top: 3px solid var(--saffron);
  transition: all 0.18s ease; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.tile:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover);
  border-top-color: var(--navy);
}
.tile .icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 12px;
}
.tile .icon svg { width: 30px; height: 30px; fill: #fff; }
.tile h3 {
  font-size: 14px; color: var(--navy-deep);
  margin: 0 0 4px; font-weight: 700;
}
.tile p { font-size: 12px; color: var(--muted); margin: 0; }

/* ===== Info / two-col ===== */
.two-col {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 18px; box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--saffron);
  font-size: 16px; color: var(--navy-deep);
  display: flex; align-items: center; justify-content: space-between;
}
.card h3 a { font-size: 12px; font-weight: 500; }
.news-list, .links-list { list-style: none; padding: 0; margin: 0; }
.news-list li, .links-list li {
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.news-list li:last-child, .links-list li:last-child { border-bottom: 0; }
.news-list .date {
  display: inline-block; background: #eef3ff; color: var(--navy);
  padding: 1px 8px; font-size: 11px; font-weight: 600;
  border-radius: 3px; margin-right: 8px; min-width: 78px; text-align: center;
}
.news-list .new {
  background: var(--saffron); color: #08306B; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 2px; margin-left: 6px;
  text-transform: uppercase;
}
.links-list a { display: flex; gap: 8px; align-items: center; }
.links-list a::before {
  content: "›"; color: var(--saffron); font-size: 16px; font-weight: 700;
}

/* ===== Stats strip ===== */
.stats {
  background: #08306B; color: #fff;
  padding: 26px 0;
  background-image: linear-gradient(135deg, #08306B 0%, #0B3D91 100%);
}
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
.stats .stat .num {
  font-size: 28px; font-weight: 700; color: var(--saffron); display: block;
}
.stats .stat .lbl {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85;
}

/* ===== Partners ===== */
.partners {
  background: #fff; padding: 26px 0; border-top: 1px solid var(--line);
}
.partners .row {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.partners .row img { height: 50px; opacity: 0.85; }
.partners h4 {
  text-align: center; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 0 0 16px; font-weight: 600;
}

/* ===== Footer ===== */
footer {
  background: #08306B; color: #c9d4ec;
  padding: 30px 0 0; font-size: 13px;
}
footer a { color: #fff; }
footer a:hover { color: var(--saffron); }
footer .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding-bottom: 22px;
}
footer h4 {
  color: #fff; font-size: 14px; margin: 0 0 12px;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 4px 0; }
footer .brand { display: flex; gap: 12px; align-items: flex-start; }
footer .brand img { height: 64px; }
footer .brand p { margin: 0 0 6px; line-height: 1.55; }
footer .copyrow {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px 0; font-size: 12px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: #aac0e6;
}
footer .copyrow a { color: #aac0e6; }

/* ===== Result modal ===== */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.modal-back.open { display: flex; }
.modal {
  background: #fff; max-width: 620px; width: 100%;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-body { overflow-y: auto; }
.modal-head {
  background: var(--navy); color: #fff; padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head button {
  background: transparent; color: #fff; border: 0; font-size: 22px;
  cursor: pointer; line-height: 1;
}
.modal-body { padding: 18px; overflow-y: auto; }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  font-size: 13px;
}
.detail-grid div { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.detail-grid div strong { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; margin-bottom: 2px; font-weight: 600; }
.modal-foot { padding: 12px 18px; background: #f7f7f7; border-top: 1px solid var(--line); text-align: right; }
.modal .badge-valid {
  display: inline-block; background: #e6f7e6; color: #138808;
  padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 700;
}

/* ===== Page title for inner pages ===== */
.page-title {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; padding: 26px 0;
}
.page-title h1 { margin: 0; font-size: 24px; }
.page-title .crumbs {
  font-size: 12px; opacity: 0.85; margin-top: 4px;
}
.page-title .crumbs a { color: #fff; }

/* ===== Data table (real gov style) ===== */
.data-table { width:100%; border-collapse:collapse; font-size:13px; background:#fff; box-shadow: var(--shadow); }
.data-table thead th { background: var(--navy); color:#fff; text-align:left; padding:10px 12px; font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:0.4px; border-bottom:2px solid var(--gold); }
.data-table tbody td { padding:9px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.data-table tbody tr:nth-child(even) { background:#f9fbff; }
.data-table tbody tr:hover { background:#fff7e6; }
.data-table .code { font-family: "Courier New", monospace; font-weight:700; color: var(--navy); }
.data-table .amt { text-align:right; white-space:nowrap; color:#8b0000; font-weight:600; }
.data-table .section-no { background:#fff7e6; font-weight:600; text-align:center; color: var(--navy-deep); }
.badge { display:inline-block; padding:2px 8px; border-radius:3px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.3px; }
.badge.pdf { background:#c0392b; color:#fff; }
.badge.new { background:var(--saffron); color:#08306B; }
.badge.gov { background: var(--india-green); color:#fff; }

/* Filter search bar */
.filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.filter-bar input, .filter-bar select {
  padding:8px 12px; border:1px solid #ccc; border-radius:3px; font-size:13px; min-width:200px;
}
.filter-bar .count { margin-left:auto; color: var(--muted); font-size:12px; }

/* Info callout */
.callout {
  background: #fff7e6; border-left: 4px solid var(--saffron);
  padding: 12px 16px; margin: 14px 0; border-radius: 0 3px 3px 0; font-size: 13px;
}
.callout.info { background:#eef3ff; border-left-color: var(--navy); }
.callout.warn { background:#fde8e8; border-left-color: #c0392b; }
.callout strong { color: var(--navy-deep); }

/* Accordion (FAQ) */
.accordion { background:#fff; border:1px solid var(--line); border-radius:4px; overflow:hidden; box-shadow: var(--shadow); }
.accordion details { border-bottom:1px solid var(--line); }
.accordion details:last-child { border-bottom:0; }
.accordion summary {
  padding:14px 18px; cursor:pointer; font-weight:600;
  color: var(--navy-deep); font-size:14px; display:flex; align-items:center; gap:10px;
  list-style:none; user-select:none;
}
.accordion summary::-webkit-details-marker { display:none; }
.accordion summary::before { content:"+"; color: var(--saffron); font-size:20px; font-weight:700; width:20px; }
.accordion details[open] summary::before { content:"−"; }
.accordion details[open] summary { background:#f0f4ff; }
.accordion .body { padding: 0 18px 16px 46px; font-size:13px; color: #333; line-height:1.65; }
.accordion .body ul { padding-left: 18px; margin: 6px 0; }

/* Stat cards (dashboards) */
.stat-cards { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-cards .card2 {
  background:#fff; padding:18px; border-radius:6px; border-left:4px solid var(--saffron);
  box-shadow: var(--shadow);
}
.stat-cards .num2 { font-size:26px; font-weight:800; color: var(--navy-deep); margin:0; }
.stat-cards .lbl2 { color: var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:0.4px; margin:4px 0 0; }
.stat-cards .card2.g { border-left-color: var(--india-green); }
.stat-cards .card2.b { border-left-color: var(--navy); }

/* Simple bar chart */
.hbar-chart { background:#fff; padding:14px; border-radius:4px; box-shadow: var(--shadow); }
.hbar-chart .row { display:grid; grid-template-columns: 120px 1fr 60px; gap:10px; align-items:center; padding:6px 0; font-size:13px; }
.hbar-chart .row .bar {
  background:#e8ecf5; height:14px; border-radius:3px; position:relative; overflow:hidden;
}
.hbar-chart .row .bar span {
  display:block; height:100%; background: linear-gradient(90deg, var(--navy), var(--saffron));
  border-radius:3px;
}
.hbar-chart .row .val { text-align:right; font-weight:700; color: var(--navy-deep); }

/* Timeline steps */
.timeline { display:grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap:14px; }
.timeline .step { background:#fff; padding:16px; border-radius:4px; border-top:3px solid var(--saffron); box-shadow: var(--shadow); position: relative; }
.timeline .step .n {
  position:absolute; top:-16px; left:14px;
  width:30px; height:30px; border-radius:50%; background: var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}
.timeline .step h4 { margin: 6px 0 4px; color: var(--navy-deep); font-size:14px; }
.timeline .step p { margin:0; font-size:12px; color: var(--muted); }

/* Multi-column list */
.col-list { columns: 3; column-gap: 24px; font-size:13px; }
.col-list li { break-inside: avoid; padding:3px 0; }
@media (max-width:900px) { .col-list { columns: 2; } }
@media (max-width:560px) { .col-list { columns: 1; } }

/* ===== App Download section ===== */
.app-dl {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.96) 0%, rgba(8,48,107,0.98) 55%, rgba(193,32,26,0.9) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'><g fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'><circle cx='100' cy='100' r='80'/><circle cx='700' cy='300' r='120'/><circle cx='500' cy='50' r='60'/><path d='M0 200 Q200 120 400 200 T800 200'/></g></svg>");
  color: #fff; padding: 44px 0;
  border-top: 4px solid var(--saffron);
  border-bottom: 4px solid var(--india-green);
}
.app-dl .container { display: grid; grid-template-columns: 280px 1fr 200px; gap: 30px; align-items: center; }
.app-dl .app-logo {
  width: 240px; height: 240px; margin: 0 auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.app-dl h2 {
  margin: 0 0 4px; font-size: 26px; color: #fff; font-weight: 800;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.app-dl h2 .verified {
  background: #1DA1F2; color:#fff; border-radius:50%; width:24px; height:24px;
  display: inline-flex; align-items:center; justify-content:center; font-size:14px;
}
.app-dl .sub-en { margin: 0 0 2px; font-size: 15px; color: rgba(255,255,255,0.9); }
.app-dl .sub-hi { margin: 0 0 12px; font-size: 14px; color: rgba(255,255,255,0.75); font-family: var(--font-hi); }
.app-dl .rating {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 14px; font-size: 13px; color: rgba(255,255,255,0.9);
}
.app-dl .rating .stars { color: #f5c518; font-size: 16px; letter-spacing: 1px; }
.app-dl .rating .sep { opacity: 0.5; }
.app-dl .feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  margin: 12px 0 18px; font-size: 13px;
}
.app-dl .feat li {
  list-style: none; padding-left: 22px; position: relative;
}
.app-dl .feat li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--india-green); background: #fff; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.app-dl .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.app-dl .btn-dl {
  background: linear-gradient(135deg, var(--saffron), #ffb35c);
  color: #08306B; padding: 14px 22px; border-radius: 6px;
  font-weight: 800; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; box-shadow: 0 6px 18px rgba(255,153,51,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-dl .btn-dl:hover {
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,153,51,0.5);
  text-decoration: none; color: #08306B;
}
.app-dl .btn-dl .icon {
  width: 22px; height: 22px; background: #08306B; color: var(--saffron);
  border-radius: 50%; display: inline-flex; align-items:center; justify-content:center;
  font-size: 12px;
}
.app-dl .btn-store {
  background: rgba(255,255,255,0.12); color: #fff; padding: 13px 20px;
  border-radius: 6px; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.28); text-decoration: none;
}
.app-dl .btn-store:hover { background: rgba(255,255,255,0.2); color:#fff; text-decoration: none; }
.app-dl .btn-store svg { width: 18px; height: 18px; }
.app-dl .meta {
  margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.7);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.app-dl .meta span::before { content:""; display:inline-block; width:4px; height:4px; background:currentColor; border-radius:50%; margin-right:8px; vertical-align: middle; }
.app-dl .qr-block {
  background: #fff; padding: 14px; border-radius: 8px; text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.app-dl .qr-block .qr { width: 150px; height: 150px; margin: 0 auto; display: block; }
.app-dl .qr-block .qr-label { color: var(--navy-deep); font-size: 11px; font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.6px; }
.app-dl .qr-block .qr-sub { color: var(--muted); font-size: 10px; margin-top: 2px; }

@media (max-width: 920px) {
  .app-dl .container { grid-template-columns: 1fr; text-align: center; }
  .app-dl .app-logo { width: 180px; height: 180px; }
  .app-dl .feat { grid-template-columns: 1fr; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
  .app-dl .btns, .app-dl .rating, .app-dl .meta { justify-content: center; }
  .app-dl .qr-block { margin: 0 auto; max-width: 200px; }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav > .container > ul { display: none; flex-direction: column; }
  .main-nav > .container > ul.open { display: flex; }
  .main-nav > .container > ul > li > a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .main-nav .submenu { position: static; box-shadow: none; border-top: 0; padding-left: 18px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr; }
  .masthead .right-logos { display: none; }
  .hero h1 { font-size: 22px; }
}

/* ===== Badge danger (unpaid challan) ===== */
.modal .badge-danger {
  background: #fdecea; color: #c0392b;
  border: 1px solid #e57373;
}

/* ===== Modal CTA shared ===== */
.modal-cta {
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}

/* ── Challan — Pending (red warning) ── */
.challan-cta { border: 1.5px solid #e57373; }
.cta-alert {
  background: #fdecea;
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.cta-icon {
  font-size: 22px; color: #c0392b; line-height: 1; flex-shrink: 0; margin-top: 2px;
}
.cta-alert strong { color: #c0392b; font-size: 14px; display: block; margin-bottom: 4px; }
.cta-alert p { margin: 0; color: #555; line-height: 1.4; }

/* Offences breakdown list — for RC/DL pending alarm */
.cta-off-list {
  list-style: none; margin: 0; padding: 8px 16px 4px;
  background: #fff; border-top: 1px dashed #f0d0c0;
}
.cta-off-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  padding: 6px 0; border-bottom: 1px dotted #f0d0c0;
  font-size: 12px; align-items: baseline;
}
.cta-off-list li:last-child { border-bottom: 0; }
.cta-off-name { color: #333; font-weight: 600; }
.cta-off-sec  { color: #888; font-size: 10.5px; letter-spacing: 0.3px; }
.cta-off-fine { color: #c0392b; font-weight: 700; font-family: 'Consolas', monospace; text-align: right; }

.cta-pay-block { background: #fff; padding: 14px 16px; }
.cta-head { margin: 0 0 12px; font-size: 13px; color: #333; }

.cta-app-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cta-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }

.cta-appname { font-size: 13px; font-weight: 700; color: #222; margin: 0 0 2px; }
.cta-tag {
  display: inline-block; background: #0B3D91; color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 2px; vertical-align: middle;
  font-weight: 700; letter-spacing: 0.5px; margin-left: 4px;
}
.cta-appsub { font-size: 11px; color: #777; margin: 0 0 10px; }

.cta-btn-apk, .cta-btn-play {
  display: inline-block; padding: 8px 14px; border-radius: 4px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  margin-right: 8px; margin-bottom: 6px; transition: opacity .2s;
}
.cta-btn-apk:hover, .cta-btn-play:hover { opacity: .85; text-decoration: none; }
.cta-btn-apk  { background: var(--saffron); color: #fff; }
.cta-btn-play { background: #0B3D91; color: #fff; }

.cta-or   { text-align: center; color: #bbb; font-size: 11px; margin: 10px 0 8px; letter-spacing: 1px; }
.cta-booth { margin: 0; color: #555; font-size: 12px; line-height: 1.4; }

/* ── Challan — Clean record ── */
.clean-cta {
  border: 1.5px solid #a5d6a7;
  background: #e8f5e9;
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: center;
}
.clean-icon { font-size: 28px; color: #138808; flex-shrink: 0; }
.clean-cta strong { color: #138808; display: block; margin-bottom: 4px; }
.clean-cta p { margin: 0; color: #555; }

/* ── RC / DL tip ── */
.tip-cta {
  background: #eef2fb;
  border: 1px solid #c5d3ef;
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: center;
}
.tip-logo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.tip-cta p { margin: 0 0 6px; font-size: 12px; color: #444; }
.tip-cta strong { color: #0B3D91; }
.tip-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tip-btns .cta-btn-apk, .tip-btns .cta-btn-play { font-size: 11px; padding: 6px 10px; }
