/* =====================================================
   Elektronica Zelf Scan — Frontend v3.0.0
   ===================================================== */

#esq-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(100,116,139,0.6); z-index: 999999;
  align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
#esq-overlay.esq-open { display: flex; }

.esq-modal {
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  width: 100%; max-width: 680px; max-height: 94vh;
  overflow-y: auto; position: relative;
  animation: esqModalIn .22s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin; scrollbar-color: #e5e7eb transparent;
}
@keyframes esqModalIn { from{opacity:0;transform:scale(.95) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);} }

/* ── Header ───────────────────────────────────────── */
.esq-modal-header { display:flex; align-items:center; justify-content:space-between; padding:18px 24px 14px; border-bottom:1px solid #f3f4f6; }
.esq-modal-brand { display:flex; align-items:center; gap:12px; }
.esq-modal-brand-icon { width:38px; height:38px; background:#EFF6FF; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.esq-modal-brand-title { font-size:14px; font-weight:700; color:#111827; line-height:1.2; display:block; font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif; }
.esq-modal-brand-step  { font-size:11px; font-weight:600; color:#9ca3af; text-transform:uppercase; letter-spacing:.06em; display:block; margin-top:1px; }
.esq-close { width:32px; height:32px; border:none; background:transparent; cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#9ca3af; padding:0; flex-shrink:0; transition:background .15s,color .15s; }
.esq-close:hover { background:#f3f4f6; color:#374151; }

/* ── Progress ─────────────────────────────────────── */
.esq-progress-bar { height:3px; background:#e5e7eb; }
.esq-progress-fill { height:100%; background:#2563EB; transition:width .4s ease; width:0%; }

/* ── Body ─────────────────────────────────────────── */
.esq-modal-body { padding:28px 28px 32px; }

/* ── Loading ──────────────────────────────────────── */
.esq-loading { display:flex; flex-direction:column; align-items:center; padding:48px 24px; gap:16px; color:#6b7280; font-size:14px; }
.esq-spinner { width:32px; height:32px; border:3px solid #e5e7eb; border-top-color:#2563EB; border-radius:50%; animation:esqSpin .7s linear infinite; }
@keyframes esqSpin { to{transform:rotate(360deg);} }

/* ── Question ─────────────────────────────────────── */
.esq-question-text { font-size:21px; font-weight:800; color:#111827; line-height:1.3; margin:0 0 22px; font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif; }

/* ── Options ──────────────────────────────────────── */
.esq-options { display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.esq-option { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border:1.5px solid #e5e7eb; border-radius:10px; cursor:pointer; background:#fff; transition:border-color .14s,background .14s; width:100%; font-size:14px; font-weight:500; color:#374151; font-family:inherit; text-align:left; box-sizing:border-box; }
.esq-option:hover { border-color:#2563EB; background:#F8FAFF; color:#374151; }
.esq-option.esq-selected { border-color:#2563EB; background:#EFF6FF; color:#1d4ed8; }
.esq-option-label { flex:1; min-width:0; word-break:break-word; white-space:normal; line-height:1.45; padding-right:10px; }
.esq-option-radio { width:20px; height:20px; min-width:20px; border:2px solid #d1d5db; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:border-color .14s,background .14s; }
.esq-option.esq-selected .esq-option-radio { border-color:#2563EB; background:#2563EB; }
.esq-option.esq-selected .esq-option-radio::after { content:''; width:7px; height:7px; border-radius:50%; background:white; }
.esq-other-input { display:block; width:100%; margin-top:10px; padding:10px 14px; border:1.5px solid #e5e7eb; border-radius:8px; font-size:14px; color:#111827; font-family:inherit; box-sizing:border-box; outline:none; }
.esq-other-input:focus { border-color:#2563EB; box-shadow:0 0 0 3px rgba(37,99,235,.1); }

/* ── Nav ──────────────────────────────────────────── */
.esq-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.esq-back-btn { display:inline-flex; align-items:center; gap:5px; background:none; border:none; color:#6b7280; font-size:14px; font-weight:500; cursor:pointer; padding:10px 4px; font-family:inherit; }
.esq-back-btn:hover { color:#374151; }
.esq-next-btn { display:inline-flex; align-items:center; gap:8px; padding:13px 26px; background:#1e293b; color:white; border:none; border-radius:999px; font-size:15px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .14s,transform .12s; white-space:nowrap; }
.esq-next-btn:hover:not(:disabled) { background:#0f172a; transform:translateY(-1px); }
.esq-next-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ── Step animation ───────────────────────────────── */
.esq-step-enter { animation:esqSlideIn .2s ease; }
@keyframes esqSlideIn { from{opacity:0;transform:translateX(10px);}to{opacity:1;transform:translateX(0);} }

/* ══════════════════════════════════════════════════
   RESULT SECTIONS — Engineering style, brand #114696
══════════════════════════════════════════════════ */
:root {
  --esq-brand:      #114696;
  --esq-brand-light:#e8eef7;
  --esq-text:       #1a1a2e;
  --esq-muted:      #6b7280;
  --esq-border:     #dde3ec;
  --esq-bg-subtle:  #f7f9fc;
}

.esq-result { animation:esqFadeUp .22s ease; }
@keyframes esqFadeUp { from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);} }

/* ── Section base ─────────────────────────────────── */
.esq-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--esq-border);
}
.esq-section:last-of-type { border-bottom: none; }

.esq-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--esq-brand);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--esq-brand);
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

/* ── Roadmap ──────────────────────────────────────── */
.esq-roadmap {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.esq-rm-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.esq-rm-node {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.esq-rm-done   .esq-rm-node { background: var(--esq-brand); color: white; }
.esq-rm-next   .esq-rm-node { background: var(--esq-brand); color: white; outline: 3px solid var(--esq-brand-light); outline-offset: 1px; }
.esq-rm-future .esq-rm-node { background: white; color: #9ca3af; border: 1.5px solid var(--esq-border); }

.esq-rm-line {
  flex: 1; height: 1px; background: var(--esq-border); min-width: 10px;
}
.esq-rm-line-done { background: var(--esq-brand); }

/* Labels row */
.esq-roadmap-labels {
  display: flex;
}

.esq-rm-label {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
  padding: 0 2px;
  min-width: 0;
}
.esq-rm-label-done { color: #c4cad4; }
.esq-rm-label-next { color: var(--esq-brand); font-weight: 700; }
.esq-rm-label-future { color: #9ca3af; }

.esq-rm-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--esq-brand);
  border: 1px solid var(--esq-brand);
  padding: 1px 6px;
  border-radius: 2px;
  margin-top: 4px;
}

/* ── Doorlooptijd ─────────────────────────────────── */
.esq-duration-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--esq-border);
  border-bottom: 1px solid var(--esq-border);
}
.esq-duration-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--esq-brand);
  white-space: nowrap;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  flex-shrink: 0;
}
.esq-duration-value span { font-size: 14px; font-weight: 500; color: var(--esq-muted); margin-left: 4px; }
.esq-duration-text { font-size: 14px; color: var(--esq-muted); line-height: 1.65; margin: 0; }

/* ── Aandachtspunten ──────────────────────────────── */
.esq-aandacht-intro { font-size: 13px; color: var(--esq-muted); margin: 0 0 14px; line-height: 1.65; }
.esq-aandacht-list  { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.esq-aandacht-item  {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--esq-border);
  font-size: 14px; color: var(--esq-text); line-height: 1.65;
}
.esq-aandacht-item:last-child { border-bottom: none; padding-bottom: 0; }
.esq-aandacht-marker {
  font-size: 11px; font-weight: 800; color: var(--esq-brand);
  width: 20px; flex-shrink: 0; padding-top: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

/* ── Volgende Stap ────────────────────────────────── */
.esq-next-card {
  background: var(--esq-brand);
  padding: 18px 20px;
  border-radius: 0;
}
.esq-next-arrow-label {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.esq-next-text { font-size: 14px; color: white; line-height: 1.65; margin: 0; }

/* ── Contact section ──────────────────────────────── */
.esq-contact-section {
  border-top: 2px solid var(--esq-border);
  padding-top: 28px;
}

.esq-calendly-intro { margin-bottom: 20px; }
.esq-calendly-sub { font-size: 14px; color: var(--esq-muted); line-height: 1.65; margin: 6px 0 10px; }
.esq-tagline { font-size: 12px; color: var(--esq-muted); margin: 0; }

.esq-calendly-layout { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.esq-jop-photo { flex-shrink: 0; width: 80px; }
.esq-jop-photo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--esq-border); display: block; }
.esq-calendly-wrap { flex: 1; min-width: 0; }
.esq-calendly-title-text { font-size: 13px; font-weight: 600; color: var(--esq-text); margin: 0 0 12px; }

/* ── Email divider ────────────────────────────────── */
.esq-email-divider {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
}
.esq-email-divider span { font-size: 13px; font-weight: 600; color: var(--esq-text); white-space: nowrap; }
.esq-email-divider::before,.esq-email-divider::after { content:''; flex:1; height:1px; background:var(--esq-border); }

/* ── Contact form ─────────────────────────────────── */
.esq-contact-block { border: 1px solid var(--esq-border); padding: 20px; margin-bottom: 16px; background: var(--esq-bg-subtle); }
.esq-contact-block-label { font-size: 13px; font-weight: 600; color: var(--esq-text); margin-bottom: 16px; display: block; }
.esq-form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.esq-form-col { flex: 1; min-width: 0; }
.esq-field-label { display: block; font-size: 11px; font-weight: 700; color: var(--esq-text); margin-bottom: 5px; letter-spacing: .03em; text-transform: uppercase; }
.esq-required { color: #c0392b; }
.esq-field { width: 100%; padding: 9px 12px; border: 1px solid var(--esq-border); border-radius: 0; font-size: 14px; font-family: inherit; color: var(--esq-text); box-sizing: border-box; outline: none; transition: border-color .14s; background: white; }
.esq-field:focus { border-color: var(--esq-brand); box-shadow: none; }
.esq-field::placeholder { color: #b0b8c4; }
.esq-field-textarea { resize: vertical; min-height: 72px; line-height: 1.5; display: block; }
.esq-form-submit-btn { width: 100%; padding: 12px 20px; background: var(--esq-brand); color: white; border: none; border-radius: 0; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .14s; margin-top: 4px; letter-spacing: .02em; }
.esq-form-submit-btn:hover:not(:disabled) { background: #0d3474; }
.esq-form-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.esq-email-success { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 14px; font-weight: 500; }

/* ── Restart ──────────────────────────────────────── */
.esq-restart-row { display: flex; justify-content: center; padding-top: 12px; }
.esq-restart-btn { background: none; border: none; color: #9ca3af; font-size: 12px; cursor: pointer; font-family: inherit; letter-spacing: .03em; }
.esq-restart-btn:hover { color: var(--esq-muted); }

/* ── Elementor btn ────────────────────────────────── */
.esq-elementor-btn-wrap { line-height:1; }
.esq-elementor-btn { display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-family:inherit; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width:580px) {
  .esq-modal { max-width:100%; max-height:100vh; border-radius:0; }
  .esq-modal-body { padding:20px 16px 28px; }
  .esq-question-text { font-size:18px; }
  .esq-form-row { flex-direction:column; gap:0; }
  .esq-form-col { margin-bottom:12px; }
  .esq-roadmap { gap:2px; }
  .esq-rm-step { min-width:70px; }
  .esq-rm-label { font-size:10px; }
  .esq-duration-card { flex-direction:column; gap:10px; }
  .esq-calendly-layout { flex-direction:column; }
  .esq-jop-photo { display:flex; justify-content:center; width:100%; }
}
