/* ============================================================
   Wizard / formulier-styling — Verzekerd van Succes
   Helder contrast: witte cards op warme surface achtergrond
   ============================================================ */

/* ----- stepper ----- */
.wiz-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 24px;
  flex-wrap: wrap;
}
.wiz-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.wiz-step:hover { border-color: var(--accent); color: var(--ink); }
.wiz-step.done {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 500;
}
.wiz-step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(186,117,23,0.25);
}
.wiz-step.locked { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.wiz-step-num {
  background: var(--surface-warm);
  color: var(--ink-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.wiz-step.done .wiz-step-num { background: var(--accent); color: white; }
.wiz-step.active .wiz-step-num { background: white; color: var(--accent); }
.wiz-step-pijl {
  color: var(--ink-faint);
  font-size: 14px;
  user-select: none;
}

/* ----- card ----- */
.wiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  padding: 24px 26px 26px;
  margin-bottom: 16px;
}
.wiz-card-titel {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wiz-card-titel-num {
  font-size: 14px;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}
.wiz-card-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ----- veld ----- */
.wiz-veld { margin-bottom: 18px; }
.wiz-veld:last-child { margin-bottom: 0; }
.wiz-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.wiz-label-tekst { display: flex; align-items: center; gap: 6px; flex: 1; }
.wiz-input,
.wiz-select,
.wiz-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wiz-input:focus,
.wiz-select:focus,
.wiz-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.wiz-textarea { resize: vertical; min-height: 70px; }
.wiz-input[type=range] { padding: 0; border: none; height: 28px; box-shadow: none; }
.wiz-input[type=range]:focus { box-shadow: none; }
.wiz-input[type=number] { max-width: 140px; }
.wiz-req { color: #c33; margin-left: 2px; }
.wiz-opt {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 6px;
}
.wiz-hint {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* ----- help-icoon ----- */
.wiz-help-btn {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  transition: all 0.15s;
}
.wiz-help-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ----- repeater rij ----- */
.wiz-rij {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}
.wiz-rij-1 { grid-template-columns: 1fr auto; }
.wiz-rij input, .wiz-rij select, .wiz-rij textarea {
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
.wiz-rij-rm {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-muted);
}
.wiz-rij-rm:hover { color: #c33; border-color: #c33; }
.wiz-add {
  padding: 8px 14px;
  border: 1px dashed var(--border-strong);
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  margin-top: 8px;
  transition: all 0.15s;
}
.wiz-add:hover { background: var(--accent-light); border-style: solid; }

/* ----- sticky bottom action bar ----- */
.wiz-actions {
  position: sticky;
  bottom: 0;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 10;
}
.wiz-btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.wiz-btn-primary:hover { background: var(--accent-dark); }
.wiz-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.wiz-btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 11px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
}
.wiz-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.wiz-actions-status {
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: auto;
}
.wiz-actions-status.ok { color: #0a7a2c; }
.wiz-actions-status.err { color: #c33; }

/* ----- modal ----- */
.wiz-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wiz-modal-bg.open { display: flex; }
.wiz-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 30px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.wiz-modal h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--ink);
  padding-right: 30px;
}
.wiz-modal-close {
  float: right;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--ink-muted);
}
.wiz-modal-close:hover { border-color: var(--ink); color: var(--ink); }
.wiz-modal-blok { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.wiz-modal-blok:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.wiz-modal-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.wiz-modal-tekst {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.wiz-modal-voorbeeld {
  background: var(--surface-warm);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  border-left: 3px solid var(--border-strong);
}
.wiz-modal-voorbeeld.goed { border-left-color: #0a7a2c; }
.wiz-modal-voorbeeld.fout { border-left-color: #c33; color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(204,51,51,0.4); }

/* ----- algemene header op wizard-pagina ----- */
.wiz-header {
  padding: 32px 0 8px;
}
.wiz-header-terug {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wiz-header-terug:hover { color: var(--accent); }
.wiz-header-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 14px;
  font-weight: 600;
}
.wiz-header-titel {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--ink);
  margin: 4px 0 6px;
  line-height: 1.2;
}
.wiz-header-titel em { font-style: italic; color: var(--accent); }
.wiz-header-meta {
  font-size: 13px;
  color: var(--ink-muted);
}
