/* Education360 — 1-on-1 booking. Mobile first (390 px), 44 px touch targets, RTL-safe (logical properties), dark mode via tokens. */

/* ---------- the time picker: a strip of days, then the day's times */
.bkg-picker{display:block;min-width:0;max-width:100%}
.bkg-page>[class*="col-"],.bkg-site .e3-form>*,.bkg-form{min-width:0}
.bkg-hint{margin:0 0 8px}   /* 1.5.0: the picker's box hint (the words Qalam says) */
.bkg-tz{display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;font-size:13px;color:var(--muted)}
.bkg-tz .icon{margin-top:2px;flex:none}
.bkg-days{display:flex;max-width:100%;gap:8px;overflow-x:auto;padding:10px 8px 10px 2px;scroll-snap-type:x proximity;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.bkg-daybtn{position:relative;flex:none;scroll-snap-align:start;min-width:66px;min-height:76px;padding:8px 6px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  border:1.5px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);cursor:pointer;font:inherit;line-height:1.15;transition:border-color .15s,background .15s,box-shadow .15s}
.bkg-daybtn small{font-size:11.5px;color:var(--muted);font-weight:600}
.bkg-daybtn b{font-size:20px;font-weight:750;font-variant-numeric:tabular-nums}
.bkg-daybtn em{position:absolute;inset-block-start:-7px;inset-inline-end:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand-100);color:var(--brand-700);font-style:normal;font-size:11px;font-weight:750;display:grid;place-items:center}
.bkg-daybtn:hover{border-color:color-mix(in oklab,var(--brand) 45%,var(--border))}
.bkg-daybtn[aria-selected="true"]{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 6px 16px -8px color-mix(in oklab,var(--brand) 70%,transparent)}
.bkg-daybtn[aria-selected="true"] small{color:rgba(255,255,255,.85)}
.bkg-daybtn[aria-selected="true"] em{background:var(--accent);color:#1a1300}
.bkg-daybtn.has-pick::after{content:"";position:absolute;inset-block-end:6px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.bkg-day{border:0;padding:0;margin:14px 0 0;min-width:0}
.bkg-day legend{padding:0;margin:0 0 10px;font-weight:700;font-size:15px}
.bkg-picker.is-js .bkg-day:not(.is-on){display:none}
.bkg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.bkg-slot{position:relative;display:block}
.bkg-slot input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.bkg-slot span{min-height:48px;padding:6px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1.5px solid var(--border);border-radius:12px;background:var(--surface);transition:border-color .12s,background .12s}
.bkg-slot b{font-weight:700;font-variant-numeric:tabular-nums;font-size:14.5px}
.bkg-slot small{font-size:11.5px;color:var(--muted);line-height:1.25}
.bkg-slot:hover span{border-color:color-mix(in oklab,var(--brand) 50%,var(--border))}
.bkg-slot input:checked+span{background:var(--brand);border-color:var(--brand);color:#fff}
.bkg-slot input:checked+span small{color:rgba(255,255,255,.88)}
.bkg-slot input:focus-visible+span{box-shadow:var(--focus)}

/* the sticky "Request this time" bar (above the phone's bottom navigation) */
.bkg-bar{position:sticky;bottom:var(--bottom-nav-h,0);z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background:color-mix(in oklab,var(--surface) 94%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--border);border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.bkg-bar-text{display:flex;flex-direction:column;min-width:0;flex:1 1 220px}
.bkg-bar-text small{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:650}
.bkg-bar-text b{font-weight:650;color:var(--muted);overflow-wrap:anywhere}
.bkg-bar-text b.is-set{color:var(--text)}
.bkg-bar .btn,.bkg-bar .s-btn{min-height:48px}
.bkg-bar.is-site{bottom:0;border:1px solid var(--s-line,var(--border));border-radius:18px;box-shadow:0 10px 30px -18px rgba(13,20,38,.45)}
@media (max-width:560px){.bkg-bar .btn,.bkg-bar .s-btn{flex:1 1 100%;justify-content:center}}

/* ---------- pages */
.bkg-when{font-weight:700;font-size:15.5px;font-variant-numeric:tabular-nums}
.bkg-quote{margin:0;padding:6px 12px;border-inline-start:3px solid var(--border-strong);color:var(--text-2);font-size:13.5px;background:var(--surface-2);border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.bkg-proposal{border-inline-start:4px solid var(--blue)}
.bkg-reqs{display:grid;gap:12px}
.bkg-reqcard.is-pending{border-inline-start:4px solid var(--amber)}
.bkg-answer{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.bkg-answer>.inline-form .btn,.bkg-answer>.btn,.bkg-decline>summary{min-height:44px}
.bkg-decline{flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-end}
.bkg-decline>summary{list-style:none;cursor:pointer}
.bkg-decline>summary::-webkit-details-marker{display:none}
.bkg-decline[open]{flex-basis:100%;align-items:stretch}
.bkg-decline[open]>summary{align-self:flex-end}
.bkg-decline-form{margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.bkg-decline-form fieldset{border:0;padding:0;margin:0}
.bkg-reasons{flex-wrap:wrap}
/* list rows: the text keeps its width; the buttons move under it when the row is too narrow (phones) */
.bkg-class,.bkg-req,.bkg-plan{flex-wrap:wrap;align-items:flex-start}
.bkg-class>.grow,.bkg-req>.grow,.bkg-plan>.grow{flex:1 1 260px;min-width:0}
.bkg-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end;flex:0 1 auto;margin-inline-start:auto}
.bkg-actions .btn,.bkg-plan>.btn{min-height:40px}
.bkg-credits{display:grid;gap:6px;max-width:460px}
.bkg-credits-line{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:13px}
.bkg-credits-line span{color:var(--muted)}
@media (max-width:560px){
  .bkg-actions{flex-basis:100%;justify-content:flex-start;margin-inline-start:0}
  .bkg-actions .btn,.bkg-plan>.btn{min-height:44px}
  .bkg-plan>.btn,.bkg-makeup .btn,.bkg-foot .btn{flex:1 1 100%;justify-content:center}
  .bkg-foot{flex-direction:column-reverse;align-items:stretch}
  .bkg-answer>*{flex:1 1 100%}
  .bkg-answer .btn,.bkg-decline>summary{width:100%;justify-content:center}
  .bkg-decline{align-items:stretch}
}
@media (min-width:1280px){.bkg-reqs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bkg-reqcard{display:flex;flex-direction:column}.bkg-reqcard>.card-body{flex:1}}
.bkg-makeup{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:10px;background:var(--amber-bg);color:var(--text)}
.bkg-makeup .icon{color:var(--amber)}
.bkg-steps{list-style:none;counter-reset:s;margin:0;padding:14px 18px 18px;display:grid;gap:14px}
.bkg-steps li{counter-increment:s;position:relative;padding-inline-start:40px;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.bkg-steps li::before{content:counter(s);position:absolute;inset-inline-start:0;top:0;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--brand-100);color:var(--brand-700);font-weight:750;font-size:13px}
.bkg-steps span{color:var(--muted)}
.bkg-custom>summary{cursor:pointer;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px;min-height:44px}
.bkg-accept{margin-top:12px;padding:12px;border:1.5px solid var(--red);border-radius:12px;font-weight:600;min-height:44px}
.bkg-accept input{width:20px;height:20px}
.bkg-teacher{display:flex;align-items:center;gap:12px;margin:-4px 0 16px}
.bkg-teacher div{display:flex;flex-direction:column}
.bkg-teacher span{font-size:13px;color:var(--s-muted,var(--muted))}
.bkg-site .bkg-when{font-size:18px;margin:0 0 8px}
.bkg-foot-note{padding-inline:16px;margin:0}

/* ---------- monthly plan: preferred weekly times */
.bkg-pref-hint{font-weight:650;margin:0 0 12px;color:var(--brand-700)}
.bkg-pref-day{display:grid;gap:6px;padding:10px 0;border-top:1px dashed var(--border)}
.bkg-pref-day:first-of-type{border-top:0}
.bkg-chips{display:flex;flex-wrap:wrap;gap:8px}
.bkg-chip{position:relative}
.bkg-chip input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.bkg-chip span{min-height:44px;min-width:84px;padding:6px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1.5px solid var(--border);border-radius:12px;background:var(--surface);line-height:1.2}
.bkg-chip small{font-size:11px;color:var(--muted)}
.bkg-chip input:checked+span{background:var(--brand);border-color:var(--brand);color:#fff}
.bkg-chip input:checked+span small{color:rgba(255,255,255,.88)}
.bkg-chip input:disabled+span{opacity:.45;cursor:not-allowed}
.bkg-chip input:focus-visible+span{box-shadow:var(--focus)}
@media (min-width:640px){.bkg-pref-day{grid-template-columns:120px 1fr;align-items:center}}

/* ---------- weekly free times: a day list on a phone, a week grid on a computer */
.bkg-week{display:grid;gap:10px}
.bkg-wday{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:var(--surface);min-width:0}
.bkg-wday-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.bkg-wday-head .icon-btn{width:44px;height:44px}
.bkg-daybar{position:relative;height:8px;border-radius:999px;background:var(--surface-3);margin-bottom:8px;overflow:hidden}
.bkg-daybar i{position:absolute;inset-block:0;background:var(--brand);border-radius:999px}
.bkg-ranges{display:grid;gap:8px}
.bkg-range{display:flex;align-items:center;gap:6px}
.bkg-range .input{flex:1;min-width:0;min-height:44px}
.bkg-range .icon-btn{width:44px;height:44px;flex:none}
.bkg-range.is-bad .input{border-color:var(--red)}
.bkg-none{margin:4px 0 0}
.bkg-sticky{position:sticky;bottom:var(--bottom-nav-h,0);z-index:10;background:color-mix(in oklab,var(--surface) 94%,transparent);backdrop-filter:blur(8px)}
@media (min-width:900px){.bkg-week{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}
@media (min-width:1360px){
  .bkg-week{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
  .bkg-wday{padding:10px 8px}
  .bkg-wday-head .icon-btn{width:36px;height:36px}
  .bkg-range{position:relative;display:grid;gap:4px;padding:6px;border-radius:10px;background:var(--surface-2)}
  .bkg-range>span{display:none}
  .bkg-range .input{min-height:36px;font-size:13px;padding-inline:6px;width:100%}
  .bkg-range .icon-btn{position:absolute;inset-block-start:-8px;inset-inline-end:-8px;width:26px;height:26px;border-radius:50%;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}
  .bkg-range .icon-btn .icon{width:14px;height:14px}
}
.bkg-offform{border-top:1px solid var(--border)}
/* times read left to right inside Urdu text ("5:30 PM", "Tue 7 Oct, 7:00 pm PKT") */
.bkg-slot b,.bkg-slot small,.bkg-chip b,.bkg-chip small,.bkg-bar-text b,.bkg-when{unicode-bidi:isolate}
[dir="rtl"] .bkg-slot b,[dir="rtl"] .bkg-slot small,[dir="rtl"] .bkg-chip b,[dir="rtl"] .bkg-chip small{direction:ltr}

/* 1.3.0: the add / remove buttons of the weekly free times carry words, not only an icon with a tooltip */
.bkg-add{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:10px;border:1px solid transparent;background:var(--brand-50);color:var(--brand-ink);font:600 13.5px var(--font);cursor:pointer;white-space:nowrap}
.bkg-add:hover{background:var(--brand-100)}
.bkg-add:focus-visible,.bkg-rm:focus-visible{box-shadow:var(--focus);outline:none}
.bkg-rm{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 10px;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--red-ink);font:600 13px var(--font);cursor:pointer;flex:none}
.bkg-rm:hover{background:var(--red-bg)}
@media (min-width:1360px){.bkg-add{min-height:34px;padding:0 8px;font-size:12.5px}.bkg-range .bkg-rm{min-height:30px;width:100%;font-size:12.5px}}
.bkg-wday-head{flex-wrap:wrap}
