/* ============================================================
   Prime Marriage Consultant — Registration Form
   Royal Blue & Golden Theme · bilingual (Urdu / English)
   ============================================================ */

:root {
  --bg: #040b16; /* Deep Navy Blue */
  --bg-2: #0a1628;
  --panel: rgba(10, 22, 40, 0.85);
  --panel-solid: #0a1628;
  --line: rgba(212, 175, 55, 0.25); /* Muted Gold */
  --line-soft: rgba(212, 175, 55, 0.15);
  --line-hot: rgba(255, 215, 0, 0.65); /* Bright Gold */
  --violet: #d4af37; /* Gold replacing violet */
  --violet-deep: #b8860b; /* Dark Goldenrod */
  --fuchsia: #facc15; /* Bright Yellow Gold */
  --pink: #fef08a; /* Light Gold */
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --ok: #34d399;
  --err: #fb7185;
  --radius: 22px;
  --radius-sm: 14px;
  --glow: 0 0 0 1px rgba(255, 215, 0, 0.3), 0 18px 40px -24px rgba(212, 175, 55, 0.8);
  --font-en: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --font-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 48px;
}

/* ---------------- animated background ---------------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1100px 700px at 15% -10%, rgba(30, 58, 138, 0.45), transparent 60%),
  radial-gradient(900px 620px at 100% 0%, rgba(212, 175, 55, 0.15), transparent 62%),
  radial-gradient(900px 900px at 50% 110%, rgba(10, 22, 40, 0.6), transparent 65%),
  linear-gradient(180deg, #040b16 0%, #02060c 55%, #040b16 100%);
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: radial-gradient(circle, #d4af37, transparent 68%); opacity: 0.25; }
.blob-2 { width: 380px; height: 380px; top: 24%; right: -120px; background: radial-gradient(circle, #1e3a8a, transparent 68%); animation-delay: -6s; opacity: 0.6; }
.blob-3 { width: 520px; height: 520px; bottom: -180px; left: 30%; background: radial-gradient(circle, #0a1628, transparent 70%); animation-delay: -11s; opacity: 0.8; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(28px, -34px, 0) scale(1.12); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}
.vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(2, 6, 12, 0.9) 100%); }

/* ---------------- typography helpers ---------------- */
.ur, [lang="ur"] {
  font-family: var(--font-ur);
  line-height: 2;
  font-weight: 400;
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: #fff; }

/* ---------------- header ---------------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 22px 8px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 22px; font-family: var(--font-ur); line-height: 1.7; color: #fff; text-shadow: 0 0 18px rgba(212, 175, 55, 0.6); }
.brand-text small { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

.head-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--pink);
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.head-call svg { width: 16px; height: 16px; }
.head-call:hover { border-color: var(--line-hot); box-shadow: 0 0 22px -4px rgba(255, 215, 0, 0.5); color: #fff; }

.head-tools { display: flex; align-items: center; gap: 10px; }

/* ---------------- language switch ---------------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(8px);
}
.lang-btn {
  border: 0; background: transparent;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background .25s, box-shadow .25s;
  font-variant-numeric: tabular-nums;
}
.lang-btn[lang="ur"] {
  font-family: var(--font-ur);
  font-size: 12.5px; letter-spacing: 0; line-height: 1.2;
  padding: 5px 13px 8px;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #b8860b, #facc15);
  box-shadow: 0 0 18px -6px rgba(255, 215, 0, 0.8);
}

/* ---------------- layout ---------------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px 72px; }

/* ---------------- hero ---------------- */
.hero { text-align: center; padding: 34px 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.09);
  color: var(--pink);
  font-size: 12.5px; letter-spacing: 0.06em;
  box-shadow: inset 0 0 22px -10px rgba(255, 215, 0, 0.8);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fuchsia); box-shadow: 0 0 10px 2px rgba(250, 204, 21, 0.9); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }

.hero h1 { margin: 18px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.h1-en {
  font-size: clamp(34px, 6.4vw, 60px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.02;
  background: linear-gradient(100deg, #ffffff 6%, #fef08a 42%, #d4af37 78%, #b8860b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(212, 175, 55, 0.45));
}
.h1-ur { font-family: var(--font-ur); font-size: clamp(24px, 4.4vw, 34px); line-height: 2.1; color: #fef08a; opacity: .95; }
.hero-sub { max-width: 700px; margin: 0 auto 10px; color: var(--muted); font-size: 15.5px; }
.hero-sub[lang="ur"] { font-size: 15px; line-height: 2.3; max-width: 640px; }
.hero-sub.en { font-size: 13.5px; color: var(--muted-2); max-width: 640px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 22px 0 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 12px;
  font-size: 12.8px; color: #fef08a;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
}

/* ---------------- form / cards ---------------- */
.form { display: flex; flex-direction: column; gap: 20px; }

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.85), rgba(4, 11, 22, 0.95));
  backdrop-filter: blur(14px);
  padding: 26px 26px 28px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.85), rgba(212, 175, 55, 0.55), transparent);
  opacity: .85;
}
.card::after {
  content: "";
  position: absolute; width: 240px; height: 240px; top: -140px; right: -80px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.num {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.9), rgba(184, 134, 11, 0.55));
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.5), 0 10px 24px -12px rgba(212, 175, 55, 0.95);
}
.card-titles h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.card-titles p { margin: 2px 0 0; font-family: var(--font-ur); font-size: 15px; color: var(--fuchsia); line-height: 1.95; }

/* ---------------- grid & fields ---------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field-wide { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field label, .label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13.4px; font-weight: 500; color: #e2e8f0; letter-spacing: 0.01em;
}
.field label .ur { font-size: 13px; color: var(--muted); line-height: 1.9; }
.req { color: var(--fuchsia); font-weight: 700; }
.auto-tag {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  color: var(--pink); border: 1px solid var(--line-soft); background: rgba(212, 175, 55, 0.12);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--text);
  background: rgba(4, 11, 22, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  height: 48px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
textarea { height: auto; min-height: 96px; resize: vertical; font-family: var(--font-ar); line-height: 1.8; }

input::placeholder { color: #64748b; opacity: 1; font-family: var(--font-ar); }

input:hover, select:hover { border-color: rgba(255, 215, 0, 0.45); }

input:focus, select:focus, textarea:focus {
  border-color: var(--line-hot);
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15), 0 0 26px -6px rgba(255, 215, 0, 0.5);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 42px;
  cursor: pointer;
}
select option { background: var(--panel-solid); color: var(--text); }

input[type="date"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) sepia(1) saturate(6) hue-rotate(10deg); cursor: pointer; opacity: .85; }

input[readonly] {
  color: #cbd5e1;
  background: rgba(212, 175, 55, 0.08);
  border-style: dashed;
  cursor: default;
}

.hint { margin: 0; font-size: 11.6px; color: var(--muted-2); }

/* invalid state */
.field.is-invalid input,
.field.is-invalid select { border-color: rgba(251, 113, 133, 0.8); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14); }
.field-error { margin: 0; font-size: 11.8px; color: #fda4af; display: none; }
.field.is-invalid .field-error { display: block; }

/* ---------------- photo upload ---------------- */
.photo-block { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-soft); }
.photo-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.photo-head h3 .ur { font-size: 13.5px; color: var(--fuchsia); }
.optional {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--line-soft); background: rgba(212, 175, 55, 0.08);
}
.photo-head .hint { max-width: 620px; line-height: 1.7; }

.photo-zone {
  margin-top: 14px;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(212, 175, 55, 0.1), rgba(4, 11, 22, 0.55));
  min-height: 150px;
  display: grid; place-items: center;
  padding: 20px;
  cursor: pointer;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.photo-zone:hover, .photo-zone:focus-visible { border-color: var(--line-hot); box-shadow: 0 0 34px -14px rgba(255, 215, 0, 0.8); outline: none; }
.photo-zone.is-drag { border-color: var(--fuchsia); box-shadow: 0 0 40px -10px rgba(250, 204, 21, 0.8); transform: scale(1.005); }

.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); }
.photo-empty svg { width: 34px; height: 34px; color: var(--fuchsia); filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.5)); }
.photo-empty strong { font-size: 14px; color: #fef08a; font-weight: 600; }
.photo-empty span { font-size: 11.8px; color: var(--muted-2); }

.photo-preview { margin: 0; }
.photo-preview img {
  display: block;
  max-height: 240px; max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-hot);
  box-shadow: 0 18px 40px -22px rgba(255, 215, 0, 0.8);
}
.photo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted-2); }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--fuchsia); font: inherit; font-size: 12.6px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  font-family: var(--font-en);
}
.link-btn:hover { color: #fff; }

/* ---------------- consent ---------------- */
.consent {
  margin-top: 24px; padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(184, 134, 11, 0.03));
}
.check { display: flex; gap: 13px; cursor: pointer; align-items: flex-start; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px;
  border-radius: 7px;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  background: rgba(4, 11, 22, 0.8);
  display: grid; place-items: center;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.check .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s; }
.check input:checked + .box {
  background: linear-gradient(145deg, #d4af37, #b8860b);
  border-color: var(--fuchsia);
  box-shadow: 0 0 20px -4px rgba(255, 215, 0, 0.8);
}
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3); }
.check-text { display: flex; flex-direction: column; gap: 4px; }
.check-text strong { font-family: var(--font-ur); font-size: 14px; line-height: 2.15; font-weight: 600; color: #fff; }
.check-text em { font-style: normal; font-size: 12.4px; color: var(--muted); }
.consent-note { margin: 12px 0 0; font-size: 11.6px; color: var(--muted-2); }
.consent.is-invalid { border-color: rgba(251, 113, 133, 0.75); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12); }

/* ---------------- submit ---------------- */
.submit-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95), rgba(4, 11, 22, 0.98));
  padding: 24px;
  box-shadow: 0 40px 80px -50px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
}
.submit-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, #facc15, #d4af37, transparent);
}

.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.progress { flex: 1; height: 8px; border-radius: 999px; background: rgba(212, 175, 55, 0.15); overflow: hidden; }
.progress span {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8860b, #d4af37, #facc15);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.8);
  transition: width .35s ease;
}
.progress-num { font-size: 12.5px; font-weight: 600; color: var(--fuchsia); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

.submit-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; border: 1px solid transparent;
  padding: 13px 20px;
  font-family: var(--font-en); font-size: 14.5px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: transform .18s, box-shadow .22s, border-color .22s, background .22s, color .22s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 45%, #facc15 100%);
  box-shadow: 0 14px 34px -14px rgba(255, 215, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(250, 204, 21, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); color: #fff; }

.btn-ghost {
  color: #fef08a;
  border-color: var(--line);
  background: rgba(212, 175, 55, 0.08);
}
.btn-ghost:hover { border-color: var(--line-hot); color: #fff; box-shadow: 0 0 24px -8px rgba(255, 215, 0, 0.8); }

.btn-send { flex: 1 1 320px; padding: 16px 22px; border-radius: 16px; }
.btn-send svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.btn-label strong { font-family: var(--font-ur); font-size: 15.5px; font-weight: 600; line-height: 1.95; }
.btn-label small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

.submit-note { margin: 16px 0 0; font-size: 12.2px; color: var(--muted-2); line-height: 1.8; }
.reset-btn { margin-top: 10px; }

/* ---------------- footer ---------------- */
.site-footer {
  max-width: 1080px; margin: 0 auto; padding: 8px 22px 40px;
  text-align: center; color: var(--muted-2); font-size: 12.5px;
  display: flex; flex-direction: column; gap: 4px;
}
.site-footer p { margin: 0; }
.site-footer p[lang="ur"] { font-family: var(--font-ur); font-size: 14px; color: var(--muted); line-height: 2; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  z-index: 90;
  max-width: min(560px, calc(100vw - 32px));
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-hot);
  background: rgba(10, 22, 40, 0.98);
  color: #fef08a;
  font-size: 13.5px;
  box-shadow: 0 26px 60px -24px rgba(255, 215, 0, 0.7);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 26px 60px -24px rgba(52, 211, 153, 0.7); }

/* ---------------- modal ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(620px, 100%);
  max-height: min(84vh, 780px);
  display: flex; flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line-hot);
  background: linear-gradient(180deg, #0a1628, #040b16);
  box-shadow: 0 50px 100px -40px rgba(255, 215, 0, 0.5);
  overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; font-family: var(--font-ur); line-height: 1.9; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(212, 175, 55, 0.1);
  color: #fef08a; cursor: pointer; font-size: 13px;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.icon-btn:hover { border-color: var(--line-hot); color: #fff; box-shadow: 0 0 20px -6px rgba(255, 215, 0, 0.8); }

.preview-body {
  margin: 0; padding: 16px 18px;
  overflow: auto;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 12.4px; line-height: 1.75;
  color: #f8fafc;
  white-space: pre-wrap; word-break: break-word;
  background: rgba(2, 6, 12, 0.7);
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.modal-actions .btn { flex: 1 1 180px; padding: 11px 16px; font-size: 13.5px; }

/* ---------------- send panel ---------------- */
.send-panel {
  position: fixed; z-index: 95;
  right: 22px; bottom: 22px;
  width: min(400px, calc(100vw - 28px));
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line-hot);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.98), rgba(2, 6, 12, 0.99));
  box-shadow: 0 40px 90px -34px rgba(255, 215, 0, 0.8);
  animation: panelIn .3s ease both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.send-panel h3 { margin: 0 0 8px; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 8px; }
.send-lead { margin: 0 0 16px; font-size: 12.8px; color: var(--muted); line-height: 2.1; }
.send-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 2; color: #fef08a; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--line-soft); }
.send-actions { display: flex; flex-direction: column; gap: 9px; }
.send-actions .btn { width: 100%; font-size: 13.5px; padding: 11px 16px; }
.send-close { position: absolute; top: 12px; right: 12px; }

/* ---------------- mobile sticky bar ---------------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none;
  padding: 10px 14px 10px;
  background: rgba(4, 11, 22, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 40px -26px rgba(255, 215, 0, 0.7);
}
.mbar-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.mbar-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.mbar-progress { height: 4px; border-radius: 999px; background: rgba(212, 175, 55, 0.18); overflow: hidden; margin-bottom: 8px; }
.mbar-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d4af37, #facc15); box-shadow: 0 0 12px rgba(255, 215, 0, 0.8); transition: width .3s; }
.mbar .btn { width: 100%; font-family: var(--font-ur); font-size: 14.5px; padding: 12px; }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  body { padding-bottom: 118px; }
  .site-header { padding: 16px 16px 4px; }
  .brand-text strong { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; }
  .head-call { padding: 8px 12px; font-size: 12px; }
  .head-call span { display: none; }
  .head-call { width: 38px; height: 38px; justify-content: center; padding: 0; border-radius: 50%; }
  .wrap { padding: 0 16px 56px; }
  .hero { padding: 22px 0 22px; }
  .hero-sub { font-size: 14.5px; }
  .card { padding: 20px 18px 22px; border-radius: 18px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card-head { gap: 11px; margin-bottom: 18px; }
  .num { width: 36px; height: 36px; border-radius: 11px; font-size: 12.5px; }
  .card-titles h2 { font-size: 17.5px; }
  .card-titles p { font-size: 13.5px; }
  .field label { font-size: 12.8px; }
  .submit-row { flex-direction: column; }
  .btn-send { flex: 1 1 auto; width: 100%; }
  .btn-ghost { width: 100%; }
  .mbar { display: block; }
  .send-panel { right: 10px; left: 10px; bottom: 108px; width: auto; padding: 18px; }
  .photo-zone { min-height: 132px; }
  .check-text strong { font-size: 13px; }
}

/* hide sticky bar when the submit card is visible on mobile (kept simple: always visible on small screens) */
@media (min-width: 761px) {
  .mbar { display: none !important; }
}

/* ---------------- accessibility / motion ---------------- */
:focus-visible { outline: 2px solid rgba(250, 204, 21, 0.9); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Single-language display (header switch)
   ============================================================ */
html[data-lang="ur"] .en,
html[data-lang="en"] .ur { display: none !important; }

/* typography when Urdu is the only language on screen */
html[data-lang="ur"] .card-titles h2 .ur { font-size: 19px; font-weight: 600; line-height: 2.05; }
html[data-lang="ur"] .field label { font-size: 14px; }
html[data-lang="ur"] .field label .ur { color: #e2e8f0; font-size: 14px; }
html[data-lang="ur"] .photo-head h3 .ur { color: #fff; font-size: 16.5px; }
html[data-lang="ur"] .btn-label strong.ur { font-size: 16px; }
html[data-lang="ur"] .check-text strong.ur { font-size: 14.5px; }
html[data-lang="ur"] .mbar .btn { font-family: var(--font-ur); font-size: 14px; }
html[data-lang="ur"] .modal-head h3 { font-size: 15.5px; }

/* typography when English is the only language on screen */
.hero-sub.ur { font-size: 15.5px; line-height: 2.3; max-width: 640px; color: var(--muted); }
.check-text strong.en { font-family: var(--font-en); font-size: 13.6px; font-weight: 600; line-height: 1.65; }
.btn-label strong.en { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.4; }
html[data-lang="en"] .mbar .btn { font-family: var(--font-en); font-size: 13.5px; }

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .lang-btn { padding: 8px 10px; }
  .lang-btn[lang="ur"] { padding: 5px 11px 8px; }
}