/* ===========================================================
   Mijndomein Verhuisservice — wizard-component (premium)
   Bouwt op de tokens uit mijndomein.css. Herontworpen voor een
   verfijnde, premium uitstraling die aansluit op de hero/secties.
   Alle class-/id-namen zijn bewust behouden (wizard.js hangt eraan).
   =========================================================== */

.wizard-section { padding: 40px 0 8px; }

.wizard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-md), 0 2px 6px rgba(28, 18, 48, .04);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}
/* fijne paars→cyaan accentlijn langs de bovenrand */
.wizard::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--paars) 0%, var(--paars-2) 46%, var(--cyaan) 100%);
  z-index: 3;
}

/* ----- kop met stappen ----- */
.wiz-top {
  padding: 22px 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
/* Stepper binnen de wizard. Bewust gescoped onder .wiz-top: de class .steps
   wordt óók door de marketing-sectie gebruikt; zonder scope lekte de max-width
   hierheen en kneep de hele "Zo werkt het"-sectie smal. */
.wiz-top .steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap;
  max-width: 580px; margin: 0 auto;
  list-style: none; padding: 0;
}
.step-dot {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: color .25s;
}
.step-dot .num {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.step-dot.active { color: var(--heading); }
.step-dot.active .num {
  background: var(--paars); color: #fff; border-color: var(--paars);
  box-shadow: 0 0 0 4px var(--ring);
}
.step-dot.done { color: var(--heading); }
.step-dot.done .num { background: var(--cyaan); color: var(--ink); border-color: var(--cyaan); }
.step-sep {
  flex: 1; min-width: 16px; height: 2px; margin: 0 10px;
  background: var(--border); border-radius: 2px;
  transition: background .3s;
}
/* doorgetrokken voortgang: scheidingslijn ná een afgeronde stap kleurt cyaan */
.step-dot.done + .step-sep { background: var(--cyaan); }

/* ----- body / panes ----- */
.wiz-body { padding: 40px 44px 38px; }
.wiz-pane { display: none; animation: fade .4s cubic-bezier(.22, .61, .36, 1); }
.wiz-pane.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-h { font-size: 26px; font-weight: 800; letter-spacing: -.022em; color: var(--heading); margin-bottom: 9px; }
.wiz-p { color: var(--text); font-size: 15.5px; line-height: 1.6; margin-bottom: 28px; max-width: 56ch; }

/* ----- type-groepen (pane 0) ----- */
.type-group + .type-group { margin-top: 28px; }
.type-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.type-group-head .tg-title {
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--heading);
}
.type-group-head .tg-hint { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ----- keuzekaarten (type / methode) ----- */
.choice-grid { display: grid; gap: 13px; }
.choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 15px;
  padding: 18px 19px;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
  text-align: left; font-family: inherit; width: 100%;
  color: var(--heading);
}
.choice:hover { border-color: var(--paars); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice.sel {
  border-color: var(--paars);
  background: linear-gradient(180deg, var(--paars-50) 0%, var(--surface) 130%);
  box-shadow: 0 0 0 3px var(--ring);
}
.choice .ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--paars-50); color: var(--paars);
  display: grid; place-items: center; flex: none;
  transition: background .18s, color .18s, transform .18s;
}
.choice:hover .ic { transform: scale(1.05); }
.choice.sel .ic { background: var(--paars); color: #fff; }
.choice .ic svg { width: 23px; height: 23px; }
.choice .txt { flex: 1; min-width: 0; }
.choice .txt b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.choice .txt small { display: block; font-weight: 400; font-size: 12.9px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.choice .check {
  width: 24px; height: 24px; border-radius: 8px;
  border: 2px solid var(--border); flex: none;
  display: grid; place-items: center; color: #fff;
  transition: background .18s, border-color .18s;
}
.choice .check svg { width: 13px; height: 13px; opacity: 0; transition: opacity .15s; }
.choice.sel .check { background: var(--paars); border-color: var(--paars); }
.choice.sel .check svg { opacity: 1; }
/* radio-variant (enkelvoudige keuze) */
.choice.radio .check { border-radius: 50%; }

/* ----- gegevens-blok per type (gegroepeerd paneel) ----- */
.detail-block {
  padding: 22px 24px 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}
.detail-block + .detail-block { margin-top: 16px; }
/* binnen het getinte paneel: notities, keuzekaarten en icoon-tegel wit zodat ze contrasteren */
.detail-block .note { background: var(--surface); border: 1px solid var(--border); }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.block-head .block-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--paars);
  display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-sm);
}
.block-head .block-ic svg { width: 21px; height: 21px; }
.block-head h4 { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; }

/* ----- velden ----- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field .req { color: var(--paars); }

/* ----- verhuizen-naar-ander-domein toggle ----- */
.dom-switch {
  display: inline-flex; align-items: center; gap: 10px;
  margin: -6px 0 18px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--heading);
}
.dom-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.dom-switch .dom-switch-box {
  width: 20px; height: 20px; flex: none;
  border: 1.5px solid var(--border); border-radius: 6px;
  display: grid; place-items: center; color: #fff;
  transition: background .15s, border-color .15s;
}
.dom-switch .dom-switch-box svg { width: 13px; height: 13px; opacity: 0; transition: opacity .12s; }
.dom-switch input:checked + .dom-switch-box { background: var(--paars); border-color: var(--paars); }
.dom-switch input:checked + .dom-switch-box svg { opacity: 1; }
.dom-switch input:focus-visible + .dom-switch-box { outline: 2px solid var(--paars); outline-offset: 2px; }
.dom-new { margin-bottom: 18px; }
.dom-new-hint { margin: 9px 0 0; font-size: 13px; font-weight: 600; color: var(--cyaan-700); }
.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--heading);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-field);
  padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #aaa1bd; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--paars); box-shadow: 0 0 0 4px var(--ring); }
.input.ok { border-color: var(--cyaan-700); box-shadow: 0 0 0 4px var(--ring-ok); }
.input.bad, .textarea.bad { border-color: var(--danger); box-shadow: 0 0 0 4px var(--ring-bad); }

/* veld met leading-icoon + live cyaan vinkje (stap 2) */
.input-wrap { position: relative; }
.input-wrap .input-ic {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--muted);
  display: grid; place-items: center; pointer-events: none;
  transition: color .15s;
}
.input-wrap .input-ic svg { width: 20px; height: 20px; }
.input.has-ic { padding-left: 46px; }
.input-wrap:focus-within .input-ic { color: var(--paars); }
.input-wrap .input-ok {
  position: absolute; right: 13px; top: 50%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cyaan); color: #053;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-50%) scale(.5);
  transition: opacity .2s, transform .25s cubic-bezier(.18, .9, .32, 1.4); pointer-events: none;
}
.input-wrap .input-ok svg { width: 13px; height: 13px; }
.input.ok ~ .input-ok { opacity: 1; transform: translateY(-50%) scale(1); }
.input.has-ic.ok { padding-right: 44px; }

.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23786f90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field-error { display: none; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--danger); }
.field-error.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* dynamische lijst (mailboxen) */
.repeat-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr auto; align-items: start; margin-bottom: 10px; }
.repeat-row .input { margin: 0; }
.icon-btn {
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-field);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer; display: grid; place-items: center;
  transition: .15s;
}
.icon-btn:hover { border-color: var(--danger); color: var(--danger); background: var(--ring-bad); }
.add-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--paars); cursor: pointer; background: none; border: none; padding: 4px 0; font-family: inherit; }
.add-link:hover { color: var(--paars-700); }
.add-link svg { width: 16px; height: 16px; }

/* informatiebalk */
.note {
  display: flex; gap: 11px; align-items: center;
  margin-top: 20px; padding: 15px 17px;
  background: var(--surface-2);
  border-radius: 14px;
  font-size: 13.6px; color: var(--text);
  line-height: 1.55;
}
.note .ni { width: 30px; height: 30px; border-radius: 999px; background: var(--paars-50); color: var(--paars); display: grid; place-items: center; flex: none; }
.note .ni svg { width: 16px; height: 16px; }
.note.cyaan .ni { background: color-mix(in srgb, var(--cyaan) 22%, var(--surface)); color: var(--cyaan-700); }
/* Ademruimte tussen een info-blok en het veld eronder (anders plakt bv.
   "Bijzonderheden" te dicht tegen het witte info-blok). */
.note + .field { margin-top: 22px; }

/* ----- controleren ----- */
.review-list {
  display: grid; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.rev-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; font-size: 14.5px; }
.rev-row + .rev-row { border-top: 1px solid var(--border); }
.rev-row .k { color: var(--muted); }
.rev-row .v { color: var(--heading); font-weight: 700; text-align: right; }
.plan-note {
  margin-top: 18px; padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px;
  font-size: 13.8px; color: var(--text); line-height: 1.65;
}
.plan-note b { color: var(--heading); }
.plan-note .auto { color: var(--cyaan-700); font-weight: 700; }
.plan-note .agent { color: var(--paars); font-weight: 700; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 13.6px; color: var(--text); line-height: 1.55; }
.agree input { margin-top: 2px; accent-color: var(--paars); width: 18px; height: 18px; flex: none; }
.agree a { color: var(--paars); text-decoration: underline; }

/* ----- voortgang ----- */
.prog-head { text-align: center; margin-bottom: 6px; }
.prog-ring-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.prog-ring { transform: rotate(-90deg); }
.prog-ring circle { fill: none; stroke-width: 9; }
.prog-ring .bg { stroke: var(--surface-2); }
.prog-ring .fg { stroke: var(--cyaan); stroke-linecap: round; transition: stroke-dashoffset .5s ease; filter: drop-shadow(0 2px 6px rgba(4, 219, 219, .35)); }
.prog-pct { font-size: 30px; font-weight: 800; color: var(--heading); letter-spacing: -.02em; }
.prog-status { color: var(--muted); font-size: 15px; margin-top: 3px; }
.log { margin-top: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 8px; }
.log-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 14px; border-radius: 11px; color: var(--text); opacity: .4; transition: opacity .3s, background .3s; }
.log-row.show { opacity: 1; }
.log-row.busy { background: var(--surface); }
.log-row .li { width: 19px; height: 19px; flex: none; display: grid; place-items: center; color: var(--muted); }
.log-row.done .li { color: var(--cyaan-700); }
.log-row.busy .li svg { animation: spin 1s linear infinite; color: var(--paars); }
.log-row .lname { flex: 1; font-weight: 500; color: var(--heading); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- klaar ----- */
.done-wrap { text-align: center; padding: 6px 0; }
.done-seal {
  width: 80px; height: 80px; border-radius: 50%;
  background: color-mix(in srgb, var(--cyaan) 20%, var(--surface));
  border: 2px solid var(--cyaan);
  display: grid; place-items: center;
  margin: 0 auto 22px; color: var(--cyaan-700);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--cyaan) 10%, transparent);
  animation: pop .5s cubic-bezier(.18, .9, .32, 1.4);
}
.done-seal.agent { background: var(--paars-50); border-color: var(--paars); color: var(--paars); box-shadow: 0 0 0 8px var(--ring); }
.done-seal.bad { background: var(--ring-bad); border-color: var(--danger); color: var(--danger); box-shadow: 0 0 0 8px var(--ring-bad); }
.done-seal svg { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-wrap h3 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 9px; }
.done-wrap > p { color: var(--text); font-size: 15.5px; line-height: 1.6; max-width: 48ch; margin: 0 auto; }
.done-detail { margin-top: 24px; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; font-size: 14px; color: var(--text); line-height: 1.65; }
.done-detail h4 { font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.done-detail code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 13px; color: var(--paars-700); }

/* ----- plugin-instructie (WordPress-push) ----- */
.token-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 24px 0 18px; padding: 16px 18px;
  background: var(--surface-2); border: 1px dashed var(--paars); border-radius: 14px;
  text-align: left;
}
.token-box .token-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.token-box .token-val { font-size: 15px; font-weight: 700; color: var(--paars-700); word-break: break-all; background: none; padding: 0; }
.token-copy {
  flex: none; border: 1.5px solid var(--paars); background: var(--surface); color: var(--paars);
  font-weight: 600; font-size: 13px; border-radius: 10px; padding: 9px 15px; cursor: pointer; font-family: inherit;
  transition: .15s;
}
.token-copy:hover { background: var(--paars); color: #fff; }
.done-wrap .steps-title {
  text-align: left; max-width: 30rem; margin: 30px auto 11px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--paars);
}
.done-wrap .plugin-steps {
  list-style: none;
  counter-reset: pstep;
  text-align: left;
  max-width: 30rem;
  margin: 0 auto;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.done-wrap .plugin-steps li {
  counter-increment: pstep;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 2px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
.done-wrap .plugin-steps li + li { border-top: 1px solid var(--border); }
.done-wrap .plugin-steps li::before {
  content: counter(pstep);
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--paars-50);
  color: var(--paars);
  font-weight: 800; font-size: 13.5px;
  display: grid; place-items: center;
  margin-top: -1px;
}
.done-wrap .plugin-foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ----- "daarna nemen wij het over" — horizontale reis (automatisch) ----- */
.done-wrap .flow-journey-wrap {
  max-width: 34rem; margin: 30px auto 0;
  padding: 22px 20px 20px;
  background: color-mix(in srgb, var(--cyaan) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--cyaan) 30%, var(--border));
  border-radius: 18px;
}
.done-wrap .flow-title {
  text-align: center; margin: 0 0 18px;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--heading);
}
.done-wrap .flow-journey {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: flex-start;
}
.done-wrap .flow-journey .milestone {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px; position: relative;
}
/* verbindingslijn tussen de bolletjes (van vorige naar dit middelpunt) */
.done-wrap .flow-journey .milestone::before {
  content: ""; position: absolute;
  top: 19px; left: -50%; right: 50%; height: 2px;
  background: color-mix(in srgb, var(--cyaan) 42%, var(--border));
  z-index: 0;
}
.done-wrap .flow-journey .milestone:first-child::before { display: none; }
.done-wrap .flow-journey .ms-dot {
  position: relative; z-index: 1; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--cyaan);
  color: var(--cyaan-700);
  display: grid; place-items: center;
}
.done-wrap .flow-journey .ms-dot svg { width: 19px; height: 19px; }
.done-wrap .flow-journey .ms-label {
  font-size: 12.5px; font-weight: 700; color: var(--heading); line-height: 1.2;
}
.done-wrap .flow-caption {
  margin: 18px auto 0; max-width: 42ch;
  font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center;
}

/* ----- voet-navigatie ----- */
.wiz-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 44px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.wiz-foot .btn-primary { min-width: 172px; }
.wiz-msg {
  display: none; margin-top: 22px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--ring-bad);
  font-size: 13.6px; font-weight: 600; color: var(--danger);
}
.wiz-msg.show { display: block; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.shake { animation: shake .4s ease; }

/* ----- toegankelijkheid: zichtbare focus op interactieve elementen -----
   (de offset zet de outline op de achtergrond, dus ook zichtbaar op paarse knoppen) */
.choice:focus-visible,
.btn:focus-visible,
.token-copy:focus-visible,
.add-link:focus-visible,
.icon-btn:focus-visible,
.wiz-foot button:focus-visible,
.wiz-h[tabindex]:focus-visible {
  outline: 2px solid var(--paars);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Een pane die programmatisch focus krijgt na "Volgende" hoeft geen kader. */
.wiz-h[tabindex]:focus:not(:focus-visible) { outline: none; }

@media (max-width: 620px) {
  .wiz-body { padding: 28px 22px 30px; }
  .wiz-top { padding: 18px 18px; }
  .wiz-foot { padding: 16px 22px; }
  .wiz-foot .btn-primary { min-width: 0; }
  .choice-grid.cols-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .repeat-row { grid-template-columns: 1fr; }
  .step-dot .lbl { display: none; }
  .step-sep { margin: 0 7px; }
  .done-wrap .flow-journey-wrap { padding: 20px 14px 18px; }
  .done-wrap .flow-journey .ms-dot { width: 34px; height: 34px; }
  .done-wrap .flow-journey .ms-dot svg { width: 17px; height: 17px; }
  .done-wrap .flow-journey .milestone::before { top: 17px; }
  .done-wrap .flow-journey .ms-label { font-size: 11px; }
}

/* Zeer smal: laat de iconen-reis staan, maar verberg de losse labels — de
   samenvattende zin eronder draagt dan de betekenis. */
@media (max-width: 430px) {
  .done-wrap .flow-journey .ms-label { display: none; }
}
