/* صفحة الحجز: خطوات واضحة، للموبايل أولاً */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-body { min-height: 100svh; display: flex; flex-direction: column; }
.bk-head { position: sticky; top: 0; z-index: 20; background: rgba(248, 245, 241, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bk-head-in { max-width: 640px; margin: auto; height: 60px; padding: 0 8px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.bk-title { text-align: center; line-height: 1.2; }
.bk-title small { display: block; font-size: 12px; color: var(--muted); }
.bk-title b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.bk-progress { max-width: 640px; margin: auto; padding: 0 20px 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.bk-progress span { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.bk-progress span.on { background: var(--accent); }

.bk { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 20px 120px; }
.bk-step-label { font-size: 13px; color: var(--accent); font-weight: 500; }
.bk h1 { font-size: 28px; margin: 4px 0 6px; }
.bk-lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.bk-group { margin-top: 22px; }
.bk-group > h2 { font-family: var(--body); font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bk-group > h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bk-loading { display: grid; gap: 10px; }

/* بطاقات الاختيار */
.opts { display: grid; gap: 10px; }
.opt { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; padding-inline-end: 16px; text-align: start; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--nude); }
.opt[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.opt-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--nude-soft); }
.opt-img img { width: 100%; height: 100%; object-fit: cover; }
.opt b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.4; }
.opt small { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.opt small span { display: inline-flex; align-items: center; gap: 4px; }
.opt small svg { width: 14px; height: 14px; }
.opt .price { color: var(--ink); font-weight: 500; }
.opt .chev { color: var(--muted); }
.opt .avatar { width: 52px; height: 60px; font-size: 22px; margin: 0; }
.opt.any .any-ic { width: 52px; height: 60px; border-radius: var(--arch); background: var(--accent); color: #fff; display: grid; place-items: center; padding-top: 4px; }
.opt .tag { font-size: 11.5px; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 99px; }

/* شريط الأيام */
.days-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.days-head b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px 8px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; scroll-snap-align: start; width: 68px; padding: 10px 4px 9px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; line-height: 1.25; transition: background .2s, box-shadow .2s; }
.day small { display: block; font-size: 12px; color: var(--muted); }
.day b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; margin: 3px 0 1px; }
.day em { display: block; font-style: normal; font-size: 11px; color: var(--accent); min-height: 14px; }
.day:disabled { opacity: .42; cursor: not-allowed; background: transparent; }
.day:disabled em { color: var(--muted); }
.day[aria-pressed='true'] { background: var(--accent); box-shadow: none; color: #fff; }
.day[aria-pressed='true'] small, .day[aria-pressed='true'] em { color: rgba(255, 255, 255, .85); }
.quick { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); font-size: 14.5px; }
.quick svg { color: var(--accent); }
.quick button { margin-inline-start: auto; color: var(--accent); font-weight: 600; }
.legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.legend i.off { background: var(--line); }

/* الأوقات */
.when-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 4px; }
.when-bar b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.when-bar small { display: block; color: var(--muted); font-size: 12.5px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 360px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot { min-height: 48px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15.5px; direction: ltr; transition: background .15s, box-shadow .15s; }
.slot:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.slot[aria-pressed='true'] { background: var(--accent); color: #fff; box-shadow: none; }
.no-slots { text-align: center; padding: 30px 16px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.no-slots .btn { margin-top: 14px; }

/* النموذج */
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.input { width: 100%; min-height: 52px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; transition: border-color .2s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 92px; resize: vertical; line-height: 1.6; }
.field .err { display: none; color: #8f3b2c; font-size: 13px; margin-top: 5px; }
.field.has-err .input, .field.has-err .seg { border-color: #c98b7f; }
.field.has-err .err { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.seg button { min-height: 44px; border-radius: 11px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed='true'] { background: var(--accent); color: #fff; }

/* الملخص */
.summary { background: var(--card); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 18px; }
.sum-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row > svg { color: var(--accent); width: 20px; height: 20px; }
.sum-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.sum-row b { font-weight: 500; font-size: 15.5px; line-height: 1.5; }
.sum-row .edit { font-size: 13px; color: var(--accent); font-weight: 500; padding: 6px 2px; }
.note-box { display: flex; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--nude-soft); font-size: 14px; line-height: 1.7; }
.note-box svg { color: #8a6a55; margin-top: 3px; }

/* الشريط السفلي */
.bk-foot { position: fixed; z-index: 15; bottom: 0; inset-inline: 0; background: rgba(255, 253, 250, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.bk-foot-in { max-width: 600px; margin: auto; }
.bk-foot .fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 7px; }

/* النجاح */
.done { text-align: center; padding-top: 10px; }
.done-ic { width: 76px; height: 88px; margin: 0 auto 18px; border-radius: var(--arch); background: var(--accent); color: #fff; display: grid; place-items: center; padding-top: 6px; }
.done-ic svg { width: 34px; height: 34px; stroke-width: 2; }
.done h1 { font-size: 30px; }
.done .bk-lead { max-width: 380px; margin: 6px auto 18px; }
.done-no { display: inline-block; padding: 6px 16px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.done .summary { text-align: start; }
.done-btns { display: grid; gap: 10px; margin-top: 18px; }
.ts-box { position: fixed; z-index: 120; bottom: 90px; inset-inline-start: 12px; }

.day-rows { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; min-height: 56px; padding: 0 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: start; }
.day-row:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.day-row b { font-weight: 500; }
.day-row span { font-size: 13.5px; color: var(--accent); }
.day-row svg { color: var(--muted); width: 18px; height: 18px; }
