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

:root {
  --navy: #1a2a4a;
  --navy-mid: #243756;
  --blue: #2d4a7a;
  --blue-light: #3a5f9e;
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --text: #1e293b;
  --text-mid: #4a6080;
  --text-muted: #8a9bb0;
  --border: #e2e8f0;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --error: #e53e3e;
  --error-bg: #fff5f5;
  --success: #2f855a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(26,42,74,.12), 0 8px 24px rgba(26,42,74,.08);
  --transition: 0.2s ease;
  --hero-image: none;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--text);
  background: #0f1b30;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0f1b30;
}

body[data-has-video="true"] .bg-gradient {
  opacity: 0;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 14, 28, 0.48) 0%,
    rgba(8, 18, 36, 0.32) 35%,
    rgba(8, 18, 36, 0.3) 65%,
    rgba(5, 14, 28, 0.42) 100%
  );
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(5,14,28,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header-logo {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-brand {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-badge {
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.25);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
}

.main {
  position: relative;
  z-index: 2;
  padding: 60px 24px 80px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

.site-warning {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 244, 229, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #9a3412;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.hero-subtitle {
  color: rgba(255,255,255,.88);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.pill:hover { background: rgba(255,255,255,.2); color: #fff; }
.pill svg { opacity: .85; flex-shrink: 0; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  margin-bottom: 32px;
}

.steps {
  display: flex;
  align-items: center;
  padding: 28px 40px 0;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.step.active .step-number { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(45,74,122,.3); }
.step.active .step-label { color: var(--text); font-weight: 600; }
.step.done .step-number { background: var(--gold); color: var(--navy); }
.step.done .step-label { color: var(--text-mid); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
  border-radius: 2px;
  min-width: 20px;
}

.form-step { padding: 0 40px 40px; }
.form-step.hidden { display: none; }

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.step-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e8ff 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}

.step-desc { font-size: 14px; color: var(--text-muted); margin: 0; }

.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: .1px;
}

.required { color: var(--blue); margin-left: 2px; }

.input-wrapper { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  padding: 0 16px;
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.input-wrapper:has(.input-icon) .input { padding-left: 44px; }
.input::placeholder { color: #b8c4d0; }
.input:hover { border-color: #c0cfe0; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,74,122,.1); }
.input.error { border-color: var(--error); }
.input.error:focus { box-shadow: 0 0 0 3px rgba(229,62,62,.1); }

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
  min-height: 16px;
}

.service-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.service-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }

.service-card {
  display: block;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  transition: all var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eef4ff 0%, #f0f6ff 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover { border-color: #b0c4e0; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.service-card:hover::before { opacity: .5; }
.service-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,74,122,.12); }
.service-card.selected::before { opacity: 1; }

.service-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
  transition: all var(--transition);
}

.service-card.selected .service-card-icon { background: var(--blue); color: #fff; }
.service-card-body { flex: 1; min-width: 0; }
.service-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.service-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.service-card.selected .service-name { color: var(--blue); }

.service-card-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition);
}

.service-card.selected .service-card-check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(45,74,122,.3);
}

.submit-error {
  background: var(--error-bg);
  border: 1px solid rgba(229,62,62,.25);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45,74,122,.35);
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,74,122,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-submit {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(26,42,74,.4);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-submit:hover::before { opacity: .12; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,42,74,.45); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-soft); color: var(--text); border-color: #c0cfe0; }

.btn-arrow, .btn-loader, .btn-text { position: relative; z-index: 1; }
.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

.success-state {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin-bottom: 24px;
  box-shadow: 0 0 0 12px rgba(167,243,208,.2), 0 8px 24px rgba(47,133,90,.2);
  animation: successPop 0.5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-msg {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.success-details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: left;
  width: 100%;
  max-width: 420px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

.success-detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}

.success-detail-row + .success-detail-row { margin-top: 8px; }
.success-detail-label { color: var(--navy); font-weight: 700; }
.success-detail-value { min-width: 0; word-break: break-word; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
}

.trust-item svg { opacity: .85; flex-shrink: 0; }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
}

.site-footer p { color: rgba(255,255,255,.58); font-size: 13px; }

.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;
}

@media (max-width: 600px) {
  .main { padding: 40px 16px 60px; }
  .header-inner { padding: 14px 16px; }
  .header-badge { display: none; }
  .steps { padding: 20px 20px 0; overflow-x: auto; }
  .step-label { display: none; }
  .form-step { padding: 0 20px 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step-nav { flex-direction: column-reverse; gap: 12px; }
  .step-nav .btn { width: 100%; justify-content: center; }
  .success-state { padding: 40px 20px; }
  .success-details { padding: 16px 20px; }
  .logo-mark { width: 32px; height: 32px; }
  .site-header-logo { height: 36px; }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step:not(.hidden) { animation: fadeSlideIn 0.3s ease; }
.success-state:not(.hidden) { animation: fadeSlideIn 0.4s ease; }
.card { animation: fadeSlideIn 0.5s ease 0.1s both; }
.hero { animation: fadeSlideIn 0.5s ease both; }
.service-pills { animation: fadeSlideIn 0.5s ease 0.05s both; }
