/* =====================================================================
   assets/css/booking.css  -  Popup "Plan een gesprek"
   Wordt door includes/booking-modal.php zelf geladen, dus werkt op elke pagina
   ===================================================================== */
html.book-lock{overflow:hidden}
/* Dialoog gecentreerd, ook met de reset *{margin:0} bovenin deze stylesheet */
.book{position:fixed;inset:0;margin:auto;border:0;padding:0;background:transparent;
  width:min(560px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);overflow:visible;transition:width .25s ease}
.book.is-wide{width:min(1040px,calc(100vw - 32px))}
.book::backdrop{background:rgba(15,23,42,.6)}
.book-card{position:relative;background:#fff;border-radius:24px;padding:32px 32px 28px;max-height:calc(100dvh - 32px);overflow:auto;
  box-shadow:0 30px 80px rgba(15,23,42,.3)}
.book-x{position:absolute;top:18px;right:18px;width:40px;height:40px;border:0;border-radius:50%;background:#F4F2F8;color:var(--text);
  display:grid;place-items:center;cursor:pointer}
.book-x:hover{background:#ECE7F5}
.book-steps{display:flex;gap:6px;margin:0 56px 24px 0;padding-top:14px}
.book-steps span{height:4px;flex:1;border-radius:4px;background:#ECE7F5;transition:background .25s ease}
.book-steps span.is-on{background:var(--grad)}
.book-h{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin:0 0 8px}
.book-sub{font-size:15px;color:var(--muted);line-height:1.55;margin:0 0 24px}

/* Velden: label altijd op één regel, velden altijd even hoog en uitgelijnd */
.book-f{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;border:0;padding:0;min-width:0}
fieldset.book-f{border:0;padding:0;margin:0 0 18px}
fieldset.book-f legend{float:left;width:100%;margin:0 0 8px}
fieldset.book-f .book-chips{clear:both}
.book-l{display:block;font-size:13px;font-weight:700;color:var(--text);line-height:1.3;padding:0}
.book-l em{font-style:normal;font-weight:500;color:var(--muted)}
.book-f input,.book-f textarea{width:100%;font:inherit;font-size:15px;font-weight:400;color:var(--text);background:#FAF9FC;
  border:1px solid #E3DDEE;border-radius:12px;padding:0 14px;height:50px;margin:0;transition:border-color .15s ease,box-shadow .15s ease}
.book-f textarea{height:auto;min-height:104px;padding:13px 14px;resize:vertical;line-height:1.55}
.book-f input::placeholder,.book-f textarea::placeholder{color:#9A93AD}
.book-f input:focus,.book-f textarea:focus{outline:none;border-color:var(--purple);background:#fff;box-shadow:0 0 0 4px rgba(110,77,255,.14)}
.book-f input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #FAF9FC inset;-webkit-text-fill-color:var(--text)}
.book-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}

/* Snelle keuzes */
.book-chips{display:flex;flex-wrap:wrap;gap:8px}
.book-chip{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;height:36px;margin:0;padding:0 14px;
  border-radius:999px;border:1px solid #E3DDEE;background:#fff;color:#374151;line-height:1;
  font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.book-chip:hover{border-color:var(--purple);color:var(--purple)}
.book-chip[aria-pressed="true"]{background:#1D1530;border-color:#1D1530;color:#fff}
.book-chip[aria-pressed="true"]::before{content:"✓ ";}
.book-chip:focus-visible{outline:3px solid var(--purple);outline-offset:2px}

.book-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.book-err{font-size:13px;color:#B91C1C;margin:-4px 0 14px}
.book-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:54px;margin:6px 0 0;border:0;border-radius:14px;
  background:var(--grad);color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 10px 26px rgba(110,77,255,.28)}
.book-go:disabled{opacity:.6;cursor:wait}
.book-small{text-align:center;font-size:13px;color:var(--muted);margin:16px 0 0}
.book-small a{color:var(--purple);font-weight:600}
.book-cal{min-height:560px;border-radius:16px;overflow:hidden}
.book-cal iframe{width:100%!important}
.book-loading{padding:60px 0;text-align:center;color:var(--muted)}
.book-fallback{font-size:13px;color:var(--muted);margin:10px 0 0}
.book-fallback a{color:var(--purple);font-weight:600}
.book-back{margin:12px 0 0;background:none;border:0;font:inherit;font-size:14px;color:var(--muted);cursor:pointer;padding:6px 0}
.book-back:hover{color:var(--purple)}
.book-ok{width:64px;height:64px;border-radius:18px;background:#DCFCE7;color:#15803D;display:grid;place-items:center;margin:0 0 18px}
.book-sum{display:grid;grid-template-columns:110px 1fr;gap:8px 12px;margin:0 0 22px;padding:16px 0;border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);font-size:14px}
.book-sum dt{color:var(--muted)}
.book-sum dd{margin:0;font-weight:700}
.book-x:focus-visible,.book-go:focus-visible,.book-back:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
@media(max-width:600px){
  .book{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
  .book-card{padding:24px 20px 20px;border-radius:20px;max-height:calc(100dvh - 20px)}
  .book-row{grid-template-columns:1fr;gap:0}
  .book-h{font-size:22px}
  .book-cal{min-height:640px}
}
@media(prefers-reduced-motion:reduce){.book,.book-steps span{transition:none}}

/* Zakelijk / particulier (segmenten) */
.book-seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:14px;background:#F4F2F8}
.book-seg label{position:relative;cursor:pointer}
.book-seg input{position:absolute;opacity:0;pointer-events:none}
.book-seg span{display:flex;align-items:center;justify-content:center;height:42px;border-radius:10px;font-size:14px;font-weight:600;color:#5F5775;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.book-seg input:checked+span{background:#fff;color:var(--text,#111827);box-shadow:0 2px 8px rgba(15,23,42,.08)}
.book-seg input:focus-visible+span{outline:3px solid var(--purple,#6E4DFF);outline-offset:2px}
[data-company][hidden]{display:none}

/* "Bedoel je ...?" onder het e-mailveld */
.book-suggest{align-self:flex-start;margin:0;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:600;
  color:var(--purple,#6E4DFF);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.book-suggest[hidden]{display:none}
