/* "Book a call" dialog (every page, homepage included).
   View 1 (default): our picker on Zoho Bookings (assets/js/booking.js).
   View 2: "We'll call you instead" → short call-back form. */
#page #book{padding:16px}
#page #book .book-card{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:0;padding:28px;border-radius:24px}
#page #book .book-card:focus{outline:none}
#page #book .book-x{position:absolute;top:14px;right:14px;z-index:2}
#page #book .book-cal,#page #book .book-cb{display:flex;flex-direction:column;gap:0}
#page #book .book-cal[hidden],#page #book .book-cb[hidden]{display:none!important}
#page #book .eyebrow{margin:0 0 6px;font-size:12px}
#page #book .bp-h{font-size:clamp(22px,2.6vw,28px);font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0 48px 6px 0}
#page #book .bp-sub{color:var(--muted);margin:0 0 16px;font-size:15px;line-height:1.45}

/* Picker */
#page #book .bp{display:flex;flex-direction:column;gap:0}
#page #book .bp-days{display:flex;gap:8px;overflow-x:auto;margin:0;padding:2px 18px 12px;scroll-padding-inline:18px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%)}
#page #book .bp-days::-webkit-scrollbar{display:none}
#page #book .bp-days button{flex:none;scroll-snap-align:start;width:58px;min-height:66px;border-radius:14px;border:1.5px solid var(--line-control,#d9d4c9);background:var(--surface,#fff);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;font-family:var(--display);padding:0}
#page #book .bp-days button small{font-size:11px;color:var(--muted);font-weight:600}
#page #book .bp-days button b{font-size:19px;line-height:1}
#page #book .bp-days button[aria-checked="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
#page #book .bp-days button[aria-checked="true"] small{color:rgba(255,255,255,.75)}
#page #book .bp-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:148px;overflow-y:auto;padding:2px;margin:4px 0 0}
#page #book .bp-times button{min-height:44px;border-radius:12px;border:1.5px solid var(--line-control,#d9d4c9);background:var(--surface,#fff);color:var(--ink);font:700 14px var(--display);cursor:pointer;padding:0}
#page #book .bp-times button:hover,#page #book .bp-days button:hover{border-color:var(--magenta)}
#page #book .bp-times button[aria-checked="true"]{background:var(--magenta);border-color:var(--magenta);color:#fff}
#page #book .bp-hint{grid-column:1/-1;color:var(--muted);margin:0;padding:10px 0;font-size:15px}
#page #book .bp-hint a{color:var(--magenta);font-weight:700}
#page #book .bp-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
#page #book .bp-pick{grid-column:1/-1;margin:0;font-weight:800;color:var(--ink)}
#page #book .bp-done{display:flex;flex-direction:column;gap:6px;padding:8px 0}
#page #book .bp-done b{font-size:18px}

/* Switch to the call-back form */
#page #book .book-switch{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
#page #book .book-switch button{border:0;background:none;padding:0;margin:0;min-height:32px;color:var(--magenta);font:700 14px var(--display);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#page #book .book-back{align-self:flex-start;min-height:36px;margin:-6px 0 10px;border:0;background:none;color:var(--ink);font:700 14px var(--display);cursor:pointer;padding:0}

/* Both forms: two columns on wider screens */
#page #book :is(#book-form,.bp-form){display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
#page #book :is(#book-form,.bp-form)[hidden]{display:none}
#page #book :is(#book-form,.bp-form) .field{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:13px;margin:0}
#page #book :is(#book-form,.bp-form) .field:nth-of-type(4){grid-column:1/-1}
#page #book :is(#book-form,.bp-form) :is(input,select){width:100%;min-height:46px;border-radius:12px;border:1.5px solid var(--line-control,#d9d4c9);background:var(--bg);color:var(--ink);padding:0 12px;font:500 16px var(--display)}
#page #book :is(#book-form,.bp-form) :is(input,select):focus{outline:2px solid var(--magenta);outline-offset:1px}
#page #book :is(#book-form,.bp-form) :is(.btn,.err){grid-column:1/-1;justify-self:start;margin:4px 0 0}
#page #book .book-done{display:flex;flex-direction:column;gap:6px}

/* Phones: bottom sheet, one column */
@media (max-width:600px){
  #page #book{padding:0;align-items:flex-end}
  #page #book .book-card{width:100%;max-height:92dvh;border-radius:24px 24px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px))}
  #page #book :is(#book-form,.bp-form){grid-template-columns:1fr}
  #page #book .bp-h{font-size:22px}
}
