/* Aanvullingen voor de werkende formulieren; de MVP-huisstijl staat in brainstack.css. */
a { color: var(--blue); text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
aside :focus-visible { outline-color: var(--mint); }
.skip { position: fixed; top: -80px; left: 16px; z-index: 30; padding: 12px; background: var(--paper); }
.skip:focus { top: 12px; }
aside { overflow-y: auto; }
.brand img { height: auto; }
.workspace-title { font-size: 14px; font-weight: 700; margin-top: 9px; color: #fff; }
.step, .btn { text-decoration: none; }
.step { font-family: inherit; }
.account-name { color: #fff; font-weight: 700; }
.sidebar-logout { border: 1px solid #45645e; color: #dbe7e5; background: transparent; margin: 12px 0 22px; }
.sidebar-logout:hover { background: #16352f; }
main { width: 100%; min-width: 0; }
.topbar > div, .grid > *, .customer-row > * { min-width: 0; }
h1, h2, h3, .intake-name, .account-name { overflow-wrap: anywhere; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12px; margin: -8px 0 24px; }
.panel-spaced { margin-top: 22px; }
.narrow { max-width: 760px; }
.login { max-width: 560px; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
input:not([type="hidden"]), textarea, select { display: block; width: 100%; min-width: 0; border: 1px solid #b9cec5; border-radius: 6px; padding: 12px 14px; background: var(--paper); color: var(--text); margin-bottom: 20px; }
textarea { min-height: 110px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--teal); }
.card p { font-size: 12px; }
.meta { margin: 0; }
.meta dt { font-weight: 700; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.customer-list { display: grid; gap: 14px; }
.customer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.customer-row h3 { margin-bottom: 6px; }
.customer-row p { margin: 0; color: var(--muted); }
.customer-intake { width: 45%; min-width: 240px; }
.intake-name { font-size: 12px; font-weight: 700; }
.status-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; margin: 10px 0; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.card-heading h3 { margin-bottom: 10px; }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 8px; overflow: hidden; appearance: none; background: var(--line); accent-color: var(--mint); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 8px; }
progress::-webkit-progress-value { background: var(--mint); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--mint); border-radius: 8px; }
.intake-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
.section-nav { min-width: 0; }
.section-nav .eyebrow { margin: 0 0 14px; }
.section-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); padding: 12px; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
.section-link.active { background: var(--mint); color: var(--ink); }
.section-link:hover { border-color: var(--teal); }
.section-link span { font-size: 10px; white-space: nowrap; }
.question-list { min-width: 0; }
.question { margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
small, .muted { color: var(--muted); font-size: 11px; }
details summary { cursor: pointer; color: var(--blue); font-size: 12px; }
details label { margin-top: 16px; font-weight: 500; }
details textarea { margin-bottom: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin: 0 0 20px; }
legend { font-size: 11px; color: var(--muted); padding: 0 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--teal); }
.actions { flex-wrap: wrap; }
.error { background: var(--soft-danger); color: #8c2117; border-left: 3px solid var(--danger); padding: 16px 20px; margin-bottom: 20px; border-radius: 0 8px 8px 0; }
.notice { background: var(--soft-teal); color: var(--teal); padding: 16px 20px; border-radius: 8px; }
.answer-list { margin: 0; }
.answer-list dt { font-size: 12px; font-weight: 700; margin-top: 20px; }
.answer-list dt:first-child { margin-top: 0; }
.answer-list dd { margin: 8px 0 0; font-size: 12px; }
.answer-list dd p { margin: 8px 0 0; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .intake-layout { grid-template-columns: 1fr; }
  .section-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .section-nav .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
  .section-link { margin: 0; }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aside-note { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 0; }
  .aside-note > div:last-child { display: none; }
  .sidebar-logout { margin: 0; min-height: 40px; padding: 8px 14px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 14px 12px; }
  .customer-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .customer-intake { width: 100%; min-width: 0; }
  .card-heading { flex-wrap: wrap; }
  .section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  input:not([type="hidden"]), textarea, select { font-size: 16px; }
  .meta { grid-template-columns: 1fr; gap: 6px; }
  .meta dd { margin-bottom: 10px; }
  .panel-head { flex-wrap: wrap; }
}
