/* ── Google Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────── */
#oogzorg-mkh-root {
  --bg:          #FAF7F2;
  --surface:     #FFFFFF;
  --ink:         #1F1B16;
  --ink-2:       #5A5249;
  --ink-3:       #8A8175;
  --line:        #E9E2D6;
  --line-2:      #D9CFBE;
  --accent:      #B8893A;
  --accent-ink:  #7A5A20;
  --accent-soft: #F4ECDC;
  --good:        #3F7A4B;
  --warn:        #B5532B;
  --shadow:      0 1px 2px rgba(31,27,22,.04), 0 8px 24px -12px rgba(31,27,22,.12);
  --radius:      14px;
}

/* ── Reset (alleen binnen de widget) ──────────────────────────────── */
#oogzorg-mkh-root *,
#oogzorg-mkh-root *::before,
#oogzorg-mkh-root *::after { box-sizing: border-box; }

#oogzorg-mkh-root {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--bg);
}

#oogzorg-mkh-root button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  margin: 0;
}
#oogzorg-mkh-root input { font-family: inherit; }
#oogzorg-mkh-root h1,
#oogzorg-mkh-root h2,
#oogzorg-mkh-root h3,
#oogzorg-mkh-root h4 { line-height: 1.2; }

/* ── App shell ─────────────────────────────────────────────────────── */
.eov-app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ────────────────────────────────────────────────────────── */
.eov-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
  gap: 12px;
}
.eov-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.eov-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
  display: inline-block;
}
.eov-step-meta {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eov-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.eov-home-link {
  font-size: 11px;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: .03em;
  opacity: .65;
  transition: opacity .15s;
  white-space: nowrap;
}
.eov-home-link:hover { opacity: 1; color: var(--accent); text-decoration: underline; }

/* ── Progress-balk ─────────────────────────────────────────────────── */
.eov-progress { padding: 0 20px; }
.eov-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.eov-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}

/* ── Stage-animatie ────────────────────────────────────────────────── */
.eov-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px;
  animation: eov-fade .35s ease both;
}
@keyframes eov-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Sticky footer ─────────────────────────────────────────────────── */
.eov-footer-cta {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0) 0%, var(--bg) 30%);
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
}

/* ── Knoppen ───────────────────────────────────────────────────────── */
.eov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  min-height: 56px;
  flex: 1;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.eov-btn:active { transform: translateY(1px) scale(.995); }
.eov-btn-primary { background: var(--ink); color: #fff; }
.eov-btn-primary:hover { background: #000; }
.eov-btn-primary:disabled { background: var(--line-2); color: #fff; cursor: not-allowed; }
.eov-btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.eov-btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.eov-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line);
  font-size: 13px;
  width: 100%;
}
.eov-home-btn:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.eov-btn-icon { flex: 0 0 56px; min-width: 56px; }

/* ── Welkomscherm ──────────────────────────────────────────────────── */
.eov-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 6px;
}
.eov-hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 10px 0 14px;
}
.eov-hero-sub {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 24px;
}
.eov-points { display: grid; gap: 12px; margin: 8px 0; }
.eov-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.eov-point-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Fraunces", serif;
  font-size: 17px;
}
.eov-point h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.eov-point p  { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

.eov-scale-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 18px 0 4px;
}
.eov-scale-preview > div {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  background: var(--surface);
}
.eov-scale-preview b { display: block; font-family: "Fraunces", serif; font-size: 18px; color: var(--ink); font-weight: 500; }
.eov-scale-preview span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }

.eov-legal { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 14px; }

/* ── Vraag-scherm ──────────────────────────────────────────────────── */
.eov-q-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 12px;
}
.eov-q-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}
.eov-q-helper { color: var(--ink-2); font-size: 14.5px; margin: 0 0 22px; line-height: 1.5; }

.eov-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 8px;
}
.eov-back-link:hover { color: var(--ink); }

.eov-scale { display: grid; gap: 10px; }
.eov-scale-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  text-align: left;
  width: 100%;
}
.eov-scale-opt:hover  { border-color: var(--line-2); }
.eov-scale-opt:active { transform: scale(.995); }
.eov-scale-opt.selected { border-color: var(--accent); background: var(--accent-soft); }

.eov-nbox {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
  background: var(--bg);
  transition: inherit;
}
.eov-scale-opt.selected .eov-nbox { background: var(--accent); border-color: var(--accent); color: #fff; }
.eov-scale-lab { font-size: 15.5px; font-weight: 500; color: var(--ink); display: block; }
.eov-scale-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; display: block; }

/* ── Contactformulier ──────────────────────────────────────────────── */
.eov-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.eov-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.eov-field input {
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 52px;
  width: 100%;
}
.eov-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eov-field input.has-error { border-color: var(--warn); }
.eov-err { font-size: 12.5px; color: var(--warn); }

.eov-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  padding: 10px 0;
  cursor: pointer;
}
.eov-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
  margin-top: 1px;
  cursor: pointer;
  flex-shrink: 0;
}

.eov-submit-error {
  font-size: 13.5px;
  color: var(--warn);
  background: #FBE9DF;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.eov-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ── Resultaat ─────────────────────────────────────────────────────── */
.eov-result-hero {
  padding: 26px 22px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 14px;
}
.eov-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 4px;
}
.eov-verdict-pill.good { background: #E8F1EA; color: var(--good); }
.eov-verdict-pill.warn { background: #FBE9DF; color: var(--warn); }

.eov-score-ring {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 6px auto 14px;
}
.eov-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.eov-ring-bg { stroke: var(--line); }
.eov-ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1);
}
.eov-score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.eov-score-big  { font-family: "Fraunces", serif; font-size: 54px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.eov-score-denom { font-size: 22px; color: var(--ink-3); }
.eov-score-label { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.eov-ring-meta { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--ink-2); }

.eov-advice {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.eov-advice h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.005em; font-family: "Fraunces", serif; font-weight: 500; }
.eov-advice p  { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.eov-breakdown {
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.eov-breakdown summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.eov-breakdown summary::-webkit-details-marker { display: none; }
.eov-breakdown summary::after { content: "›"; font-size: 22px; color: var(--ink-3); transition: transform .2s ease; }
.eov-breakdown[open] summary::after { transform: rotate(90deg); }
.eov-breakdown ul { list-style: none; padding: 0 16px 14px; margin: 0; display: grid; gap: 8px; }
.eov-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.eov-breakdown li b { font-family: "Fraunces", serif; font-weight: 500; color: var(--ink); font-size: 15px; flex: 0 0 28px; text-align: right; }

.eov-submitted-mail { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ── Verstuurd-scherm ──────────────────────────────────────────────── */
.eov-sent-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
}
.eov-sent-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  animation: eov-pop .5s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes eov-pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.eov-sent-icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--accent-ink);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Voortgang herstellen ──────────────────────────────────────────── */
.eov-resume-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--accent-ink);
}
.eov-resume-banner > span { flex: 1; min-width: 140px; }
.eov-resume-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.eov-resume-btn:hover { background: var(--accent-ink); }
.eov-resume-discard {
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.eov-resume-discard:hover { color: var(--ink); }

/* ── Overzichtsscherm ──────────────────────────────────────────────── */
.eov-review-list { display: grid; gap: 8px; margin-top: 4px; }
.eov-review-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.eov-review-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.eov-review-item:active { transform: scale(.998); }
.eov-review-item.high  { border-color: #f0c8b0; background: #fdf3ef; }
.eov-review-item.high:hover { border-color: var(--warn); }

.eov-review-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eov-review-txt { flex: 1; font-size: 13px; color: var(--ink); line-height: 1.35; }
.eov-review-ans {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 36px;
}
.eov-review-ans.high .eov-review-score { color: var(--warn); }
.eov-review-score { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1; }
.eov-review-lbl { font-size: 9.5px; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.eov-review-pencil { font-size: 14px; color: var(--ink-3); margin-left: 4px; flex-shrink: 0; }

/* ── CTA-knop in adviesblok ────────────────────────────────────────── */
.eov-cta-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  text-decoration: none;
  font-size: 15px;
  flex: none;
  width: 100%;
  box-sizing: border-box;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .eov-hero-title { font-size: 40px; }
  .eov-q-title    { font-size: 28px; }
}
