/* ============================================================
   KNOWN. Assessment — component styles
   Builds on the shared design tokens/components in ../css/styles.css
   (colors, fonts, .btn, .contact-form, .check-list, .article-emphasis).
   Nothing here redefines a token — only assessment-specific layout.
   ============================================================ */

.assessment-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 96px;
}

.assessment-screen {
  animation: assessment-fade 300ms ease;
}
@keyframes assessment-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Resume banner ---------- */
.resume-banner {
  background: var(--cream-alt);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.resume-banner p { color: var(--forest); margin-bottom: 12px; }
.resume-banner .cta-row { margin-top: 0; }

/* ---------- Intro ---------- */
.assessment-facts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  margin: 32px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--forest);
  text-align: center;
}
.assessment-facts li::before {
  content: "\2022";
  color: var(--gold);
  margin-right: 8px;
}
.assessment-facts li:first-child::before { content: ""; margin-right: 0; }

.assessment-subtle-link {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  padding: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  cursor: pointer;
}
.assessment-subtle-link:hover { color: var(--gold); }

.assessment-how { margin: 24px auto 0; max-width: 480px; }

.assessment-disclaimer {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: 56px;
}

/* ---------- Progress ---------- */
.assessment-progress-header { margin-bottom: 36px; }
.assessment-counter {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 10px;
}
.assessment-progress-track {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.assessment-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  border-radius: 999px;
  transition: width 300ms ease;
}
.assessment-percent {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 8px;
  margin-bottom: 0;
  text-align: right;
}

/* ---------- Question ---------- */
.assessment-question-text {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin: 14px 0 32px;
  outline: none;
}

.assessment-options {
  border: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 12px;
}

.option-card { position: relative; }
.option-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  min-height: 44px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.option-card input:checked + .option-label {
  border-color: var(--forest);
  background: var(--cream-alt);
  font-weight: 700;
}
.option-card input:focus-visible + .option-label {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.option-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
}
.option-card input:checked + .option-label .option-check {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}
.option-card input:checked + .option-label .option-check::after { content: "\2713"; }

.assessment-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Results ---------- */
.result-icon-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.result-icon-badge img { width: 42px; height: 42px; }

.result-score-line {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 4px;
}
.result-snapshot-note {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gray-600);
  margin: 8px 0 56px;
}

.result-block { margin-bottom: 40px; }
.result-block h3 { font-size: 1.15rem; margin-bottom: 12px; }

.result-path-card {
  background: var(--cream-alt);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
}
.result-path-card .btn { margin-top: 8px; }

/* ---------- Follow-up (reflection + lead capture) ---------- */
.assessment-followup {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-100);
}
.assessment-followup-subhead { margin-top: 32px; }
.assessment-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
}
.assessment-checkbox input { margin-top: 3px; }

/* ---------- Accessibility helper ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .assessment-wrap { padding-top: 40px; }
  .assessment-nav { flex-direction: column-reverse; }
  .assessment-nav .btn { width: 100%; }
}
