:root {
  --bg: #f4f9fc;
  --card: #ffffff;
  --text: #142a63;
  --muted: #60708c;
  --primary: #4299d2;
  --primary-dark: #287db8;
  --border: #d9e8f2;
  --green: #2e9b78;
  --yellow: #e1a63a;
  --orange: #df7b4b;
  --red: #cf5d64;
  --shadow: 0 12px 30px rgba(20, 42, 99, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  padding: 17px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #dceef7;
  border: 1px solid #c4deeb;
  border-radius: 11px;
  box-shadow: 0 5px 12px rgba(20, 42, 99, .08);
}

.nav-tab {
  color: var(--primary-dark);
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}

.nav-tab:hover,
.nav-tab:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .7);
}

.nav-tab.is-active {
  color: white;
  background: var(--primary);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(66, 153, 210, .28);
}

.nav-step {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

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

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 60px;
}

.landing-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 60px;
}

.landing-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 48px;
  border-radius: 16px;
  background-image: url("img/Nolost-Kunstenaar-vs-Verpleegster.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  background: rgba(20, 42, 99, .58);
  content: "";
}

.landing-hero-content {
  position: relative;
  max-width: 1000px;
}

.landing-eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.landing-hero .landing-eyebrow {
  color: #dff2fb;
}

.landing-hero h1 {
  max-width: 500px;
  margin-bottom: 18px;
  color: white;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

.landing-lead {
  max-width: 470px;
  margin: 0 0 28px;
  color: white;
  font-size: 21px;
  line-height: 1.45;
}

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

.landing-cta {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(20, 42, 99, .24);
  text-decoration: none;
}

.landing-actions .btn-secondary {
  background: rgba(255, 255, 255, .9);
}

.landing-information {
  max-width: 820px;
  padding: 46px 8px 8px;
}

.landing-information h2 {
  max-width: 600px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.landing-information > p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 17px;
}

.landing-vision {
  max-width: 820px;
  margin: 18px 8px 0;
  padding: 34px 0 8px;
  border-top: 1px solid var(--border);
}

.landing-vision h2 {
  margin-bottom: 14px;
}

.landing-vision p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

.hidden { display: none !important; }

.intro {
  max-width: 760px;
  margin-bottom: 30px;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 12px;
  letter-spacing: -.02em;
  color: var(--text);
}

h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
}

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

p {
  line-height: 1.6;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.questionnaire {
  display: grid;
  gap: 22px;
}

.questionnaire-readonly input:disabled,
.questionnaire-readonly textarea:disabled,
.questionnaire-readonly select:disabled {
  opacity: 1;
  color: var(--text);
  background: #f7fbfd;
  cursor: default;
}

.questionnaire-readonly input[type="radio"]:disabled,
.questionnaire-readonly input[type="checkbox"]:disabled {
  opacity: 1;
}

.questionnaire-readonly .actions [type="submit"],
.questionnaire-readonly .form-draft-status,
.questionnaire-readonly [data-form-nav="reset"] { display: none; }

.question { margin-bottom: 26px; }

label {
  display: block;
  font-weight: 650;
  margin-bottom: 9px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin: -3px 0 10px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #c9deeb;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  background: white;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

textarea {
  min-height: 105px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 153, 210, .14);
}

input[type="radio"], input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  font-weight: 400;
}

.choice > span {
  display: block;
}

.choice small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 28px 0 4px;
}

fieldset:first-child {
  border-top: 0;
  padding-top: 0;
}

.questionnaire-section {
  width: 100%;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--border);
}

.questionnaire > fieldset:first-child {
  padding-top: 30px;
}

.questionnaire-section-title {
  margin-bottom: 22px;
}

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

legend {
  padding: 0;
  font-size: 24px;
  font-weight: 800;
}

.section-intro {
  margin: 8px 0 22px;
}

.process-intro,
.process-scale p {
  color: var(--text);
}

.process-intro-separated {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5f0f6;
  font-weight: 400;
}

.questionnaire-instructions {
  padding: 26px 30px;
  margin-bottom: 22px;
}

.questionnaire-instructions li {
  color: var(--muted);
}

.terminology-box {
  padding: 26px 30px;
  margin-bottom: 22px;
}

.terminology-box > h2 {
  margin-bottom: 18px;
}

.terminology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.terminology-item + .terminology-item {
  padding-top: 16px;
}

.terminology-item h3 {
  margin-bottom: 8px;
}

.terminology-item p {
  margin: 0 0 10px;
}

.terminology-item p:last-child {
  margin-bottom: 0;
}

.process-question {
  padding: 18px 0;
  border-top: 1px solid #e5f0f6;
}

.process-question > label:first-child {
  line-height: 1.45;
}

.process-question-prompt {
  display: block;
  color: var(--text);
  font-weight: 650;
  margin: 0 0 9px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 19px;
  cursor: pointer;
  font-weight: 700;
}

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

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: #e6f2f8;
  color: var(--text);
}

.btn-danger {
  background: #f8e4e6;
  color: #a64049;
}

.btn-danger:hover {
  background: #f1cdd1;
}

.answers {
  padding: 24px;
  margin-bottom: 22px;
}

.answer-list {
  display: flex;
  flex-direction: column;
  margin-top: 17px;
}

.answer-item {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.answer-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.answer-question {
  display: block;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 7px;
}

.answer-value {
  display: block;
  line-height: 1.55;
}

.answer-note {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f1f8fb;
  border-radius: 8px;
  font-size: 14px;
}

.answer-note strong {
  color: var(--muted);
}

.level-card {
  padding: 25px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.level-number {
  text-align: center;
  font-size: 60px;
  font-weight: 850;
  line-height: 1;
  color: var(--primary);
}

.level-label {
  text-align: center;
  margin-top: 8px;
  font-weight: 750;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 14px 0;
}

.scale div {
  height: 9px;
  border-radius: 10px;
  background: #dcebf3;
}

.scale div.active { background: var(--primary); }

.level-description { margin: 0; }

.level-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.level-details h3 {
  margin: 16px 0 6px;
  color: var(--text);
}

.level-details h3:first-child { margin-top: 0; }

.level-details p {
  margin: 8px 0 14px;
  line-height: 1.55;
}

.level-details ul { margin: 8px 0 16px; }

.level-details li { line-height: 1.55; }

.score-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.score-result-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.score-result-card h2 {
  margin: 0 0 10px;
}

.score-result-card > p {
  margin: 8px 0;
}

.score-result-card > h3 {
  margin: 16px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.process-score-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.process-score-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f8fb;
  font-size: 14px;
}

.advisers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.adviser { padding: 26px; }

.adviser-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.adviser-icon {
  width: 44px;
  height: 44px;
  border-radius: 50% 42% 50% 42%;
  display: grid;
  place-items: center;
  background: #e4f2f9;
  color: var(--primary);
  font-size: 21px;
}

.adviser-header p { margin: 0; }

.section { margin-bottom: 22px; }

.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.advice-content {
  max-width: 78ch;
  color: #30343b;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.advice-content p {
  margin: 0 0 16px;
}

.advice-content h2,
.advice-content h3,
.advice-content h4 {
  color: #20242a;
  line-height: 1.35;
}

.advice-content h2 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 23px;
}

.advice-content h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.advice-content h4 {
  margin: 18px 0 6px;
  font-size: 16px;
}

.advice-content h2:first-child,
.advice-content h3:first-child,
.advice-content h4:first-child {
  margin-top: 0;
}

.advice-content ul,
.advice-content ol {
  margin: 8px 0 18px;
  padding-left: 26px;
}

.advice-content li {
  margin: 6px 0;
  padding-left: 2px;
  line-height: 1.65;
}

.advice-content strong {
  color: #20242a;
  font-weight: 700;
}

.advice-table-wrapper {
  max-width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
}

.advice-content table {
  width: 100%;
  border-collapse: collapse;
  color: #30343b;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.advice-content th,
.advice-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.advice-content th {
  background: #f3f4f6;
  color: #20242a;
  font-weight: 700;
}

.advice-content tbody tr:nth-child(even) {
  background: #f9fafb;
}

ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

li {
  margin: 8px 0;
  line-height: 1.45;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #e4f2f9;
  color: #236d9d;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.step {
  display: flex;
  gap: 11px;
  margin: 10px 0;
}

.step-number {
  flex: 0 0 27px;
  height: 27px;
  border-radius: 50%;
  background: #e6f2f8;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.footer-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

#downloadReportButton {
  padding: 15px 24px;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(66, 153, 210, .28);
}

#downloadReportButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(66, 153, 210, .34);
}

#downloadReportButton:disabled {
  cursor: wait;
  opacity: .75;
  transform: none;
}

@media (max-width: 800px) {
  header { padding: 16px 20px; }
  .process-score-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { width: min(100% - 24px, 700px); padding-top: 30px; }
  .landing-page { width: min(100% - 24px, 700px); padding-top: 30px; }
  .landing-hero { min-height: 500px; padding: 32px; }
  .landing-information { padding: 36px 4px 8px; }
  .grid-2, .advisers { grid-template-columns: 1fr; }
  .answer-note { grid-template-columns: 1fr; gap: 4px; }
  .level-card { grid-template-columns: 1fr; gap: 10px; }
  .footer-actions { align-items: stretch; flex-direction: column-reverse; gap: 12px; }
}

.level-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.level-details h3 {
  margin: 16px 0 6px;
  color: var(--text);
}

.level-details h3:first-child {
  margin-top: 0;
}

.level-details p {
  margin: 8px 0 14px;
  line-height: 1.55;
}

.level-details ul {
  margin: 8px 0 16px;
}

.level-details li {
  line-height: 1.55;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.history-item h2 { margin-bottom: 5px; font-size: 20px; }
.history-item p { margin: 0; }
.history-level { color: var(--primary-dark); font-weight: 700; }

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

.history-actions .btn {
  text-align: center;
  text-decoration: none;
}

.history-actions .history-use {
  grid-column: 1 / -1;
}

.history-actions .btn-danger {
  grid-column: 1 / -1;
  justify-self: end;
  width: auto;
  min-width: 140px;
  padding: 10px 16px;
  font-size: 14px;
}

.history-empty {
  padding: 28px;
  text-align: center;
}

@media (max-width: 600px) {
  .brand { gap: 10px; font-size: 15px; }
  .logo { width: 130px; height: 40px; }
  header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .header-nav { gap: 8px; }
  .header-nav { width: 100%; justify-content: space-between; }
  .nav-tabs { padding-left: 2px; padding-right: 2px; }
  .nav-tab { padding-left: 9px; padding-right: 9px; }
  .landing-hero { min-height: 480px; padding: 26px; border-radius: 12px; }
  .landing-hero h1 { font-size: 38px; }
  .landing-lead { font-size: 18px; }
  .landing-actions { grid-template-columns: 1fr; }
  .landing-actions .btn { text-align: center; }
  .landing-actions .landing-cta { font-size: 12px; }
  .history-item { align-items: stretch; flex-direction: column; gap: 14px; }
  .history-item .btn { width: 100%; }
}