.checkup-body {
  background: #f7f3ea;
  color: #0b3042;
}

[hidden] { display: none !important; }

.checkup-main {
  min-height: 72vh;
  background:
    radial-gradient(circle at 91% 9%, rgba(20, 127, 181, .09), transparent 25rem),
    linear-gradient(135deg, #fcfaf5 0%, #f4efe5 100%);
}

.checkup-section {
  padding: clamp(4.5rem, 8vw, 8rem) 1.5rem clamp(5rem, 9vw, 9rem);
}

.checkup-shell {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.checkup-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, .76fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.checkup-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.5rem;
  color: #147fb5;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.checkup-eyebrow span {
  width: 2.25rem;
  height: 2px;
  flex: 0 0 auto;
  background: #d9aa3f;
}

.checkup-welcome h1 {
  max-width: 840px;
  margin: 0;
  color: #0b3042;
  font-size: clamp(3.6rem, 6.5vw, 6.75rem);
  line-height: .97;
  letter-spacing: -.058em;
}

.checkup-intro-copy {
  max-width: 710px;
  margin-top: 2rem;
  padding-left: 1.4rem;
  border-left: 3px solid #d9aa3f;
}

.checkup-intro-copy p {
  margin: 0;
  color: #365564;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.checkup-intro-copy p + p { margin-top: .35rem; }
.checkup-intro-copy strong { color: #0b3042; }

.checkup-start-panel {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(11, 48, 66, .16);
  border-top: 3px solid #147fb5;
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 24px 55px rgba(35, 56, 65, .1);
}

.start-panel-kicker {
  color: #a0711b;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.checkup-start-panel > p {
  margin: 1rem 0 1.25rem;
  color: #0b3042;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

.checkup-start-panel ul {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.checkup-start-panel li {
  position: relative;
  padding: .7rem 0 .7rem 1.65rem;
  border-top: 1px solid rgba(11, 48, 66, .1);
  color: #43616f;
  font-size: .96rem;
  line-height: 1.4;
}

.checkup-start-panel li::before {
  position: absolute;
  left: .15rem;
  color: #147fb5;
  content: "✓";
  font-weight: 800;
}

.checkup-primary-button {
  min-height: 58px;
  padding: 0 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid #0879ba;
  border-radius: 4px;
  color: #fff;
  background: #0879ba;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.checkup-primary-button:hover,
.checkup-primary-button:focus-visible {
  border-color: #0b3042;
  background: #0b3042;
  transform: translateY(-1px);
}

.checkup-primary-button:focus-visible,
.checkup-back-button:focus-visible,
.answer-option input:focus-visible + span {
  outline: 3px solid rgba(20, 127, 181, .36);
  outline-offset: 3px;
}

.checkup-question-panel,
.checkup-results {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgba(11, 48, 66, .15);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 28px 65px rgba(35, 56, 65, .11);
}

.checkup-progress-row {
  padding: 1.35rem clamp(1.35rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(11, 48, 66, .12);
}

.checkup-progress-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#question-position {
  color: #7c6b4c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

#question-category {
  color: #147fb5;
  font-size: .79rem;
  letter-spacing: .13em;
}

.checkup-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(11, 48, 66, .09);
}

.checkup-progress span {
  width: 10%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #d9aa3f;
  transition: width .25s ease;
}

#checkup-form { padding: clamp(2rem, 5vw, 4.5rem); }

.checkup-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkup-question legend {
  max-width: 860px;
  margin: 0;
  padding: 0;
  color: #0b3042;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.question-guidance {
  margin: 1rem 0 1.6rem;
  color: #657a83;
  font-size: .95rem;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}

.answer-option { position: relative; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }

.answer-option span {
  min-height: 74px;
  height: 100%;
  padding: .9rem .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 48, 66, .18);
  border-radius: 8px;
  color: #284b5c;
  background: #fcfaf5;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.answer-option span:hover { border-color: #147fb5; background: #f2f8fa; }
.answer-option input:checked + span { border-color: #0b3042; color: #fff; background: #0b3042; box-shadow: inset 0 -3px #d9aa3f; }
.answer-option:last-child span { border-style: dashed; }
.answer-option:last-child input:checked + span { border-style: solid; }

.answer-error {
  margin: 1rem 0 0;
  color: #9d332d;
  font-size: .9rem;
  font-weight: 700;
}

.checkup-navigation {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkup-back-button {
  min-height: 48px;
  padding: 0;
  border: 0;
  color: #496572;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}

.checkup-back-button:hover { color: #0879ba; }
.checkup-back-button:disabled { visibility: hidden; }

.checkup-results { padding: clamp(2rem, 5vw, 4.5rem); }

.results-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(11, 48, 66, .13);
}

.results-heading h2 {
  margin: 0;
  color: #0b3042;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.05em;
}

#results-summary {
  max-width: 690px;
  margin: 1.15rem 0 0;
  color: #476471;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.6;
}

.overall-result {
  min-width: 190px;
  padding-left: 1.4rem;
  border-left: 3px solid #d9aa3f;
}

.overall-result span,
.overall-result small { display: block; }
.overall-result span { color: #6c7f87; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.overall-result strong { display: block; margin: .2rem 0; color: #0b3042; font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; line-height: 1; }
.overall-result small { color: #637983; font-size: .76rem; }

.uncertainty-insight {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid #d9aa3f;
  background: #f7f3ea;
}

.uncertainty-insight strong { color: #0b3042; }
.uncertainty-insight p { margin: .35rem 0 0; color: #496572; font-family: Georgia, "Times New Roman", serif; line-height: 1.55; }

.category-results {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.category-result {
  min-height: 172px;
  padding: 1.35rem;
  border: 1px solid rgba(11, 48, 66, .14);
  border-radius: 10px;
  background: #fcfaf5;
}

.category-result:last-child { grid-column: 1 / -1; }
.category-result-insufficient { border-style: dashed; background: #f8f5ed; }

.category-result-heading { display: flex; align-items: center; gap: .65rem; }
.category-result-heading span { color: #a9781b; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.category-result-heading h3 { margin: 0; color: #0b3042; font-size: .94rem; letter-spacing: .09em; }

.category-score-row { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .9rem; }
.category-score-row strong { color: #147fb5; font-family: Georgia, "Times New Roman", serif; font-size: 2.35rem; line-height: 1; }
.category-score-row span { color: #0b3042; font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.category-status { display: block; margin-top: 1.15rem; color: #a0711b; font-size: .82rem; letter-spacing: .08em; }
.category-result p { margin: .65rem 0 0; color: #58717c; font-family: Georgia, "Times New Roman", serif; font-size: .96rem; line-height: 1.5; }
.category-result .category-visibility-note { font-family: inherit; font-size: .78rem; line-height: 1.4; }

.results-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(11, 48, 66, .13);
}

.results-footer > p { max-width: 570px; margin: 0; color: #667b84; font-size: .84rem; line-height: 1.5; }
.results-actions { display: flex; align-items: center; gap: 1.25rem; flex: 0 0 auto; }

.checkup-noscript {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(11, 48, 66, .15);
  background: #fff;
  text-align: center;
}

@media (max-width: 980px) {
  .checkup-welcome { grid-template-columns: 1fr; }
  .checkup-start-panel { max-width: 680px; }
  .answer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-option:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .checkup-section { padding: 3.5rem 1rem 5rem; }
  .checkup-welcome h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .checkup-progress-row { grid-template-columns: 1fr; gap: .85rem; }
  #checkup-form, .checkup-results { padding: 1.35rem; }
  .answer-options { grid-template-columns: 1fr; }
  .answer-option:last-child { grid-column: auto; }
  .answer-option span { min-height: 58px; justify-content: flex-start; padding-inline: 1rem; text-align: left; }
  .results-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .overall-result { padding: 1rem 0 0; border-top: 2px solid #d9aa3f; border-left: 0; }
  .category-results { grid-template-columns: 1fr; }
  .category-result:last-child { grid-column: auto; }
  .results-footer { align-items: stretch; flex-direction: column; }
  .results-actions { align-items: stretch; flex-direction: column; }
  .checkup-primary-button { width: 100%; }
  .checkup-navigation .checkup-primary-button { width: auto; }
}

@media (max-width: 470px) {
  .checkup-navigation { align-items: stretch; flex-direction: column-reverse; }
  .checkup-navigation .checkup-primary-button { width: 100%; }
  .checkup-back-button { align-self: flex-start; }
  .checkup-progress-row > div:first-child { align-items: flex-start; flex-direction: column; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .checkup-primary-button,
  .checkup-progress span { transition: none; }
}
