/* ─────────────────────────────────────────────────────────────────────────
   Vernast Vochtbestrijding — native lead wizard
   Rebuild of the vernast.be/gratis-vochtinspectie white card (contact-first).
   All rules scoped under #vocht-wizard to avoid colliding with the WP/Nectar
   theme styles already on the page.
   ───────────────────────────────────────────────────────────────────────── */

#vocht-wizard {
  --vw-red: hsl(0 72% 25%);
  --vw-red-dark: hsl(0 72% 18%);
  --vw-red-50: hsl(0 72% 97%);
  --vw-slate-800: #1e293b;
  --vw-slate-700: #334155;
  --vw-slate-500: #64748b;
  --vw-slate-400: #94a3b8;
  --vw-slate-200: #e2e8f0;
  --vw-slate-100: #f1f5f9;
  --vw-slate-50: #f8fafc;
  --vw-emerald-800: #065f46;
  --vw-emerald-700: #047857;
  --vw-emerald-600: #059669;
  --vw-emerald-100: #d1fae5;

  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
}

#vocht-wizard *,
#vocht-wizard *::before,
#vocht-wizard *::after { box-sizing: border-box; }

/* ─── Card shell ─────────────────────────────────────────────────────────── */
#vocht-wizard .vw-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

/* ─── Header: golden shield + team photo, green theme ────────────────────── */
#vocht-wizard .vw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--vw-emerald-100);
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  position: relative;
}
#vocht-wizard .vw-header-shield { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
#vocht-wizard .vw-header-text { flex: 1; min-width: 0; }
#vocht-wizard .vw-header-title {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--vw-emerald-800); line-height: 1.2;
}
#vocht-wizard .vw-header-sub {
  display: block; font-size: 11px; color: var(--vw-emerald-600);
  line-height: 1.2; margin-top: 2px;
}
#vocht-wizard .vw-header-team {
  height: 80px; width: auto; object-fit: contain; object-position: bottom;
  flex-shrink: 0; margin-right: -8px; align-self: flex-end;
}

/* ─── Body ───────────────────────────────────────────────────────────────── */
#vocht-wizard .vw-body { padding: 24px; }

/* Progress bars */
#vocht-wizard .vw-progress { display: flex; gap: 4px; margin-bottom: 20px; }
#vocht-wizard .vw-progress span {
  height: 3px; border-radius: 999px; flex: 1;
  background: var(--vw-slate-200); transition: all .3s ease;
}
#vocht-wizard .vw-progress span.is-done { background: var(--vw-red); }
#vocht-wizard .vw-progress span.is-current { background: var(--vw-red); flex: 1.6; }

/* Step heading */
#vocht-wizard .vw-step-title {
  font-size: 18px; font-weight: 700; color: var(--vw-slate-800);
  margin: 0 0 4px;
}
#vocht-wizard .vw-step-sub {
  font-size: 13px; color: var(--vw-slate-400); margin: 0 0 16px;
}

/* Step transition */
#vocht-wizard .vw-step { animation: vw-enter .22s ease both; }
@keyframes vw-enter {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  #vocht-wizard .vw-step { animation: none; }
}

/* ─── Photo card grid ────────────────────────────────────────────────────── */
#vocht-wizard .vw-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#vocht-wizard .vw-photo {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--vw-slate-200); text-align: left;
  background: #fff; cursor: pointer; padding: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
#vocht-wizard .vw-photo:hover { border-color: #cbd5e1; }
#vocht-wizard .vw-photo.is-selected {
  border-color: var(--vw-red); box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}
#vocht-wizard .vw-photo img { width: 100%; height: 128px; object-fit: cover; display: block; border-radius: 0 !important; max-width: 100%; }
#vocht-wizard .vw-photo-body { display: block; padding: 8px 10px; background: #fff; }
#vocht-wizard .vw-photo-label { display: block; font-size: 13px; font-weight: 600; color: var(--vw-slate-800); line-height: 1.2; }
#vocht-wizard .vw-photo-desc { display: block; font-size: 11px; color: var(--vw-slate-400); margin-top: 2px; line-height: 1.2; }
#vocht-wizard .vw-check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  border-radius: 999px; background: var(--vw-red);
  display: flex; align-items: center; justify-content: center;
}

/* ─── Text option list ───────────────────────────────────────────────────── */
#vocht-wizard .vw-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#vocht-wizard .vw-text-opt {
  width: 100%; text-align: left; padding: 12px 16px; border-radius: 12px;
  border: 2px solid var(--vw-slate-200); background: #fff; cursor: pointer;
  transition: border-color .15s ease, background .15s ease; font-family: inherit;
}
#vocht-wizard .vw-text-opt:hover { border-color: #cbd5e1; }
#vocht-wizard .vw-text-opt.is-selected { border-color: var(--vw-red); background: var(--vw-red-50); }
#vocht-wizard .vw-text-icon { font-size: 18px; margin-bottom: 4px; display: block; }
#vocht-wizard .vw-text-label { display: block; font-size: 13px; font-weight: 600; color: var(--vw-slate-800); }
#vocht-wizard .vw-text-opt.is-selected .vw-text-label { color: var(--vw-red-dark); }
#vocht-wizard .vw-text-desc { display: block; font-size: 11px; color: var(--vw-slate-400); margin-top: 2px; }

/* ─── Contact form ───────────────────────────────────────────────────────── */
#vocht-wizard .vw-row { display: grid; gap: 8px; margin-bottom: 8px; }
#vocht-wizard .vw-row-2 { grid-template-columns: 1fr 1fr; }
#vocht-wizard .vw-row-street { grid-template-columns: 1fr 100px; }
#vocht-wizard .vw-row-postcode { grid-template-columns: 120px 1fr; margin-bottom: 12px; }
#vocht-wizard .vw-field-wrap { position: relative; margin-bottom: 8px; }

#vocht-wizard .vw-input {
  width: 100%; height: 40px; padding: 0 12px; font-size: 13px;
  border: 1px solid var(--vw-slate-200); border-radius: 8px;
  background: #fff; color: var(--vw-slate-800); font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#vocht-wizard .vw-input::placeholder { color: var(--vw-slate-400); }
#vocht-wizard .vw-input:focus {
  outline: none; border-color: var(--vw-red);
  box-shadow: 0 0 0 3px hsl(0 72% 25% / 0.12);
}

/* Address autocomplete dropdown */
#vocht-wizard .vw-suggestions {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
  background: #fff; border: 1px solid var(--vw-slate-200); border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12); z-index: 50; overflow: hidden;
}
#vocht-wizard .vw-suggestion {
  width: 100%; text-align: left; padding: 10px 12px; background: #fff;
  border: 0; border-bottom: 1px solid var(--vw-slate-100); cursor: pointer;
  font-family: inherit; transition: background .15s ease;
}
#vocht-wizard .vw-suggestion:last-child { border-bottom: 0; }
#vocht-wizard .vw-suggestion:hover { background: var(--vw-slate-50); }
#vocht-wizard .vw-suggestion-main { font-size: 13px; font-weight: 500; color: var(--vw-slate-800); }
#vocht-wizard .vw-suggestion-sub { font-size: 11px; color: var(--vw-slate-400); }
#vocht-wizard .vw-suggestion-loading {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
  background: #fff; border: 1px solid var(--vw-slate-200); border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12); z-index: 50;
  padding: 10px 12px; font-size: 12px; color: var(--vw-slate-400);
}

/* Bedrijf toggle */
#vocht-wizard .vw-checkbox {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: var(--vw-slate-500); margin-bottom: 12px;
  user-select: none;
}
#vocht-wizard .vw-checkbox input { width: 16px; height: 16px; accent-color: var(--vw-red); }
#vocht-wizard .vw-company { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

/* Errors */
#vocht-wizard .vw-error {
  font-size: 12px; color: #ef4444; margin: 0 0 8px; text-align: center;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
#vocht-wizard .vw-btn-primary {
  width: 100%; height: 48px; font-size: 15px; font-weight: 700;
  background: var(--vw-red); color: #fff; border: 0; border-radius: 12px;
  cursor: pointer; margin-bottom: 8px; font-family: inherit;
  transition: background .15s ease, opacity .15s ease;
}
#vocht-wizard .vw-btn-primary:hover { background: var(--vw-red-dark); }
#vocht-wizard .vw-btn-primary:disabled { opacity: .6; cursor: default; }

#vocht-wizard .vw-back {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--vw-slate-400); font-family: inherit;
  transition: color .15s ease;
}
#vocht-wizard .vw-back:hover { color: var(--vw-slate-600, #475569); }

/* ─── Footer trust badges ────────────────────────────────────────────────── */
#vocht-wizard .vw-footer {
  padding: 14px 24px; background: rgba(236, 253, 245, .5);
  border-top: 1px solid var(--vw-emerald-100);
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
#vocht-wizard .vw-badge {
  font-size: 11px; color: var(--vw-emerald-700); font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}

/* ─── Success ────────────────────────────────────────────────────────────── */
#vocht-wizard .vw-success { text-align: center; padding: 16px 0; animation: vw-pop .35s ease both; }
@keyframes vw-pop {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
#vocht-wizard .vw-success-icon {
  width: 64px; height: 64px; border-radius: 999px; background: var(--vw-emerald-100);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
#vocht-wizard .vw-success h3 { font-size: 20px; font-weight: 700; color: var(--vw-slate-800); margin: 0 0 8px; }
#vocht-wizard .vw-success-lead {
  font-size: 13px; color: var(--vw-slate-500); margin: 0 auto 20px;
  max-width: 20rem; line-height: 1.6;
}
#vocht-wizard .vw-success-steps {
  background: var(--vw-slate-50); border-radius: 12px; padding: 16px;
  text-align: left; margin-bottom: 16px;
}
#vocht-wizard .vw-success-steps ul { list-style: none; margin: 0; padding: 0; }
#vocht-wizard .vw-success-steps li {
  font-size: 13px; color: var(--vw-slate-600, #475569); margin-bottom: 8px;
}
#vocht-wizard .vw-success-steps li:last-child { margin-bottom: 0; }
#vocht-wizard .vw-success-steps b { color: var(--vw-slate-700); }
#vocht-wizard .vw-success-phone { font-size: 12px; color: var(--vw-slate-400); margin: 0 0 16px; }
#vocht-wizard .vw-success-phone a { color: var(--vw-emerald-600); font-weight: 700; text-decoration: none; }

/* ─── Theme overrides ────────────────────────────────────────────────────────
   The Salient/Nectar WP theme forces border-radius:200px + uppercase/letter-
   spacing on every <button> with !important. Neutralise that for our buttons. */
#vocht-wizard button {
  text-transform: none !important;
  letter-spacing: normal !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: none;
}
#vocht-wizard .vw-photo,
#vocht-wizard .vw-text-opt { border-radius: 12px !important; }
#vocht-wizard .vw-btn-primary { border-radius: 12px !important; box-shadow: none !important; }
#vocht-wizard .vw-suggestion,
#vocht-wizard .vw-back { border-radius: 0 !important; }

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  #vocht-wizard .vw-header-team { height: 64px; }
  #vocht-wizard .vw-photo img { height: 104px; }
  #vocht-wizard .vw-body { padding: 20px; }
}
