/* ===== Thema-tokens (matcht je site) ===== */
:root{
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --brand:#007BFF;
  --brand-600:#0066d6;
  --stroke:#e2e8f0;
  --shadow:0 18px 45px rgba(15,23,42,.15);
}

html[data-theme="dark"]{
  --surface:#0e1628;
  --surface-2:#111a2f;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --brand:#5aa3ff;
  --brand-600:#2f7cf3;
  --stroke:#213054;
  --shadow:0 18px 45px rgba(0,0,0,.55);
}

/* ===== Algemene CTA-knop in modal ===== */
.strategy-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  font-size:16px;
  padding:14px 24px;
  border:0;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(0,123,255,.35);
  cursor:pointer;
  text-decoration:none;
  transition:background .18s, transform .06s, box-shadow .15s;
}
.strategy-btn:hover{
  background:var(--brand-600);
}
.strategy-btn:active{
  transform:translateY(1px);
  box-shadow:0 4px 14px rgba(0,123,255,.25);
}

/* ===== Overlay ===== */

/* ===== Overlay ===== */
.strategy-modal{
  position:fixed;
  inset:0;
  z-index:9999;                    /* iets hoger, blijft onder je cookiebanner (9999) of pas naar smaak aan */
  display:none;                    /* JS voegt .strategy-modal--open toe */
  align-items:center;              /* standaard netjes centreren in beeld */
  justify-content:center;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(4px);
  padding:16px;                    /* wat marge rond de popup */
  box-sizing:border-box;
  overflow-y:visible;              /* scroll verplaatsen naar de dialoog zelf */
}

.strategy-modal--open{
  display:flex;
}

/* ===== Dialoog ===== */
.strategy-modal__dialog{
  position:relative;
  background:var(--surface);
  color:var(--text);
  width:92%;
  max-width:520px;
  margin:auto;
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:22px 26px 20px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  border:1px solid var(--stroke);
  backdrop-filter:blur(2px);
}

/* Close-knop rechtsboven */
.strategy-modal__close{
  position:absolute;
  top:12px;
  right:16px;
  border:0;
  background:none;
  font-size:22px;
  cursor:pointer;
  color:var(--muted);
  line-height:1;
}
.strategy-modal__close:hover{
  color:var(--text);
}

/* Titel + intro */
.strategy-modal__dialog h2{
  margin:0 0 6px;
  font-size:20px;
  letter-spacing:.01em;
}
.strategy-modal__intro{
  margin:0 0 14px;
  font-size:14px;
  color:var(--muted);
}

/* ===== Formulier ===== */
.strategy-form{
  display:flex;
  flex-direction:column;
  gap:12px;                        /* iets meer ademruimte */
}

.strategy-field{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.strategy-field label{
  font-size:12.5px;
  font-weight:600;
}

.strategy-field input{
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:9px 11px;
  font-size:14px;
  background:var(--surface);
  color:var(--text);
}

.strategy-field input::placeholder{
  color:#9ca3af;
}

/* extra lucht tussen laatste input en toggles */
.strategy-field + .strategy-toggle-group__label{
  margin-top:6px;
}

/* Info- en fouttekst */
.strategy-form__note{
  font-size:12.5px;
  color:var(--muted);
  margin:10px 0 12px;
}
.strategy-form__error{
  color:#dc2626;
  font-size:12px;
  margin:6px 0 0;
}

/* ===== Toggles (Telefoon / Video) ===== */
.strategy-toggle-group__label{
  font-size:12.5px;
  font-weight:600;
  margin:2px 0 4px;
}

.strategy-toggle-options{
  display:flex;
  gap:10px;
}

.strategy-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:var(--surface-2);
  cursor:pointer;
  border:1px solid transparent;
  font-size:13px;
  transition:background .2s;
}

/* hover-gevoel op toggles */
.strategy-toggle:hover{
  background:#eef3fa;
}

.strategy-toggle input{
  position:absolute;
  opacity:0;
}

.strategy-toggle__slider{
  width:32px;
  height:18px;
  border-radius:999px;
  background:#d4d4d4;
  position:relative;
  transition:background .2s;
}

.strategy-toggle__slider::before{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  transition:transform .2s;
}

/* “Aan” = blauw */
.strategy-toggle input:checked + .strategy-toggle__slider{
  background:var(--brand);
}
.strategy-toggle input:checked + .strategy-toggle__slider::before{
  transform:translateX(14px);
}

/* ===== Samenvatting na versturen ===== */
.strategy-summary{
  margin-top:10px;
}

.strategy-summary h3{
  margin:0 0 6px;
  font-size:16px;
}

.strategy-summary__text{
  background:var(--surface-2);
  border:1px solid var(--stroke);
  padding:8px 10px;
  border-radius:10px;
  font-size:12.5px;
  white-space:pre-wrap;
  margin:0 0 10px;
}

/* ===== Trust-footer binnen modal ===== */
.strategy-trust{
  text-align:center;
  border-top:1px solid var(--stroke);
  margin-top:16px;
  padding-top:10px;
}

.strategy-trust__logo{
  height:22px;
  margin-bottom:2px;
}

.strategy-trust__text{
  font-size:11px;
  color:var(--muted);
  margin:0;
}

/* ===== Focus states & accessibility ===== */
.strategy-modal__dialog button:focus-visible,
.strategy-modal__dialog input:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}

/* ===== Mobiel ===== */
@media (max-width:600px){
  .strategy-modal{
    padding:16px 0;
  }

  .strategy-modal__dialog{
    width:94%;
    padding:18px 18px 18px;
    border-radius:18px;
  }

  .strategy-modal__dialog h2{
    font-size:18px;
  }

  .strategy-modal__intro{
    font-size:13px;
    margin-bottom:10px;
  }

  .strategy-field input{
    padding:8px 10px;
    font-size:13.5px;
  }

  .strategy-btn{
    font-size:15px;
    padding:13px 20px;
  }

  .strategy-toggle-options{
    justify-content:flex-start;
  }
}

/* Extra safeguard: op erg lage schermen iets compacter */
@media (max-height:780px){
  .strategy-modal{
    padding:16px 0;
  }
  .strategy-modal__dialog{
    padding-top:18px;
    padding-bottom:16px;
  }
  .strategy-modal__intro{
    margin-bottom:10px;
  }
  .strategy-trust{
    margin-top:12px;
    padding-top:8px;
  }
}


/* Zorg dat hidden echt verstopt is, ook met globals/resets */
.strategy-form[hidden],
.strategy-summary[hidden]{
  display: none !important;
}


/* === Strategie-popup verbeteringen === */

.strategy-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #22c55e; /* zacht groen */
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-right: 8px;
}

.strategy-modal__dialog.success #strategyTitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #111; /* zwarte titel */
  font-weight: 600;
}





/* maakt het visueel rustiger bij succes */
.strategy-modal__dialog.success h2 {
  color: #22c55e;
}

.strategy-modal__dialog.success .strategy-modal__intro {
  font-size: 1rem;
  color: var(--muted, #444);
  margin-top: 0.25rem;
}





/* Animatie bij succes */
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.strategy-modal__dialog h2 .strategy-title-icon {
  animation: popIn 0.25s ease-out;
}


/* --- Mobiele optimalisatie voor strategy modal --- */
@media (max-width: 600px) {
  .strategy-modal__dialog {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* --- Fix voor iOS-zoom op formulier velden --- */
@media (max-width: 600px) {
  .strategy-form input,
  .strategy-form select,
  .strategy-form textarea {
    font-size: 16px;      /* voorkomt auto-zoom op iOS */
  }

  /* Als je de tekst in labels / hulptekst wilt laten matchen: */
  .strategy-field label,
  .strategy-form__note,
  .strategy-modal__intro {
    font-size: 15px;
    line-height: 1.5;
  }
}

