/* SPARK booking module (#book-app). Depends on studio.css variables. */
.book{max-width:960px;margin-inline:auto;padding:48px var(--gutter) 96px}
.book-step{display:block}
.book-fieldset{border:0;padding:0;margin:0;min-width:0}
.book-legend{padding:0;float:inline-start;width:100%}
.book-legend+*{clear:both}
.book-heading{font-family:var(--display);font-size:clamp(38px,5vw,68px);line-height:1.02;letter-spacing:-.02em;margin:0 0 14px;font-weight:400}
:root[lang=ar-EG] .book-heading{font-weight:900;font-size:clamp(30px,3.8vw,50px);line-height:1.3;letter-spacing:-.03em}
.book-lead{font-size:17px;color:var(--muted);margin:0 0 32px;max-width:60ch}
:root[lang=ar-EG] .book-lead{line-height:1.9}
.book-progress{display:flex;align-items:center;gap:14px;margin:0 0 22px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;font-size:12px}
:root[lang=ar-EG] .book-progress{letter-spacing:0;text-transform:none}
.book-progress-bar{display:block;width:120px;height:3px;background:var(--line);border-radius:3px;overflow:hidden}
.book-progress-bar i{display:block;height:100%;background:var(--fg);transition:width .3s}
.book-subhead{font-size:20px;font-weight:700;margin:0 0 4px}

/* Step 1: meeting type cards */
.book-types{display:grid;gap:12px}
.book-type{position:relative;cursor:pointer;display:block}
.book-type input{position:absolute;opacity:0;width:1px;height:1px;inset-inline-start:0;top:0}
.book-type-body{display:grid;gap:8px;padding:22px 24px;border:1px solid var(--line);border-radius:12px;transition:background .2s,border-color .2s,color .2s}
.book-type-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}
.book-type-row strong{font-size:21px;font-weight:750;line-height:1.3}
.book-type-time{font-size:13px;font-weight:650;white-space:nowrap;color:var(--muted)}
.book-type-desc{font-size:15px;color:var(--muted);line-height:1.6}
:root[lang=ar-EG] .book-type-desc{line-height:1.9}
.book-type:hover .book-type-body{border-color:var(--fg)}
.book-type input:checked+.book-type-body{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.book-type input:checked+.book-type-body .book-type-time,.book-type input:checked+.book-type-body .book-type-desc{color:inherit;opacity:.8}
:root[data-theme=dark] .book-type input:checked+.book-type-body{background:var(--yellow);color:#141414;border-color:var(--yellow)}
.book-type input:focus-visible+.book-type-body{outline:3px solid #8060bf;outline-offset:4px}

/* Step 2: day strip + slot grid */
.book-days{display:flex;gap:8px;overflow-x:auto;padding:4px 4px 14px;margin:0 -4px 22px;scroll-snap-type:x mandatory;scrollbar-width:thin;border-bottom:1px solid var(--line)}
.book-day{flex:0 0 auto;scroll-snap-align:start;min-width:74px;display:grid;gap:2px;justify-items:center;padding:12px 10px;border:1px solid var(--line);border-radius:12px;background:transparent;transition:background .2s,border-color .2s,color .2s}
.book-day-wd{font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
:root[lang=ar-EG] .book-day-wd{text-transform:none;letter-spacing:0}
.book-day-num{font-family:var(--display);font-size:30px;line-height:1}
:root[lang=ar-EG] .book-day-num{font-weight:900;font-size:24px;line-height:1.3}
.book-day-mo{font-size:12px;color:var(--muted)}
.book-day:hover{border-color:var(--fg)}
.book-day.is-today{border-style:dashed}
.book-day[aria-checked=true]{background:var(--fg);color:var(--bg);border-color:var(--fg);border-style:solid}
.book-day[aria-checked=true] .book-day-wd,.book-day[aria-checked=true] .book-day-mo{color:inherit;opacity:.75}
:root[data-theme=dark] .book-day[aria-checked=true]{background:var(--yellow);color:#141414;border-color:var(--yellow)}
.book-slots-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.book-slots-head .small{margin:0}
.book-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.book-slot{display:grid;gap:2px;justify-items:center;padding:12px 10px;border:1px solid var(--line);border-radius:30px;background:transparent;min-height:50px;transition:background .2s,border-color .2s,color .2s}
.book-slot-time{font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.book-slot-local{font-size:11px;color:var(--muted);line-height:1.3}
.book-slot:hover{border-color:var(--fg)}
.book-slot[aria-checked=true]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.book-slot[aria-checked=true] .book-slot-local{color:inherit;opacity:.75}
:root[data-theme=dark] .book-slot[aria-checked=true]{background:var(--yellow);color:#141414;border-color:var(--yellow)}
.book-empty{padding:24px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}

/* Step 3: details */
.book-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
.book-field{display:grid;gap:7px;min-width:0}
.book-field>span{font-size:14px;font-weight:650}
.book-field em{font-style:normal;font-weight:400;color:var(--muted);font-size:12px;margin-inline-start:6px}
.book-field-wide{grid-column:1/-1}
.book-field input,.book-field select,.book-field textarea{min-width:0;width:100%;color:var(--fg);background:var(--surface);border:1px solid var(--line);padding:13px 14px;border-radius:8px;font-size:16px;min-height:49px;text-align:start}
.book-field textarea{resize:vertical;line-height:1.5}
.book-field input:focus,.book-field select:focus,.book-field textarea:focus{border-color:var(--fg);outline:none}
.book-field input:focus-visible,.book-field select:focus-visible,.book-field textarea:focus-visible{outline:3px solid #8060bf;outline-offset:3px}
.book-channel{margin-top:26px}
.book-channel-label{display:block;font-size:14px;font-weight:650;margin-bottom:10px}
.book-chips{display:flex;flex-wrap:wrap;gap:8px}
.book-chip{position:relative;cursor:pointer}
.book-chip input{position:absolute;opacity:0;width:1px;height:1px;inset-inline-start:0;top:0}
.book-chip span{display:inline-flex;align-items:center;min-height:44px;padding:10px 17px;border:1px solid var(--line);border-radius:30px;font-size:13px;font-weight:600;transition:background .2s,border-color .2s}
.book-chip:hover span{border-color:var(--fg)}
.book-chip input:checked+span{background:var(--fg);color:var(--bg);border-color:var(--fg)}
:root[data-theme=dark] .book-chip input:checked+span{background:var(--yellow);color:#141414;border-color:var(--yellow)}
.book-chip input:focus-visible+span{outline:3px solid #8060bf;outline-offset:3px}
.book-privacy{margin:22px 0 0}

/* Actions */
.book-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:34px;padding-top:24px;border-top:1px solid var(--line)}
.book-actions>.button:only-child{margin-inline-start:auto}
.book-actions-end{justify-content:flex-start}
.book-back{cursor:pointer}
:root[lang=ar-EG] .book .button svg{transform:rotate(180deg)}

/* Confirmation */
.book-status{font-size:17px;font-weight:600;margin:0 0 24px;max-width:60ch}
.book-status[data-status=failed]{color:#b4261a}
:root[data-theme=dark] .book-status[data-status=failed]{color:#ff8a7a}
.book-summary{margin:0 0 24px;padding:28px clamp(20px,3vw,36px);background:var(--yellow);color:#141414;border-radius:16px;display:grid;gap:0}
.book-summary>div{display:grid;grid-template-columns:minmax(120px,170px) 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #14141433}
.book-summary>div:last-child{border-bottom:0}
.book-summary dt{font-size:13px;font-weight:650;text-transform:uppercase;letter-spacing:.04em;opacity:.75}
:root[lang=ar-EG] .book-summary dt{text-transform:none;letter-spacing:0}
.book-summary dd{margin:0;font-weight:600;font-size:16px;overflow-wrap:anywhere}
.book-summary .small{color:inherit;opacity:.7}
.book-note{padding:16px 20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);margin:0 0 24px;font-size:14px}
.book-tools{display:flex;flex-wrap:wrap;gap:10px}
.book-tools .button{gap:12px}
.book-secondary{background:transparent;color:var(--fg);border-color:var(--fg)}
.book-secondary:hover{background:var(--purple);color:#141414}

/* Embed mode */
.book-frame{width:100%;min-height:700px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}

@media(max-width:760px){
  .book{padding-block:28px 72px}
  .book-grid{grid-template-columns:1fr}
  .book-slots{grid-template-columns:repeat(3,1fr)}
  .book-slot{padding-inline:6px}
  .book-slot-local{font-size:10px}
  .book-day{min-width:66px;padding:10px 8px}
  .book-type-body{padding:18px}
  .book-type-row strong{font-size:18px}
  .book-actions{flex-direction:column-reverse;align-items:stretch}
  .book-actions .button{width:100%}
  .book-actions .text-link{align-self:flex-start}
  .book-summary>div{grid-template-columns:1fr;gap:3px}
  .book-tools .button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .book *{transition:none!important}
  .book-days{scroll-behavior:auto}
}
