:root {
  color-scheme: light;
  --ink: #15202b;
  --muted: #66717f;
  --line: #d7dde5;
  --panel: #ffffff;
  --soft: #f5f7fa;
  --blue: #1f5f8b;
  --blue-dark: #123d5d;
  --teal: #137c72;
  --gold: #9a6a00;
  --red: #a63d40;
  --green: #226a45;
  --shadow: 0 18px 50px rgba(21, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef2f6;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 32px;
}

.assessment-header {
  max-width: 1180px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.lede {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.trust-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.trust-panel span,
.trust-panel small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.trust-panel strong {
  display: block;
  margin: 6px 0;
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.25;
}

.workspace {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.progress-panel,
.assessment-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.progress-panel {
  position: sticky;
  top: 24px;
  padding: 16px;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  color: var(--muted);
  border-bottom: 1px solid #edf0f4;
  font-size: 14px;
}

.step-list li::before {
  content: attr(data-index);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  font-weight: 800;
}

.step-list li.active {
  color: var(--ink);
  font-weight: 800;
}

.step-list li.active::before {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.privacy-note {
  margin-top: 16px;
  padding: 12px;
  background: var(--soft);
  border-left: 4px solid var(--gold);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-note strong,
.privacy-note span {
  display: block;
}

.assessment-card {
  padding: 26px;
}

.section-help {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid.two {
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #24313f;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  border: 1px solid #cbd3dd;
  background: #fff;
  border-radius: 6px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.14);
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.framework-card {
  position: relative;
  display: grid;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.framework-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  min-height: 18px;
}

.framework-card strong {
  color: var(--blue-dark);
}

.framework-card span {
  max-width: 88%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.framework-card:has(input:checked) {
  border-color: var(--blue);
  background: #f1f7fb;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.answer-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #ccd4df;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.answer-row input {
  width: 14px;
  min-height: 14px;
}

.upload-zone {
  min-height: 170px;
  place-items: center;
  text-align: center;
  border: 1px dashed #9aa7b6;
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
}

.upload-zone.dragging {
  border-color: var(--blue);
  background: #eef7fb;
  box-shadow: inset 0 0 0 2px rgba(31, 95, 139, 0.12);
}

.upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-zone span {
  color: var(--blue-dark);
  font-size: 18px;
}

.upload-zone small {
  max-width: 460px;
  color: var(--muted);
  font-weight: 500;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.result-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.score-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.score-ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--blue) calc(var(--score) * 1%), #dce3eb 0);
}

.score-ring span {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-size: 28px;
  font-weight: 850;
}

.gap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gap-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}

.gap-card.high {
  border-left-color: var(--red);
}

.gap-card.ready {
  border-left-color: var(--green);
}

.gap-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-fit {
  padding: 14px;
  border-radius: 8px;
  background: #eef7f5;
  border: 1px solid #cfe7e2;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

button {
  min-width: 112px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  font-weight: 850;
  cursor: pointer;
}

button.primary {
  color: white;
  background: var(--blue);
}

button.secondary {
  color: var(--blue-dark);
  background: #e7edf3;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
}

.form-status.error {
  color: var(--red);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .app-shell {
    padding: 18px;
  }

  .assessment-header,
  .workspace {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    position: static;
  }

  .step-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 34px;
  }

  .field-grid,
  .framework-grid,
  .gap-grid,
  .score-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 10px;
  }

  .assessment-card {
    padding: 16px;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}
