/* =================================================================
   CONTRACT-INTAKE — meerstaps formulier in de Contractcheck-modal
   Sluit aan op de tokens uit styles.css (emerald-groen, Jost + Inter)
   ================================================================= */

/* Wisselen tussen uitleg en formulier binnen dezelfde modal */
#intakeForm { display: none; }
.svc-modal.intake-open #intakeForm { display: block; animation: svcFade .3s ease; }
.svc-modal.intake-open .dienst-info,
.svc-modal.intake-open .dienst-contact { display: none; }

/* ---- Voortgangsindicatie (stap 1 t/m 4) ---- */
.intake__progress { list-style: none; display: flex; align-items: center; gap: .5rem; padding: 0; margin: 0 0 2rem; }
.intake__progress li { display: flex; align-items: center; gap: .6rem; color: var(--muted); flex: 1; }
.intake__progress li:last-child { flex: 0; }
.intake__progress li::before {
  content: attr(data-step); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); transition: all .25s;
}
.intake__progress li::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.intake__progress li:last-child::after { display: none; }
.intake__progress-label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: inherit; white-space: nowrap; }
.intake__progress li.is-active { color: var(--text); }
.intake__progress li.is-active::before { border-color: transparent; background: var(--accent-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(16,185,129,.5); }
.intake__progress li.is-done::before { content: "✓"; border-color: transparent; background: rgba(16,185,129,.16); color: var(--success); }
.intake__progress li[hidden] { display: none; }
.intake__progress li.is-last { flex: 0; }
.intake__progress li.is-last::after { display: none; }

/* ---- Stappen ---- */
.intake__step { animation: svcFade .3s ease; }
.intake__step[hidden] { display: none; }
.intake__step h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.2rem, 2.4vw, 1.55rem); color: var(--text); margin-bottom: .45rem; outline: none; }
.intake__lead { color: var(--text-2); font-size: .95rem; line-height: 1.6; margin-bottom: 1.4rem; }
.intake__lead strong { color: var(--blue-soft); }
.intake__list { margin: 0 0 1.5rem; padding-left: 1.4rem; display: grid; gap: .6rem; }
.intake__list li { color: var(--text-2); font-size: .94rem; line-height: 1.55; padding-left: .2rem; }
.intake__list li::marker { color: var(--blue-soft); font-family: var(--font-mono); font-weight: 600; }
.intake__list strong { color: var(--text); }
.intake__fields { display: grid; gap: 1.05rem; }

/* ---- Bestand-upload veld ---- */
.intake-file { position: relative; }
.intake-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.intake-file__box { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: .9rem; transition: border-color .2s, background .2s; }
.intake-file:hover .intake-file__box { border-color: var(--green); background: rgba(16,185,129,.06); }
.intake-file input:focus-visible ~ .intake-file__box { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.intake-file__box svg { width: 22px; height: 22px; flex: none; color: var(--blue-soft); }
.intake-file.has-file .intake-file__box { border-style: solid; border-color: var(--success); color: var(--text); }
.intake-file.has-file .intake-file__box svg { color: var(--success); }

/* ---- Knoppen / acties ---- */
.intake__actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.7rem; }
.intake__btn-back { background: none; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 999px; padding: .9em 1.4em; font-family: var(--font-mono); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; transition: border-color .2s, color .2s; }
.intake__btn-back:hover { border-color: var(--text); color: var(--text); }

/* ---- Akkoord-checkboxen ---- */
.intake__consent { display: grid; gap: .7rem; margin-top: 1.4rem; }
.intake__check { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; font-size: .85rem; line-height: 1.5; color: var(--text-2); }
.intake__check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: .12rem; accent-color: var(--indigo); cursor: pointer; }
.intake__check input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.intake__check a { color: var(--blue-soft); text-decoration: underline; }
.intake__check a:hover { color: var(--text); }
/* verplichte vinkjes niet aangevinkt → duidelijk markeren */
.intake__consent.is-invalid .intake__check { color: var(--danger); }
.intake__consent.is-invalid .intake__check input[type="checkbox"] { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 3px; }

/* ---- Foutmeldingen ---- */
.intake__error { color: var(--danger); font-size: .85rem; margin-top: .7rem; }
.intake__error[hidden] { display: none; }

/* ---- Laden / spinner ---- */
.intake__loading { text-align: center; padding: 2.4rem 0; }
.intake__spinner { width: 46px; height: 46px; margin: 0 auto 1.3rem; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--blue-soft); animation: intakeSpin .8s linear infinite; }
@keyframes intakeSpin { to { transform: rotate(360deg); } }
.intake__loading p { color: var(--text-2); font-size: .95rem; }

/* ---- Notices (stop / fout / succes) ---- */
.intake__notice { text-align: center; padding: 1.4rem 0; }
.intake__notice[hidden] { display: none; }
.intake__notice-icon { width: 54px; height: 54px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.intake__notice-icon svg { width: 28px; height: 28px; }
.intake__notice--stop .intake__notice-icon { background: rgba(220,38,38,.12); color: var(--danger); }
.intake__notice--ok .intake__notice-icon { background: rgba(52,211,153,.16); color: var(--success); }
.intake__notice h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.3rem; color: var(--text); margin-bottom: .6rem; outline: none; }
.intake__notice p { color: var(--text-2); font-size: .95rem; line-height: 1.6; max-width: 48ch; margin: 0 auto; }
.intake__notice .intake__actions { justify-content: center; }

/* ---- Betaalstap (placeholder) ---- */
.intake__pay { border: 1px dashed var(--line-2); border-radius: 14px; padding: 1.4rem 1.5rem; background: var(--surface-2); }
.intake__pay-label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.intake__price { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--text); margin-top: .3rem; }
.intake__price small { font-family: var(--font-mono); font-size: .7rem; font-weight: 400; color: var(--muted); margin-left: .3em; }

@media (max-width: 560px) {
  .intake__progress-label { display: none; }
  .intake__progress li::before { width: 26px; height: 26px; }
}
