:root{color-scheme:light;font-family:Inter,Arial,sans-serif;color:#1c252b;background:#fff;font-synthesis:none;--teal:#007d8a;--muted:#58636b;--line:#dce3e7}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #007d8a66;outline-offset:3px}a{color:var(--teal)}.card{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}.loading,.error{padding:28px;background:#f2f5f7;border-radius:12px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:grid;gap:6px;min-width:0}.label{font-size:13px;font-weight:600;color:var(--muted)}select,input{width:100%;min-width:0;min-height:46px;border:1px solid #cbd5da;border-radius:8px;background:#fff;color:#1c252b;padding:10px 12px;font-size:16px}select{padding-right:28px}.address{display:flex;align-items:center;min-height:46px;padding:10px 12px;background:#f2f5f7;border-radius:8px;font-size:15px}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}.calendar-head h4{font-size:16px;line-height:1.4;font-weight:600;margin:0}.arrows{display:flex;gap:8px}.icon-btn{width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:white;font-size:22px;color:var(--teal)}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.day{display:grid;justify-content:center;gap:1px;min-height:68px;padding:9px 2px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#1c252b}.day span{font-size:12px;color:var(--muted)}.day strong{font-size:19px;font-weight:600;line-height:1.25}.day.active{background:var(--teal);border-color:var(--teal);color:white}.day.active span{color:white}.day:not(.active):not(:disabled):hover,.time:hover{background:#eaf5f5;border-color:var(--teal)}.times-title{margin:20px 0 10px;font-size:13px;color:var(--muted)}.times{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}.time{min-height:42px;border:1px solid #b6cbd0;border-radius:8px;background:white;color:#006c78;font-weight:600;font-size:15px}.more{border:0;background:transparent;color:var(--teal);padding:12px 0 0;font-size:14px;text-decoration:underline;text-underline-offset:3px}.footnote{font-size:12px;line-height:1.5;color:var(--muted);margin:16px 0 0}.empty{padding:14px;background:#f2f5f7;border-radius:8px;color:var(--muted)}.back{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--teal);padding:0 0 16px;font-size:14px}.summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;background:#f2f5f7;padding:16px;border-radius:8px;margin-bottom:20px}.summary strong{display:block;font-size:17px;line-height:1.4}.summary p{margin:4px 0 0;color:var(--muted);font-size:13px}.price{font-size:17px;font-weight:600;white-space:nowrap}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.optional{font-weight:400}.consent{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:12px;color:var(--muted)}.consent input{width:18px;height:18px;min-height:18px;margin:2px 0 0;flex-shrink:0;accent-color:var(--teal)}.submit{min-height:48px;border:0;border-radius:8px;background:var(--teal);padding:12px 24px;color:#fff;font-weight:600}.submit:hover{background:#006b76}.message{margin:16px 0 0;color:#8c2828;font-size:14px}.success{padding:24px;background:#eaf5f3;border-radius:12px}.success h3{margin:0 0 12px;font-size:22px}.success p{margin:8px 0}.honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.pending{padding:20px;background:#f2f5f7;border-radius:8px}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #b1d7d9;border-top-color:var(--teal);border-radius:50%;animation:spin 1s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}
@media(min-width:900px){.fields{grid-template-columns:1fr 1fr}.days{max-width:630px}.time{min-height:44px}.times{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}}
@media(max-width:600px){.card{padding:16px}.fields{grid-template-columns:1fr;gap:12px}.calendar-head{margin-top:18px}.calendar-head h4{font-size:15px}.days{gap:5px}.day{min-height:62px;border-radius:7px}.day strong{font-size:17px}.day span{font-size:11px}.times{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.time{font-size:14px;min-height:44px}.form-grid{grid-template-columns:1fr;gap:12px}.summary{flex-direction:column;gap:8px;padding:14px}.submit{width:100%}.footnote{font-size:12px}.icon-btn{width:34px;height:36px}.arrows{gap:5px}.consent{font-size:12px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
/* Compact doctor-page calendar. The patient form uses the same frame in a native modal. */
:root{color:#4f565e;--line:#d6e3e7;--muted:#59666f}
.card{padding:24px;border-radius:14px}.booking-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}.booking-heading h2{font-size:24px;line-height:1.2;letter-spacing:-.5px;font-weight:650;color:#171d21;margin:0}.booking-price{font-size:21px;color:var(--teal);white-space:nowrap;font-weight:650}.direction-field{gap:5px}.label{font-weight:400;font-size:13px}.address{display:flex;align-items:center;gap:9px;min-height:0;background:transparent;padding:0;margin:12px 0 0;font-size:14px;color:var(--muted)}.address svg{flex-shrink:0;color:var(--teal);width:19px;height:21px}.calendar-head{margin:20px 0 12px}.calendar-head h3{font-size:16px;line-height:1.3;font-weight:600;margin:0;text-transform:capitalize}.arrows{gap:8px}.icon-btn{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%}.icon-btn:disabled{opacity:.35}.days{display:flex;gap:8px;max-width:none;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin;scrollbar-color:#b8cdd1 transparent;scroll-snap-type:x proximity}.day{flex:1 0 44px;min-width:44px;min-height:64px;gap:2px;scroll-snap-align:start;color:var(--teal)}.day strong{font-size:20px}.day span{color:inherit;font-size:12px}.day:disabled{opacity:1;background:#f2f5f7;color:#89949d;border-color:#e0e8eb}.times-title{margin:16px 0 10px;font-size:13px}.times{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.time{min-height:44px;border-color:#9fbfc7;font-size:14px;font-weight:600}.more{font-size:14px;padding-top:10px}.footnote{font-size:12px;margin-top:14px;color:#64717a}.booking-view .card{border:0;border-radius:0;padding:8px 28px 28px}.form-title{color:#171d21;font-size:26px;line-height:1.2;letter-spacing:-.4px;margin:0 0 20px}.booking-view .success,.booking-view .pending,.booking-view .error{border-radius:0;min-height:100%;background:white;padding:8px 28px 28px}.booking-view .success h3{font-size:26px;color:#171d21}.booking-view .summary{background:#f2f5f7}.back{min-height:44px;align-items:center;padding:0;margin:0 0 8px}.form-grid .label{font-weight:500}.form-grid input{color:#1c252b}.consent{line-height:1.55}.summary .price{color:var(--teal)}
@media(max-width:600px){.card{padding:16px}.booking-heading{gap:8px;align-items:flex-start;flex-wrap:wrap;margin-bottom:12px}.booking-heading h2{font-size:21px;letter-spacing:-.35px}.booking-price{font-size:18px;margin-left:auto}.label{font-size:12px}.address{font-size:13px}.calendar-head{margin-top:16px}.calendar-head h3{font-size:15px}.icon-btn{width:38px;height:38px}.days{gap:6px}.day{min-height:60px;flex-basis:44px}.day strong{font-size:19px}.day span{font-size:12px}.times{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.time{font-size:15px;min-height:44px}.times-title{margin-top:14px}.footnote{font-size:12px}.booking-view .card,.booking-view .success,.booking-view .pending,.booking-view .error{padding:0 20px 28px}.form-title{font-size:24px}.booking-view .summary{flex-direction:row;flex-wrap:wrap}.form-grid{gap:12px}.form-grid .label{font-size:13px}}
/* Service and branch share one row; dates use a shorter, readable tile. */
.compact-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.compact-fields .field{gap:4px}.compact-fields select{min-height:42px;padding:8px 24px 8px 10px;font-size:15px}.branch-value{display:flex;align-items:center;gap:6px;min-height:42px;min-width:0;color:#4f565e;font-size:14px;white-space:nowrap}.branch-value svg{width:17px;height:19px;flex-shrink:0;color:var(--teal)}.branch-value span{overflow:hidden;text-overflow:ellipsis}.card:not(.booking-view .card){padding:20px}.booking-heading{margin-bottom:12px}.calendar-head{margin:12px 0 8px}.calendar-head h3{font-size:15px}.days{gap:6px;padding-bottom:2px}.day{min-height:48px;padding:5px 2px;gap:0}.day strong{font-size:18px;line-height:1.2}.day span{font-size:11px;line-height:1.2}.times-title{margin:10px 0 8px}.more{padding-top:8px}.footnote{margin-top:10px}.icon-btn{width:36px;height:36px}
@media(max-width:600px){.card:not(.booking-view .card){padding:14px}.compact-fields{gap:10px}.compact-fields select{font-size:14px}.branch-value{font-size:13px;gap:4px}.branch-value svg{width:15px;height:17px}.booking-heading{margin-bottom:10px}.day{min-height:46px}.day strong{font-size:17px}.calendar-head{margin-top:10px}.times{gap:6px}.footnote{line-height:1.4}}
@media(max-width:600px){.days{padding-bottom:10px}}
/* Denser calendar, with the full patient form retaining its original spacing. */
body:not(.booking-view) .card{padding:14px}.booking-heading{margin-bottom:8px}.booking-heading h2{font-size:22px}.booking-price{font-size:20px}.compact-fields select,.branch-value{min-height:40px}.calendar-head{margin:8px 0 6px}.day{min-height:44px;padding:4px 2px}.times-title{margin:8px 0 6px}.times{gap:6px}.time{min-height:36px;padding:4px 6px;font-size:14px;line-height:1.3}.more{padding-top:6px}.footnote{margin-top:8px}
@media(min-width:480px){.times{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:640px){.times{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:479px){body:not(.booking-view) .card{padding:12px}.booking-heading h2{font-size:20px}.booking-price{font-size:18px}.time{min-height:38px;padding:5px 6px}.days{padding-bottom:10px}}
