:root {
  --bg: #0b0f19;
  --panel-bg: rgba(15, 23, 42, 0.75);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.5);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.5);
  --green: #10b981;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Orbitron', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text); overflow: hidden; background: var(--bg); }

#map { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; }
/* Dark map filter trick to make standard Leaflet tiles look like a sleek dark mode dashboard */
.leaflet-layer, .leaflet-control-zoom-in, .leaflet-control-zoom-out, .leaflet-control-attribution { filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%); }

.overlay-ui { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 10; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }

.glass-panel { background: var(--panel-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; pointer-events: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 2px solid var(--cyan); }
.logo { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.pulse-dot { width: 12px; height: 12px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--cyan-glow); } 70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

.header-status { display: flex; gap: 20px; align-items: center; font-family: var(--font-mono); }
.status-badge.online { color: var(--green); border: 1px solid var(--green); padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }

.panel { padding: 24px; }
.left-panel { width: 380px; position: absolute; left: 20px; top: 80px; border-top: 2px solid var(--cyan); }
.right-panel { width: 380px; position: absolute; right: 20px; top: 80px; border-top: 2px solid var(--red); max-height: calc(100vh - 120px); overflow-y: auto; }
.terminal-panel { width: 450px; position: absolute; left: 20px; bottom: 20px; height: 250px; display: flex; flex-direction: column; padding: 0; font-family: monospace; border: 1px solid var(--cyan); }

.terminal-header { background: rgba(6, 182, 212, 0.2); padding: 8px 12px; font-weight: bold; border-bottom: 1px solid var(--cyan); display: flex; justify-content: space-between;}
.terminal-content { padding: 12px; flex-grow: 1; overflow-y: auto; font-size: 0.9rem; color: var(--cyan); display: flex; flex-direction: column; gap: 6px; }
.terminal-content span.highlight { color: #fff; background: var(--cyan); padding: 0 4px; border-radius: 2px; }

h2 { font-family: var(--font-mono); font-size: 1.2rem; margin-bottom: 20px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
input[type="text"] { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px; border-radius: 6px; outline: none; transition: 0.3s; }
input[type="text"]:focus { border-color: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }

.hosp-select { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px; border-radius: 6px; outline: none; transition: 0.3s; appearance: none; }
.hosp-select:focus { border-color: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.hosp-select option { background: var(--bg); color: #fff; }

.loc-row, .cond-row { display: flex; gap: 8px; }
.btn-icon { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 6px; padding: 0 12px; cursor: pointer; transition: 0.3s; font-size: 1.2rem; }
.btn-icon:hover { background: rgba(255,255,255,0.2); }
.voice-btn.recording { background: var(--red); box-shadow: 0 0 15px var(--red-glow); animation: pulse-red 1.5s infinite; border-color: var(--red); }

.quick-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { font-size: 0.75rem; padding: 6px 12px; background: rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.pill:hover { background: rgba(255,255,255,0.2); border-color: var(--cyan); }

.dropzone { border: 2px dashed rgba(255,255,255,0.2); border-radius: 8px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; }
.dropzone:hover { border-color: var(--cyan); background: rgba(6, 182, 212, 0.05); }
.dz-icon { font-size: 2rem; margin-bottom: 8px; }
.dz-title { font-size: 0.9rem; color: var(--text-dim); }

.btn-glow { width: 100%; padding: 16px; border: none; border-radius: 8px; font-family: var(--font-mono); font-weight: 700; font-size: 1rem; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: var(--red); box-shadow: 0 0 20px var(--red-glow); transition: 0.3s; margin-top: 10px;}
.btn-glow:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 30px var(--red); }
.btn-glow:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; animation: none; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 var(--red-glow); } 70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

/* Right Panel Dash */
.mission-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-card { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.dash-card h3 { font-size: 0.9rem; color: var(--cyan); margin-bottom: 8px; text-transform: uppercase; font-family: var(--font-mono); }
.dash-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.dash-card p { font-size: 0.85rem; color: var(--text-dim); }

.bed-stats, .route-stats { display: flex; gap: 20px; margin-top: 12px; }
.stat { display: flex; flex-direction: column; }
.stat .val { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); }
.stat .val.highlight { color: var(--cyan); }
.stat .lbl { font-size: 0.7rem; text-transform: uppercase; color: var(--text-dim); }

.sev-badge { padding: 6px 12px; border-radius: 4px; font-weight: bold; font-family: var(--font-mono); background: var(--red); color: #fff; letter-spacing: 1px; }

.alert-box { padding: 12px; border-radius: 6px; font-size: 0.85rem; margin-top: 12px; }
.alert-box.warning { background: rgba(245, 158, 11, 0.2); border: 1px solid #f59e0b; color: #fcd34d; }

.ai-msg { margin-top: 10px; font-style: italic; border-left: 2px solid var(--cyan); padding-left: 10px; line-height: 1.4;}
.ai-msg.warning { border-left-color: #f59e0b; color: #fcd34d; }
.ai-msg.danger { border-left-color: #ef4444; color: #fca5a5; }
.ai-report-group { margin-bottom: 12px; }
.ai-report-group .lbl { font-size: 0.75rem; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-mono); }

.hidden { display: none !important; }

/* IoT Overlay */
.iot-overlay { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 100; pointer-events: none;}
.signal-alert { background: rgba(16, 185, 129, 0.9); color: #fff; padding: 12px 24px; border-radius: 30px; font-family: var(--font-mono); font-weight: 600; box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); display: flex; align-items: center; gap: 10px; animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Leaflet Ambulance Icon CSS */
.ambulance-icon { font-size: 28px; filter: drop-shadow(0 0 8px red); display:flex; justify-content:center; align-items:center; }
.traffic-light { font-size: 20px; filter: drop-shadow(0 0 5px yellow); transition: all 0.3s; display:flex; justify-content:center; align-items:center; }
.traffic-light.green { filter: drop-shadow(0 0 15px lime); font-size: 24px; }
.secondary-hosp-icon { font-size: 20px; opacity: 0.7; filter: grayscale(80%); display:flex; justify-content:center; align-items:center; }


/* ════════════════════════════════════════════════════════
   ClearRoute – AI Emergency Response System
   style.css — Tactical Medical HUD Dark Theme

   Palette:
     Navy bg   #0f172a
     Card bg   #111827
     Red       #ef4444  (emergency)
     Cyan      #06b6d4  (accent / GPS)
     Green     #22c55e  (success)
     Border    rgba(255,255,255,0.08)
   ════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #0f172a;
  --bg-panel:    #080e1a;
  --card-bg:     #111827;
  --card-border: rgba(255,255,255,0.07);
  --red:         #ef4444;
  --red-d:       #b91c1c;
  --red-glow:    rgba(239,68,68,0.35);
  --cyan:        #06b6d4;
  --cyan-glow:   rgba(6,182,212,0.30);
  --green:       #22c55e;
  --green-glow:  rgba(34,197,94,0.30);
  --amber:       #f59e0b;
  --txt:         #f0f4fa;
  --txt-muted:   #94a3b8;
  --txt-dim:     #475569;
  --input-bg:    #0d1424;
  --input-bdr:   rgba(255,255,255,0.1);
  --f-display:   'Syne', sans-serif;
  --f-body:      'Figtree', sans-serif;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --trans:       0.2s ease;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y:auto;
}

/* ── AMBIENT BACKGROUND ─────────────────────────────── */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(239,68,68,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,68,68,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.bg-orb--red {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #ef4444, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.bg-orb--blue {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -150px; right: -150px;
  animation-delay: 6s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 30px) scale(1.05); }
}

/* ── PAGE LAYOUT ────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  display: flex; min-height: 100vh;
}

/* ── SHARED PANEL BASE ──────────────────────────────── */
.panel {
  display: flex; flex-direction: column;
  padding: 40px;
}

/* ══════════════════════════════════════
   LEFT BRAND PANEL
══════════════════════════════════════ */
.panel--brand {
  flex: 0 0 380px; width: 380px;
  background: var(--bg-panel);
  border-right: 1px solid rgba(239,68,68,0.15);
  align-items: flex-start; justify-content: space-between;
  position: sticky; top: 0; height: auto; min-height: 100vh;
  /* Entry animation */
  animation: slideInLeft 0.7s ease both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo__mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--red-d), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px var(--red-glow);
}
.logo__name {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 800;
  color: var(--txt); letter-spacing: 0.5px;
}
.logo__sub {
  display: block;
  font-size: 11px; color: var(--txt-muted);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-top: 1px;
}

/* Radar / sonar animation */
.radar {
  position: relative;
  width: 260px; height: 260px;
  margin: 20px auto;
  flex-shrink: 0;
}
.radar__outer,
.radar__mid,
.radar__inner {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(239,68,68,0.2);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.radar__outer { width: 260px; height: 260px; }
.radar__mid   { width: 170px; height: 170px; }
.radar__inner { width: 80px;  height: 80px; }

/* Cross-hairs */
.radar__cross {
  position: absolute; background: rgba(239,68,68,0.15);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.radar__cross--h { width: 100%; height: 1px; }
.radar__cross--v { width: 1px; height: 100%; }

/* Sweeping beam */
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(239,68,68,0.0) 310deg,
    rgba(239,68,68,0.15) 340deg,
    rgba(239,68,68,0.45) 360deg
  );
  animation: radarSpin 4s linear infinite;
  transform-origin: center;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }

/* Blip dots */
.radar__blip {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px 4px var(--red-glow);
  transform: translate(-50%, -50%);
  animation: blipPulse 2s ease-in-out infinite var(--delay);
}
.radar__blip--dim  { background: rgba(239,68,68,0.5); box-shadow: 0 0 6px 2px rgba(239,68,68,0.2); }
.radar__blip--bright { background: #fca5a5; }
@keyframes blipPulse {
  0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 0.4; transform: translate(-50%,-50%) scale(0.6); }
}

/* Brand copy */
.brand-copy { width: 100%; }
.brand-copy__headline {
  font-family: var(--f-display);
  font-size: 30px; font-weight: 800;
  line-height: 1.2; color: var(--txt);
  margin-bottom: 12px;
}
.brand-copy__headline em {
  color: var(--red); font-style: italic;
}
.brand-copy__body {
  font-size: 14px; color: var(--txt-muted); line-height: 1.65;
}

/* Stats row */
.stats-row {
  display: flex; align-items: center;
  gap: 0; width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden; background: rgba(255,255,255,0.02);
}
.stat {
  flex: 1; padding: 14px 10px; text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: 15px; font-weight: 500;
  color: var(--red);
}
.stat__lbl {
  display: block;
  font-size: 10px; color: var(--txt-dim);
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: 2px;
}
.stat-sep { width: 1px; background: var(--card-border); align-self: stretch; }

/* Live badge */
.live-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--green); letter-spacing: 2px;
  text-transform: uppercase;
}
.live-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: liveBlink 1.5s ease-in-out infinite;
}
@keyframes liveBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}
.live-badge__txt { font-family: var(--f-display); }

/* ══════════════════════════════════════
   RIGHT FORM PANEL
══════════════════════════════════════ */
.panel--form {
  flex: 1;
  align-items: center; justify-content:center;
  padding: 40px 24px;
  overflow-y:auto;
  animation: fadeInUp 0.7s 0.2s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD ───────────────────────────────────────────── */
.card {
  width: 100%; max-width: 580px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow:
    0 0 0 1px rgba(239,68,68,0.08),
    0 20px 60px rgba(0,0,0,0.5),
    0 4px 20px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
/* Subtle red top glow */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-d), transparent);
}

/* ── Card Header ─────────────────────────────────────── */
.card-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px;
}
.card-head__badge {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 11px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.card-head__title {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  color: var(--txt); letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.card-head__sub {
  font-size: 13px; color: var(--txt-muted); line-height: 1.4;
}

/* ── Progress bar ────────────────────────────────────── */
.field-progress {
  height: 3px; background: rgba(255,255,255,0.06);
  border-radius: 99px; margin-bottom: 28px; overflow: hidden;
}
.field-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red-d), var(--red), #fca5a5);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ══════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════ */

/* Field group */
.fgroup {
  margin-bottom: 20px;
}

/* Label */
.flabel {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--txt-muted); text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 8px;
}
.flabel__ico { font-size: 14px; }
.flabel__req { color: var(--red); margin-left: 1px; }

/* Input wrapper — for status icon overlay */
.finput-wrap {
  position: relative;
}
.finput-status {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px; pointer-events: none;
  transition: opacity var(--trans);
}

/* Input field base */
.finput {
  width: 100%; height: 48px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-bdr);
  border-radius: var(--radius-sm);
  color: var(--txt);
  font-family: var(--f-body); font-size: 14px;
  padding: 0 40px 0 14px;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
  -webkit-appearance: none;
}
.finput::placeholder { color: var(--txt-dim); font-size: 13px; }
.finput:hover { border-color: rgba(255,255,255,0.18); }
.finput:focus {
  border-color: var(--red);
  background: #0f1b2e;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15), 0 2px 8px rgba(0,0,0,0.2);
}
.finput--date { padding-right: 14px; color-scheme: dark; }
/* Validation states */
.finput.valid   { border-color: var(--green); }
.finput.invalid { border-color: var(--red); }
.finput.valid:focus   { box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.finput.invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

/* Error message */
.ferror {
  display: block; min-height: 18px;
  font-size: 12px; color: var(--red);
  margin-top: 5px;
  animation: errShake 0.3s ease when-filled;
}
@keyframes errShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* Two columns for email + phone */
.fcols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ── Gender Toggle ───────────────────────────────────── */
.gender-grid {
  display: flex; gap: 10px;
}
.gtoggle { flex: 1; cursor: pointer; }
.gtoggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.gtoggle__face {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; height: 44px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--input-bdr);
  background: var(--input-bg);
  font-size: 13px; font-weight: 500; color: var(--txt-muted);
  transition: all var(--trans); cursor: pointer;
  user-select: none;
}
.gtoggle__ico { font-size: 16px; }
.gtoggle:hover .gtoggle__face {
  border-color: rgba(239,68,68,0.4);
  color: var(--txt);
}
.gtoggle input:checked + .gtoggle__face {
  border-color: var(--red);
  background: rgba(239,68,68,0.1);
  color: var(--txt);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12), 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Date of Birth + Age Chip ─────────────────────── */
.dob-row {
  display: flex; align-items: center; gap: 12px;
}
.age-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 99px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  white-space: nowrap;
  animation: chipPop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes chipPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.age-chip__label { font-size: 11px; color: var(--txt-muted); font-weight: 500; }
.age-chip__num   { font-family: var(--f-display); font-size: 20px; font-weight: 700; color: var(--green); }

/* ── Location Row ────────────────────────────────────── */
.loc-row {
  display: flex; gap: 10px; align-items: stretch;
}
/* GPS detect button */
.btn-gps {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.08);
  color: var(--cyan); font-family: var(--f-body);
  font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all var(--trans);
  flex-shrink: 0;
}
.btn-gps:hover {
  background: rgba(6,182,212,0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.btn-gps:active { transform: scale(0.97); }
.btn-gps.loading { opacity: 0.7; cursor: wait; animation: gpsPulse 1s ease-in-out infinite; }
@keyframes gpsPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--cyan-glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

/* Resolved location display */
.loc-resolved {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 8px 12px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--txt-muted);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── SUBMIT BUTTON ───────────────────────────────────── */
.btn-submit {
  position: relative; overflow: hidden;
  width: 100%; height: 56px;
  margin-top: 8px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--red-d) 0%, var(--red) 50%, #f87171 100%);
  box-shadow: 0 4px 32px var(--red-glow), 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}
/* Sweeping shine on hover */
.btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-submit:hover::before { transform: translateX(100%); }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 48px rgba(239,68,68,0.5), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-submit:active { transform: translateY(0) scale(0.99); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Pulsing ring behind button */
.btn-submit__glow {
  position: absolute; inset: 0; border-radius: 12px;
  animation: submitGlow 2s ease-in-out infinite;
}
@keyframes submitGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%      { box-shadow: 0 0 0 10px transparent; }
}
.btn-submit__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 100%;
  font-family: var(--f-display);
  font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: 1px;
}

/* Loading spinner inside button */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer note */
.form-footer-note {
  text-align: center; font-size: 12px;
  color: rgba(245, 240, 240, 0.886); margin-top: 14px; line-height: 1.5;
}
.linker {
  color:rgb(252, 86, 86) ;
}
/* ── HIDDEN UTILITY ─────────────────────────────────── */
.hidden { display: none !important; }

/* ══════════════════════════════════════
   SUCCESS SCREEN
══════════════════════════════════════ */
.success-screen {
  text-align: center; padding: 10px 0;
  animation: fadeInUp 0.5s ease both;
}
.success-screen__ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.3);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: ringGlow 2s ease-in-out infinite;
}
@keyframes ringGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50%      { box-shadow: 0 0 0 16px transparent; }
}
.success-screen__ring-inner {
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.5);
  animation: spin 3s linear infinite;
}
.success-screen__ico {
  font-size: 48px;
  position: relative; z-index: 1;
  margin-top: -80px; /* overlay ring */
  padding-bottom: 10px;
}
.success-screen__title {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 800;
  color: var(--green); margin-bottom: 8px;
}
.success-screen__msg {
  font-size: 14px; color: var(--txt-muted);
  margin-bottom: 20px; line-height: 1.5;
}

/* Summary pills */
.success-pills {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px; margin-bottom: 24px;
}
.s-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; color: var(--txt-muted);
}
.s-pill__ico { font-size: 13px; }
.s-pill__val { color: var(--txt); font-weight: 500; }

/* Redirect progress bar */
.redirect-track {
  height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 99px; overflow: hidden;
  margin-bottom: 10px;
}
.redirect-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #4ade80);
  border-radius: 99px;
  width: 0%;
  transition: width 3s linear;
}
.redirect-note {
  font-size: 12px; color: var(--txt-dim);
  letter-spacing: 0.5px;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .page { flex-direction: column; }

  .panel--brand {
    position: static;
    flex: none; width: 100%; height: auto;
    flex-direction: row; flex-wrap: wrap;
    gap: 20px; padding: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(239,68,68,0.12);
    align-items: center;
  }

  .radar { display: none; } /* hide radar on mobile for space */
  .brand-copy { flex: 1; min-width: 200px; }
  .brand-copy__headline { font-size: 22px; }
  .stats-row { display: none; } /* simplify mobile */
  .panel--form { padding: 24px 16px; }
  .card { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .fcols { grid-template-columns: 1fr; }
  .gender-grid { flex-direction: column; }
  .gtoggle { width: 100%; }
  .dob-row { flex-direction: column; align-items: flex-start; }
  .age-chip { align-self: flex-start; }
}