.assessment-page {
  min-height: 100vh;
  color: var(--color-text-on-dark);
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, .22), transparent 32rem),
    radial-gradient(circle at 85% 80%, rgba(22, 163, 74, .12), transparent 28rem),
    linear-gradient(145deg, #0b1220 0%, #111d33 55%, #0f172a 100%);
}

.assessment-header {
  width: min(1280px, calc(100% - 3rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.assessment-logo {
  display: inline-flex;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.assessment-logo:hover { color: #fff; }

.assessment-header-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--color-text-on-dark-muted);
  font-size: .8125rem;
}

.assessment-header-meta a { color: #bfdbfe; font-weight: 600; }

.assessment-main {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.assessment-context {
  position: sticky;
  top: 2.5rem;
  padding-top: 1rem;
}

.assessment-eyebrow,
.assessment-step-kicker {
  display: inline-block;
  color: #60a5fa;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.assessment-context h1 {
  max-width: 620px;
  margin: .9rem 0 1.25rem;
  color: #fff;
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
}

.assessment-context > p {
  max-width: 580px;
  color: #cbd5e1;
  font-size: 1.0625rem;
}

.assessment-benefits {
  display: grid;
  gap: .9rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.assessment-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: #e2e8f0;
  font-size: .9rem;
  line-height: 1.5;
}

.assessment-benefits svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: .08rem;
  color: #4ade80;
}

.assessment-offer {
  max-width: 440px;
  display: grid;
  gap: .2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}

.assessment-offer strong { color: #fff; font-size: .875rem; }
.assessment-offer span { color: #94a3b8; font-size: .8rem; }

.assessment-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  color: var(--color-text);
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, .38);
}

.assessment-honeypot {
  position: fixed !important;
  left: -100vw !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.assessment-progress { margin-bottom: 2rem; }

.assessment-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
  color: #64748b;
  font-size: .75rem;
  font-weight: 600;
}

#assessment-progress-name { color: #1e293b; }

.assessment-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.assessment-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transition: width .3s ease;
}

.assessment-step { animation: assessment-in .25s ease both; }
.assessment-step[hidden] { display: none !important; }

@keyframes assessment-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.assessment-step h2 {
  margin: .4rem 0 .55rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.assessment-step-intro {
  margin-bottom: 1.75rem;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.6;
}

.assessment-field { margin-bottom: 1.2rem; }

.assessment-field > label,
.assessment-fieldset > legend {
  display: block;
  margin-bottom: .42rem;
  color: #334155;
  font-size: .8125rem;
  font-weight: 700;
}

.assessment-field > label span { color: #94a3b8; font-weight: 500; }

.assessment-field input,
.assessment-field select,
.assessment-field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
  font-size: .925rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.assessment-field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1rem;
}

.assessment-field textarea { min-height: 92px; resize: vertical; }

.assessment-field input:focus,
.assessment-field select:focus,
.assessment-field textarea:focus {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.assessment-field small {
  display: block;
  margin-top: .38rem;
  color: #64748b;
  font-size: .72rem;
  line-height: 1.45;
}

.assessment-field.has-error input,
.assessment-field.has-error select,
.assessment-field.has-error textarea,
.assessment-fieldset.has-error,
.assessment-consent.has-error { border-color: #dc2626; }

.assessment-field-error {
  display: block;
  margin-top: .32rem;
  color: #b91c1c;
  font-size: .73rem;
  font-weight: 600;
}

.assessment-fieldset {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.assessment-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem .9rem;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.assessment-option:hover { border-color: #93c5fd; background: #f8fbff; }
.assessment-option:has(input:checked) { border-color: #2563eb; background: #eff6ff; }

.assessment-option input {
  width: 17px;
  height: 17px;
  margin-top: .2rem;
  accent-color: #2563eb;
}

.assessment-option span { display: grid; gap: .08rem; }
.assessment-option strong { color: #1e293b; font-size: .82rem; }
.assessment-option small { color: #64748b; font-size: .72rem; line-height: 1.4; }

.assessment-consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: .25rem 0 1.5rem;
  padding: .9rem;
  color: #475569;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  font-size: .75rem;
  line-height: 1.5;
}

.assessment-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: .1rem;
  accent-color: #16a34a;
}

.assessment-prefill,
.assessment-saved {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1.25rem;
  padding: .8rem .9rem;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: .78rem;
  line-height: 1.45;
}

.assessment-saved { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.assessment-prefill[hidden] { display: none; }
.assessment-prefill svg,
.assessment-saved svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .05rem; }

.assessment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}

.assessment-actions--end { justify-content: flex-end; }

.assessment-actions .btn { min-height: 48px; }

.assessment-back {
  padding: .65rem .2rem;
  color: #64748b;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.assessment-back:hover { color: #0f172a; }

.assessment-error {
  margin-top: 1rem;
  padding: .8rem 1rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  font-size: .8rem;
}

.assessment-error[hidden],
.assessment-loading[hidden] { display: none; }

.assessment-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: #334155;
  background: rgba(255, 255, 255, .94);
  font-size: .86rem;
  font-weight: 600;
}

.assessment-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: assessment-spin .8s linear infinite;
}

@keyframes assessment-spin { to { transform: rotate(360deg); } }

.assessment-privacy {
  margin: 1.5rem 0 0;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 980px) {
  .assessment-main {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 2rem;
  }

  .assessment-context { position: static; padding-top: 0; text-align: center; }
  .assessment-context > p,
  .assessment-offer { margin-left: auto; margin-right: auto; }
  .assessment-benefits { max-width: 580px; margin-left: auto; margin-right: auto; text-align: left; }
}

@media (max-width: 640px) {
  .assessment-header,
  .assessment-main { width: min(100% - 2rem, 720px); }
  .assessment-header { min-height: 66px; }
  .assessment-header-meta span { display: none; }
  .assessment-header-meta { font-size: .75rem; }
  .assessment-main { gap: 1.25rem; padding: 1.5rem 0 2.5rem; }
  .assessment-context h1 { font-size: 2rem; }
  .assessment-context > p { font-size: .95rem; }
  .assessment-benefits,
  .assessment-offer { display: none; }
  .assessment-card { margin-left: -.35rem; margin-right: -.35rem; padding: 1.25rem; border-radius: 17px; }
  .assessment-actions { align-items: stretch; flex-direction: column-reverse; }
  .assessment-actions--end { flex-direction: column; }
  .assessment-actions .btn { width: 100%; }
  .assessment-back { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .assessment-step { animation: none; }
  .assessment-progress-track span { transition: none; }
}
