/* =========================================
   ZUREL OFFERTAANVRAAG — Form Styles
   Aesthetic: Refined Flemish Minimalism
   Fonts: DM Serif Display + DM Sans
   ========================================= */

:root {
  --zoa-bg:          #faf9f7;
  --zoa-surface:     #ffffff;
  --zoa-border:      #e4e1db;
  --zoa-border-focus:#2a2a2a;
  --zoa-text:        #1a1a1a;
  --zoa-muted:       #6b6562;
  --zoa-accent:      #1a1a2e;
  --zoa-accent-warm: #c8956c;
  --zoa-success:     #2d6a4f;
  --zoa-error:       #c0392b;
  --zoa-radius:      6px;
  --zoa-radius-lg:   12px;
  --zoa-shadow:      0 2px 20px rgba(0,0,0,.07);
  --zoa-shadow-lg:   0 8px 40px rgba(0,0,0,.12);
  --zoa-transition:  all .2s ease;
  --zoa-font-head:   'DM Serif Display', Georgia, serif;
  --zoa-font-body:   'DM Sans', system-ui, sans-serif;
}

/* ─── Container ────────────────────────── */
.zoa-wizard {
  font-family: var(--zoa-font-body);
  color: var(--zoa-text);
  max-width: 780px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

/* ─── Progress ─────────────────────────── */
.zoa-progress {
  margin-bottom: 40px;
}

.zoa-progress-bar {
  height: 3px;
  background: var(--zoa-border);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: visible;
}

.zoa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--zoa-accent), var(--zoa-accent-warm));
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 20%;
}

.zoa-steps-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.zoa-step-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  cursor: default;
}

.zoa-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--zoa-border);
  background: var(--zoa-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--zoa-muted);
  transition: var(--zoa-transition);
}

.zoa-step-label.active .zoa-step-dot,
.zoa-step-label.done .zoa-step-dot {
  background: var(--zoa-accent);
  border-color: var(--zoa-accent);
  color: #fff;
}

.zoa-step-name {
  font-size: 11px;
  color: var(--zoa-muted);
  text-align: center;
  font-weight: 500;
  display: none;
}

@media (min-width: 540px) {
  .zoa-step-name { display: block; }
}

.zoa-step-label.active .zoa-step-name {
  color: var(--zoa-text);
  font-weight: 600;
}

/* ─── Form step ─────────────────────────── */
.zoa-step {
  background: var(--zoa-surface);
  border: 1px solid var(--zoa-border);
  border-radius: var(--zoa-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--zoa-shadow);
  margin-bottom: 24px;
  animation: zoaFadeIn .3s ease;
}

@keyframes zoaFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Step header ───────────────────────── */
.zoa-step-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--zoa-border);
}

.zoa-step-num {
  font-family: var(--zoa-font-head);
  font-size: 48px;
  line-height: 1;
  color: var(--zoa-border);
  flex-shrink: 0;
  font-style: italic;
}

.zoa-step-header h2 {
  font-family: var(--zoa-font-head);
  font-size: 26px;
  margin: 0 0 4px;
  font-weight: 400;
}

.zoa-step-header p {
  margin: 0;
  color: var(--zoa-muted);
  font-size: 14px;
}

/* ─── Fields ────────────────────────────── */
.zoa-field {
  margin-bottom: 22px;
}

.zoa-field label:first-child {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--zoa-text);
  letter-spacing: .2px;
}

.zoa-field input[type="text"],
.zoa-field input[type="email"],
.zoa-field input[type="tel"],
.zoa-field input[type="number"],
.zoa-field input[type="url"],
.zoa-field select,
.zoa-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1.5px solid var(--zoa-border);
  border-radius: var(--zoa-radius);
  font-family: var(--zoa-font-body);
  font-size: 15px;
  color: var(--zoa-text);
  background: var(--zoa-bg);
  transition: var(--zoa-transition);
  outline: none;
  appearance: none;
}

.zoa-field input:focus,
.zoa-field select:focus,
.zoa-field textarea:focus {
  border-color: var(--zoa-border-focus);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,46,.08);
}

.zoa-field input.zoa-invalid,
.zoa-field select.zoa-invalid,
.zoa-field textarea.zoa-invalid {
  border-color: var(--zoa-error);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.zoa-field textarea {
  resize: vertical;
  min-height: 100px;
}

.zoa-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6562' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.req {
  color: var(--zoa-error);
  font-weight: 700;
}

.zoa-optional {
  color: var(--zoa-muted);
  font-weight: 400;
  font-size: 12px;
}

/* ─── Grid ──────────────────────────────── */
.zoa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 540px) {
  .zoa-grid-2 { grid-template-columns: 1fr; }
  .zoa-step { padding: 20px 16px; }
  .zoa-step-num { font-size: 32px; }
  .zoa-step-header { gap: 12px; margin-bottom: 22px; }
  .zoa-step-header h2 { font-size: 20px; }
  .zoa-radio-group { gap: 8px; }
  .zoa-radio { padding: 7px 10px; font-size: 13px; }
  .zoa-check-pill { padding: 7px 10px; font-size: 13px; }
  .zoa-btn { padding: 12px 18px; font-size: 14px; }
  .zoa-upload-zone { padding: 28px 16px; }

  /* Compact summary step 5 */
  .zoa-summary { padding: 16px; }
  .zoa-summary h3 { font-size: 14px; margin-bottom: 10px; }
  .zoa-summary-row { flex-direction: column; gap: 2px; padding: 9px 0; }
  .zoa-summary-label { min-width: unset; font-size: 11px; color: var(--zoa-muted); }
  .zoa-summary-value { font-size: 14px; font-weight: 500; }
}

/* ─── Input with unit ───────────────────── */
.zoa-input-unit {
  position: relative;
  display: flex;
}

.zoa-input-unit input {
  border-radius: var(--zoa-radius) 0 0 var(--zoa-radius) !important;
  border-right: none !important;
  flex: 1;
}

.zoa-input-unit span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--zoa-border);
  border: 1.5px solid var(--zoa-border);
  border-left: none;
  border-radius: 0 var(--zoa-radius) var(--zoa-radius) 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--zoa-muted);
  white-space: nowrap;
}

/* ─── Radio groups ──────────────────────── */
.zoa-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zoa-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  border: 1.5px solid var(--zoa-border);
  border-radius: 40px;
  font-size: 14px;
  transition: var(--zoa-transition);
  user-select: none;
}

.zoa-radio:hover {
  border-color: var(--zoa-accent);
  background: rgba(26,26,46,.04);
}

.zoa-radio input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--zoa-accent);
  flex-shrink: 0;
}

.zoa-radio input[type="radio"]:checked + * {
  font-weight: 600;
}

.zoa-radio:has(input:checked) {
  border-color: var(--zoa-accent);
  background: rgba(26,26,46,.06);
}

.zoa-radio--pill {
  background: var(--zoa-bg);
}

.zoa-radio-group--wrap {
  display: flex;
  flex-wrap: wrap;
}

/* ─── Checkbox pills ────────────────────── */
.zoa-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zoa-check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--zoa-border);
  border-radius: 40px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--zoa-transition);
  user-select: none;
}

.zoa-check-pill:hover {
  border-color: var(--zoa-accent);
}

.zoa-check-pill:has(input:checked) {
  border-color: var(--zoa-accent);
  background: rgba(26,26,46,.06);
  font-weight: 600;
}

.zoa-check-pill input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--zoa-accent);
  flex-shrink: 0;
}

/* ─── Diensten grid ─────────────────────── */
.zoa-diensten-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 560px) {
  .zoa-diensten-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 1 kolom, horizontale rij-layout */
@media (max-width: 480px) {
  .zoa-diensten-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .zoa-dienst-inner {
    flex-direction: row !important;
    align-items: center;
    min-height: unset !important;
    padding: 13px 14px !important;
    gap: 12px;
  }

  .zoa-dienst-icon {
    font-size: 22px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  .zoa-dienst-name {
    font-size: 14px !important;
    flex: 1;
  }

  .zoa-dienst-desc { display: none !important; }

  .zoa-check-mark {
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.6);
  }

  .zoa-dienst-card:has(input:checked) .zoa-check-mark {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}

.zoa-dienst-card {
  cursor: pointer;
  display: block;
}

.zoa-dienst-card input[type="checkbox"] {
  display: none;
}

.zoa-dienst-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border: 1.5px solid var(--zoa-border);
  border-radius: var(--zoa-radius-lg);
  background: var(--zoa-bg);
  transition: var(--zoa-transition);
  position: relative;
  min-height: 100px;
}

.zoa-dienst-card:hover .zoa-dienst-inner {
  border-color: var(--zoa-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.zoa-dienst-card:has(input:checked) .zoa-dienst-inner {
  border-color: var(--zoa-accent);
  background: #f0f0f8;
  box-shadow: 0 0 0 2px rgba(26,26,46,.12);
}

.zoa-dienst-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.zoa-dienst-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--zoa-text);
  line-height: 1.3;
}

.zoa-dienst-desc {
  font-size: 12px;
  color: var(--zoa-muted);
  line-height: 1.4;
}

.zoa-check-mark {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--zoa-accent);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--zoa-transition);
}

.zoa-dienst-card:has(input:checked) .zoa-check-mark {
  opacity: 1;
  transform: scale(1);
}

/* ─── Service sections ─────────────────── */
.zoa-service-title {
  font-family: var(--zoa-font-head);
  font-size: 18px;
  font-weight: 400;
  margin: 24px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--zoa-border);
  color: var(--zoa-accent);
}

.zoa-service-title:first-child {
  margin-top: 0;
}

/* ─── Conditional ───────────────────────── */
.zoa-conditional {
  background: #f7f5f2;
  border-left: 3px solid var(--zoa-accent-warm);
  border-radius: 0 var(--zoa-radius) var(--zoa-radius) 0;
  padding: 18px 20px;
  margin-top: 16px;
  animation: zoaFadeIn .2s ease;
}

/* ─── Upload zone ───────────────────────── */
.zoa-upload-zone {
  border: 2px dashed var(--zoa-border);
  border-radius: var(--zoa-radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--zoa-transition);
  position: relative;
  background: var(--zoa-bg);
}

.zoa-upload-zone:hover,
.zoa-upload-zone.dragover {
  border-color: var(--zoa-accent);
  background: rgba(26,26,46,.03);
}

.zoa-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.zoa-upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.zoa-upload-zone p {
  margin: 4px 0;
  color: var(--zoa-muted);
  font-size: 14px;
}

.zoa-upload-zone p span {
  color: var(--zoa-accent);
  font-weight: 600;
  text-decoration: underline;
}

.zoa-upload-hint {
  font-size: 12px !important;
  margin-top: 6px !important;
}

.zoa-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.zoa-file-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--zoa-bg);
  border: 1px solid var(--zoa-border);
  border-radius: var(--zoa-radius);
  font-size: 13px;
}

.zoa-file-preview-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--zoa-error);
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

/* ─── Summary ───────────────────────────── */
.zoa-summary {
  background: var(--zoa-bg);
  border: 1px solid var(--zoa-border);
  border-radius: var(--zoa-radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.zoa-summary h3 {
  font-family: var(--zoa-font-head);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--zoa-accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--zoa-border);
}

.zoa-summary-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--zoa-border);
}

.zoa-summary-row:last-child { border-bottom: none; }

.zoa-summary-label {
  font-weight: 600;
  color: var(--zoa-muted);
  font-size: 12px;
  min-width: 130px;
  flex-shrink: 0;
  padding-top: 1px;
}

.zoa-summary-value {
  color: var(--zoa-text);
  line-height: 1.5;
}

/* ─── GDPR ──────────────────────────────── */
.zoa-gdpr {
  margin: 24px 0;
}

.zoa-gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--zoa-muted);
  line-height: 1.5;
}

.zoa-gdpr-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--zoa-accent);
  cursor: pointer;
}

.zoa-gdpr-label a {
  color: var(--zoa-accent);
}

/* ─── Buttons ───────────────────────────── */
.zoa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  font-family: var(--zoa-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--zoa-transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.zoa-btn-next {
  background: var(--zoa-accent);
  color: #fff;
  border-color: var(--zoa-accent);
  margin-left: auto;
}

.zoa-btn-next:hover {
  background: #2e2e50;
  border-color: #2e2e50;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,26,46,.25);
}

.zoa-btn-prev {
  background: transparent;
  color: var(--zoa-muted);
  border-color: var(--zoa-border);
}

.zoa-btn-prev:hover {
  border-color: var(--zoa-accent);
  color: var(--zoa-accent);
}

.zoa-btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--zoa-accent);
  color: #fff;
  border-color: var(--zoa-accent);
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--zoa-radius);
}

.zoa-btn-submit:hover:not(:disabled) {
  background: #2e2e50;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,26,46,.3);
}

.zoa-btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.zoa-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* ─── Spinner ───────────────────────────── */
.zoa-spinner {
  width: 18px;
  height: 18px;
  animation: zoaSpin 1s linear infinite;
}

@keyframes zoaSpin {
  to { transform: rotate(360deg); }
}

/* ─── Error messages ────────────────────── */
.zoa-error-msg {
  color: var(--zoa-error);
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoa-error-global {
  background: #fff0ee;
  border: 1px solid #f5c6c0;
  color: var(--zoa-error);
  border-radius: var(--zoa-radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 16px;
}

.zoa-field-error {
  color: var(--zoa-error);
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* ─── Hint ──────────────────────────────── */
.zoa-hint {
  color: var(--zoa-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background: var(--zoa-bg);
  border-radius: var(--zoa-radius);
  border: 1px dashed var(--zoa-border);
}

/* ─── Success screen ────────────────────── */
.zoa-success-screen {
  text-align: center;
  padding: 60px 40px;
  background: var(--zoa-surface);
  border: 1px solid var(--zoa-border);
  border-radius: var(--zoa-radius-lg);
  box-shadow: var(--zoa-shadow);
  animation: zoaFadeIn .4s ease;
}

.zoa-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--zoa-success);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 700;
}

.zoa-success-screen h2 {
  font-family: var(--zoa-font-head);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 16px;
}

.zoa-success-screen p {
  color: var(--zoa-muted);
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto 10px;
  line-height: 1.7;
}

.zoa-success-sub {
  font-size: 14px !important;
  margin-top: 20px !important;
}

/* ─── Responsive ────────────────────────── */
