/* نورسين للأيادي العاملة — Public UI */
:root {
  --brand-navy: #002B6B;
  --brand-navy-deep: #001842;
  --brand-gold: #D49B27;
  --brand-gold-soft: #FDBF4A;
  --success: #146C2E;
  --success-bg: #D3F8DC;
  --error: #BA1A1A;
  --error-bg: #FFDAD6;
  --bg: #FAF8FF;
  --surface: #FFFFFF;
  --surface-2: #F4F3F9;
  --surface-3: #EEEDF3;
  --text: #1A1B20;
  --text-muted: #444650;
  --outline: #C4C6D2;
  --outline-strong: #747781;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 43, 107, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 27, 32, 0.06);
  --font: "Rubik", sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
[hidden], .is-hidden { display: none !important; }

/* ── Boot / fonts ready ─────────────────────────────────── */
html.is-booting #page-preloader { visibility: visible; }
html:not(.is-booting) #page-preloader.is-done { display: none; }
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}
html.is-booting .material-symbols-outlined {
  color: transparent !important;
}
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(212, 155, 39, 0.12), transparent 55%),
    radial-gradient(900px 420px at -10% 0%, rgba(0, 43, 107, 0.10), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-navy); text-decoration: none; }
a:hover { color: var(--brand-gold); }
button, input, select, textarea { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; right: 16px; background: var(--brand-navy); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  /* No backdrop-filter/filter/transform here — those create a fixed
     containing block; the closed drawer then widens RTL scrollWidth. */
  border-bottom: 1px solid rgba(196,198,210,0.7);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; color: inherit;
}
.brand img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--outline);
}
.brand-text {
  display: flex; flex-direction: column; flex-wrap: wrap; min-width: 0;
  align-items: baseline; column-gap: 0.3rem;
}
.brand-name { font-size: 1rem; color: var(--brand-navy); line-height: 1.25; font-weight: 700; }
.brand-tagline {
  color: var(--brand-navy); font-size: 1rem; font-weight: 700; line-height: 1.25;
}
.brand-sub {
  width: 100%; color: var(--text-muted); font-size: 0.75rem; font-weight: 400;
}
@media (min-width: 961px) {
  .brand-text { flex-direction: row; }
}

.site-nav {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}
.nav-backdrop,
.nav-drawer-head { display: none; }
.nav-drawer-links { display: contents; }
.site-nav a {
  padding: 0.45rem 0.8rem; border-radius: 999px; color: var(--text-muted); font-weight: 500; font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--surface-3); color: var(--brand-navy); }
.nav-cta {
  background: var(--brand-navy) !important; color: #fff !important;
}
.nav-cta-gold {
  background: var(--brand-gold-soft) !important; color: #271900 !important;
}
.header-phone {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--surface-2); color: var(--brand-navy);
  padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.nav-toggle {
  display: none; border: 0; background: var(--surface-2); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; color: var(--brand-navy);
}


/* Hero */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--brand-navy-deep), var(--brand-navy) 55%, #1a4a8f);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,155,39,0.35);
}
.hero::after {
  content: "";
  position: absolute; inset: auto -20% -40% auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(212,155,39,0.25), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center;
  padding: 2.2rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(0,43,107,0.55); border: 1px solid rgba(212,155,39,0.45);
  color: #D9E2FF; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.8rem; margin-bottom: 0.7rem;
}
.hero-badge .material-symbols-outlined { color: var(--brand-gold); font-size: 18px; }
.hero h1 {
  margin: 0 0 0.35rem; font-size: clamp(1.65rem, 3.2vw, 2.45rem); line-height: 1.2; font-weight: 700;
}
.hero-lead {
  margin: 0 0 1rem; color: var(--brand-gold-soft); font-size: 1rem; font-weight: 500; max-width: 28rem;
}
.hero p { margin: 0 0 1rem; color: #D9E2FF; max-width: 36rem; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(212,155,39,0.4); box-shadow: var(--shadow);
  background: #fff;
}
.hero-media img { width: 100%; height: 240px; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.72rem 1.1rem; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  font-weight: 600; transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.88rem; border-radius: 10px; }
.btn-sm .material-symbols-outlined { font-size: 18px; }
.btn-primary { background: var(--brand-gold-soft); color: #271900; }
.btn-primary:hover { background: var(--brand-gold); color: #271900; }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }
.btn-navy { background: var(--brand-navy); color: #fff; }
.btn-navy:hover { background: var(--brand-navy-deep); color: #fff; }
.btn-outline {
  background: transparent; color: var(--brand-navy); border: 1px solid var(--outline);
}
.btn-outline:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* Motion */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes iconPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1; transform: none;
}
.icon-bubble {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
}
.icon-bubble .material-symbols-outlined { font-size: 22px; }
.icon-bubble.gold { background: rgba(212,155,39,0.18); color: #7D5700; }
.icon-bubble.navy { background: rgba(0,43,107,0.1); color: var(--brand-navy); }
.pulse-soft { animation: softPulse 2.4s ease-in-out infinite; }

/* Sections */
main { flex: 1; }
.section { padding: 2.2rem 0; }
.section-compact { padding: 1.25rem 0; }
.section-head { margin-bottom: 1.1rem; }
.section-head-compact { margin-bottom: 0.75rem; }
.section-head h2 { margin: 0 0 0.25rem; font-size: 1.35rem; color: var(--brand-navy); }
.section-head p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.free-banner {
  display: flex; align-items: center; gap: 0.65rem;
  background: linear-gradient(135deg, rgba(212,155,39,0.16), rgba(253,191,74,0.24));
  border: 1px solid rgba(212,155,39,0.4);
  color: #271900; border-radius: 14px; padding: 0.7rem 0.85rem; margin-bottom: 0.85rem;
  box-shadow: 0 6px 16px rgba(212,155,39,0.1);
}
.free-banner strong { display: block; font-size: 0.98rem; margin-bottom: 0.1rem; }
.free-banner span { font-size: 0.84rem; line-height: 1.45; color: #4A3A12; }

.brand-pitch { display: grid; gap: 0.35rem; margin: 0 0 1.1rem; }
.brand-pitch .pitch-lead {
  margin: 0; font-size: 1.05rem; font-weight: 700; color: #D9E2FF;
}
.brand-pitch .pitch-line { margin: 0; color: #D9E2FF; opacity: 0.92; }
.brand-pitch .pitch-end {
  margin: 0.15rem 0 0; font-weight: 700; color: var(--brand-gold-soft);
}
.footer-brand .brand-pitch .pitch-lead,
.footer-brand .brand-pitch .pitch-line { color: #B0C6FF; }
.footer-brand .brand-pitch .pitch-end { color: var(--brand-gold-soft); }
.prose .brand-pitch .pitch-lead,
.prose .brand-pitch .pitch-line { color: var(--text-muted); }
.prose .brand-pitch .pitch-end { color: var(--brand-navy); }
.card-head .brand-pitch { margin-bottom: 0; }
.card-head .brand-pitch .pitch-lead,
.card-head .brand-pitch .pitch-line { color: var(--text-muted); }
.card-head .brand-pitch .pitch-end { color: var(--brand-navy); }

.hero-phones {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem;
}
.hero-phones a {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-weight: 600; font-size: 0.84rem;
}
.hero-phones a .material-symbols-outlined { font-size: 16px; color: var(--brand-gold-soft); }
.hero-phones a:hover { background: rgba(253,191,74,0.2); color: #fff; border-color: rgba(253,191,74,0.5); }

.choice-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
.choice-card {
  background: linear-gradient(180deg, #FFFFFF, #FBFBFE);
  border: 1px solid rgba(196,198,210,0.9); border-radius: 16px;
  padding: 1rem 1.05rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.choice-card:hover {
  transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,43,107,0.12); border-color: rgba(212,155,39,0.55);
  color: inherit;
}
.choice-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.choice-chip {
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
  background: rgba(212,155,39,0.18); color: #7D5700;
}
.choice-chip.navy { background: rgba(0,43,107,0.1); color: var(--brand-navy); }
.choice-card .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,43,107,0.08); color: var(--brand-navy);
  transition: transform .25s ease;
}
.choice-card .icon-wrap .material-symbols-outlined { font-size: 22px; }
.choice-card:hover .icon-wrap { transform: scale(1.08) rotate(-4deg); }
.choice-card.gold .icon-wrap { background: rgba(212,155,39,0.18); color: #7D5700; }
.choice-card h3 { margin: 0; font-size: 1.08rem; color: var(--brand-navy); }
.choice-card p { margin: 0; color: var(--text-muted); flex: 1; font-size: 0.88rem; line-height: 1.5; }
.choice-cta { align-self: stretch; width: 100%; margin-top: 0.15rem; }

.feature-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.feature {
  background: var(--surface); border: 1px solid var(--outline); border-radius: 14px;
  padding: 0.85rem 0.95rem; display: flex; gap: 0.7rem; align-items: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature h3 { margin: 0 0 0.15rem; font-size: 0.95rem; color: var(--brand-navy); }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.84rem; line-height: 1.4; }

/* Forms */
.portal-layout {
  display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 1.5rem; align-items: start;
}
.card {
  background: rgba(255,255,255,0.96); border: 1px solid rgba(196,198,210,0.85); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,43,107,0.06); padding: 1.35rem;
}
.field-error { min-height: 0; }
.field:not(.is-invalid) .field-error { display: none !important; }
.card-head {
  display: flex; gap: 0.7rem; align-items: flex-start;
  border-bottom: 1px solid var(--outline); padding-bottom: 1rem; margin-bottom: 1.1rem;
}
.card-head h1, .card-head h2 { margin: 0; font-size: 1.3rem; color: var(--text); }
.card-head p { margin: 0.35rem 0 0; color: var(--text-muted); }

.steps {
  display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.step-btn {
  flex: 1; min-width: 120px; border: 1px solid var(--outline); background: var(--surface-2);
  border-radius: 999px; padding: 0.55rem 0.8rem; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-weight: 600; font-size: 0.88rem;
  transition: all .2s ease;
}
.step-btn .num {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--outline);
  display: grid; place-items: center; font-size: 0.75rem;
}
.step-btn.is-active {
  background: var(--brand-navy); color: #fff; border-color: var(--brand-navy);
}
.step-btn.is-active .num { background: var(--brand-gold-soft); color: #271900; border-color: transparent; }
.step-btn.is-done {
  background: rgba(20,108,46,0.08); color: var(--success); border-color: rgba(20,108,46,0.25);
}
.step-progress {
  height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem;
}
.step-progress > span {
  display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-navy), var(--brand-gold));
  transition: width .35s ease;
}

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp .32s ease; }
.q-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.q-card:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,43,107,0.08);
}
.choice-opt span { transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.choice-opt:active span { transform: scale(0.98); }
.form-type-tab { transition: background .2s ease, color .2s ease, transform .15s ease; }
.form-type-tab:active { transform: scale(0.98); }

.fields-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--error); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%; border: 1px solid var(--outline); border-radius: var(--radius-sm);
  background: #fff; padding: 0.75rem 0.9rem; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(0,43,107,0.15);
}
.field .hint { color: var(--text-muted); font-size: 0.82rem; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select,
.field.is-invalid .sheet-select-trigger {
  border-color: var(--error);
}
.field-error { color: var(--error); font-size: 0.82rem; display: none; }
.field.is-invalid .field-error { display: block; }

/* Custom select → bottom sheet */
.sheet-select { position: relative; }
.sheet-select-native {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
  opacity: 0 !important; pointer-events: none !important;
}
.sheet-select-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  border: 1px solid var(--outline); border-radius: var(--radius-sm);
  background: #fff; padding: 0.75rem 0.9rem; color: var(--text);
  text-align: right; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.sheet-select-trigger:hover { border-color: #9AA0B4; }
.sheet-select-trigger:focus {
  outline: none; border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(0,43,107,0.15);
}
.sheet-select-value { flex: 1; font-weight: 500; line-height: 1.35; }
.sheet-select-value.is-placeholder { color: var(--outline-strong); font-weight: 400; }
.sheet-select-chevron { color: var(--brand-navy); font-size: 22px; transition: transform .2s ease; }
.sheet-select-trigger[aria-expanded="true"] .sheet-select-chevron { transform: rotate(180deg); }

.option-sheet {
  position: fixed; inset: 0; z-index: 12000;
  visibility: hidden; pointer-events: none;
}
.option-sheet.is-open { visibility: visible; pointer-events: auto; }
.option-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 16, 40, 0.48);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s ease;
}
.option-sheet.is-open .option-sheet-backdrop { opacity: 1; }
.option-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: min(78vh, 640px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 24, 66, 0.22);
  display: flex; flex-direction: column;
  transform: translateY(110%);
  transition: transform .34s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
.option-sheet.is-open .option-sheet-panel { transform: translateY(0); }
.option-sheet-grabber {
  display: flex; justify-content: center; padding: 0.55rem 0 0.15rem;
}
.option-sheet-grabber span {
  width: 42px; height: 4px; border-radius: 999px; background: #D5D7E2;
}
.option-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; padding: 0.35rem 1rem 0.7rem;
}
.option-sheet-kicker {
  margin: 0; font-size: 0.75rem; color: var(--outline-strong); font-weight: 500;
}
.option-sheet-head h3 {
  margin: 0.1rem 0 0; font-size: 1.12rem; color: var(--brand-navy); line-height: 1.3;
}
.option-sheet-x {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--text); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.option-sheet-x:hover { background: var(--surface-3); }
.option-sheet-x .material-symbols-outlined { font-size: 20px; }
.option-sheet-search {
  margin: 0 1rem 0.65rem; position: relative;
}
.option-sheet-search .material-symbols-outlined {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--outline-strong); font-size: 20px; pointer-events: none;
}
.option-sheet-search input {
  width: 100%; border: 1px solid var(--outline); border-radius: 12px;
  background: var(--surface-2); padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  color: var(--text);
}
.option-sheet-search input:focus {
  outline: none; border-color: var(--brand-navy);
  background: #fff; box-shadow: 0 0 0 3px rgba(0,43,107,0.12);
}
.option-sheet-list {
  overflow: auto; padding: 0.15rem 0.7rem 0.9rem;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.option-sheet-item {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 0; background: transparent; text-align: right;
  padding: 0.85rem 0.85rem; border-radius: 14px; cursor: pointer;
  color: var(--text); font-weight: 500; font-size: 1rem;
  transition: background .15s ease;
}
.option-sheet-item:hover,
.option-sheet-item:focus {
  outline: none; background: rgba(0,43,107,0.06);
}
.option-sheet-item .check {
  opacity: 0; color: var(--brand-navy); font-size: 20px; font-variation-settings: 'FILL' 1;
}
.option-sheet-item.is-selected {
  background: linear-gradient(135deg, rgba(0,43,107,0.1), rgba(212,155,39,0.12));
  color: var(--brand-navy); font-weight: 700;
}
.option-sheet-item.is-selected .check { opacity: 1; }
.option-sheet-empty {
  margin: 1.2rem 0; text-align: center; color: var(--text-muted); font-size: 0.92rem;
}
body.sheet-open { overflow: hidden; }

@media (min-width: 769px) {
  .option-sheet-panel {
    left: 50%; right: auto; bottom: 8vh;
    width: min(440px, calc(100% - 2rem));
    transform: translate(-50%, 120%);
    border-radius: 22px;
    max-height: min(70vh, 560px);
  }
  .option-sheet.is-open .option-sheet-panel {
    transform: translate(-50%, 0);
  }
}

.input-icon { position: relative; }
.input-icon .material-symbols-outlined {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--outline-strong);
}
.input-icon input { padding-right: 2.4rem; }

.radio-group, .check-group {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--outline); background: var(--surface-2);
  border-radius: 999px; padding: 0.55rem 0.95rem; cursor: pointer; font-weight: 500;
}
.chip:has(input:checked) {
  background: rgba(0,43,107,0.08); border-color: var(--brand-navy); color: var(--brand-navy);
}
.chip input { accent-color: var(--brand-navy); }

.salary-range {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}

.file-drop {
  border: 1.5px dashed var(--outline); border-radius: var(--radius);
  background: var(--surface-2); padding: 1.2rem; text-align: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--brand-navy); background: rgba(0,43,107,0.04); }
.file-drop input { display: none; }
.file-meta {
  margin-top: 0.75rem; display: none; align-items: center; justify-content: space-between;
  gap: 0.75rem; background: #fff; border: 1px solid var(--outline); border-radius: 10px; padding: 0.65rem 0.8rem;
}
.file-meta.is-visible { display: flex; }

.form-nav {
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--outline);
}

.alert {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 0.9rem 1rem; margin-bottom: 1rem;
}
.alert-success { background: var(--success-bg); color: #0A3818; border: 1px solid rgba(20,108,46,0.25); }
.alert-error { background: var(--error-bg); color: #93000A; border: 1px solid rgba(186,26,26,0.25); }

/* Submit progress overlay */
body.is-submitting {
  overflow: hidden;
  touch-action: none;
}
.wizard-form.is-submit-locked {
  pointer-events: none;
  user-select: none;
}
.btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}
.submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 24, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeUp 0.25s ease both;
}
.submit-overlay[hidden] { display: none !important; }
.submit-overlay-card {
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.45rem 1.3rem 1.25rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 24, 58, 0.28);
  border: 1px solid rgba(0, 43, 107, 0.08);
}
.submit-overlay-card strong {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: var(--brand-navy);
  font-size: 1.05rem;
}
.submit-overlay-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.submit-spinner {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(0, 43, 107, 0.12);
  border-top-color: var(--brand-gold);
  animation: submitSpin 0.8s linear infinite;
}
@keyframes submitSpin {
  to { transform: rotate(360deg); }
}
.submit-progress {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 43, 107, 0.08);
  overflow: hidden;
}
.submit-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-gold));
  transition: width 0.2s ease;
}
.submit-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.submit-progress-meta [data-submit-progress-pct] {
  font-weight: 700;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* Thank-you card after successful submit */
.thanks-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.45s ease both;
}
.thanks-icon {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(20, 108, 46, 0.12), rgba(212, 155, 39, 0.18));
  color: #146C2E;
  animation: iconPop 0.5s ease both;
}
.thanks-icon .material-symbols-outlined {
  font-size: 2.4rem;
}
.thanks-card h2 {
  margin: 0 0 0.4rem;
  color: var(--brand-navy);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
}
.thanks-lead {
  margin: 0 auto 1.1rem;
  max-width: 28rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.thanks-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.2rem;
  margin-bottom: 1.15rem;
  border-radius: 0.85rem;
  background: rgba(0, 43, 107, 0.05);
  border: 1px dashed rgba(0, 43, 107, 0.22);
}
.thanks-ref span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.thanks-ref strong {
  font-size: 1.2rem;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}
.thanks-ask {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--brand-navy);
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.thanks-actions .btn {
  min-width: min(100%, 12rem);
}

.side-card h3 { margin: 0 0 0.6rem; color: var(--brand-navy); }
.side-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.side-card li {
  display: flex; gap: 0.5rem; align-items: center; color: var(--text-muted); font-size: 0.95rem;
}
.side-card .material-symbols-outlined { color: var(--brand-gold); }

.page-hero {
  padding: 2rem 0 0.5rem;
}
.page-hero h1 { margin: 0 0 0.4rem; color: var(--brand-navy); font-size: clamp(1.5rem, 3vw, 2rem); }
.page-hero p { margin: 0; color: var(--text-muted); max-width: 42rem; }

.prose {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.prose p { margin-top: 0; color: var(--text-muted); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.contact-item {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 1.1rem; display: flex; gap: 0.8rem; align-items: center;
}
.contact-item .material-symbols-outlined {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(0,43,107,0.08); color: var(--brand-navy);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #001842, #002B6B);
  color: #D9E2FF;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; padding: 2.4rem 0 1.6rem;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.footer-brand img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(212,155,39,0.4); flex-shrink: 0;
}
.footer-brand h2, .site-footer h3 { margin: 0 0 0.6rem; color: #fff; font-size: 1.05rem; }
.footer-brand-row h2 { margin: 0 0 0.15rem; font-size: 1.05rem; line-height: 1.3; }
.footer-tagline-short {
  display: none; margin: 0; color: var(--brand-gold-soft); font-size: 0.82rem; font-weight: 600;
}
.footer-brand p { margin: 0; color: #B0C6FF; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: #D9E2FF; display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-links a:hover { color: var(--brand-gold-soft); }
.footer-links .material-symbols-outlined { font-size: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 0.9rem 0 1.2rem; text-align: center;
  color: #B0C6FF; font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .portal-layout, .footer-grid, .choice-grid, .feature-strip, .contact-grid {
    grid-template-columns: 1fr;
  }
  .brand img { width: 42px; height: 42px; }
  .brand-text { flex-direction: column; row-gap: 0; }
  .brand-name { font-size: 0.95rem; font-weight: 700; }
  .brand-tagline {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.2;
  }
  .brand-sub { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; z-index: 60; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 90;
    display: none;
    background: rgba(8, 16, 40, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav-backdrop.is-open {
    display: block;
  }
  .site-nav {
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: auto;
    width: min(80vw, 340px);
    max-width: 340px;
    z-index: 100;
    display: flex; flex-direction: column; align-items: stretch;
    background: #fff;
    box-shadow: 12px 0 40px rgba(0, 24, 66, 0.18);
    padding: 0;
    /* translate3d + visibility: closed drawer must not expand RTL scrollWidth */
    transform: translate3d(-105%, 0, 0);
    transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear .32s;
    visibility: hidden;
    pointer-events: none;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
  }
  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid var(--outline);
    background: linear-gradient(180deg, #F8F9FD, #fff);
  }
  .nav-drawer-brand {
    display: flex; align-items: center; gap: 0.65rem; min-width: 0;
  }
  .nav-drawer-brand img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(212,155,39,0.45);
  }
  .nav-drawer-brand strong {
    display: block; color: var(--brand-navy); font-size: 0.95rem; line-height: 1.25;
  }
  .nav-drawer-brand span {
    display: block; color: var(--text-muted); font-size: 0.78rem; font-weight: 400;
  }
  .nav-drawer-close {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--surface-2); color: var(--brand-navy); cursor: pointer;
    display: grid; place-items: center; flex-shrink: 0;
  }
  .nav-drawer-links {
    display: flex; flex-direction: column; gap: 0.35rem;
    padding: 0.9rem 0.85rem 1.25rem;
  }
  .site-nav a {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    font-size: 1rem;
  }
  .site-nav .nav-cta {
    text-align: center; margin-top: 0.25rem;
  }
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
  .fields-grid, .salary-range { grid-template-columns: 1fr; }
  .hero-media img { height: 200px; }

  /* Compact mobile footer */
  .site-footer { margin-top: 1.25rem; }
  .footer-grid {
    gap: 0.85rem;
    padding: 1.1rem 0 0.75rem;
  }
  .footer-brand-row {
    margin-bottom: 0;
  }
  .footer-brand img {
    width: 40px; height: 40px;
  }
  .footer-brand-row h2 {
    font-size: 0.98rem;
  }
  .footer-tagline-short { display: block; }
  .footer-pitch-desktop { display: none; }
  .footer-col h3 {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8EA4D8;
    letter-spacing: 0.02em;
  }
  .footer-col-links .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .footer-col-links .footer-links li { margin: 0; }
  .footer-col-links .footer-links a {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
  }
  .footer-contact a {
    font-size: 0.86rem;
    font-weight: 600;
  }
  .footer-bottom {
    padding: 0.55rem 0 0.75rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .step-btn { flex: 1 1 100%; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
}

/* ── Form page / mobile ref layout ─────────────────────── */
.mobile-form-hero,
.form-type-switch,
.mobile-phone-row,
.mobile-segments,
.app-progress { display: none; }

.wizard-progress-card { margin-bottom: 1rem; }
.wizard-step-count {
  font-size: 0.82rem; font-weight: 600; color: var(--brand-navy);
}
.wizard-step-title {
  font-size: 0.95rem; color: var(--text); font-weight: 700; display: block;
}
.wizard-pct {
  font-size: 0.78rem; font-weight: 700; color: var(--brand-gold);
  background: rgba(212,155,39,0.14); padding: 0.15rem 0.5rem; border-radius: 999px;
}
.app-progress {
  display: none; align-items: center; gap: 0.75rem;
}
.app-progress-ring {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
}
.ring-svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #E8E7EE; stroke-width: 3.2; }
.ring-fg {
  fill: none; stroke: url(#none); stroke: var(--brand-navy); stroke-width: 3.2;
  stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .35s ease;
}
.ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; color: var(--brand-navy); font-size: 0.95rem;
}
.app-progress-meta { flex: 1; min-width: 0; }
.app-progress-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.2rem;
}
.mobile-segments {
  display: none; gap: 4px; margin-top: 0.7rem;
}
.mobile-segments .seg {
  flex: 1; height: 5px; border: 0; border-radius: 999px; background: #E3E2E8; padding: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.mobile-segments .seg.is-done { background: var(--brand-gold); }
.mobile-segments .seg.is-active { background: var(--brand-navy); transform: scaleY(1.35); }
.step-desc { margin: 0 0 0.85rem; color: var(--text-muted); font-size: 0.92rem; }
.q-label { font-weight: 600; font-size: 1rem; color: var(--text); display: block; margin-bottom: 0.15rem; }
.q-desc p { margin: 0; color: var(--text-muted); }
.choice-grid-opts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.choice-opt {
  position: relative; cursor: pointer;
}
.choice-opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice-opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 0.4rem; text-align: center;
  border: 1px solid var(--outline); border-radius: 10px;
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.92rem;
  transition: all .2s ease;
}
.choice-opt input:checked + span {
  background: rgba(0,43,107,0.1); border-color: var(--brand-navy); color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px var(--brand-navy);
}
.salary-item { display: flex; flex-direction: column; gap: 0.25rem; }
.file-title { margin: 0.4rem 0 0; font-weight: 600; }

.form-type-switch {
  grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.35rem;
  background: var(--surface-2); border: 1px solid var(--outline); border-radius: 14px; margin-bottom: 0.9rem;
}
.form-type-tab {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.75rem 0.5rem; border-radius: 10px; color: var(--text-muted); font-weight: 600;
}
.form-type-tab.is-active {
  background: var(--brand-navy); color: #fff;
}
.form-type-tab.is-active:hover { color: #fff; }

.mobile-dots {
  display: none; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-top: 0.75rem;
}
.mobile-dots .dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: var(--outline); cursor: pointer;
}
.mobile-dots .dot.is-active { width: 18px; background: var(--brand-navy); }
.mobile-dots .dot.is-done { background: var(--brand-gold); }

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  body.page-form {
    background:
      radial-gradient(900px 360px at 100% -20%, rgba(212,155,39,0.14), transparent 55%),
      radial-gradient(700px 280px at -20% 10%, rgba(0,43,107,0.10), transparent 50%),
      #F5F6FB;
  }
  body.page-form .site-header {
    background: rgba(255,255,255,0.94);
  }
  body.page-form .site-header .brand-text {
    display: flex;
  }
  body.page-form .site-footer { display: none; }

  .form-page {
    padding: 0.45rem 0 6.2rem;
  }
  .form-shell { width: min(100% - 0.85rem, 42rem); }

  .mobile-form-hero {
    display: block;
    background: #fff;
    border: 1px solid rgba(196,198,210,0.75);
    border-radius: 14px;
    animation: fadeUp .4s ease;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,43,107,0.05);
    margin-bottom: 0.55rem;
  }
  .mobile-form-banner img {
    width: 100%; height: 72px; object-fit: cover;
  }
  .mobile-form-intro {
    display: flex; gap: 0.55rem; align-items: center; padding: 0.55rem 0.75rem 0.15rem;
  }
  .mobile-form-logo {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 1px solid var(--outline); flex-shrink: 0;
  }
  .mobile-form-intro h1 {
    margin: 0; font-size: 0.98rem; color: var(--brand-navy); line-height: 1.3;
  }
  .mobile-form-intro p {
    margin: 0.1rem 0 0; color: var(--text-muted); font-size: 0.76rem;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .mobile-phone-row {
    display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.35rem 0.75rem 0.6rem;
  }
  .mobile-phone-row a {
    display: inline-flex; align-items: center;
    padding: 0.22rem 0.5rem; border-radius: 999px;
    background: var(--surface-2); color: var(--brand-navy);
    font-size: 0.72rem; font-weight: 600;
  }

  .form-type-switch { display: grid; margin-bottom: 0.55rem; border-radius: 14px; }
  .form-type-tab { min-height: 42px; font-size: 0.88rem; }
  .form-type-tab .material-symbols-outlined { font-size: 18px; }
  .wizard-progress-card { animation: fadeUp .35s ease .05s both; }
  .step-panel .q-card { animation: fadeUp .3s ease both; }
  .step-panel .q-card:nth-child(1) { animation-delay: .04s; }
  .step-panel .q-card:nth-child(2) { animation-delay: .08s; }
  .step-panel .q-card:nth-child(3) { animation-delay: .12s; }
  .step-panel .q-card:nth-child(4) { animation-delay: .16s; }
  .step-panel .q-card:nth-child(5) { animation-delay: .2s; }
  .step-panel .q-card:nth-child(6) { animation-delay: .24s; }
  .step-panel .q-card:nth-child(7) { animation-delay: .28s; }

  .portal-layout { grid-template-columns: 1fr; gap: 0; }
  .desktop-side,
  .desktop-only-head { display: none !important; }
  .form-main-card {
    border: 0; box-shadow: none; background: transparent; padding: 0;
  }

  /* App-like sticky progress */
  .wizard-progress-card {
    position: sticky; top: calc(var(--header-h) + 6px); z-index: 25;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
    border: 1px solid rgba(196,198,210,0.8); border-radius: 18px;
    padding: 0.8rem 0.85rem 0.75rem; margin-bottom: 0.75rem;
    box-shadow: 0 10px 28px rgba(0,43,107,0.08);
  }
  .app-progress { display: flex; }
  .desktop-steps { display: none !important; }
  /* One progress bar only — hide segment strip (was duplicating the bar) */
  .mobile-segments { display: none !important; }
  .wizard-progress-card > .step-progress.desktop-progress { display: none !important; }
  .app-progress .step-progress {
    height: 7px; margin: 0.55rem 0 0; background: #ECEAF2; border-radius: 999px; overflow: hidden;
  }
  .app-progress .step-progress > span {
    background: linear-gradient(90deg, #002B6B, #D49B27);
  }

  /* Multi-field step panels (2 steps) */
  .step-panel {
    background: #fff;
    border: 1px solid rgba(196,198,210,0.8);
    border-radius: 18px;
    padding: 0.95rem 0.85rem 1rem;
    box-shadow: 0 10px 28px rgba(0,43,107,0.06);
  }
  .step-panel.is-active.slide-in-next {
    animation: qSlideNext .28s cubic-bezier(.2,.8,.2,1);
  }
  @keyframes qSlideNext {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  .step-panel .fields-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .step-panel .q-card {
    background: #F8F9FD;
    border: 1px solid #E6E8F0;
    border-radius: 14px;
    padding: 0.85rem 0.85rem 0.9rem;
    display: flex; flex-direction: column; gap: 0.4rem;
  }
  .step-panel .q-label { font-size: 0.95rem; font-weight: 700; }
  .step-panel .q-card input[type="text"],
  .step-panel .q-card input[type="tel"],
  .step-panel .q-card input[type="number"],
  .step-panel .q-card input[type="email"],
  .step-panel .q-card input[type="date"],
  .step-panel .q-card select,
  .step-panel .q-card textarea,
  .step-panel .q-card .sheet-select-trigger {
    border: 0; border-bottom: 2px solid #D8DAE3; border-radius: 0;
    background: transparent; padding: 0.7rem 0; box-shadow: none; font-size: 1rem;
  }
  .step-panel .q-card input:focus,
  .step-panel .q-card select:focus,
  .step-panel .q-card textarea:focus,
  .step-panel .q-card .sheet-select-trigger:focus {
    border-bottom-color: var(--brand-navy); box-shadow: none;
  }
  .step-panel .q-card .sheet-select-trigger {
    min-height: 48px;
  }
  .step-panel .input-icon .material-symbols-outlined { right: 0; }
  .step-panel .input-icon input { padding-right: 1.8rem; }
  .step-panel .file-drop {
    border-radius: 14px; padding: 1.1rem; min-height: 120px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }

  .choice-grid-opts { grid-template-columns: 1fr; gap: 0.5rem; }
  .choice-opt span { min-height: 48px; border-radius: 12px; font-size: 0.95rem; }
  @media (min-width: 400px) {
    .choice-grid-opts { grid-template-columns: repeat(3, 1fr); }
  }
  .salary-range { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Docked sticky bottom footer actions */
  .form-nav,
  .form-nav.is-docked {
    position: fixed !important; bottom: 0; left: 0; right: 0; z-index: 80;
    display: grid !important; grid-template-columns: 1fr 1.55fr; gap: 0.55rem; align-items: center;
    padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(196,198,210,0.9);
    box-shadow: 0 -12px 30px rgba(16,24,40,0.08);
    margin: 0; border-radius: 0; width: 100%; box-sizing: border-box;
  }
  .form-nav .btn {
    width: 100%; min-height: 52px; border-radius: 14px; font-size: 1rem;
  }
  .form-nav [data-step-prev] { grid-column: 1; }
  .form-nav [data-step-next],
  .form-nav [data-step-submit] { grid-column: 2; }
  .form-nav [data-step-prev][disabled],
  .form-nav [data-step-prev].is-disabled { opacity: 0.4; }
  body.has-docked-nav,
  body.page-form {
    padding-bottom: 0;
  }
  body.page-form .form-page {
    padding-bottom: 6.5rem;
  }

  /* Homepage / general responsive polish — tighter mobile */
  .hero-inner { padding: 1.25rem 0; gap: 0.9rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-lead { font-size: 0.92rem; margin-bottom: 0.8rem; }
  .hero-media img { height: 150px; }
  .section { padding: 1.15rem 0; }
  .section-compact { padding: 0.9rem 0; }
  .section-head h2 { font-size: 1.18rem; }
  .section-head p { font-size: 0.86rem; }
  .free-banner { padding: 0.6rem 0.75rem; margin-bottom: 0.7rem; border-radius: 12px; }
  .free-banner strong { font-size: 0.92rem; }
  .free-banner span { font-size: 0.8rem; }
  .choice-grid-home { gap: 0.65rem; }
  .choice-card { padding: 0.85rem 0.9rem; border-radius: 14px; gap: 0.4rem; }
  .choice-card h3 { font-size: 1rem; }
  .choice-card p { font-size: 0.82rem; }
  .feature-strip { gap: 0.55rem; }
  .feature { padding: 0.7rem 0.8rem; border-radius: 12px; }
  .contact-grid { gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-soft, .step-panel.is-active, .mobile-form-hero { animation: none !important; }
  .choice-card:hover, .feature:hover, .btn:hover { transform: none; }
}

@media (max-width: 420px) {
  .mobile-form-banner img { height: 92px; }
  .wizard-progress-card { padding: 0.7rem; border-radius: 16px; }
  .app-progress-ring, .ring-svg { width: 46px; height: 46px; }
  .step-panel.mobile-flat .q-label { font-size: 1.05rem; }
  .form-type-tab { font-size: 0.86rem; gap: 0.25rem; }
}

@media (min-width: 769px) {
  .mobile-form-hero,
  .form-type-switch,
  .app-progress,
  .mobile-segments { display: none !important; }
  .wizard-progress-card .desktop-steps { display: flex; }
  .desktop-progress { display: block; margin-top: 0.75rem; }
}
@media (max-width: 768px) {
  .desktop-progress { display: none !important; }
}
