/* Van Ravels Media — AI-assistent widget (huisstijl: #0C2740, #16a34a, #7BE0A0) */
.vrm-chat-fab{
  position:fixed;right:22px;bottom:22px;z-index:920;
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 18px 12px 14px;border:1px solid rgba(123,224,160,.32);border-radius:999px;
  background:linear-gradient(135deg,#0C2740 0%,#123457 100%);color:#fff;
  font:700 14.5px/1 "Schibsted Grotesk",system-ui,sans-serif;letter-spacing:-.01em;
  box-shadow:0 18px 42px -12px rgba(12,39,64,.55),0 0 0 1px rgba(255,255,255,.08) inset;
  cursor:pointer;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s,opacity .2s;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.vrm-chat-fab:hover{transform:translateY(-2px);box-shadow:0 22px 46px -10px rgba(12,39,64,.65),0 0 0 1px rgba(123,224,160,.45) inset}
.vrm-chat-fab:focus-visible{outline:2px solid #7BE0A0;outline-offset:3px}
.vrm-chat-fab.is-open{opacity:0;pointer-events:none;transform:scale(.92)}
.vrm-chat-fab-ico{
  position:relative;width:28px;height:28px;border-radius:50%;
  background:rgba(123,224,160,.16);color:#7BE0A0;
  display:grid;place-items:center;flex:none;
}
.vrm-chat-fab-dot{
  position:absolute;top:-1px;right:-1px;width:9px;height:9px;border-radius:50%;
  background:#22c55e;border:2px solid #0C2740;
  box-shadow:0 0 0 0 rgba(34,197,94,.55);animation:vrmPulse 2.4s ease-out infinite;
}
@keyframes vrmPulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}
  70%{box-shadow:0 0 0 7px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

/* Zwevend glazen chatpaneel */
.vrm-chat-panel{
  position:fixed;right:22px;bottom:22px;z-index:950;
  width:392px;max-width:calc(100vw - 24px);
  height:min(620px,calc(100svh - 44px));
  display:flex;flex-direction:column;overflow:hidden;
  border-radius:22px;border:1px solid rgba(255,255,255,.15);
  background:
    radial-gradient(280px 220px at 96% 4%,rgba(123,224,160,.20),transparent 68%),
    radial-gradient(240px 200px at 6% 94%,rgba(22,163,74,.14),transparent 70%),
    rgba(11,29,48,.92);
  backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%);
  box-shadow:0 28px 70px -16px rgba(4,16,30,.68),0 0 0 1px rgba(255,255,255,.06) inset;
  color:#F1F5F9;font-family:"Hanken Grotesk",system-ui,sans-serif;
  opacity:0;transform:translateY(14px) scale(.96);pointer-events:none;
  transition:opacity .22s cubic-bezier(.2,.8,.2,1),transform .24s cubic-bezier(.2,.8,.2,1);
}
.vrm-chat-panel.is-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}

/* Kop */
.vrm-chat-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 16px 13px;border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(8,22,38,.45);flex:none;
}
.vrm-chat-brand{display:flex;align-items:center;gap:11px;min-width:0}
.vrm-chat-mark{
  width:34px;height:34px;border-radius:10px;flex:none;
  background:linear-gradient(135deg,#0C2740,#153d63);border:1px solid rgba(123,224,160,.35);
  color:#7BE0A0;font:800 13.5px/1 "Schibsted Grotesk",system-ui,sans-serif;letter-spacing:-.03em;
  display:grid;place-items:center;
}
.vrm-chat-title{margin:0;font:700 15px/1.15 "Schibsted Grotesk",system-ui,sans-serif;color:#fff}
.vrm-chat-status{
  display:flex;align-items:center;gap:6px;margin-top:3px;
  font-size:12px;font-weight:500;color:#7BE0A0;line-height:1;
}
.vrm-chat-status i{width:7px;height:7px;border-radius:50%;background:#22c55e;display:inline-block}
.vrm-chat-head-acts{display:flex;align-items:center;gap:4px}
.vrm-chat-iconbtn{
  width:34px;height:34px;border-radius:10px;border:0;background:transparent;
  color:rgba(255,255,255,.72);display:grid;place-items:center;cursor:pointer;
  transition:background .15s,color .15s;
}
.vrm-chat-iconbtn:hover{background:rgba(255,255,255,.10);color:#fff}
.vrm-chat-iconbtn:focus-visible{outline:2px solid #7BE0A0;outline-offset:1px}

/* Berichtenstroom */
.vrm-chat-body{
  flex:1;overflow-y:auto;padding:16px 15px 12px;
  display:flex;flex-direction:column;gap:11px;
  overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;
}
.vrm-chat-body::-webkit-scrollbar{width:6px}
.vrm-chat-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:99px}

.vrm-msg{display:flex;flex-direction:column;max-width:88%;animation:vrmMsgIn .18s ease-out}
@keyframes vrmMsgIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.vrm-msg--bot{align-self:flex-start}
.vrm-msg--user{align-self:flex-end}

.vrm-bubble{
  padding:11px 14px;border-radius:16px;font-size:14.2px;line-height:1.5;word-wrap:break-word;
}
.vrm-msg--bot .vrm-bubble{
  background:rgba(15,36,58,.92);border:1px solid rgba(255,255,255,.09);
  color:#E2E8F0;border-bottom-left-radius:5px;
}
.vrm-msg--user .vrm-bubble{
  background:linear-gradient(135deg,#16a34a,#128040);color:#fff;font-weight:500;
  border-bottom-right-radius:5px;box-shadow:0 8px 20px -10px rgba(22,163,74,.65);
}
.vrm-bubble p{margin:0}
.vrm-bubble p+p{margin-top:8px}
.vrm-bubble strong{color:#fff;font-weight:700}
.vrm-bubble ul,.vrm-bubble ol{margin:7px 0 2px;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.vrm-bubble li{line-height:1.45}
.vrm-bubble a{color:#7BE0A0;text-decoration:underline;text-underline-offset:2px}
.vrm-msg--user .vrm-bubble a{color:#fff}

/* Typ-indicator */
.vrm-typing{display:inline-flex;align-items:center;gap:5px;padding:4px 2px}
.vrm-typing span{
  width:7px;height:7px;border-radius:50%;background:#7BE0A0;opacity:.4;
  animation:vrmDot 1.2s ease-in-out infinite;
}
.vrm-typing span:nth-child(2){animation-delay:.18s}
.vrm-typing span:nth-child(3){animation-delay:.36s}
@keyframes vrmDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

/* Startvragen (Kia-stijl kaarten) */
.vrm-starters{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.vrm-starter{
  display:flex;align-items:center;gap:11px;width:100%;text-align:left;
  padding:11px 13px;border-radius:14px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);
  color:#F8FAFC;font:600 13.8px/1.3 "Hanken Grotesk",system-ui,sans-serif;
  cursor:pointer;transition:background .16s,border-color .16s,transform .16s;
}
.vrm-starter:hover{background:rgba(123,224,160,.14);border-color:rgba(123,224,160,.45);transform:translateY(-1px)}
.vrm-starter:focus-visible{outline:2px solid #7BE0A0;outline-offset:2px}
.vrm-starter-ico{
  width:28px;height:28px;border-radius:8px;flex:none;
  background:rgba(12,39,64,.65);border:1px solid rgba(255,255,255,.10);
  color:#7BE0A0;display:grid;place-items:center;
}

/* Actieknoppen onder een AI-antwoord */
.vrm-ctas{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.vrm-cta-btn{
  display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;
  background:rgba(123,224,160,.14);border:1px solid rgba(123,224,160,.40);
  color:#A7F3C4;font:700 12.8px/1.2 "Schibsted Grotesk",system-ui,sans-serif;
  text-decoration:none;cursor:pointer;transition:background .15s,color .15s,border-color .15s;
}
.vrm-cta-btn:hover{background:#16a34a;border-color:#16a34a;color:#fff}

/* Slimme vervolgvragen-chips */
.vrm-followups{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.vrm-followup{
  padding:6px 11px;border-radius:999px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);
  color:#E2E8F0;font:500 12.5px/1.25 "Hanken Grotesk",system-ui,sans-serif;
  cursor:pointer;text-align:left;transition:background .15s,border-color .15s,color .15s;
}
.vrm-followup:hover{background:rgba(123,224,160,.15);border-color:rgba(123,224,160,.45);color:#fff}

/* Mini-aanvraagkaartje direct in de chat */
.vrm-inline-card{
  margin-top:9px;padding:12px 13px;border-radius:14px;
  background:rgba(8,22,38,.88);border:1px solid rgba(123,224,160,.32);
  display:flex;flex-direction:column;gap:8px;
}
.vrm-inline-card h3{margin:0;font:700 13.5px/1.2 "Schibsted Grotesk",system-ui,sans-serif;color:#fff}
.vrm-inline-card input[type="text"]{
  width:100%;padding:8px 11px;border-radius:10px;
  background:rgba(15,36,58,.95);border:1px solid rgba(255,255,255,.16);
  color:#fff;font:400 13.5px/1.3 "Hanken Grotesk",system-ui,sans-serif;outline:none;
}
.vrm-inline-card input[type="text"]:focus{border-color:#7BE0A0;box-shadow:0 0 0 2px rgba(123,224,160,.2)}
.vrm-inline-card input[type="text"]::placeholder{color:rgba(226,232,240,.5)}
.vrm-inline-consent{
  display:flex;align-items:flex-start;gap:7px;font-size:11.8px;line-height:1.35;
  color:rgba(226,232,240,.78);cursor:pointer;
}
.vrm-inline-consent input{margin-top:2px;accent-color:#16a34a;flex:none}
.vrm-inline-submit{
  padding:9px 14px;border-radius:10px;border:0;background:#16a34a;color:#fff;
  font:700 13.5px/1.2 "Schibsted Grotesk",system-ui,sans-serif;cursor:pointer;
  transition:background .15s,opacity .15s;
}
.vrm-inline-submit:hover:not(:disabled){background:#128040}
.vrm-inline-submit:disabled{opacity:.5;cursor:not-allowed}
.vrm-inline-msg{margin:0;font-size:12.5px;line-height:1.4;color:#A7F3C4}
.vrm-inline-msg.is-err{color:#FCA5A5}
.vrm-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}

/* Invoerbalk */
.vrm-chat-form{
  padding:10px 13px 8px;border-top:1px solid rgba(255,255,255,.10);
  background:rgba(8,22,38,.52);flex:none;
}
.vrm-chat-input-wrap{
  display:flex;align-items:center;gap:8px;padding:5px 5px 5px 14px;
  border-radius:15px;background:rgba(15,36,58,.95);
  border:1px solid rgba(255,255,255,.15);transition:border-color .15s,box-shadow .15s;
}
.vrm-chat-input-wrap:focus-within{border-color:#7BE0A0;box-shadow:0 0 0 3px rgba(123,224,160,.18)}
.vrm-chat-input{
  flex:1;min-width:0;border:0;background:transparent;color:#fff;
  font:400 14.5px/1.35 "Hanken Grotesk",system-ui,sans-serif;padding:7px 0;outline:none;
}
.vrm-chat-input::placeholder{color:rgba(226,232,240,.52)}
.vrm-chat-send{
  width:36px;height:36px;border-radius:11px;border:0;flex:none;
  background:#16a34a;color:#fff;display:grid;place-items:center;cursor:pointer;
  transition:background .15s,transform .15s,opacity .15s;
}
.vrm-chat-send:hover:not(:disabled){background:#128040;transform:scale(1.03)}
.vrm-chat-send:disabled{opacity:.42;cursor:not-allowed}

.vrm-chat-foot{
  margin:7px 2px 1px;text-align:center;font-size:11.5px;color:rgba(203,213,225,.66);line-height:1.35;
}
.vrm-chat-foot a{color:#7BE0A0;text-decoration:underline;text-underline-offset:2px}
.vrm-chat-foot a:hover{color:#fff}

/* Eerste bezoek: geen chatknop zolang de cookiebanner openstaat, zodat er onderin niet twee dingen over de inhoud liggen (VRM-238) */
body:has(.cookie-bar) .vrm-chat-fab{opacity:0;pointer-events:none}

/* Desktop homepage bovenin: geef de hero en "Bekijk de demosite →" vrij zicht tot de bezoeker een stukje scrollt */
@media (min-width:760px){
  body.vrm-hero-top .vrm-chat-fab:not(.is-open){opacity:0;pointer-events:none;transform:translateY(8px)}
  body:has(.vrm-chat-fab) .foot-bot{padding-right:176px}
}

/* Mobiel: één vaste plek rechtsonder, op dezelfde hoogte als de vaste onderbalk. De balk maakt rechts plaats,
   zodat de knop als vierde knop naast Bel | App | Gratis check staat. Hij springt niet meer mee als de balk
   komt of gaat, en dekt geen extra strook tekst boven de balk af (VRM-238, eerder VRM-230) */
@media (max-width:759px){
  .vrm-chat-fab{right:12px;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 5px);width:48px;height:48px;padding:0;gap:0;justify-content:center}
  .vrm-chat-fab-ico{width:26px;height:26px}
  .vrm-chat-fab-label{display:none}
  body:has(.vrm-chat-fab) .sticky-mobile-cta{right:68px}
  /* Ruimte onder de footer zodat de laatste regels boven de chatknop uit kunnen scrollen (VRM-230) */
  body:has(.vrm-chat-fab) footer::after{content:"";display:block;height:72px}
  /* Niet over het invoerveld liggen terwijl iemand de gratis check of een ander formulier invult (VRM-230) */
  body:has(form:not(.vrm-chat-form):focus-within) .vrm-chat-fab{opacity:0;pointer-events:none}
}
@media (max-width:560px){
  .vrm-chat-panel{
    right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom));
    width:auto;max-width:none;height:min(84svh,640px);border-radius:20px;
  }
  .vrm-chat-input{font-size:16px} /* voorkomt iOS zoom bij focus */
}
@media (prefers-reduced-motion:reduce){
  .vrm-chat-fab,.vrm-chat-panel,.vrm-msg,.vrm-starter,.vrm-chat-fab-dot,.vrm-typing span{animation:none!important;transition:none!important}
}
@media print{.vrm-chat-fab,.vrm-chat-panel{display:none!important}}
