/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #f9f9f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a6bb5; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ===== URDU / RTL ===== */
.urdu {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Mehr Nastaliq', serif;
  direction: rtl;
  text-align: right;
  line-height: 2;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAV ===== */
.site-nav {
  background: #1a3a5c;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  color: #d0e4f7;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 16px;
}

.hero .urdu {
  font-size: 1.3rem;
  margin-top: 10px;
  opacity: 0.95;
}

/* ===== SECTION ===== */
.section {
  padding: 50px 20px;
}

.section:nth-child(even) {
  background: #fff;
}

.section-title {
  font-size: 1.6rem;
  color: #1a3a5c;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ===== COUNTER BOXES ===== */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.counter-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-top: 4px solid #2d6a9f;
}

.counter-box .count {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a3a5c;
  display: block;
}

.counter-box .label {
  font-size: 1rem;
  color: #555;
  margin-top: 6px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-primary {
  background: #d9534f;
  color: #fff;
}

.btn-primary:hover { background: #c9302c; color: #fff; }

.btn-secondary {
  background: #1a6bb5;
  color: #fff;
}

.btn-secondary:hover { background: #145a96; color: #fff; }

.btn-outline {
  background: transparent;
  color: #1a3a5c;
  border: 2px solid #1a3a5c;
}

.btn-outline:hover { background: #1a3a5c; color: #fff; }

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* ===== STEPS ===== */
.steps {
  max-width: 600px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2d6a9f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-text {
  font-size: 1.05rem;
  padding-top: 8px;
}

/* ===== WARNING BOX ===== */
.warning-box {
  background: #fff3cd;
  border-left: 5px solid #d9534f;
  border-radius: 8px;
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.warning-box h3 {
  color: #d9534f;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.warning-box ul {
  padding-left: 20px;
}

.warning-box li {
  margin-bottom: 8px;
}

/* ===== KEY MESSAGE ===== */
.key-message {
  background: #e8f4fd;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.key-message p {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.key-message strong {
  color: #d9534f;
}

/* ===== FORM ===== */
.form-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
}

.form-page h1 {
  font-size: 1.6rem;
  color: #1a3a5c;
  margin-bottom: 8px;
}

.form-page .form-desc {
  color: #555;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #333;
}

.form-group label .required {
  color: #d9534f;
}

.form-group label .private-badge {
  background: #6c757d;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 400;
  vertical-align: middle;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d6a9f;
  box-shadow: 0 0 0 3px rgba(45,106,159,0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group .field-hint {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #d9534f;
}

.form-group .error-msg {
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.15rem;
}

/* Form feedback */
.form-feedback {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  display: none;
}

.form-feedback.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.form-feedback.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== LEGAL PAGE ===== */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h2 {
  color: #1a3a5c;
  font-size: 1.4rem;
  margin: 35px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.legal-content h3 {
  color: #333;
  font-size: 1.15rem;
  margin: 20px 0 8px;
}

.legal-content p {
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

.authority-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid #2d6a9f;
}

.authority-card h3 {
  margin-top: 0;
  color: #1a3a5c;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== POLICY PAGES ===== */
.policy-page {
  padding: 30px 20px;
}

.policy-title {
  font-size: 1.8rem;
  color: #1a3a5c;
  margin-bottom: 4px;
  font-weight: 800;
}

.policy-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* ===== FORM CONSENT ===== */
.form-consent {
  font-size: 0.85rem;
  color: #666;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-consent a {
  color: #1a6bb5;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a3a5c;
  color: #ccc;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #8fc4e8;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.footer-legal-links a {
  color: #8fc4e8;
  opacity: 0.8;
}

.footer-legal-links a:hover {
  opacity: 1;
}

.footer-contact {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 8px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .subtitle { font-size: 1rem; }
  .counter-box .count { font-size: 2.2rem; }
  .btn { padding: 14px 24px; font-size: 1rem; width: 100%; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .nav-inner { justify-content: center; text-align: center; }
  .nav-links { justify-content: center; }
  .section { padding: 35px 16px; }
  .section-title { font-size: 1.3rem; }
}
