/* ── VARIABLES ───────────────────────────── */
:root {
  --primary: #021d33;
  --primary-mid: #0a2d4d;
  --accent: #0f6e9e;
  --bg: #f0f4f8;
  --card: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(2,29,51,.08), 0 1px 4px rgba(2,29,51,.05);
  --shadow-lg: 0 12px 40px rgba(2,29,51,.13), 0 4px 12px rgba(2,29,51,.07);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background: var(--primary);
  padding: 0 40px;
  height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar img {
  height: 32px;
  object-fit: contain;
}

.navbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  transition: all .2s;
}

nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ── HERO STRIP ──────────────────────────── */
.hero-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #0a3a5c 100%);
  padding: 40px 24px 44px;
  position: relative;
  overflow: hidden;
}

.hero-strip::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hero-strip::before {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.hero-inner {
  max-width: 650px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  display: block;
  margin-bottom: 8px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.6);
  font-weight: 400;
}

/* ── PAGE ────────────────────────────────── */
.page {
  max-width: 650px;
  margin: -24px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}

/* ── FORM CARD ───────────────────────────── */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ── STEPS ───────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  transition: all .3s;
}

.step span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color .3s;
}

.step.active .step-dot {
  background: var(--primary);
  color: #fff;
}

.step.active span {
  color: var(--text);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 10px;
}

/* ── FORM SECTIONS ───────────────────────── */
.form-section {
  padding: 28px 28px 20px;
}

.section-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.01em;
}

.section-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .04em;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 28px;
}

/* ── FIELD GRID ──────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
  display: block;
}

.optional {
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

input::placeholder, textarea::placeholder {
  color: #b0bac7;
  font-weight: 400;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,110,158,.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  height: 110px;
  resize: none;
  line-height: 1.6;
}

.error {
  color: var(--danger);
  font-size: 11px;
  font-weight: 500;
  min-height: 14px;
  display: block;
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
}

/* ── SERVICE SELECTOR ────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-option {
  cursor: pointer;
}

.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  cursor: pointer;
  background: #fafbfc;
}

.service-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color .2s;
}

.service-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
  line-height: 1.3;
}

.service-card:hover {
  border-color: var(--accent);
  background: #f0f9ff;
}

.service-card:hover svg { color: var(--accent); }
.service-card:hover span { color: var(--text); }

.service-card.selected {
  border-color: var(--accent);
  background: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(15,110,158,.1);
}

.service-card.selected svg { color: var(--accent); }
.service-card.selected span { color: var(--primary); font-weight: 600; }

/* ── FORM FOOTER ─────────────────────────── */
.form-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fafbfc;
}

.footer-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .01em;
}

.btn-submit svg {
  width: 15px;
  height: 15px;
  transition: transform .2s;
}

.btn-submit:hover {
  background: #0a2d4d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2,29,51,.3);
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── SITE FOOTER ─────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px 24px 32px;
  color: #94a3b8;
  font-size: 13px;
}

/* ── MODAL ───────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2,15,30,.55);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  z-index: 9999;
  animation: fadeBg .2s;
  padding: 20px;
}

.modal-box {
  background: var(--card);
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: scaleIn .25s cubic-bezier(.22,1,.36,1);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon svg {
  width: 26px;
  height: 26px;
  stroke: #15803d;
  stroke-width: 2.5;
}

.modal-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.modal-box p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.modal-btn:hover {
  background: #0a2d4d;
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes scaleIn {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 600px) {
  .navbar { padding: 0 20px; }
  .hero-title { font-size: 26px; }
  .form-section { padding: 22px 20px 16px; }
  .divider { margin: 0 20px; }
  .form-footer { padding: 16px 20px 22px; flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
  .steps { padding: 16px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}