/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a56db;
  --blue-dark:  #1e429f;
  --blue-light: #e8f0fe;
  --green:      #057a55;
  --green-light:#def7ec;
  --orange:     #c27803;
  --orange-light:#fdf6b2;
  --red:        #c81e1e;
  --red-light:  #fde8e8;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 60%, #2563eb 100%);
  color: white;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
}
.header-inner { max-width: 700px; margin: 0 auto; }
.logo { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .5rem; }
.logo-icon { font-size: 2rem; }
.logo-text { font-size: 1.8rem; font-weight: 800; letter-spacing: -.5px; }
.header-tagline { opacity: .9; font-size: 1rem; }

/* ── Layout ── */
.container { max-width: 780px; margin: 0 auto; padding: 2rem 1rem 3rem; }

/* ── Cards ── */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.step-card { transition: opacity .3s; }
.step-card.hidden { display: none; }

.step-header { margin-bottom: 1.5rem; }
.step-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.step-header h2 { font-size: 1.35rem; font-weight: 700; color: var(--gray-900); margin-bottom: .3rem; }
.step-desc { color: var(--gray-600); font-size: .925rem; }

/* ── Search form ── */
.search-form { max-width: 520px; }
.input-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.input-row { display: flex; gap: .6rem; }
.input-row input {
  flex: 1;
  padding: .7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1.05rem;
  letter-spacing: .05em;
  transition: border-color .2s;
  outline: none;
}
.input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.15); }
.input-hint { color: var(--gray-400); font-size: .8rem; margin-top: .4rem; }
.input-hint code { background: var(--gray-100); padding: .1rem .3rem; border-radius: 4px; font-size: .8rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.2rem;
  border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.btn-icon { font-size: 1rem; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #046c4e; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300, #d1d5db); }
.btn-outline { background: white; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }

.form-footer { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Loading ── */
.loading-overlay {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 2rem; text-align: center; color: var(--gray-600);
}
.loading-overlay.hidden { display: none; }
.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alerts ── */
.alert {
  padding: .75rem 1rem; border-radius: 8px; font-size: .9rem; margin-top: .75rem;
}
.alert-error { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.alert-warning { background: var(--orange-light); color: var(--orange); border: 1px solid #fcd34d; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #6ee7b7; }
.alert-info { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #93c5fd; }
.hidden { display: none !important; }

/* ── KBO result ── */
.kbo-status-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.kbo-status-row.ok { background: var(--green-light); color: var(--green); border: 1.5px solid #6ee7b7; }
.kbo-status-row.warn { background: var(--orange-light); color: var(--orange); border: 1.5px solid #fcd34d; }
.kbo-status-row.error { background: var(--red-light); color: var(--red); border: 1.5px solid #fca5a5; }
.kbo-status-icon { font-size: 1.5rem; }

.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 520px) { .info-grid { grid-template-columns: 1fr; } }

.info-item label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-400); margin-bottom: .1rem;
}
.info-item .value { font-size: .95rem; font-weight: 500; color: var(--gray-900); }
.info-item .value.good { color: var(--green); font-weight: 700; }
.info-item .value.bad { color: var(--red); font-weight: 700; }
.info-item .value.warn { color: var(--orange); font-weight: 700; }

.nace-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.nace-tag {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 6px; padding: .15rem .5rem; font-size: .82rem; font-weight: 600;
}
.nace-tag.nace43 { background: var(--green-light); border-color: #6ee7b7; color: var(--green); }

.kbo-link-row { margin-top: .75rem; }
.kbo-link-row a { color: var(--blue); font-size: .875rem; text-decoration: underline; }

/* ── Manual checks grid ── */
.checks-grid { display: flex; flex-direction: column; gap: 1rem; }

.check-block {
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}
.check-block-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1.5px solid var(--gray-200);
}
.check-num {
  width: 28px; height: 28px;
  background: var(--blue); color: white;
  border-radius: 50%; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.check-block-header h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.check-block-header p  { font-size: .82rem; color: var(--gray-600); margin-top: .1rem; }
.check-link {
  margin-left: auto; flex-shrink: 0;
  background: var(--blue); color: white;
  padding: .35rem .75rem; border-radius: 6px;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background .15s;
}
.check-link:hover { background: var(--blue-dark); }

.check-block-body { padding: 1rem 1.25rem; }

.radio-group { display: flex; flex-direction: column; gap: .45rem; }
.radio-option {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .5rem .75rem; border-radius: 8px;
  border: 1.5px solid var(--gray-200); cursor: pointer;
  transition: all .15s;
}
.radio-option:hover { border-color: var(--blue); background: var(--blue-light); }
.radio-option input[type=radio] { margin-top: .15rem; accent-color: var(--blue); }
.radio-option.selected { border-color: var(--blue); background: var(--blue-light); }
.radio-option .opt-label { font-weight: 600; font-size: .9rem; }
.radio-option .opt-desc { font-size: .8rem; color: var(--gray-600); }
.radio-option.opt-green .opt-label { color: var(--green); }
.radio-option.opt-orange .opt-label { color: var(--orange); }
.radio-option.opt-red .opt-label { color: var(--red); }

/* ── Score section ── */
.score-wrapper {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; padding: 1rem 0;
}

.gauge-container { position: relative; width: 200px; height: 200px; }
.gauge-container svg { width: 100%; height: 100%; }
.gauge-bg { fill: none; stroke: var(--gray-200); stroke-width: 14; }
.gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1), stroke .5s; }
.gauge-text-score { font-size: 2.8rem; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.gauge-text-label { font-size: .8rem; text-anchor: middle; dominant-baseline: middle; fill: var(--gray-400); }

.score-label {
  text-align: center;
  font-size: 1.4rem; font-weight: 800;
  padding: .5rem 1.5rem;
  border-radius: 999px;
}
.score-label.score-green  { background: var(--green-light);  color: var(--green); }
.score-label.score-yellow { background: var(--orange-light); color: var(--orange); }
.score-label.score-orange { background: #fde8d0; color: #92400e; }
.score-label.score-red    { background: var(--red-light);   color: var(--red); }

.score-breakdown {
  width: 100%;
  border: 1.5px solid var(--gray-200); border-radius: 10px; overflow: hidden;
  margin-top: .5rem;
}
.score-breakdown table { width: 100%; border-collapse: collapse; }
.score-breakdown th {
  background: var(--gray-50); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500, #6b7280);
  padding: .6rem 1rem; text-align: left; border-bottom: 1.5px solid var(--gray-200);
}
.score-breakdown td { padding: .65rem 1rem; font-size: .9rem; border-bottom: 1px solid var(--gray-100); }
.score-breakdown tr:last-child td { border-bottom: none; }
.score-breakdown .td-score { text-align: right; font-weight: 700; }
.score-breakdown .total-row td { background: var(--gray-50); font-weight: 700; border-top: 2px solid var(--gray-200); }

.bar-cell { width: 100px; }
.mini-bar { height: 8px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.mini-bar-fill { height: 100%; border-radius: 4px; background: var(--blue); transition: width 1s; }

.advice-box {
  width: 100%;
  border-radius: 10px; padding: 1.1rem 1.25rem;
  border: 1.5px solid;
  margin-top: .5rem;
}
.advice-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.advice-box ul { padding-left: 1.25rem; font-size: .88rem; line-height: 1.8; }
.advice-box.advice-green  { background: var(--green-light);  border-color: #6ee7b7; color: #065f46; }
.advice-box.advice-yellow { background: var(--orange-light); border-color: #fcd34d; color: #78350f; }
.advice-box.advice-orange { background: #fde8d0; border-color: #fbbf24; color: #78350f; }
.advice-box.advice-red    { background: var(--red-light);   border-color: #fca5a5; color: #7f1d1d; }

/* ── Footer ── */
.site-footer {
  background: var(--gray-900); color: var(--gray-400);
  text-align: center; padding: 1.5rem 1rem; font-size: .8rem;
  margin-top: 2rem;
}
.site-footer p { margin-bottom: .3rem; }
.footer-sources { color: var(--gray-600, #4b5563); font-size: .75rem; }
.footer-ownership {
  color: var(--gray-600, #4b5563);
  font-size: .78rem;
  margin-top: .65rem !important;
  padding-top: .65rem;
  border-top: 1px solid var(--gray-200);
}
.footer-ownership strong { color: var(--gray-700); }

/* ── Print ── */
@media print {
  .site-header { background: white; color: black; }
  .btn, .search-form, .form-footer, .site-footer { display: none; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .step-card.hidden { display: block !important; }
  #step-input { display: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
   Nieuwe bronnen: Companyweb, Reviews, Inhoudingsplicht
   ════════════════════════════════════════════════════════════════════════ */

.fte-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 100px;
  margin-top: .5rem;
  padding: .5rem;
  background: #f9fafb;
  border-radius: 6px;
}
.fte-bar {
  flex: 1;
  background: linear-gradient(to top, #1a56db, #3b82f6);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-size: .7rem;
  padding-bottom: .25rem;
}
.fte-bar span { font-weight: 600; }

.pub-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  font-size: .85rem;
}
.pub-list li {
  padding: .25rem 0;
  border-bottom: 1px dashed #e5e7eb;
}
.pub-list li:last-child { border-bottom: none; }
.pub-date {
  display: inline-block;
  font-family: monospace;
  color: #6b7280;
  margin-right: .5rem;
  min-width: 80px;
}

.review-source-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
}
.review-source-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .4rem 0;
  border-bottom: 1px dashed #e5e7eb;
}
.review-source-row:last-child { border-bottom: none; }
.review-source-name { font-weight: 600; color: #374151; }
.review-source-val { font-size: .9rem; color: #1f2937; }
.review-source-link {
  text-decoration: none;
  color: #1a56db;
  font-weight: bold;
  padding: 0 .25rem;
}

/* Test-Aankoop publieke klachten (bron 10) */
.klachten-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: .5rem 0 .75rem;
}
.klachten-list li {
  padding: .35rem 0;
  font-size: .9rem;
  color: #374151;
  border-bottom: 1px dashed #e5e7eb;
}
.klachten-list li:last-child { border-bottom: none; }
.klachten-clean {
  color: #047857;
  font-weight: 500;
  background: #d1fae5;
  padding: .5rem .75rem;
  border-radius: 6px;
  margin: .5rem 0;
}
.klachten-disclaimer {
  font-size: .85rem;
  color: #6b7280;
  margin-top: .5rem;
}
.klachten-disclaimer a { color: inherit; text-decoration: underline; }

/* Bestuurders-historiek (legacy — wordt niet meer gebruikt, maar CSS blijft voor migratie) */
.director-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
}
.director-list li {
  padding: .55rem .75rem;
  margin-bottom: .35rem;
  border-radius: 6px;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.director-list li:has(.director-flag) {
  background: #fef3c7;
  border-left-color: #f59e0b;
}
.director-role {
  font-size: .85rem;
  color: #6b7280;
  font-style: italic;
}
.director-flag {
  margin-left: auto;
  color: #b45309;
  font-weight: 600;
  font-size: .9rem;
}
.director-clean {
  margin-left: auto;
  color: #047857;
  font-size: .9rem;
}
.director-disclaimer {
  margin-top: .75rem;
  padding: .5rem .75rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: .85rem;
  color: #4b5563;
}

/* Graceful degradation */
.score-bar-unavailable .score-bar-label,
.score-bar-unavailable .score-bar-value {
  color: #9ca3af;
  font-style: italic;
}
.degradation-note {
  margin: .5rem 0;
  padding: .5rem .75rem;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: .9rem;
  color: #78350f;
}
.banner-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: .75rem 1rem;
  border-radius: 6px;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.banner-warning .banner-icon { font-size: 1.4rem; }
.banner-warning .banner-title { font-weight: 600; color: #78350f; }
.banner-warning .banner-desc  { color: #92400e; font-size: .9rem; }

/* KBO rechtstoestand-waarschuwing in de info-rij */
.kbo-legal-warn {
  color: #991b1b;
  font-weight: 600;
  background: #fee2e2;
  padding: .15rem .5rem;
  border-radius: 4px;
}

/* Faillissement-override banner — kritiek-rood, niet warning-geel */
.bankruptcy-banner {
  background: #fee2e2;
  border-left: 5px solid #dc2626;
  color: #7f1d1d;
  display: block;
  margin: .75rem 0 1rem;
  padding: 1rem 1.25rem;
}
.bankruptcy-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: #991b1b;
  letter-spacing: .02em;
}
.bankruptcy-banner ul {
  margin: .25rem 0 .5rem 1.25rem;
  padding: 0;
}
.bankruptcy-banner li {
  font-size: .92rem;
  margin: .15rem 0;
}
.bankruptcy-banner p {
  margin: .35rem 0 0;
  font-size: .92rem;
  font-weight: 500;
}

/* ─── Taalkeuze in de header ─── */
.site-header { position: relative; }
.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  gap: .25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: .15rem;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .15s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.15); }
.lang-btn.active {
  background: #fff;
  color: #1f2937;
}
@media print {
  .lang-switcher { display: none; }
}

/* ─── Financiële kerncijfers (CBSO-card) ─── */
.fin-block {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  padding: .75rem 1rem;
  border-radius: 6px;
  margin-top: .75rem;
}
.fin-table {
  width: 100%;
  border-collapse: collapse;
  margin: .5rem 0 .25rem;
  font-size: .92rem;
}
.fin-table th, .fin-table td {
  padding: .35rem .65rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}
.fin-table th {
  font-weight: 500;
  color: #374151;
  width: 38%;
  white-space: nowrap;
}
.fin-table th small {
  color: #9ca3af;
  font-weight: 400;
  margin-left: .25rem;
}
.fin-table td {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  color: #111827;
}
.fin-table .fin-sub {
  font-weight: 400;
  color: #6b7280;
  padding-left: 1.25rem;
}
.fin-table tr:last-child th,
.fin-table tr:last-child td { border-bottom: none; }
.fin-table .fin-ratio {
  font-family: inherit;
  font-weight: 400;
  color: #4b5563;
  text-align: right;
}
.fin-ok { color: #047857 !important; }
.fin-mid { color: #b45309 !important; }
.fin-ko { color: #991b1b !important; }
.fin-disclaimer {
  font-size: .8rem;
  color: #6b7280;
  margin: .5rem 0 0;
}

/* ─── KBO naam-zoekresultaten ─── */
#search-results {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}
.search-results-title {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: #1f2937;
}
.search-results-hint {
  margin: 0 0 .75rem;
  font-size: .88rem;
  color: #6b7280;
}
.search-results-note {
  margin-top: .75rem;
  font-size: .85rem;
  color: #92400e;
  background: #fef3c7;
  padding: .5rem .75rem;
  border-radius: 6px;
}
.search-busy {
  margin: 0;
  color: #6b7280;
  font-style: italic;
}
.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.search-result-row {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: .65rem .85rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.search-result-row:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.search-result-main {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
  margin-bottom: .25rem;
}
.search-result-main strong { color: #111827; }
.search-result-kbo {
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: #2563eb;
  font-size: .85rem;
  white-space: nowrap;
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: #4b5563;
}
.search-result-type {
  font-weight: 600;
  color: #6b7280;
}
.search-result-status {
  padding: .05rem .5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: .78rem;
}
.search-result-status.status-active {
  background: #d1fae5;
  color: #047857;
}
.search-result-status.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}
.search-result-addr {
  flex: 1;
  min-width: 200px;
  color: #6b7280;
  font-style: italic;
}

/* ─── Cofix manuele check — CTA-card en bestelmodal ─── */
.cofix-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.cofix-cta-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.cofix-cta-body { flex: 1; }
.cofix-cta-body h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  color: #fff;
}
.cofix-cta-body p {
  margin: 0 0 .85rem;
  line-height: 1.5;
  color: #dbeafe;
}
.cofix-cta-body p strong { color: #fff; }
.cofix-cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .88rem;
  color: #dbeafe;
  margin-bottom: 1rem;
}
.cofix-cta-meta strong { color: #fff; }
.cofix-provider {
  margin-left: auto;
  font-style: italic;
  opacity: .8;
}
.btn-cofix {
  background: #f59e0b;
  color: #1e293b;
  padding: .85rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-cofix:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .cofix-cta { flex-direction: column; }
  .cofix-cta-icon { width: 48px; height: 48px; font-size: 2rem; }
  .cofix-provider { margin-left: 0; }
}
@media print { .cofix-cta { display: none; } }

/* Modal-overlay */
.cofix-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body.modal-open { overflow: hidden; }

.cofix-modal {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp .2s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cofix-modal h2 {
  margin: 0 0 .25rem;
  font-size: 1.4rem;
  color: #1f2937;
}
.cofix-modal-sub {
  margin: 0 0 1.25rem;
  color: #6b7280;
  font-size: .9rem;
}
.cofix-modal-close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  background: transparent;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  padding: .25rem .5rem;
  border-radius: 4px;
}
.cofix-modal-close:hover { background: #f3f4f6; color: #4b5563; }

.cofix-form { display: flex; flex-direction: column; gap: .85rem; }
.cofix-field { display: flex; flex-direction: column; gap: .25rem; }
.cofix-field label {
  font-size: .85rem;
  font-weight: 500;
  color: #374151;
}
.cofix-field .req { color: #dc2626; font-weight: 400; font-size: .75rem; }
.cofix-field .opt { color: #9ca3af; font-weight: 400; font-size: .75rem; }
.cofix-field input {
  padding: .55rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
}
.cofix-field input:focus {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.cofix-summary {
  background: #f9fafb;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .95rem;
  color: #374151;
  margin-top: .5rem;
}
.cofix-info {
  font-size: .82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}
.cofix-error {
  background: #fee2e2;
  border-left: 3px solid #dc2626;
  color: #991b1b;
  padding: .55rem .75rem;
  border-radius: 4px;
  font-size: .88rem;
}
.cofix-buttons {
  display: flex;
  gap: .65rem;
  margin-top: .5rem;
}
.cofix-buttons .btn { flex: 1; }
.cofix-submit:disabled { opacity: .6; cursor: progress; }

@media (max-width: 480px) {
  .cofix-modal { padding: 1.5rem 1.25rem 1rem; }
  .cofix-buttons { flex-direction: column-reverse; }
}

/* ─── Lang-knop disabled bij analyse ─── */
.lang-btn:disabled,
.lang-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.lang-btn.locked:hover { background: transparent; }

/* ─── CheckInhoudingsplicht — manuele modal ─── */
.cip-step {
  margin: .85rem 0;
  font-size: .92rem;
  color: #374151;
}
.cip-step p { margin: 0 0 .35rem; }
.cip-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: .65rem 0;
}
.cip-fieldset legend {
  padding: 0 .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
}
.cip-radio {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  cursor: pointer;
  font-size: .92rem;
}
.cip-radio:hover { color: #1d4ed8; }
.cip-radio input { margin: 0; }
.cip-radio-warn {
  color: #991b1b;
}
.cip-warning {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #78350f;
  padding: .65rem .85rem;
  border-radius: 4px;
  font-size: .85rem;
  margin: 1rem 0;
}
.cip-manual-btn {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #f59e0b;
}
.cip-manual-btn:hover {
  background: #fde68a;
}

/* ─── Live captcha-modal (iframe naar checkinhoudingsplicht.be) ─── */
.cip-captcha-modal {
  max-width: 760px;
  width: 100%;
  padding: 1.75rem 1.75rem 1.25rem;
}
.cip-captcha-iframe-wrap {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin: .85rem 0;
  background: #f9fafb;
}
.cip-captcha-iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
  background: #fff;
}
.cip-captcha-iframe-fallback {
  display: none;
  padding: 1.5rem;
  text-align: center;
  color: #6b7280;
}
.cip-captcha-iframe-fallback p { margin-bottom: .85rem; font-size: .92rem; }
/* Toon fallback als iframe niet geladen kan worden */
.cip-captcha-iframe[data-failed="true"] { display: none; }
.cip-captcha-iframe[data-failed="true"] + .cip-captcha-iframe-fallback {
  display: block;
}
.cip-captcha-hint {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  padding: .55rem .85rem;
  border-radius: 4px;
  font-size: .92rem;
  color: #1e3a8a;
  margin: .85rem 0;
  font-weight: 500;
}
@media (max-width: 700px) {
  .cip-captcha-modal { max-width: 100%; padding: 1.25rem 1rem 1rem; }
  .cip-captcha-iframe { height: 380px; }
}

/* ─── Status-indicator in captcha-modal (vervangt radio-form) ─── */
.cip-captcha-status {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  padding: .75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: .92rem;
  color: #1e3a8a;
  font-weight: 500;
  transition: background .25s, border-color .25s, color .25s;
}
.cip-captcha-status.cip-status-success {
  background: #d1fae5;
  border-left-color: #059669;
  color: #065f46;
}
.cip-status-spinner {
  width: 16px; height: 16px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
.cip-status-ok {
  font-size: 1.2rem;
  color: #059669;
  font-weight: 700;
}

/* ─── Manuele CIP-modal: 3-stappen layout ─── */
.cip-manual-modal {
  max-width: 560px;
  width: 100%;
}
.cip-manual-modal .cip-step {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .85rem 0;
  border-top: 1px solid #f3f4f6;
}
.cip-manual-modal .cip-step:first-of-type { border-top: 0; }
.cip-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}
.cip-step-body { flex: 1; }
.cip-step-body p { margin: 0 0 .5rem; font-size: .92rem; color: #374151; line-height: 1.45; }

.cip-kbo-copy { margin-top: .5rem; }
.cip-kbo-copy label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  margin-bottom: .35rem;
  font-weight: 600;
}
.cip-kbo-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.cip-kbo-value {
  flex: 1;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: .65rem .85rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  user-select: all;
  letter-spacing: .03em;
}
.cip-copy-btn {
  white-space: nowrap;
  padding: .5rem 1rem;
}
.cip-copy-btn.cip-copy-ok {
  background: #d1fae5;
  border-color: #059669;
  color: #047857;
}
.cip-open-site {
  display: inline-flex;
}

/* ─── Inhoudingsplicht-modal: iframe + kopieer-veld + radio-velden ─── */
.cip-iframe-modal {
  max-width: 760px;
  width: 100%;
  padding: 1.75rem 1.75rem 1.25rem;
}
.cip-iframe-modal .cip-kbo-copy {
  margin: 1rem 0;
}
.cip-iframe-modal .cip-kbo-copy label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  margin-bottom: .35rem;
  font-weight: 600;
}
.cip-iframe-modal .cip-kbo-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.cip-iframe-modal .cip-kbo-value {
  flex: 1;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 6px;
  padding: .65rem .85rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  user-select: all;
  letter-spacing: .03em;
  text-align: center;
}
.cip-iframe-modal .cip-copy-btn {
  white-space: nowrap;
  padding: .5rem 1rem;
}
.cip-iframe-modal .cip-copy-btn.cip-copy-ok {
  background: #d1fae5;
  border-color: #059669;
  color: #047857;
}

/* ─── "Is de pagina niet zichtbaar?" rij onder iframe ─── */
.cip-not-visible-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  margin: .5rem 0 .85rem;
  padding: .5rem 0;
  font-size: .88rem;
  color: #6b7280;
}
.cip-not-visible-q {
  font-style: italic;
}
.cip-open-newtab {
  padding: .35rem .75rem;
  font-size: .85rem;
}
@media (max-width: 600px) {
  .cip-not-visible-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ─── Bestuurders-historiek info-card (geen score-impact) ─── */
.directors-info-card {
  border-left: 4px solid #6366f1;
  background: #fafbff;
}
.card-header-info {
  margin-bottom: 1rem;
}
.card-header-info h3 {
  margin: .25rem 0 .15rem;
  font-size: 1.1rem;
  color: #1f2937;
}
.card-header-info .card-subtitle {
  font-size: .85rem;
  color: #6b7280;
  margin: 0;
}
.info-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .15rem .5rem;
  border-radius: 4px;
}

.directors-summary {
  padding: .65rem .85rem;
  border-radius: 6px;
  margin: .85rem 0;
  font-size: .92rem;
}
.directors-summary.ok {
  background: #d1fae5;
  color: #065f46;
}
.directors-summary.warn {
  background: #fef3c7;
  color: #78350f;
  border-left: 3px solid #f59e0b;
}

.directors-info-card .director-list {
  list-style: none;
  padding: 0;
  margin: .35rem 0 0;
}
.directors-info-card .director-item {
  padding: .55rem .75rem;
  margin-bottom: .35rem;
  border-radius: 6px;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.directors-info-card .director-item.director-flag {
  background: #fef3c7;
  border-left-color: #f59e0b;
}
.directors-info-card .director-item.director-clean {
  background: #f0fdf4;
  border-left-color: #86efac;
}
.directors-info-card .director-role {
  font-size: .82rem;
  color: #6b7280;
  font-style: italic;
}
.directors-info-card .director-finding {
  margin-left: auto;
  font-size: .85rem;
  color: #b45309;
  font-weight: 600;
}
.directors-info-card .director-finding.ok {
  color: #047857;
  font-weight: 500;
}
.directors-disclaimer {
  font-size: .8rem;
  color: #6b7280;
  margin-top: 1rem;
  line-height: 1.45;
  background: #f3f4f6;
  padding: .65rem .85rem;
  border-radius: 6px;
}
.directors-info-card .muted {
  color: #6b7280;
  font-style: italic;
  font-size: .92rem;
}

/* ─── Cookie-banner (GDPR-consent) ─── */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 3px solid #2563eb;
  box-shadow: 0 -8px 24px rgba(0,0,0,.1);
  z-index: 9999;
  animation: cookieSlideUp .3s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 280px; }
.cookie-banner-text strong {
  display: block;
  color: #111827;
  font-size: 1rem;
  margin-bottom: .25rem;
}
.cookie-banner-text p {
  font-size: .88rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.45;
}
.cookie-banner-text a { color: #2563eb; }
.cookie-banner-buttons {
  display: flex;
  gap: .65rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-buttons { justify-content: stretch; }
  .cookie-banner-buttons .btn { flex: 1; justify-content: center; }
}
@media print {
  #cookie-banner { display: none; }
}

/* ─── NACE-diversificatiepenalty ─── */
.diversification-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: .8rem 1rem;
  border-radius: 6px;
  margin: .75rem 0 1rem;
  color: #78350f;
}
.diversification-note strong { display: block; margin-bottom: .35rem; }
.diversification-note p { margin: 0; font-size: .88rem; line-height: 1.45; }

.nace-diversification {
  background: #fef3c7 !important;
  border-left: 3px solid #f59e0b;
  padding: .75rem 1rem !important;
  border-radius: 6px;
  margin-top: 1rem;
}
.nace-diversification strong { color: #78350f; }
.nace-diversification p {
  margin: .4rem 0;
  font-size: .88rem;
  color: #92400e;
}
.nace-div-total {
  margin-top: .5rem !important;
  padding-top: .5rem;
  border-top: 1px solid rgba(245, 158, 11, .35);
}
.nace-ul li.nace-extra {
  opacity: .75;
  border-left: 3px solid transparent;
  padding-left: .35rem;
}

/* ─── Inhoudingsplicht: default-aanname vs. handmatig geverifieerd ─── */
.cip-default-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  padding: .85rem 1rem;
  margin-top: 1rem;
  color: #1e3a8a;
}
.cip-default-box strong { display: block; margin-bottom: .4rem; }
.cip-default-box p {
  margin: 0 0 .75rem;
  font-size: .9rem;
  line-height: 1.5;
  color: #1e40af;
}
.cip-verified-box {
  background: #d1fae5;
  border-left: 4px solid #059669;
  border-radius: 6px;
  padding: .85rem 1rem;
  margin-top: 1rem;
  color: #065f46;
}
.cip-verified-box strong { display: block; }
