/* Afspraak plannen (venster) */
.af-lock { overflow: hidden; }
.af-modal, .af-modal * { box-sizing: border-box; }
.af-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(15, 15, 15, .62); overflow-y: auto; }
.af-modal.is-open { display: flex; }
.af-box { background: #fff; border-radius: 16px; width: 100%; max-width: 920px; min-width: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); position: relative; }
.af-head { padding: 28px 32px 0; }
.af-head h3 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.af-head p { margin: 0; color: #636e72; }
.af-close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f3f6; font-size: 22px; line-height: 40px; cursor: pointer; color: #2d3436; }
.af-close:hover { background: #e4e8ee; }
.af-types { display: flex; gap: 10px; padding: 20px 32px 0; flex-wrap: wrap; }
.af-type { border: 2px solid #dfe6e9; background: #fff; border-radius: 10px; padding: 12px 18px; font-weight: 600; cursor: pointer; color: #2d3436; }
.af-type.is-sel { border-color: #0d6efd; background: #e7f0fe; color: #0a4fc0; }
.af-hint { padding: 10px 32px 0; margin: 0; font-size: 14px; color: #636e72; }
.af-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 32px 28px; }
.af-body > * { min-width: 0; }
@media (max-width: 767.98px) { .af-body { grid-template-columns: 1fr; } .af-head, .af-types, .af-hint, .af-body { padding-left: 20px; padding-right: 20px; } }
.af-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.af-month { font-weight: 700; text-transform: capitalize; }
.af-prev, .af-next { border: 0; background: #f1f3f6; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.af-prev:disabled, .af-next:disabled { opacity: .35; cursor: default; }
.af-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.af-dow { font-size: 12px; font-weight: 700; color: #7c858c; text-align: center; text-transform: uppercase; padding-bottom: 4px; }
.af-day { height: 42px; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: #f1f3f6; font-weight: 600; cursor: pointer; color: #2d3436; }
.af-day:hover { background: #dfe8f5; }
.af-day.is-off { background: transparent; color: #c6cedA; cursor: default; }
.af-day.is-sel { background: #0d6efd; color: #fff; }
.af-slots { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.af-slots .af-muted { width: 100%; margin: 0 0 4px; color: #636e72; font-size: 14px; }
.af-slot { border: 2px solid #dfe6e9; background: #fff; border-radius: 8px; padding: 10px 16px; font-weight: 600; cursor: pointer; color: #2d3436; }
.af-slot:hover { border-color: #0d6efd; }
.af-slot.is-sel { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.af-form { grid-column: 1 / -1; border-top: 1px solid #eef2f6; padding-top: 20px; }
.af-form .af-summary { font-weight: 700; color: #0a4fc0; margin-bottom: 12px; min-height: 22px; }
.af-form .af-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 575.98px) { .af-form .af-fields { grid-template-columns: 1fr; } }
.af-form input, .af-form textarea { width: 100%; min-width: 0; border: 2px solid #dfe6e9; border-radius: 8px; padding: 12px 14px; font: inherit; }
.af-form textarea { grid-column: 1 / -1; min-height: 80px; }
.af-form input[name="Address"] { grid-column: 1 / -1; }
.af-form input[hidden] { display: none; }
.af-form .af-hp { position: absolute; left: -9999px; }
.af-form .af-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.af-form button[type="submit"] { border: 0; border-radius: 8px; background: #0d6efd; color: #fff; font-weight: 700; padding: 14px 26px; cursor: pointer; }
.af-form button[type="submit"]:disabled { opacity: .6; cursor: default; }
.af-form:not(.is-ready) button[type="submit"] { opacity: .45; }
.af-form .af-small { font-size: 13px; color: #636e72; margin: 0; }
.af-result { display: none; margin-top: 12px; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.af-result.is-ok { background: #e3f6ee; color: #00805f; }
.af-result.is-err { background: #fde8e8; color: #b42318; }
/* knop in de kop */
.main-header .af-headbtn { margin-left: 24px; padding: 10px 20px; font-size: 14px; }
@media (max-width: 1199.98px) { .main-header .af-headbtn { display: none; } }
