/* BISP Check Portal — original minimal design (intentionally distinct
   from the reference site; functionality is what is replicated) */

:root {
  --teal: #0e7c66;
  --teal-dark: #0a5c4c;
  --amber: #b45309;
  --violet: #6d28d9;
  --ink: #14201d;
  --muted: #5b6b67;
  --line: #dbe5e2;
  --bg: #f4f8f7;
  --card: #ffffff;
  --good: #16a34a;
  --bad: #dc2626;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header {
  background: #0f231f;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #fff; font-weight: 800; letter-spacing: .5px;
  padding: 6px 10px; border-radius: 9px; font-size: 1.05rem;
}
.brand-text { color: #eaf4f1; font-weight: 700; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: #cfe3dd; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-list a.active { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle-bar { display: block; width: 24px; height: 3px; background: #eaf4f1; margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #0f231f; display: none; }
  .site-nav .nav-list { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
  .site-nav.open { display: block; }
  .header-inner { position: relative; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius);
  color: #fff; text-align: center; padding: 58px 20px 62px;
}
.hero--teal   { background: linear-gradient(135deg, #0a5c4c, #0e7c66 55%, #12997e); }
.hero--amber  { background: linear-gradient(135deg, #7c3d09, #b45309 55%, #d97706); }
.hero--violet { background: linear-gradient(135deg, #4c1d95, #6d28d9 55%, #7c3aed); }
.hero--home { padding: 84px 20px; }
.hero-pattern {
  position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.4) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(255,255,255,.4) 0 2px, transparent 3px);
  background-size: 90px 90px, 130px 130px, 110px 110px;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: -.02em; }
.hero p { margin: 0; opacity: .92; font-size: clamp(1rem, 2.4vw, 1.15rem); }
.btn-hero {
  display: inline-block; margin-top: 22px; background: #fff; color: var(--teal-dark);
  text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.service-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 22px; align-items: start; margin-top: 18px;
}
@media (max-width: 800px) { .service-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 30px;
  box-shadow: 0 10px 30px rgba(15,35,31,.06);
}
.form-card-title { margin: 0 0 6px; font-size: 1.35rem; }
.form-card-sub { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }

.status-pill {
  display: inline-block; margin: 0 0 14px; padding: 5px 14px;
  border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.st-ok { background: #dcfce7; color: #15803d; }
.st-down { background: #fee2e2; color: #b91c1c; }

.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdfc;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,102,.15);
}
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row img {
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 200px; height: auto;
}
#reloadBtn {
  border: 1.5px solid var(--line); background: #fbfdfc; cursor: pointer;
  font-size: 1.25rem; line-height: 1; padding: 11px 14px; border-radius: 10px; color: var(--ink);
}
#reloadBtn:hover { border-color: var(--teal); color: var(--teal); }

.btn-primary {
  width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--teal), #12997e);
  color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 13px 20px; border-radius: 10px;
  transition: transform .05s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .65; cursor: wait; }

.side-card {
  background: #eef6f4; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.side-card h3 { margin-top: 0; }
.steps { padding-left: 18px; margin: 0 0 10px; }
.steps li { margin-bottom: 6px; }
.legend { list-style: none; padding: 0; margin: 0 0 10px; }
.legend li { margin-bottom: 6px; }
.legend .good { color: var(--good); }
.legend .bad { color: var(--bad); }
.note { font-size: .88rem; color: var(--muted); margin-bottom: 0; }

/* ---------- results ---------- */
.result-area { margin-top: 18px; }
.result-area.error p { color: var(--bad); font-weight: 700; text-align: center; font-size: 1.1rem; }
.dubara-btn {
  display: inline-block; margin-top: 14px; text-decoration: none;
  border: 2px solid var(--teal); color: var(--teal); font-weight: 700;
  padding: 9px 22px; border-radius: 999px;
}
.dubara-btn:hover { background: var(--teal); color: #fff; }

.pmt-cnic-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  background: #f0faf7; border: 1px dashed #bcd9d0;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem;
}
.pmt-cnic-label { color: var(--muted); }
.pmt-result-card {
  text-align: center; border-radius: var(--radius); padding: 26px 18px;
  border: 2px solid var(--line); background: var(--card);
}
.pmt-result-good { border-color: #bbf7d0; background: #f6fef9; }
.pmt-result-bad  { border-color: #fecaca; background: #fef7f7; }
.pmt-icon-wrap { margin: 6px 0 10px; }
.pmt-score-label { color: var(--muted); margin: 4px 0 2px; }
.pmt-code { font-size: 1.9rem; font-weight: 900; letter-spacing: .02em; }
.text-good { color: var(--good); }
.text-bad { color: var(--bad); }
.pmt-status-pill {
  display: inline-block; margin-top: 10px; padding: 7px 18px;
  border-radius: 999px; font-weight: 700; color: #fff;
}
.pmt-pill-good { background: var(--good); }
.pmt-pill-bad { background: var(--bad); }

.pmt-meter-wrap { margin-top: 22px; text-align: left; }
.pmt-meter-wrap h4 { margin: 0 0 8px; }
.pmt-bar { height: 16px; border-radius: 999px; background: #e5efec; overflow: hidden; }
.pmt-fill { height: 100%; width: 0; border-radius: 999px; transition: width .1s linear; }
.m-green { background: linear-gradient(90deg, #22c55e, #15803d); }
.m-amber { background: linear-gradient(90deg, #f59e0b, #b45309); }
.m-red { background: linear-gradient(90deg, #ef4444, #991b1b); }
.pmt-bar-labels { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.pmt-score-num { font-weight: 900; color: var(--ink); }
.pmt-calculating { text-align: center; color: var(--muted); font-style: italic; }

/* ---------- content sections ---------- */
.info-section, .faq-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-top: 22px;
}
.info-section h2, .faq-section h2 { margin-top: 0; }
.check-list { padding-left: 20px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px; margin-top: 20px;
}
.service-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s;
}
.service-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,35,31,.1); }
.tile-icon { font-size: 1.6rem; }
.service-tile h2 { margin: 8px 0 6px; font-size: 1.15rem; color: var(--teal-dark); }
.service-tile p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 44px; background: #0f231f; color: #b9cdc7; padding: 34px 0 26px; }
.footer-inner { text-align: center; }
.footer-tag { max-width: 640px; margin: 0 auto 14px; font-size: .93rem; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 12px; }
.footer-menu a { color: #dcebe6; text-decoration: none; font-weight: 600; font-size: .93rem; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-bottom: 10px; }
.footer-legal a { color: #8fa8a1; margin: 0 8px; font-size: .88rem; }
.footer-copy { font-size: .85rem; color: #7e968f; margin: 0; }
