.appointment-form.bk-steps{display:block}
.bk-steps [hidden]{display:none!important}
.bk-list{list-style:none;margin:0 0 20px;padding:0;counter-reset:bk}
.bk-step{position:relative;counter-increment:bk;padding:0 0 26px 46px;min-width:0}
.bk-step::before{content:counter(bk);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef0f8;color:#212B5C;font:700 14px Arial,sans-serif;transition:.25s}
.bk-step::after{content:"";position:absolute;left:14px;top:34px;bottom:4px;width:2px;background:#e6e9f4}
.bk-step:last-child::after{display:none}
.bk-step.is-done::before{content:"✓";background:#ff6f0a;color:#fff}
.bk-step.is-done::after{background:#ff6f0a}
.bk-step:not([hidden]){animation:bk-in .3s ease}
@keyframes bk-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bk-steps .bk-title{display:block;margin:0 0 10px;line-height:30px;color:#212B5C;font:700 17px "Philosopher",sans-serif}
.bk-steps .bk-input{box-sizing:border-box;width:100%;height:52px;padding:0 16px;border:1.5px solid #e6e9f4;border-radius:14px;background:#f7f8fd;color:#212B5C;font:15px Arial,sans-serif;outline:none}
.bk-steps .bk-input:focus{border-color:#ff6f0a;background:#fff}
.bk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.bk-doctors{display:grid;gap:10px}
.bk-dates{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px}
.bk-slots{display:flex;flex-wrap:wrap;gap:10px}
.bk-opt{position:relative;display:block;cursor:pointer;min-width:0}
.bk-opt input{position:absolute;opacity:0;pointer-events:none}
.bk-opt span.bk-face{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:8px 14px;border:1.5px solid #e6e9f4;border-radius:14px;background:#fff;color:#212B5C;font:700 14px Arial,sans-serif;text-align:center;transition:.2s}
.bk-opt:hover span.bk-face{border-color:#ff6f0a}
.bk-opt input:checked+span.bk-face{border-color:#ff6f0a;background:#fff3ea;box-shadow:0 0 0 1px #ff6f0a}
.bk-opt input:focus-visible+span.bk-face{outline:3px solid #212B5C;outline-offset:2px}
.bk-doctors .bk-opt span.bk-face{justify-content:flex-start;text-align:left}
.bk-avatar{flex:0 0 36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#212B5C;color:#fff;font-size:13px}
.bk-dates .bk-opt span.bk-face{flex-direction:column;gap:2px;padding:8px 4px}
.bk-dates small{font-size:11px;font-weight:400;color:#6b7194;text-transform:uppercase}
.bk-dates b{font-size:18px}
.bk-other{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;color:#6b7194;font:13px Arial,sans-serif}
.bk-otherdate{padding:8px 10px;border:1.5px solid #e6e9f4;border-radius:10px;color:#212B5C}
.bk-note{margin:0;color:#6b7194;font:14px/1.5 Arial,sans-serif}
.bk-error{margin:8px 0 0;color:#c62828;font:13px Arial,sans-serif}
.bk-error:empty{display:none}
@media (max-width:480px){.bk-step{padding-left:40px}.bk-grid{grid-template-columns:1fr 1fr}}
@media (prefers-reduced-motion:reduce){.bk-step:not([hidden]){animation:none}}
/* popup: beats the nested .popup ... form rules in style.css; close button stays put while the form scrolls */
.popup .popup__content{width:min(620px,94vw);overflow:hidden;padding:24px 14px 18px 20px}
.popup .popup__content .appointment-section .formsection{box-sizing:border-box;max-height:calc(92vh - 42px);max-height:calc(92dvh - 42px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px}
.popup .popup__content .appointment-section .formsection form.bk-steps{display:block;width:100%}
.popup form.bk-steps .consent-box{margin:0 0 14px;padding:12px 14px;border-left:3px solid #ff6f0a;border-radius:10px;background:#fff6ef;color:#4a4f6b;font:12px/1.6 Arial,sans-serif}
.popup form.bk-steps .eh-cta-appointment{display:flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%;min-height:54px;padding:0 20px;border-radius:30px;background:#ff6f0a;color:#fff;font:700 16px "Philosopher",sans-serif;cursor:pointer}
.popup form.bk-steps .eh-cta-appointment:hover{background:#212B5C}
/* gap between the consent box and the book button (booking page and popup) */
form.appointment-form.bk-steps .consent-box{margin-bottom:18px}
form.appointment-form.bk-steps .eh-cta-appointment{margin-top:0}
.popup form.appointment-form.bk-steps .consent-box{margin-bottom:18px}

/* ---------- step icons: navy circles like the site's round buttons, orange when filled ---------- */
.bk-steps .bk-step{padding-left:56px}
.bk-steps .bk-step::after{display:none}
.bk-steps .bk-step::before{content:"";left:0;top:-5px;width:42px;height:42px;border-radius:50%;background-color:#212B5C;background-position:center;background-size:22px 22px;background-repeat:no-repeat;box-shadow:0 0 0 4px #eef0f8,0 8px 16px rgba(33,43,92,.18);transition:background-color .3s,box-shadow .3s}
.bk-steps .bk-step.is-done::before{content:"";background-color:#ff6f0a;box-shadow:0 0 0 4px #ffe8d8,0 8px 16px rgba(255,111,10,.25);animation:bk-pop .45s ease}
.bk-steps .bk-step[data-step="name"]::before,.bk-steps .bk-step.is-done[data-step="name"]::before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27/%3E%3Cpath%20d%3D%27M4.5%2020c.8-3.8%203.8-5.8%207.5-5.8s6.700%202%207.5%205.8%27/%3E%3C/svg%3E")}
.bk-steps .bk-step[data-step="phone"]::before,.bk-steps .bk-step.is-done[data-step="phone"]::before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%204h3.500l1.800%204.500-2.300%201.600a11%2011%200%200%200%205.9%205.9l1.600-2.300L20%2015.500V19a1.500%201.500%200%200%201-1.600%201.500C10.800%2020%204%2013.200%203.500%205.600A1.500%201.500%200%200%201%205%204z%27/%3E%3C/svg%3E")}
.bk-steps .bk-step[data-step="branch"]::before,.bk-steps .bk-step.is-done[data-step="branch"]::before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2021s-7-6.2-7-11.500a7%207%200%200%201%2014%200C19%2014.800%2012%2021%2012%2021z%27/%3E%3Cpath%20d%3D%27M12%206.800v5.400M9.300%209.500h5.400%27/%3E%3C/svg%3E")}
.bk-steps .bk-step[data-step="doctor"]::before,.bk-steps .bk-step.is-done[data-step="doctor"]::before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27/%3E%3Cpath%20d%3D%27M4.500%2020c.8-3.8%203.8-5.8%207.500-5.8s6.700%202%207.500%205.8%27/%3E%3C/svg%3E")}
.bk-steps .bk-step[data-step="date"]::before,.bk-steps .bk-step.is-done[data-step="date"]::before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%2716%27%20height%3D%2716%27%20rx%3D%273%27/%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M4%2010h16M8.500%2014.500h.01M12%2014.500h.01M15.500%2014.500h.01%27/%3E%3C/svg%3E")}
.bk-steps .bk-step[data-step="time"]::before,.bk-steps .bk-step.is-done[data-step="time"]::before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.500%27/%3E%3Cpath%20d%3D%27M12%207.500V12l3.200%202%27/%3E%3C/svg%3E")}
@keyframes bk-pop{0%{transform:scale(1)}45%{transform:scale(1.15)}100%{transform:scale(1)}}
@media (max-width:480px){.bk-steps .bk-step{padding-left:46px}.bk-steps .bk-step::before{width:34px;height:34px;top:-2px;background-size:18px 18px}}

/* ---------- available slots stand out ---------- */
.bk-steps .bk-slots .bk-face{min-width:150px;border:2px solid #16a34a;background:#f1fdf5;color:#14532d;animation:bk-glow 1.8s ease-out infinite}
.bk-steps .bk-slots .bk-opt:hover .bk-face{border-color:#ff6f0a}
.bk-steps .bk-slots input:checked+.bk-face{border-color:#ff6f0a;background:#fff3ea;color:#212B5C;box-shadow:0 0 0 3px rgba(255,111,10,.25);animation:none}
@keyframes bk-glow{0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}70%{box-shadow:0 0 0 9px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}

/* ---------- options arrive one after another ---------- */
.bk-steps .bk-doctors .bk-opt,.bk-steps .bk-dates .bk-opt{animation:bk-rise .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes bk-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.bk-steps .bk-opt:nth-child(2){animation-delay:0.05s}
.bk-steps .bk-opt:nth-child(3){animation-delay:0.10s}
.bk-steps .bk-opt:nth-child(4){animation-delay:0.15s}
.bk-steps .bk-opt:nth-child(5){animation-delay:0.20s}
.bk-steps .bk-opt:nth-child(6){animation-delay:0.25s}
.bk-steps .bk-opt:nth-child(7){animation-delay:0.30s}
.bk-steps .bk-opt:nth-child(8){animation-delay:0.35s}
.bk-steps .bk-opt:nth-child(9){animation-delay:0.40s}
.bk-steps .bk-opt:nth-child(10){animation-delay:0.45s}
.bk-steps .bk-opt:nth-child(11){animation-delay:0.50s}
.bk-steps .bk-opt:nth-child(12){animation-delay:0.55s}
.bk-steps .bk-opt:nth-child(13){animation-delay:0.60s}
.bk-steps .bk-opt:nth-child(14){animation-delay:0.65s}
@media (prefers-reduced-motion:reduce){.bk-steps .bk-step::before,.bk-steps .bk-slots .bk-face,.bk-steps .bk-doctors .bk-opt,.bk-steps .bk-dates .bk-opt{animation:none!important}}
