@import url('https://fonts.cdnfonts.com/css/jameel-noori-nastaleeq');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #eef3ef;
}

body {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, serif;
  color: #173021;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.portal-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  border: 1px solid #dfe9e1;
  position: relative;
}

.topbar {
  padding: 12px 14px 8px;
}

/* Scroll / Marquee Bar Style */
.gov-title {
  background: linear-gradient(135deg, #087b38, #0a9446);
  color: #fff;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(11, 140, 58, 0.18);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  translate: 35%;
  padding-left: 10%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translate(-100%, 0);
  }
  100% {
    transform: translate(100%, 0);
  }
}

.leaders {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 18px 18px 8px;
}

.leader-card {
  width: 50%;
  text-align: center;
}

.photo-ring {
  width: 116px;
  height: 116px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 4px;
  background: #fff;
  border: 3px solid #15934a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.leader-name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #213529;
}

.intro-box {
  margin: 10px 16px 14px;
  padding: 13px 12px;
  background: #eaf8ee;
  border: 1px solid #bce4c7;
  border-radius: 12px;
  color: #087b38;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.9;
}

.form-card {
  margin: 0 16px 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e8e2;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.045);
}

/* Dual Heading (Urdu & English in one line) */
.dual-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #174826;
  white-space: nowrap;
}

.dual-heading .urdu-text {
  font-size: 18px;
  font-weight: 700;
}

.dual-heading .sep {
  color: #a0b2a5;
  font-size: 18px;
}

.dual-heading .eng-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
}

#cnic {
  width: 100%;
  height: 52px;
  padding: 9px 12px;
  border: 2px solid #d3ddd5;
  border-radius: 10px;
  outline: none;
  font-size: 20px;
  text-align: center;
  direction: ltr;
  letter-spacing: 0.5px;
  background: #fbfdfb;
  color: #183521;
}

#cnic:focus {
  border-color: #0b8c3a;
  box-shadow: 0 0 0 3px rgba(11, 140, 58, 0.11);
}

.helper {
  text-align: center;
  font-size: 15px;
  color: #718076;
  margin-top: 7px;
}

#nextBtn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  margin-top: 14px;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 700;
  background: #bfc8c1;
  color: #fff;
  cursor: not-allowed;
  transition: 0.2s;
}

#nextBtn.enabled {
  background: #0b8c3a;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(11, 140, 58, 0.22);
}

#nextBtn.enabled:active {
  transform: translateY(1px);
}

.timer-box {
  margin: 16px;
  padding: 17px 12px;
  text-align: center;
  background: #f7fbf8;
  border: 1px solid #d8e9dc;
  border-radius: 14px;
}

.timer-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.timer-ring-wrap svg {
  transform: rotate(-90deg);
}

.timer-ring-bg,
.timer-ring-prog {
  fill: none;
  stroke-width: 6;
}

.timer-ring-bg {
  stroke: #dce9df;
}

.timer-ring-prog {
  stroke: #0b8c3a;
  stroke-linecap: round;
  stroke-dasharray: 226.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0b8c3a;
}

.timer-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
  color: #246037;
}

.pulse-dots {
  direction: ltr;
  margin-top: 5px;
}

.pulse-dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 3px;
  background: #0b8c3a;
  border-radius: 50%;
  animation: pulse 1.1s infinite ease-in-out;
}

.pulse-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.pulse-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: scale(0.75);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.secure-note {
  margin: 6px 16px 18px;
  padding: 11px 12px;
  background: #f7f7f7;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: #667168;
  line-height: 1.7;
}

@media (max-width: 380px) {
  .page-shell {
    padding: 8px;
  }
  .portal-card {
    border-radius: 13px;
  }
  .photo-ring {
    width: 98px;
    height: 98px;
  }
  .leader-name {
    font-size: 14px;
  }
  .gov-title {
    font-size: 16px;
  }
  .intro-box {
    font-size: 14px;
  }
  .dual-heading .urdu-text {
    font-size: 12px;
  }
  .dual-heading .eng-text {
    font-size: 9px;
  }
}