/* ══════════════════════════════════════════════════
   HAMQADAM – SITE.CSS
   Material + Minimal + Dashboard UI
   ══════════════════════════════════════════════════ */

:root {
  --primary: #0066FF;
  --primary-dark: #0047CC;
  --primary-light: #EBF3FF;
  --accent: #00C896;
  --accent-light: #E6FAF5;
  --danger: #FF3B5C;
  --warning: #FF9500;
  --text-primary: #0A0F1E;
  --text-secondary: #5A6478;
  --text-muted: #9BA8BC;
  --border: #E2E8F4;
  --bg: #F5F7FC;
  --surface: #FFFFFF;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,102,255,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.09), 0 8px 32px rgba(0,102,255,.08);
  --shadow-lg: 0 16px 64px rgba(0,0,0,.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Urdu mode ─────────────────────────────────── */
[data-lang="ur"] body { font-family: var(--font-ur); direction: rtl; }
[data-lang="ur"] .t { font-family: var(--font-ur); }
[data-lang="ur"] input, [data-lang="ur"] select, [data-lang="ur"] textarea {
  font-family: var(--font-ur); direction: rtl; text-align: right;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,102,255,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 40px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; gap: 0; line-height: 1.2; }
.brand-en { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.brand-ur { font-size: 14px; color: var(--text-secondary); font-family: var(--font-ur); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.lang-toggle {
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-primary); cursor: pointer;
  transition: all .2s ease;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-admin {
  padding: 8px 18px; border-radius: 100px;
  background: var(--primary); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s ease;
}
.btn-admin:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────── */
.hero-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0047CC 0%, #0066FF 50%, #00A3FF 100%);
  padding: 80px 24px 100px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,200,150,.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  padding: 6px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800; color: #fff;
  letter-spacing: -2px; line-height: 1.05;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,.8);
  line-height: 1.7; max-width: 500px; margin: 0 auto 36px;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); border-radius: 16px;
  padding: 20px 32px; display: inline-flex; gap: 0;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.stat-num { font-size: 26px; font-weight: 800; color: #fff; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* ── Form Page ──────────────────────────────────── */
.form-page {
  max-width: 860px; margin: -40px auto 60px;
  padding: 0 16px;
  position: relative; z-index: 10;
}
.form-container {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ── Progress Steps ─────────────────────────────── */
.form-progress {
  display: flex; align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.progress-step {
  display: flex; align-items: center; gap: 10px;
  opacity: .4; transition: all .3s ease; flex: 1;
}
.progress-step.active { opacity: 1; }
.progress-step.completed .step-num { background: var(--accent); }
.progress-step.completed { opacity: .7; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--border); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
  transition: all .3s ease;
}
.progress-step.active .step-num { background: var(--primary); color: #fff; }
.step-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.progress-step.active .step-label { color: var(--primary); }
.progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 16px; }

/* ── Form Sections ──────────────────────────────── */
.form-section { display: none; padding: 32px; }
.form-section.active { display: block; animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.section-header {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 20px; flex-shrink: 0;
}
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.section-desc { font-size: 14px; color: var(--text-secondary); }

/* ── Photo Upload ───────────────────────────────── */
.picture-upload-area {
  display: flex; gap: 20px; align-items: center;
  background: var(--bg); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 28px;
  border: 1.5px dashed var(--border);
}
.picture-preview {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--text-muted);
  flex-shrink: 0; overflow: hidden;
}
.picture-info label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.picture-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.btn-upload {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid rgba(0,102,255,.2); transition: all .2s;
}
.btn-upload:hover { background: var(--primary); color: #fff; }

/* ── Fields Grid ────────────────────────────────── */
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group.full-width { grid-column: 1 / -1; }

.field-label { font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 4px; }
.field-label-ur { display: none; font-size: 11px; color: var(--text-muted); font-family: var(--font-ur); }
.required { color: var(--danger); font-size: 14px; }

.field-input-wrap { position: relative; }
.field-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}
.field-icon-top { top: 18px; transform: none; }

.field-input {
  width: 100%; padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  transition: all .2s ease;
  appearance: none;
}
.field-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,.1);
}
.field-input::placeholder { color: var(--text-muted); }
.field-select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA8BC' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field-textarea { height: auto; resize: vertical; }

.field-error { font-size: 12px; color: var(--danger); }

/* ── Gender ─────────────────────────────────────── */
.gender-options { display: flex; gap: 10px; }
.gender-card { flex: 1; cursor: pointer; }
.gender-card input { display: none; }
.gender-inner {
  padding: 12px 8px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: all .2s;
}
.gender-inner i { font-size: 20px; }
.gender-card input:checked + .gender-inner {
  border-color: var(--primary); background: var(--primary-light);
  color: var(--primary);
}

/* ── Declaration ────────────────────────────────── */
.declaration-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, #FFF8E6, #FFFBF0);
  border: 1.5px solid #FFD966;
  border-radius: var(--radius); padding: 24px;
  margin: 24px 0;
}
.declaration-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #FFD966; color: #7A5800;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.declaration-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.declaration-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.declaration-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.declaration-check input { display: none; }
.check-box {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border); background: var(--surface);
  transition: all .2s; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.declaration-check input:checked + .check-box {
  background: var(--primary); border-color: var(--primary);
}
.declaration-check input:checked + .check-box::after {
  content: '✓'; color: #fff; font-size: 13px; font-weight: 700;
}

/* ── Section Footer ─────────────────────────────── */
.section-footer {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-next, .btn-submit {
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.btn-next { background: var(--primary); color: #fff; }
.btn-next:hover { background: var(--primary-dark); transform: translateX(2px); }
.btn-submit { background: linear-gradient(135deg, var(--accent), #00A876); color: #fff; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,150,.35); }
.btn-back {
  padding: 14px 24px; border-radius: 100px;
  background: var(--bg); border: 1.5px solid var(--border);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  color: var(--text-secondary); transition: all .2s;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }

/* ── Success Page ───────────────────────────────── */
.success-page {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.success-card {
  background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 56px 48px; text-align: center;
  max-width: 520px; width: 100%;
}
.success-animation {
  width: 100px; height: 100px; position: relative;
  margin: 0 auto 28px;
}
.success-ring {
  width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid var(--accent);
  animation: ringPulse 2s ease-in-out infinite;
}
.success-check {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); border-radius: 50%;
  color: #fff; font-size: 36px;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: .6; }
}
.success-title { font-size: 30px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.success-id { font-size: 18px; color: var(--text-secondary); margin-bottom: 16px; }
.success-id strong { color: var(--primary); }
.success-msg { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.success-note {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13px; margin-bottom: 28px; text-align: left;
}
.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: 15px; transition: all .2s;
}
.btn-home:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--text-primary); color: rgba(255,255,255,.6);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-weight: 600; }
.footer-copy { font-size: 13px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .fields-grid { grid-template-columns: 1fr; }
  .field-group.full-width { grid-column: 1; }
  .form-section { padding: 20px 16px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .success-card { padding: 36px 24px; }
}
