/* Hairtec Voor & Na Match — stijl volgt hairtec-techniek-test (quiz.min.css) */
.hvm-banner,
.hvm-overlay {
  --hvm-font: var(--e-global-typography-primary-font-family, europa, Helvetica, Arial, sans-serif);
  --hvm-primary: var(--e-global-color-primary, #223558);
  --hvm-text: var(--e-global-color-text, #5C5C5C);
  --hvm-text-dark: #1F2124;
  --hvm-muted: #5F6678;
  --hvm-bg-soft: #F5F6F8;
  --hvm-border: #E4E6EC;
  --hvm-border-strong: #D5D8DC;
  --hvm-success: #1F8A5B;
  --hvm-skin: #EAD9CB;
  --hvm-soft: rgba(34, 53, 88, .07);
  --hvm-radius: 14px;
  --hvm-pill: 100px;
  font-family: var(--hvm-font);
  color: var(--hvm-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.hvm-banner *, .hvm-overlay * { box-sizing: border-box; }

/* ---- Knoppen ----
   Hoge specificiteit + volledige reset: het thema stylet <button> globaal
   (navy pill), net als bij hairtec-techniek-test moeten we alles expliciet
   terugzetten. */
.hvm-banner a.hvm-btn, .hvm-banner button.hvm-btn,
.hvm-overlay a.hvm-btn, .hvm-overlay button.hvm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0; border: 0; cursor: pointer; border-radius: var(--hvm-pill);
  padding: 16px 24px; font-family: inherit; font-size: 12px; font-weight: 400;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  text-shadow: none; box-shadow: none; min-height: 0; width: auto;
  line-height: 1; white-space: nowrap; transition: background-color .3s, color .3s;
}
.hvm-banner .hvm-btn--primary, .hvm-overlay .hvm-btn--primary { background: var(--hvm-primary); color: #fff; }
.hvm-banner .hvm-btn--primary:hover, .hvm-banner .hvm-btn--primary:focus-visible,
.hvm-overlay .hvm-btn--primary:hover, .hvm-overlay .hvm-btn--primary:focus-visible { background: var(--hvm-text); color: #fff; }
.hvm-overlay button.hvm-btn--ghost, .hvm-overlay .hvm-btn--ghost { background: none; color: var(--hvm-muted); padding: 12px 14px; gap: 6px; }
.hvm-overlay .hvm-btn--ghost:hover { color: var(--hvm-primary); background: var(--hvm-soft); }
.hvm-overlay .hvm-btn:disabled { opacity: .6; cursor: default; }
.hvm-banner .hvm-btn .hvm-ico, .hvm-overlay .hvm-btn .hvm-ico { width: 14px; height: 14px; }

/* ---- Banner op de pagina ---- */
.hvm-banner {
  display: flex; align-items: center; gap: 24px;
  background: var(--hvm-bg-soft); border: 1px solid var(--hvm-border);
  border-radius: 18px; padding: 22px 28px; margin: 24px 0;
}
.hvm-banner__icon { width: 64px; height: 64px; flex: none; }
.hvm-banner__icon svg { width: 100%; height: 100%; display: block; }
.hvm-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hvm-banner__text strong { font-size: 19px; font-weight: 700; color: var(--hvm-primary); line-height: 1.25; }
.hvm-banner__text span { font-size: 14.5px; color: var(--hvm-muted); }
@media (max-width: 640px) {
  .hvm-banner { flex-wrap: wrap; }
  .hvm-banner .hvm-btn { width: 100%; }
}

/* ---- Overlay + modal ---- */
.hvm-overlay {
  position: fixed; inset: 0; background: rgba(23, 39, 67, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: safe center; justify-content: center;
  padding: 24px; z-index: 2147483000; overflow: auto; overscroll-behavior: contain;
}
.hvm-modal {
  background: #fff; border-radius: 22px; width: 100%;
  max-width: min(900px, 100vw); height: min(600px, calc(100dvh - 48px));
  min-height: 480px; display: grid; grid-template-columns: 280px 1fr;
  grid-template-rows: minmax(0, 1fr);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35); overflow: hidden; margin: auto;
  animation: hvm-in .25s ease-out;
}
@keyframes hvm-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Linkerpaneel ---- */
.hvm-side {
  position: relative; min-height: 0; background: var(--hvm-primary); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 24px; overflow: hidden;
}
.hvm-side__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; margin: 0; }
.hvm-side::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 39, 67, .08) 0, rgba(23, 39, 67, .55) 45%, rgba(23, 39, 67, .97) 100%);
}
.hvm-side > :not(.hvm-side__img) { position: relative; z-index: 1; }
.hvm-side__title { font-size: 20px; font-weight: 700; line-height: 1.2; color: #fff; }
.hvm-side__sub { font-size: 13px; color: rgba(255, 255, 255, .78); margin: 8px 0 0; line-height: 1.5; }
.hvm-trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.hvm-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .92); margin: 0; }
.hvm-trust .hvm-ico { width: 26px; height: 26px; padding: 5px; color: #fff; background: rgba(255, 255, 255, .14); border-radius: 50%; flex: none; }
.hvm-steps { display: flex; gap: 5px; margin-top: 20px; }
.hvm-steps i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: background .25s; }
.hvm-steps i.done { background: #fff; }
.hvm-steps i.cur { background: rgba(255, 255, 255, .65); }

/* ---- Rechterpaneel ---- */
.hvm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.hvm-main__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 0; }
.hvm-main__step {
  font-size: 12px; color: var(--hvm-muted); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.hvm-main__step .hvm-ico { width: 14px; height: 14px; }
.hvm-overlay button.hvm-close {
  border: 0; background: var(--hvm-bg-soft); width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; color: var(--hvm-muted);
  display: grid; place-items: center; padding: 0; margin: 0;
  box-shadow: none; min-height: 0; font-size: 0;
}
.hvm-overlay button.hvm-close:hover { background: rgba(34, 53, 88, .14); color: var(--hvm-primary); }
.hvm-close .hvm-ico { width: 18px; height: 18px; }
.hvm-main__body {
  padding: 14px 24px 18px; overflow: auto; overflow-x: hidden; min-width: 0;
  flex: 1; display: flex; flex-direction: column; justify-content: safe center;
}
.hvm-main__body > * { flex: none; }
.hvm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hvm-muted); margin: 0; }
.hvm-title { font-size: 22px; margin: 4px 0 0; color: var(--hvm-primary); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.hvm-sub { margin: 4px 0 0; font-size: 13.5px; }
.hvm-main__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px 10px 12px; border-top: 1px solid var(--hvm-border); flex: none;
}
.hvm-hint { font-size: 12px; color: var(--hvm-muted); display: flex; align-items: center; gap: 6px; text-align: right; }
.hvm-hint .hvm-ico { width: 14px; height: 14px; }

/* ---- Opties ---- */
.hvm-options { display: grid; gap: 10px; margin-top: 16px; min-width: 0; }
.hvm-options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hvm-options--ill { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.hvm-overlay button.hvm-opt, .hvm-overlay a.hvm-opt {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin: 0; padding: 14px 8px 12px; background: #fff;
  border: 1.5px solid var(--hvm-border); border-radius: var(--hvm-radius);
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 400;
  letter-spacing: 0; text-transform: none; line-height: 1.3;
  color: var(--hvm-text); text-shadow: none; box-shadow: none; min-height: 0;
  transition: border-color .15s, background-color .15s;
  width: 100%; text-decoration: none;
}
.hvm-overlay button.hvm-opt:hover, .hvm-overlay a.hvm-opt:hover,
.hvm-overlay button.hvm-opt:focus-visible { border-color: var(--hvm-primary); background: #fff; }
.hvm-overlay button.hvm-opt.is-selected, .hvm-overlay button.hvm-opt.is-selected:hover {
  border-color: var(--hvm-primary); background: var(--hvm-soft); box-shadow: inset 0 0 0 1px var(--hvm-primary);
}
.hvm-overlay .hvm-opt .hvm-ill { width: 64px; height: 64px; }
.hvm-overlay .hvm-opt__label { font-size: 13px; font-weight: 400; color: var(--hvm-primary); line-height: 1.25; text-align: center; }
.hvm-overlay .hvm-opt__desc { font-size: 12.5px; color: var(--hvm-muted); }
.hvm-overlay .hvm-opt__radio {
  position: absolute; top: 8px; right: 8px; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid var(--hvm-border-strong); background: #fff;
  display: grid; place-items: center; color: #fff;
}
.hvm-overlay .hvm-opt__radio .hvm-ico { width: 10px; height: 10px; opacity: 0; }
.hvm-overlay .hvm-opt.is-selected .hvm-opt__radio { background: var(--hvm-primary); border-color: var(--hvm-primary); }
.hvm-overlay .hvm-opt.is-selected .hvm-opt__radio .hvm-ico { opacity: 1; }

/* ---- Resultaten ---- */
.hvm-summary {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  background: var(--hvm-soft); color: var(--hvm-primary); border-radius: var(--hvm-pill);
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; margin-top: 10px;
}
.hvm-summary .hvm-ico { width: 14px; height: 14px; }
.hvm-grafts {
  display: flex; gap: 10px; align-items: flex-start; background: var(--hvm-bg-soft);
  border-radius: 10px; padding: 10px 12px; margin-top: 12px;
  font-size: 13px; line-height: 1.4; color: var(--hvm-text-dark);
}
.hvm-grafts .hvm-ico { width: 17px; height: 17px; color: var(--hvm-success); flex: none; margin-top: 1px; }
.hvm-grafts b { color: var(--hvm-primary); }
.hvm-results { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.hvm-case { flex: 0 0 186px; scroll-snap-align: start; border: 1.5px solid var(--hvm-border); border-radius: var(--hvm-radius); overflow: hidden; background: #fff; }
@media (hover: hover) {
  .hvm-case:hover { border-color: var(--hvm-border-strong); }
}
.hvm-case__ph { position: relative; }
.hvm-case__ph a { display: block; }
.hvm-case__ph img { width: 100%; height: 96px; object-fit: cover; display: block; background: var(--hvm-bg-soft); margin: 0; }
.hvm-case__pg {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, .92); border-radius: var(--hvm-pill);
  padding: 1px 4px; font-size: 11px; color: var(--hvm-primary); white-space: nowrap;
}
.hvm-overlay button[class] ~ .hvm-case__pg button,
.hvm-overlay .hvm-case__pg button {
  border: 0; background: none; color: var(--hvm-primary);
  font-size: 15px; line-height: 1; width: 24px; height: 24px;
  min-height: 0; cursor: pointer; padding: 0; margin: 0; box-shadow: none; border-radius: 50%;
}
.hvm-case__body { padding: 8px 12px 10px; }
.hvm-case__name { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--hvm-primary); text-decoration: none; }
.hvm-case__meta { font-size: 12px; color: var(--hvm-muted); margin-top: 2px; }

/* ---- Direct aanvraagformulier ---- */
.hvm-lead { margin-top: 12px; position: relative; }
.hvm-lead__intro { margin: 0 0 8px; font-size: 13px; color: var(--hvm-text); }
.hvm-lead__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hvm-overlay .hvm-lead input[type="text"],
.hvm-overlay .hvm-lead input[type="email"],
.hvm-overlay .hvm-lead input[type="tel"] {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--hvm-border); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--hvm-text-dark);
  background: #fff; margin: 0; min-height: 0; box-shadow: none;
}
.hvm-overlay .hvm-lead input:focus { border-color: var(--hvm-primary); outline: none; }
.hvm-lead__privacy { margin: 6px 0 0; font-size: 11.5px; color: var(--hvm-muted); }
.hvm-lead__privacy a { color: var(--hvm-primary); text-decoration: underline; }
.hvm-lead__msg { margin: 6px 0 0; font-size: 12.5px; color: #b42318; }
.hvm-lead__thanks {
  display: flex; gap: 8px; align-items: flex-start; margin: 0;
  background: var(--hvm-bg-soft); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: var(--hvm-text-dark);
}
.hvm-lead__thanks .hvm-ico { width: 17px; height: 17px; color: var(--hvm-success); flex: none; margin-top: 1px; }

/* ---- Thema-guard ----
   Het thema (Elementor kit) stylet button:hover globaal (pill-radius, andere
   kleuren) en die stylesheet laadt ná deze. Kritieke eigenschappen worden
   daarom in alle states vastgepind. */
.hvm-overlay .hvm-modal button.hvm-opt,
.hvm-overlay .hvm-modal button.hvm-opt:hover,
.hvm-overlay .hvm-modal button.hvm-opt:focus,
.hvm-overlay .hvm-modal button.hvm-opt:focus-visible {
  border-radius: var(--hvm-radius) !important;
  border: 1.5px solid var(--hvm-border) !important;
  padding: 14px 8px 12px !important;
  min-height: 0 !important;
  background-color: #fff !important;
  background-image: none !important;
  color: var(--hvm-text) !important;
  box-shadow: none !important;
  transform: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.hvm-overlay .hvm-modal button.hvm-opt:hover,
.hvm-overlay .hvm-modal button.hvm-opt:focus-visible {
  border-color: var(--hvm-primary) !important;
}
.hvm-overlay .hvm-modal button.hvm-opt.is-selected,
.hvm-overlay .hvm-modal button.hvm-opt.is-selected:hover,
.hvm-overlay .hvm-modal button.hvm-opt.is-selected:focus,
.hvm-overlay .hvm-modal button.hvm-opt.is-selected:focus-visible {
  background-color: var(--hvm-soft) !important;
  border-color: var(--hvm-primary) !important;
  box-shadow: inset 0 0 0 1px var(--hvm-primary) !important;
}
.hvm-overlay .hvm-modal a.hvm-btn,
.hvm-overlay .hvm-modal button.hvm-btn,
.hvm-overlay .hvm-modal a.hvm-btn:hover,
.hvm-overlay .hvm-modal button.hvm-btn:hover,
.hvm-overlay .hvm-modal a.hvm-btn:focus,
.hvm-overlay .hvm-modal button.hvm-btn:focus {
  border-radius: var(--hvm-pill) !important;
  border: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.hvm-overlay .hvm-modal .hvm-btn--primary { background-color: var(--hvm-primary) !important; color: #fff !important; }
.hvm-overlay .hvm-modal .hvm-btn--primary:hover,
.hvm-overlay .hvm-modal .hvm-btn--primary:focus-visible { background-color: var(--hvm-text) !important; color: #fff !important; }
.hvm-overlay .hvm-modal .hvm-btn--ghost { background-color: transparent !important; color: var(--hvm-muted) !important; }
.hvm-overlay .hvm-modal .hvm-btn--ghost:hover { background-color: var(--hvm-soft) !important; color: var(--hvm-primary) !important; }
.hvm-overlay .hvm-modal .hvm-btn:disabled { background-color: var(--hvm-border) !important; color: #8a94a6 !important; }
.hvm-overlay .hvm-modal button.hvm-close,
.hvm-overlay .hvm-modal button.hvm-close:hover,
.hvm-overlay .hvm-modal button.hvm-close:focus {
  border-radius: 50% !important;
  border: 0 !important;
  width: 34px !important;
  height: 34px !important;
  min-height: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.hvm-overlay .hvm-modal button.hvm-close { background-color: var(--hvm-bg-soft) !important; }
.hvm-overlay .hvm-modal button.hvm-close:hover { background-color: rgba(34, 53, 88, .14) !important; }

/* ---- Mobiel ---- */
@media (max-width: 719px) {
  .hvm-overlay { padding: 0; align-items: flex-end; }
  .hvm-modal {
    grid-template-columns: 1fr; height: calc(100dvh - 40px); max-width: 100vw;
    border-radius: 22px 22px 0 0;
  }
  .hvm-side { display: none; }
  .hvm-options--ill { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hvm-case { flex-basis: 70%; }
  .hvm-lead__fields { grid-template-columns: 1fr; }
  .hvm-main__foot { flex-direction: column-reverse; align-items: stretch; padding: 10px 16px 14px; }
  .hvm-main__foot .hvm-btn--primary { width: 100%; }
  .hvm-hint { justify-content: center; }
}
