/* Gesprek-planner, overgenomen van klijn.software (zelfde widget, Haven-kleuren) */
dialog.modal,#booker{--accent:#2f6f4f;--accent-dark:#265b41;--panel:#f3f1ec;--tint:#eef5f1;--line:#e0ddd5;--muted:#66645c;--ink:#282723;font-family:inherit}
[hidden]{display:none!important}
#booker .ico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
#booker .ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#booker .btn{display:inline-block;padding:11px 20px;background:var(--accent);color:#fff;text-decoration:none;font-size:15px;font-weight:600}
#booker .btn:hover{background:var(--accent-dark)}
.book-intro{margin:0 0 18px;color:var(--muted);font-size:15px;max-width:34em}
.book{container-type:inline-size}
.book-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0 32px;align-items:start}
.cal-head{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 14px}
.cal-head h3{margin:0;font-size:16px;font-weight:600;min-width:9em;text-align:center;text-transform:capitalize}
.cal-nav{width:32px;height:32px;border:0;border-radius:50%;background:var(--panel);color:var(--accent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.cal-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cal-nav:hover{background:var(--tint)}
.cal-nav[disabled]{opacity:.35;cursor:default}
.cal-week,.cal-days{display:grid;grid-template-columns:repeat(7,1fr);justify-items:center}
.cal-week span{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:4px 0 8px}
.cal-days{row-gap:6px}
.cal-day{position:relative;z-index:0;overflow:visible;width:40px;height:40px;border-radius:50%;border:0;background:transparent;font:inherit;font-size:14.5px;font-weight:600;color:var(--muted);opacity:.55;cursor:default;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s,transform .15s}
.cal-day.free{background:var(--tint);color:var(--accent);opacity:1;cursor:pointer}
.cal-day.free:hover{background:#d7e8de;transform:scale(1.06)}
.cal-day.today::after{content:"";position:absolute;bottom:5px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:currentColor}
.cal-day[aria-pressed="true"]{background:transparent;color:#fff;opacity:1;transform:none}
.cal-day::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--accent);z-index:-1;transform:scale(0);transition:transform .34s cubic-bezier(.22,.61,.36,1)}
.cal-day[aria-pressed="true"]::before{transform:scale(1)}
.side{display:grid;gap:14px;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.side-head h3{margin:0;font-size:18px;font-weight:600;text-transform:capitalize}
.side-head p{margin:2px 0 0;font-size:13.5px;color:var(--muted)}
.slot-list{display:grid;gap:8px;max-height:296px;overflow-y:auto;padding-right:2px;scrollbar-width:thin}
.book-slot{position:relative;z-index:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px;font:inherit;font-size:15px;font-weight:600;color:var(--accent);cursor:pointer;text-align:center;transition:border-color .3s,background .3s,color .3s,transform .3s}
.book-slot:hover{border-color:var(--accent);background:var(--panel)}
.book-slot::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--accent),#4c8f6c);border-radius:inherit;transform:scaleX(0);transform-origin:left center;transition:transform .32s cubic-bezier(.22,.61,.36,1);z-index:-1}
.book-slot[aria-pressed="true"]{background:transparent;border-color:transparent;color:#fff}
.book-slot[aria-pressed="true"]::before{transform:scaleX(1)}
.book-slot[aria-pressed="true"] svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vertical-align:-2px;margin-right:6px}
.book-slot[aria-pressed="true"] svg path{stroke-dasharray:24;stroke-dashoffset:24;animation:draw .4s .2s cubic-bezier(.22,.61,.36,1) forwards}
.slot-list .book-slot{animation:slotin .55s cubic-bezier(.16,.84,.3,1) both;animation-delay:calc(var(--i,0)*55ms)}
@keyframes slotin{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
@keyframes draw{to{stroke-dashoffset:0}}
.book-empty{color:var(--muted);font-size:14.5px;margin:0}
.book-confirm{display:grid;gap:8px;animation:fade .25s ease;scroll-margin-bottom:24px}
.book-row{display:flex;gap:8px}
.book-row input{flex:1 1 0%;min-width:0;padding:11px 13px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;color:var(--ink);background:#fff}
.book-row input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--tint)}
.book-row .btn{border:0;cursor:pointer;font:inherit;font-weight:600;font-size:15px;white-space:nowrap;border-radius:10px}
.book-row .btn[disabled]{opacity:.6;cursor:default}
.book-status{margin:0;font-size:13.5px;color:var(--muted);min-height:1.3em}
.book-status.err{color:#b3261e}
.book-done{background:var(--tint);border-radius:14px;padding:26px 28px;display:flex;gap:16px;align-items:flex-start}
.book-done:not([hidden]){animation:rise .8s cubic-bezier(.16,.84,.3,1) both}
.book-done .ico{width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;animation:popin .8s .3s cubic-bezier(.34,1.25,.64,1) both}
.book-done .ico svg path{stroke-dasharray:30;stroke-dashoffset:30;animation:draw .6s .85s cubic-bezier(.22,.61,.36,1) forwards}
.book-done h3{margin:0 0 6px;font-size:18px}
.book-done p{margin:0;color:var(--muted);font-size:15px}
.book-done p strong{color:var(--ink)}
.book-done.failed .ico{display:none}
.book-done.failed a{color:var(--accent);font-weight:700}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes popin{0%{transform:scale(.5);opacity:0}65%{transform:scale(1.06);opacity:1}100%{transform:scale(1)}}
.book-foot{margin:22px 0 0;font-size:13.5px;color:var(--muted);text-align:center}
.book-foot a{color:var(--accent);text-decoration:none;font-weight:600}
dialog.modal{border:0;border-radius:18px;padding:0;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 70px rgba(0,0,0,.22);color:var(--ink);background:#fff}
dialog.modal::backdrop{background:rgba(36,40,42,.45);backdrop-filter:blur(2px)}
dialog.modal[open]{animation:pop .55s cubic-bezier(.16,.84,.3,1)}
dialog.modal[open]::backdrop{animation:fadein .5s ease}
dialog.modal.closing{animation:unpop .38s cubic-bezier(.4,0,.6,1) forwards;pointer-events:none}
dialog.modal.closing::backdrop{animation:fadeout .38s ease forwards}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.975)}to{opacity:1;transform:none}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes unpop{from{opacity:1;transform:none}to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes fadeout{from{opacity:1}to{opacity:0}}
.modal-inner{padding:30px 32px 26px;position:relative}
.modal-inner h2{margin:0 0 4px;font-size:22px;font-weight:600;letter-spacing:-.01em}
.modal-inner .book-intro{margin-bottom:20px}
.modal-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background:var(--panel);color:var(--muted);font-size:22px;line-height:1;cursor:pointer}
.modal-close:hover{background:var(--tint);color:var(--accent)}
#booker{background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px 34px 30px}
#booker .book-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 56px}
#booker .cal-week{display:none}
#booker .cal-head{justify-content:space-between;margin-bottom:16px}
#booker .cal-head h3{min-width:0;text-align:left;order:-1;margin-right:auto;text-transform:none;font-size:17px;font-weight:700}
#booker .cal-days{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;justify-items:stretch}
#booker .cal-day{width:auto;height:auto;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 0 9px;border-radius:12px;border:1px solid var(--line);background:#fff;opacity:1}
#booker .cal-day small{font-size:12.5px;font-weight:600;color:var(--muted);text-transform:lowercase}
#booker .cal-day b{font-size:18px;font-weight:800;color:var(--ink)}
#booker .cal-day[disabled]{background:var(--panel);border-color:transparent}
#booker .cal-day[disabled] small,#booker .cal-day[disabled] b{color:#a3aaa6;font-weight:600}
#booker .cal-day[aria-pressed="true"]{background:var(--accent);border-color:var(--accent)}
#booker .cal-day[aria-pressed="true"] small,#booker .cal-day[aria-pressed="true"] b{color:#fff}
#booker .cal-day.today::after,#booker .cal-day::before{display:none}
#booker .cal-day.free{cursor:pointer}
@media (hover:hover){#booker .cal-day.free:not([aria-pressed="true"]):hover{background:var(--tint);border-color:var(--tint);transform:none}}
#booker .slot-list{max-height:none;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#booker .slot-list .book-slot{padding:9px 0;font-size:14.5px}
@media (pointer:coarse){.cal-days button{min-width:44px;min-height:44px}.cal-nav{min-width:44px;min-height:44px}.book-foot a{display:inline-block;padding:10px 0}}
@media (max-width:860px){
  .modal-inner{padding:22px 18px 18px}
  dialog.modal{width:100vw;max-width:100vw;max-height:100dvh;margin:auto 0 0;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  #booker{padding:22px 18px}
}
@media (max-width:560px){#booker .book-grid{grid-template-columns:1fr;gap:22px}#booker .slot-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){dialog.modal *,dialog.modal{animation:none!important;transition:none!important}}
/* Pagina's hebben een eigen .side-kaart; die mag de planner niet raken */
#booker .side{display:grid;grid-template-columns:none;align-items:start;gap:14px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
#booker .side p{margin:2px 0 0;font-size:13.5px}
#booker .side h3{font-size:18px}
#booker .side-head,#booker .slot-list,#booker .book-confirm{grid-column:auto}
