/* ============================================
   BRIEFHULP FR — STYLES.CSS
   Poppins (headings), Mulish (body)
   Primary: #800000, line-height 1.8em
   ============================================ */

:root {
  --primary: #800000;
  --primary-light: rgba(128, 0, 0, 0.08);
  --primary-hover: rgba(128, 0, 0, 0.12);
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #faf9f7;
  --card: #fff;
  --border: #e5e2de;
  --success: #2e7d32;
  --warning-bg: #fff8e1;
  --warning-border: #f9a825;
  --error-bg: #fde8e8;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  line-height: 1.8em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.bh-header {
  background: var(--card);
  border-bottom: 3px solid var(--primary);
  padding: 20px 24px;
  text-align: center;
}
.bh-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.bh-header p {
  font-size: .9em;
  color: var(--text-light);
  margin-top: 2px;
}
.bh-header-link {
  display: inline-block;
  margin-top: 6px;
  font-size: .82em;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  opacity: .7;
}
.bh-header-link:hover { opacity: 1; text-decoration: underline; }

/* ===== WIZARD CONTAINER ===== */
.bh-wizard {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* ===== STEP HEADER ===== */
.bh-step-header {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .85em;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== BACK BUTTON ===== */
.bh-back {
  display: inline-block;
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Mulish', sans-serif;
  font-size: .9em;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 4px;
}
.bh-back:hover { text-decoration: underline; }

/* ===== CARD GRID (Stap 1) ===== */
.bh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.bh-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bh-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.bh-card-icon { font-size: 1.8em; }
.bh-card-naam { font-weight: 700; font-size: .9em; }
.bh-card-desc { font-size: .75em; color: var(--text-light); line-height: 1.4em; }

/* ===== LIST (Stap 2) ===== */
.bh-list { display: flex; flex-direction: column; gap: 8px; }
.bh-list-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.bh-list-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.bh-list-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .85em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bh-list-label { font-weight: 600; font-size: .95em; }

/* ===== BADGES ===== */
.bh-badge {
  display: inline-block;
  font-size: .85em;
  margin-left: 4px;
  vertical-align: middle;
}

/* ===== NIVEAUS (Stap 3) ===== */
.bh-niveaus { display: flex; flex-direction: column; gap: 10px; }
.bh-niveau {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.bh-niveau:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.bh-niveau-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bh-niveau-icon { font-size: 1.6em; flex-shrink: 0; }
.bh-niveau-info { flex: 1; }
.bh-niveau-info strong { font-size: .95em; }
.bh-niveau-toon { font-size: .8em; color: var(--text-light); }
.bh-niveau-desc {
  font-size: .85em;
  color: var(--text);
  margin: 8px 0;
  padding-left: 44px;
}
.bh-niveau-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8em;
  color: var(--text-light);
  padding-left: 44px;
}

/* ===== FORMULIER (Stap 4) ===== */
.bh-fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--card);
}
.bh-fieldset legend {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95em;
  color: var(--primary);
  padding: 0 8px;
}
.bh-fieldset label {
  display: block;
  font-weight: 600;
  font-size: .85em;
  margin: 10px 0 4px;
}
.bh-fieldset label:first-of-type { margin-top: 4px; }
.bh-hint { font-weight: 400; color: var(--text-light); }

.bh-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Mulish', sans-serif;
  font-size: .95em;
  line-height: 1.6em;
  background: #fff;
  transition: border-color .15s;
}
.bh-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
}
.bh-input-error { border-color: #c62828 !important; }
.bh-textarea { resize: vertical; min-height: 100px; }

.bh-cache-hint {
  font-size: .8em;
  color: var(--text-light);
  margin-top: 4px;
}

.bh-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--primary-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9em;
  font-weight: 600;
  margin-bottom: 16px;
}
.bh-summary-sep { color: var(--text-light); font-weight: 400; }

/* ===== BEDRIJFSZOEK ===== */
.bh-results {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 8px;
  margin-top: 4px;
}
.bh-result-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-top: none;
  cursor: pointer;
  background: #fff;
  font-size: .9em;
  transition: background .1s;
}
.bh-result-item:first-child { border-top: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.bh-result-item:last-child { border-radius: 0 0 8px 8px; }
.bh-result-item:hover { background: var(--primary-light); }
.bh-result-adres { font-size: .85em; color: var(--text-light); margin-top: 2px; }
.bh-searching, .bh-no-result {
  padding: 10px 12px;
  font-size: .85em;
  color: var(--text-light);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.bh-search-hint {
  padding: 8px 12px;
  font-size: .85em;
  color: var(--text-light);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-top: none;
}
.bh-search-hint:first-child { border-top: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.bh-search-hint:last-child { border-radius: 0 0 8px 8px; }

/* ===== BUTTONS ===== */
.bh-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}
.bh-btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9em;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.bh-btn:hover { opacity: .85; }
.bh-btn-primary { background: var(--primary); color: #fff; }
.bh-btn-secondary { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.bh-btn-sm { padding: 8px 16px; font-size: .8em; }

/* ===== WARNING / NOTICE ===== */
.bh-warning {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .9em;
  line-height: 1.6em;
  margin-bottom: 12px;
}
.bh-model-notice {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9em;
  margin-bottom: 12px;
}
.bh-intro { font-size: .9em; color: var(--text-light); margin-bottom: 12px; }

/* ===== LOADING ===== */
.bh-loading {
  text-align: center;
  padding: 60px 20px;
}
.bh-spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: bh-spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes bh-spin { to { transform: rotate(360deg); } }
.bh-loading p { font-size: .95em; margin: 4px 0; }
.bh-loading-detail { font-size: .85em; color: var(--text-light); }

/* ===== ERROR ===== */
.bh-error {
  text-align: center;
  padding: 40px 20px;
  background: var(--error-bg);
  border-radius: var(--radius);
}
.bh-error p { margin-bottom: 16px; }

/* ===== RESULT ===== */
/* Generatie-modus badges */
.bh-gen-badge {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Mulish', sans-serif;
  font-size: .85em;
  font-weight: 600;
  margin-bottom: 12px;
}
.bh-gen-cache {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.bh-gen-basis {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}
.bh-gen-vrij {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.bh-result-header {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.bh-letter {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.bh-letter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}
.bh-letter-text {
  padding: 20px;
  font-family: 'Mulish', sans-serif;
  font-size: .9em;
  line-height: 1.8em;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text);
  background: #fff;
  margin: 0;
}

/* ===== TOELICHTING ===== */
.bh-toelichting {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.bh-toelichting-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95em;
  color: var(--primary);
  margin-bottom: 10px;
}
.bh-toelichting-body { font-size: .9em; }
.bh-toelichting-body p { margin-bottom: 8px; }
.bh-toelichting-body ul { padding-left: 20px; margin-bottom: 8px; }
.bh-toelichting-body li { margin-bottom: 4px; }
.bh-toel-heading { font-weight: 700; margin: 12px 0 4px; }

/* ===== BRONVERMELDING ===== */
.bh-bron {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .85em;
  margin-bottom: 14px;
}
.bh-bron ul { padding-left: 20px; margin-top: 6px; }
.bh-bron li { margin-bottom: 4px; }
.bh-bron a { color: var(--primary); }
.bh-ref { color: var(--text-light); font-size: .9em; }

/* ===== ESCALATIE HINT ===== */
.bh-escalatie {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .9em;
  line-height: 1.6em;
  margin-bottom: 14px;
}

/* ===== HISTORIE ===== */
.bh-historie {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.bh-historie-title {
  font-weight: 700;
  font-size: .9em;
  margin-bottom: 8px;
}
.bh-historie-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  gap: 12px;
}
.bh-historie-item:hover { background: var(--primary-light); margin: 0 -16px; padding: 8px 16px; border-radius: 6px; }
.bh-historie-info { flex: 1; font-size: .85em; }
.bh-historie-meta { font-size: .8em; color: var(--text-light); }
.bh-historie-opschalen {
  font-size: .8em;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.bh-footer {
  text-align: center;
  padding: 20px 16px 40px;
  font-size: .8em;
  color: var(--text-light);
}
.bh-footer a { color: var(--primary); text-decoration: none; }
.bh-footer a:hover { text-decoration: underline; }

/* ===== ADDRESS FIELDS ===== */
.bh-input-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.bh-input-pc { max-width: 120px; flex-shrink: 0; }
.bh-input-stad { flex: 1; }
.bh-adres-hint {
  font-size: .8em;
  color: var(--text-light);
  margin: 6px 0 8px;
  line-height: 1.5em;
}
.bh-result-hq {
  font-size: .8em;
  color: var(--text-light);
  font-style: italic;
}

/* ===== REF WARNING ===== */
.bh-ref-warning {
  background: #fff8e1;
  border: 1.5px solid #f9a825;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .9em;
  line-height: 1.6em;
  margin-bottom: 12px;
}
.bh-ref-warning-actions {
  margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .bh-grid { grid-template-columns: repeat(2, 1fr); }
  .bh-niveau-desc, .bh-niveau-meta { padding-left: 0; }
  .bh-actions { flex-direction: column; }
  .bh-actions .bh-btn { width: 100%; text-align: center; }
  .bh-letter-actions { flex-direction: column; }
  .bh-letter-actions .bh-btn { width: 100%; text-align: center; }
  .bh-summary { font-size: .8em; }
  .bh-detail-bottom-actions { flex-direction: column; }
  .bh-detail-bottom-actions .bh-btn { width: 100%; text-align: center; }
}

/* ===== BRIEFDETAIL ===== */
.bh-detail-header {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 8px;
}
.bh-detail-meta {
  font-family: 'Mulish', sans-serif;
  font-size: .85em;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}
.bh-detail-bottom-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== TERMIJN ===== */
.bh-termijn {
  font-size: .8em;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
}
.bh-termijn-lopend { background: #e8f5e9; color: #2e7d32; }
.bh-termijn-verlopen { background: var(--error-bg); color: #c62828; }
.bh-termijn-bar {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin: 10px 0;
  font-size: .9em;
}
.bh-termijn-bar.bh-termijn-lopend { background: #e8f5e9; border: 1px solid #a5d6a7; }
.bh-termijn-bar.bh-termijn-verlopen { background: var(--error-bg); border: 1px solid #ef9a9a; }

/* ===== EDITING STATE ===== */
.bh-editing {
  outline: 2px solid var(--primary) !important;
  background: #fffef5 !important;
  cursor: text;
}

/* ===== VERZEND REGISTRATIE ===== */
.bh-verzend-registratie {
  margin: 10px 0;
}
.bh-btn-accent {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}
.bh-btn-accent:hover { background: #1b5e20; border-color: #1b5e20; }

/* ===== DANGER BUTTON ===== */
.bh-btn-danger {
  background: none;
  color: #999;
  border: 1px solid #ddd;
}
.bh-btn-danger:hover { color: #c62828; border-color: #ef9a9a; background: var(--error-bg); }

/* ===== RECOMMANDE ===== */
.bh-recommande {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bh-recommande summary {
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--card);
}
.bh-recommande summary:hover { background: var(--primary-light); }
.bh-recommande-body {
  padding: 12px 14px;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.bh-recommande-body p { margin-bottom: 8px; }
.bh-recommande-body a { color: var(--primary); }

/* ===== OPSCHAAL NOTICE ===== */
.bh-opschaal-notice {
  background: rgba(128,0,0,0.06);
  border: 1px solid rgba(128,0,0,0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: .9em;
}

/* ===== TOELICHTING DETAILS ===== */
.bh-toelichting-details {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bh-toelichting-details summary {
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--card);
}
.bh-toelichting-details .bh-toelichting-body {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

/* ===== ZOEK DETAILS ===== */
.bh-zoek-details {
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bh-zoek-details summary {
  padding: 8px 12px;
  font-size: .88em;
  color: var(--text-light);
  cursor: pointer;
}
.bh-zoek-body { padding: 8px 12px 12px; }

/* ===== NO BRIEF ===== */
.bh-no-brief {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  background: var(--primary-light);
  border-radius: var(--radius);
  margin: 12px 0;
}

/* ===== HISTORIE ENHANCEMENTS ===== */
.bh-historie-has-text {
  font-size: 1.1em;
  opacity: .6;
}
.bh-btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Mulish', sans-serif;
  font-size: .88em;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.bh-btn-link:hover { text-decoration: underline; }

/* ===== ADMIN AUTO-LOOKUP ===== */
.bh-admin-suggestion { margin: 10px 0; }
.bh-admin-found {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 14px;
}
.bh-admin-found-title { font-size: .85em; color: #2e7d32; font-weight: 600; margin-bottom: 4px; }
.bh-admin-found-naam { margin-bottom: 4px; }
.bh-admin-found-adres { font-size: .9em; color: var(--text-light); margin-bottom: 4px; }
.bh-admin-found-tel { font-size: .85em; color: var(--text-light); margin-bottom: 10px; }
.bh-admin-not-found {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .9em;
}
.bh-admin-accepted {
  color: #2e7d32;
  font-weight: 600;
  font-size: .9em;
  padding: 8px 0;
}

/* ===== VOORGEDEFINIEERDE ONTVANGERS ===== */
.bh-bekenden { margin: 10px 0; }
.bh-bekenden-title { font-size: .88em; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.bh-bekenden-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bh-bekende-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  font-family: 'Mulish', sans-serif;
  font-size: .85em;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.bh-bekende-btn:hover { border-color: var(--primary); color: var(--primary); }
.bh-bekende-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.bh-bekende-detail { margin: 10px 0; }
.bh-bekende-found {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.bh-bekende-adres { font-size: .9em; color: var(--text-light); }
.bh-bekende-hint { font-size: .85em; color: var(--text-light); margin-top: 4px; }
.bh-bekende-warn { font-size: .82em; color: #e65100; margin: 6px 0 10px; }
.bh-bekende-no-adres {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.bh-bekenden-of {
  text-align: center;
  font-size: .82em;
  color: var(--text-light);
  margin: 12px 0 4px;
}

/* ===== ADRES HULP MODAL ===== */
.bh-adres-hulp {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin: 12px 0;
}
.bh-adres-hulp-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.bh-adres-hulp-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.bh-adres-hulp-note {
  font-size: .82em;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== HULP BEKENDE ITEMS ===== */
.bh-hulp-bekende {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 6px 0;
  cursor: pointer;
  transition: all .15s;
}
.bh-hulp-bekende:hover { border-color: var(--primary); background: var(--primary-light); }
.bh-hulp-bekende-adres { font-size: .85em; color: var(--text-light); margin-top: 2px; }
.bh-hulp-bekende-hint { font-size: .82em; color: var(--text-light); margin-top: 2px; }

/* ===== VOORBEREIDING HINT ===== */
.bh-voorbereiding {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: .88em;
}

/* ===== PREFILL NOTICE ===== */
.bh-prefill-notice {
  color: #2e7d32;
  font-size: .88em;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== ADRES LAAT LEEG HINT ===== */
.bh-adres-laat-leeg {
  font-size: .82em;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== INPUT HIGHLIGHT ===== */
.bh-input-highlight {
  outline: 2px solid var(--primary) !important;
  animation: bh-pulse 1s ease-out;
}
@keyframes bh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(128,0,0,0.3); }
  100% { box-shadow: 0 0 0 8px rgba(128,0,0,0); }
}

/* ===== WIS GEGEVENS ===== */
.bh-btn-wis {
  background: none;
  border: none;
  color: #999;
  font-family: 'Mulish', sans-serif;
  font-size: .8em;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 8px;
}
.bh-btn-wis:hover { color: #c62828; }

/* ===== DISCLAIMER MODAL ===== */
.bh-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bh-modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.bh-modal-content h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 1.15em;
  margin-bottom: 12px;
}
.bh-modal-content p { margin-bottom: 10px; font-size: .92em; }
.bh-modal-content .bh-btn { margin-top: 12px; width: 100%; text-align: center; }

/* ===== VERKORTE DISCLAIMER ===== */
.bh-disclaimer-kort {
  font-size: .78em;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 16px;
}
.bh-disclaimer-kort a { color: var(--primary); }

/* ===== BESLISBOOM ===== */
.bh-juridisch-intro {
  background: var(--primary-light);
  border: 1px solid rgba(128,0,0,0.15);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
.bh-juridisch-intro-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.bh-juridisch-artikel {
  font-size: .88em;
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 3px solid rgba(128,0,0,0.2);
}
.bh-juridisch-bronnen {
  font-size: .82em;
  color: var(--text-light);
  margin-top: 10px;
}
.bh-juridisch-bronnen a { color: var(--primary); }

.bh-boom-vragen { margin: 16px 0; }
.bh-boom-vraag {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.bh-boom-label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.bh-boom-opties {
  display: flex;
  gap: 8px;
}
.bh-boom-opties-vert { flex-direction: column; }
.bh-boom-optie {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-family: 'Mulish', sans-serif;
  font-size: .9em;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.bh-boom-optie:hover { border-color: var(--primary); color: var(--primary); }
.bh-boom-optie-active { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.bh-boom-optie-active * { color: #fff !important; }
.bh-boom-optie-wide { text-align: left; }

/* Keuze meervoudig — checkbox-groep */
.bh-boom-multi { gap: 6px; }
.bh-boom-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  transition: all .15s;
}
.bh-boom-checkbox:hover { border-color: var(--primary); }
.bh-boom-checkbox-active {
  border-color: var(--primary);
  background: rgba(128, 0, 0, 0.06);
}
.bh-boom-cb-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.bh-boom-cb-label {
  font-family: 'Mulish', sans-serif;
  font-size: .9em;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.bh-boom-cb-toelichting {
  width: 100%;
  font-size: .82em;
  color: #666;
  padding-left: 26px;
  margin-top: -2px;
  line-height: 1.4;
}
.bh-boom-checkbox-active .bh-boom-cb-toelichting {
  color: #444;
}
.bh-boom-multi-uitleg {
  margin-top: 8px;
  padding: 10px 14px;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: .85em;
  color: #1565c0;
  line-height: 1.6;
}
.bh-boom-date {
  max-width: 200px;
}
.bh-boom-uitleg {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: .88em;
  color: #1565c0;
}
.bh-boom-bron {
  font-size: .78em;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== ROUTE-ADVIES ===== */
.bh-route-advies {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
}
.bh-route-advies-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.bh-route-info { margin-bottom: 10px; font-size: .92em; }
.bh-route-niveau {
  background: var(--primary-light);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
}
.bh-route-rood {
  background: var(--error-bg);
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 12px;
}
.bh-route-stappen { margin-top: 12px; font-size: .88em; }
.bh-route-stap { padding: 4px 0 4px 16px; color: var(--text-light); }
.bh-route-stap-actief { color: var(--primary); font-weight: 600; }
.bh-route-gratis { font-size: .82em; color: #2e7d32; }

/* ===== NIVEAU AANBEVOLEN ===== */
.bh-niveau-aanbevolen {
  border: 2px solid var(--primary) !important;
  background: var(--primary-light) !important;
}
.bh-niveau-badge {
  font-size: .78em;
  font-weight: 700;
  color: #2e7d32;
  padding: 2px 10px;
  background: #e8f5e9;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
}

/* ===== ESCALATIE WAARSCHUWING ===== */
.bh-escalatie-warning {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0;
}
.bh-escalatie-warning p { margin: 8px 0; }
.bh-escalatie-opties { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bh-escalatie-advies { font-size: .88em; color: var(--text-light); }

/* ===== KWALITEITSINDICATOR ===== */
.bh-kwaliteit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}
.bh-kwaliteit-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: .95em;
}
.bh-kwaliteit-items { display: flex; flex-direction: column; gap: 6px; }
.bh-kwaliteit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .88em;
}
.bh-kwaliteit-icon { flex-shrink: 0; }
.bh-kwaliteit-groen { background: #e8f5e9; }
.bh-kwaliteit-oranje { background: var(--warning-bg); }
.bh-kwaliteit-rood { background: var(--error-bg); }
.bh-kwaliteit-info { background: #e3f2fd; }
.bh-kwaliteit-item a { color: var(--primary); }

/* ===== DOSSIER-SYSTEEM ===== */
.bh-dossier-ref {
  font-size: .88em;
  color: var(--primary);
  padding: 6px 12px;
  background: var(--primary-light);
  border-radius: 8px;
  margin: 8px 0;
  display: inline-block;
}

.bh-dossier-check {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.bh-dossier-check-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.bh-dossier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg);
}
.bh-dossier-info { flex: 1; }
.bh-dossier-meta {
  font-size: .82em;
  color: var(--text-light);
  margin-top: 2px;
}
.bh-dossier-of {
  text-align: center;
  font-size: .82em;
  color: var(--text-light);
  margin: 12px 0 4px;
}

@media (max-width: 480px) {
  .bh-dossier-item { flex-direction: column; align-items: flex-start; }
  .bh-dossier-item .bh-btn { width: 100%; text-align: center; }
}

/* ===== HAALBAARHEIDSTOETS ===== */
.bh-haalbaar-vereisten {
  margin: 16px 0;
}
.bh-haalbaar-vraag {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.bh-haalbaar-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9em;
  line-height: 1.6;
}
.bh-haalbaar-rood {
  background: var(--error-bg);
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}
.bh-haalbaar-oranje {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: #e65100;
}
.bh-haalbaar-groen {
  color: #2e7d32;
}
.bh-haalbaar-resultaat {
  margin: 20px 0;
  padding: 18px;
  border-radius: var(--radius);
}
.bh-haalbaar-groen-blok {
  background: #e8f5e9;
  border: 2px solid #66bb6a;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  color: #1b5e20;
  font-size: .95em;
  line-height: 1.6;
}
.bh-haalbaar-rood-blok {
  background: var(--error-bg);
  border: 2px solid #ef5350;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  color: #b71c1c;
  font-size: .95em;
  line-height: 1.6;
}
.bh-haalbaar-rood-reden {
  background: #fff;
  border-left: 4px solid #ef5350;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: .9em;
  line-height: 1.6;
  color: #333;
}
.bh-haalbaar-oranje-blok {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0;
  font-size: .9em;
  line-height: 1.6;
}
.bh-haalbaar-doorverwijzing {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
  font-size: .9em;
  line-height: 1.8;
}
.bh-btn-warning {
  background: var(--warning-border);
  color: #fff;
  border: none;
  font-weight: 700;
}
.bh-btn-warning:hover {
  background: #f57f17;
}

/* Route-advies extra classes for belasting */
.bh-route-oranje {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}
.bh-route-deruyter {
  background: #e3f2fd;
  border-left: 4px solid #1976d2;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}
.bh-route-opmerkingen {
  margin-top: 12px;
  font-size: .85em;
  color: var(--text-light);
}
.bh-route-opmerking {
  padding: 2px 0;
}

/* Rode vlag badge in kwaliteitsindicator */
.bh-kwaliteit-rodevlag {
  background: var(--error-bg);
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: .85em;
  color: #b71c1c;
}

@media (max-width: 480px) {
  .bh-haalbaar-vraag { padding: 10px; }
  .bh-haalbaar-resultaat { padding: 12px; }
}

/* ===== SCHONE START ===== */
.bh-schone-start {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.bh-schone-start-info {
  font-size: .82em;
  color: var(--text-light);
}
.bh-dossier-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .bh-schone-start { flex-direction: column; align-items: flex-start; }
}

/* ===== DOSSIERBEHEER ===== */
.bh-dossier-ref-klik {
  cursor: pointer;
  transition: background .15s;
}
.bh-dossier-ref-klik:hover {
  background: rgba(128, 0, 0, 0.12);
}
.bh-dossier-ref-hint {
  font-size: .78em;
  font-weight: 400;
  color: var(--primary);
  opacity: .7;
}
.bh-dossier-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
.bh-dossier-detail-row {
  padding: 4px 0;
  font-size: .92em;
  line-height: 1.6;
}
.bh-dossier-corr-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 10px;
}
.bh-dossier-corr-leeg {
  color: var(--text-light);
  font-size: .9em;
  padding: 12px 0;
}
.bh-dossier-corr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.bh-dossier-corr-info { flex: 1; }
.bh-dossier-corr-meta {
  font-size: .82em;
  color: var(--text-light);
  margin-top: 2px;
}
.bh-dossier-beheer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-dossier-beheer-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.bh-dossier-beheer .bh-btn {
  text-align: center;
  text-decoration: none;
}
@media (max-width: 480px) {
  .bh-dossier-corr-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bh-dossier-corr-item .bh-btn { width: 100%; text-align: center; }
}

/* ===== DOSSIERBEHEER UITBREIDING ===== */
.bh-corr-concept {
  color: var(--warning-border);
  font-weight: 600;
  font-size: .85em;
}
.bh-dossier-corr-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bh-dossier-max-niveau {
  background: #e3f2fd;
  border: 2px solid #1976d2;
  border-radius: var(--radius);
  padding: 16px;
}
.bh-dossier-max-niveau p {
  margin: 8px 0 0;
  font-size: .9em;
  line-height: 1.6;
  color: #333;
}

/* ===== PROTECTION JURIDIQUE TIP ===== */
.bh-niveau-pj-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e3f2fd;
  border-radius: 6px;
  font-size: .82em;
  line-height: 1.6;
  color: #1565c0;
}

/* ===== PROFESSIONELE BIJSTAND VELDEN ===== */
.bh-fieldset-pro {
  border-color: #1976d2 !important;
}
.bh-fieldset-pro legend {
  color: #1976d2;
}
.bh-pro-uitleg {
  font-size: .88em;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #e3f2fd;
  border-radius: 6px;
}

/* ===== PRE-ESCALATIE ===== */
.bh-pre-opties {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.bh-pre-optie {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bh-pre-optie:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.bh-pre-optie-active {
  border-color: var(--primary) !important;
  background: var(--primary-light) !important;
}
.bh-pre-optie-label {
  font-weight: 600;
  font-size: .95em;
}
.bh-pre-tips {
  background: #e8f5e9;
  border: 2px solid #66bb6a;
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0;
}
.bh-pre-tips-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 10px;
}
.bh-pre-tip {
  padding: 4px 0;
  font-size: .92em;
  line-height: 1.6;
}
.bh-pre-tips-voet {
  margin-top: 12px;
  font-size: .85em;
  color: var(--text-light);
  font-style: italic;
}
.bh-pre-keuze-na-tips {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.bh-pre-vervolg-blok {
  margin: 12px 0;
}
.bh-pre-vervolg-ok {
  margin-top: 10px;
  padding: 10px 14px;
  background: #e8f5e9;
  border-radius: 8px;
  font-size: .9em;
  color: #2e7d32;
}
.bh-pre-escalatie-skip {
  padding: 16px;
  background: #e3f2fd;
  border-radius: var(--radius);
  margin: 12px 0;
  font-size: .92em;
  line-height: 1.6;
}
@media (max-width: 480px) {
  .bh-pre-keuze-na-tips { flex-direction: column; }
}

/* ===== PRE-ESCALATIE LINKS ===== */
.bh-pre-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bh-pre-link {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #66bb6a;
  border-radius: 8px;
  color: #2e7d32;
  text-decoration: none;
  font-size: .88em;
  transition: background .15s;
}
.bh-pre-link:hover {
  background: #c8e6c9;
}

/* Kwaliteitsindicator sub-items (artikelen lijst) */
.bh-kwaliteit-sub {
  padding: 4px 12px 4px 36px;
  font-size: 0.88em;
  line-height: 1.5;
  color: #444;
}
.bh-kwaliteit-sub a {
  color: #800000;
  text-decoration: underline;
}

/* Freemium/Premium gating */
.bh-niveau-locked {
  opacity: .55;
  position: relative;
}
.bh-niveau-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .72em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.bh-premium-gate {
  background: linear-gradient(135deg, #f8f0f0 0%, #fff 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.bh-premium-gate strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 1.1em;
  margin-bottom: 8px;
}
.bh-premium-gate p { margin-bottom: 12px; }
.bh-premium-gate .bh-btn { margin-top: 8px; }
.bh-premium-gate-hint {
  font-size: .82em;
  color: #666;
  margin-top: 10px;
}
/* Premium badge on startpage */
body.bh-premium .bh-header::after {
  content: "✓ Premium";
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .7em;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
/* Usage counter for freemium */
.bh-usage-counter {
  text-align: center;
  font-size: .82em;
  color: #888;
  margin-top: 8px;
}

/* Keuze-ref buttons (radio-achtig) */
.bh-ref-keuze {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 12px;
}
.bh-ref-keuze-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: .88em;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.bh-ref-keuze-btn:hover {
  border-color: var(--primary);
  background: rgba(128,0,0,.04);
}
.bh-ref-keuze-btn.bh-ref-keuze-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Testmodus */
.bh-testmodus-hint {
  text-align: center;
  margin: 8px 0 0;
}
.bh-testmodus-active {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: .88em;
  text-align: center;
  color: #856404;
}
.bh-gen-test {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  text-align: center;
}

/* Test CTA op startpagina */
.bh-test-cta {
  text-align: center;
  margin: 20px 0 8px;
  padding: 14px;
  background: rgba(128,0,0,.03);
  border: 1px dashed rgba(128,0,0,.2);
  border-radius: var(--radius);
}
.bh-test-cta-hint {
  display: block;
  font-size: .8em;
  color: #888;
  margin-top: 6px;
}

/* Proactieve AI-assistent badge */
.bh-assist-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 1000;
  cursor: pointer;
  max-width: 340px;
  transition: all .3s ease;
  font-family: 'Mulish', sans-serif;
  font-size: .88em;
  line-height: 1.5;
}
@media (max-width: 400px) {
  .bh-assist-badge { right: 10px; bottom: 10px; max-width: calc(100vw - 28px); }
}

.bh-assist-badge-icon {
  font-size: 1.6em;
  flex-shrink: 0;
}

.bh-assist-thinking {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #888;
}
.bh-assist-thinking .bh-assist-badge-icon {
  animation: bh-pulse 1.2s ease-in-out infinite;
}

.bh-assist-goed {
  background: #f0fdf0;
  border: 1.5px solid #4caf50;
  color: #2e7d32;
}

.bh-assist-verbeter {
  background: #fff8e1;
  border: 1.5px solid #ff9800;
  color: #e65100;
}

.bh-assist-fout {
  background: #fef3f3;
  border: 2px solid #d32f2f;
  color: #b71c1c;
}

.bh-assist-bounce .bh-assist-badge-icon {
  animation: bh-bounce .5s ease-in-out 3;
}

.bh-assist-expanded {
  flex-direction: column;
  align-items: flex-start;
  max-width: 380px;
}
.bh-assist-expanded .bh-assist-badge-icon {
  align-self: flex-start;
}

.bh-assist-details {
  margin-top: 6px;
  font-size: .92em;
  line-height: 1.6;
  color: #444;
}

@keyframes bh-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

@keyframes bh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Top bar: testmodus + schone start */
.bh-top-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(128,0,0,.03);
  border-radius: var(--radius);
}

/* Testmodus exit bevestiging */
.bh-test-exit {
  background: #f0fdf0;
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: .88em;
  color: #2e7d32;
  text-align: center;
}

/* ===== KLIKSTROOM ===== */

.bh-klik-voortgang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .85em;
  color: #666;
}
.bh-klik-progress {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}
.bh-klik-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width .3s ease;
}

.bh-klik-terug {
  background: none;
  border: none;
  color: var(--primary);
  font-size: .88em;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  display: inline-block;
}
.bh-klik-terug:hover {
  text-decoration: underline;
}

.bh-klik-vraag {
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 4px;
  color: #333;
}
.bh-klik-hint {
  font-size: .85em;
  color: #888;
  margin-bottom: 10px;
  font-style: italic;
}

.bh-klik-opties {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.bh-klik-optie {
  text-align: left;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: .9em;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.5;
}
.bh-klik-optie:hover {
  border-color: var(--primary);
  background: rgba(128,0,0,.04);
}
.bh-klik-optie.bh-klik-optie-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.bh-klik-waarschuwing {
  background: #fff8e1;
  border: 1px solid #ffb300;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: .88em;
  line-height: 1.6;
  color: #7a5a00;
}

.bh-klik-instructie {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: .88em;
  line-height: 1.6;
  color: #1565c0;
}

.bh-klik-invulveld {
  margin: 10px 0;
}
.bh-klik-invulveld label {
  display: block;
  font-size: .88em;
  font-weight: 600;
  margin-bottom: 4px;
}
.bh-klik-invul-input {
  width: 100%;
  max-width: 340px;
}

.bh-klik-door {
  margin-top: 8px;
}

/* Samenvatting */
.bh-klik-samenvatting {
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 14px;
  background: rgba(128,0,0,.02);
}
.bh-klik-samenvatting-titel {
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 12px;
  color: var(--primary);
}

.bh-klik-samenvatting-regel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(128,0,0,.08);
}
.bh-klik-samenvatting-regel:last-of-type {
  border-bottom: none;
}

.bh-klik-samenvatting-vraag {
  font-size: .82em;
  color: #888;
  min-width: 120px;
  flex-shrink: 0;
}
.bh-klik-samenvatting-antwoord {
  font-size: .9em;
  font-weight: 600;
  flex: 1;
  min-width: 150px;
}
.bh-klik-samenvatting-invul {
  font-size: .82em;
  color: #555;
  width: 100%;
  padding-left: 126px;
}

.bh-klik-wijzig {
  background: none;
  border: none;
  color: var(--primary);
  font-size: .8em;
  cursor: pointer;
  padding: 2px 6px;
  text-decoration: underline;
  font-family: 'Mulish', sans-serif;
  flex-shrink: 0;
}
.bh-klik-wijzig:hover {
  color: #b30000;
}

/* Mobiel: opties full-width */
@media (max-width: 600px) {
  .bh-klik-samenvatting-regel {
    flex-direction: column;
    gap: 2px;
  }
  .bh-klik-samenvatting-invul {
    padding-left: 0;
  }
  .bh-klik-wijzig {
    align-self: flex-end;
  }
}

/* ===== AUDITOR 9-CHECKS ===== */

.bh-audit-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.bh-audit-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: .6em;
  font-weight: 700;
  line-height: 1;
}
.bh-audit-dot.bh-audit-ok {
  background: #e8f5e9;
  color: #2e7d32;
}
.bh-audit-dot.bh-audit-fail {
  background: #ffebee;
  color: #c62828;
}

.bh-audit-checklist {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bh-audit-check-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: .85em;
  line-height: 1.4;
}
.bh-audit-check-item.bh-audit-check-fail {
  color: #c62828;
}
.bh-audit-check-fout {
  font-size: .82em;
  color: #888;
  font-style: italic;
}

/* Genereer-knop disabled state bij incomplete klikstroom */
#btn-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.bh-klik-genereer-hint {
  text-align: center;
  font-size: .85em;
  color: #888;
  margin-top: 4px;
  font-style: italic;
}

/* ===== BRONNEN-KAART (na de brief) ===== */

.bh-bronnen-kaart {
  background: rgba(128,0,0,.03);
  border: 1.5px solid rgba(128,0,0,.15);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 14px 0;
}
.bh-bronnen-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05em;
  color: var(--primary);
  margin-bottom: 12px;
}
.bh-bronnen-sectie {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(128,0,0,.08);
}
.bh-bronnen-sectie:last-of-type {
  border-bottom: none;
  margin-bottom: 6px;
  padding-bottom: 0;
}
.bh-bronnen-label {
  font-size: .82em;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.bh-bronnen-artikel {
  font-size: .88em;
  line-height: 1.6;
  padding: 2px 0;
}
.bh-bronnen-artikel a {
  color: var(--primary);
  text-decoration: none;
}
.bh-bronnen-artikel a:hover {
  text-decoration: underline;
}
.bh-bronnen-link {
  display: block;
  font-size: .9em;
  color: var(--primary);
  text-decoration: none;
  padding: 3px 0;
  font-weight: 600;
}
.bh-bronnen-link:hover {
  text-decoration: underline;
}
.bh-bronnen-link-alt {
  font-weight: 400;
  font-size: .85em;
  color: #666;
  padding-left: 12px;
}
.bh-bronnen-verzend {
  font-size: .88em;
  line-height: 1.6;
}
.bh-bronnen-verzend a {
  color: var(--primary);
}
.bh-bronnen-modus {
  font-size: .82em;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
}
.bh-bronnen-modus-cache {
  background: #e8f5e9;
  color: #2e7d32;
}
.bh-bronnen-modus-basis {
  background: #e3f2fd;
  color: #1565c0;
}
.bh-bronnen-modus-vrij {
  background: #fff8e1;
  color: #7a5a00;
}

/* ===== COMPLIANCE CHECKS (Laag 1) ===== */

.bh-compliance {
  margin: 10px 0;
}
.bh-compliance-ok {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9em;
  color: #2e7d32;
}
.bh-compliance-titel {
  font-weight: 600;
  font-size: .95em;
  margin-bottom: 6px;
  color: #333;
}
.bh-compliance-item {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: .88em;
  line-height: 1.6;
}
.bh-compliance-fout {
  background: #ffebee;
  color: #b71c1c;
}
.bh-compliance-waarschuwing {
  background: #fff8e1;
  color: #7a5a00;
}

/* ===== SITUATIE-ADVIEZEN (Laag 2) ===== */

.bh-situatie-advies {
  margin: 8px 0;
}
.bh-sit-advies-item {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: .88em;
  line-height: 1.6;
}
.bh-sit-advies-waarschuwing {
  background: #fff3e0;
  border: 1px solid #ff9800;
  color: #7a4a00;
}
.bh-sit-advies-info {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  color: #1565c0;
}

/* ===== WELKOMSCHERM ===== */

.bh-welkom {
  max-width: 480px;
  margin: 0 auto;
}
.bh-welkom-titel {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3em;
  color: var(--primary);
  margin-bottom: 10px;
}
.bh-welkom-intro {
  font-size: .92em;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}
.bh-welkom-privacy {
  font-size: .82em;
  color: #888;
  margin: 14px 0;
  padding: 8px 12px;
  background: rgba(128,0,0,.03);
  border-radius: 6px;
}

/* ===== COMPACT GEGEVENSBLOK (in stap 4) ===== */

.bh-gegevens-compact {
  background: rgba(128,0,0,.03);
  border: 1px solid rgba(128,0,0,.1);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: .9em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Klikbare opschaal-knop */
.bh-escalatie-klik {
  cursor: pointer;
  transition: all .15s;
}
.bh-escalatie-klik:hover {
  background: rgba(128,0,0,.08);
  border-color: var(--primary);
}

/* Niveau suggestie blok */
.bh-niveau-suggestie {
  background: rgba(128,0,0,.06);
  border-left: 3px solid var(--primary, #800000);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: .93rem;
  line-height: 1.6;
}

/* ===== DOORVERWIJZING (hoog-risico blokkade) ===== */
.bh-doorverwijzing {
  margin-top: 20px;
  padding: 24px;
  background: rgba(128, 0, 0, 0.04);
  border: 2px solid rgba(128, 0, 0, 0.2);
  border-radius: 12px;
}
.bh-doorverwijzing-titel {
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #800000;
  margin-bottom: 12px;
}
.bh-doorverwijzing-uitleg {
  line-height: 1.8em;
  color: #333;
  margin-bottom: 20px;
}
.bh-doorverwijzing-tips,
.bh-doorverwijzing-opties {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(128, 0, 0, 0.1);
}
.bh-doorverwijzing-tips-titel {
  font-weight: 600;
  color: #800000;
  margin-bottom: 10px;
}
.bh-doorverwijzing-tip {
  padding: 6px 0;
  line-height: 1.7em;
  color: #444;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.bh-doorverwijzing-tip:last-child {
  border-bottom: none;
}
.bh-doorverwijzing-online {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(128, 0, 0, 0.06);
  border-radius: 8px;
  line-height: 1.7em;
  color: #555;
  font-style: italic;
}
