/* dr-v2-bookscreen.css — شاشة «حجز موعد جديد» v2 (/doctors/{id}/booking): اختيار الخدمة واليوم والوقت (Stitch ._3)،
   «مراجعة وتأكيد الحجز» (._4)، وحالة «الوقت حُجز للتو» (_3). تحت .drv2 فقط ولا تُحمَّل إلا في v2/booking.blade.php.
   المرجع docs/design/DESIGN.md: بلا ظلال ولا ضباب ولا تدرّجات؛ بطاقات 16px، أزرار 10px، رقائق 8px، لمسات ≥44px. ?v=1 */

/* شريط الرجوع/المفضلة/المشاركة */
.drv2 .bp-util, .drv2 .bp-util__side { display: flex; align-items: center; gap: 8px; }
.drv2 .bp-util { justify-content: space-between; }
.drv2 .bp-util form { margin: 0; }
.drv2 .bp-util__title { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; }
.drv2 .bp-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--chip); color: var(--ink); cursor: pointer; font: inherit; }
.drv2 .bp-iconbtn.is-on { color: var(--st-bad-fg); }
.drv2 .bp-iconbtn.is-on svg { fill: currentColor; }
.drv2 .bp-toast { font-size: 12px; font-weight: 500; color: var(--st-ok-fg); }

/* مسار التنقل: سطر واحد يتمرّر أفقياً */
.drv2 .bp-crumbs { display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); scrollbar-width: none; }
.drv2 .bp-crumbs::-webkit-scrollbar { display: none; }
.drv2 .bp-crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.drv2 .bp-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* بطاقة الطبيب */
.drv2 .bp-doc { display: flex; align-items: flex-start; gap: 16px; }
.drv2 .bp-doc__photo { flex: none; width: 64px; height: 64px; border-radius: var(--r-12); object-fit: cover; background: var(--chip); }
.drv2 .bp-doc__initials { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--ink); }
.drv2 .bp-doc__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.drv2 .bp-doc__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.drv2 .bp-doc__name h1 { margin: 0; font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; }
.drv2 .bp-doc__spec { margin: 0; font-size: var(--fs-label-md); line-height: var(--lh-label-md); font-weight: 500; color: var(--ink-2); }
.drv2 .bp-doc__addr { display: flex; align-items: flex-start; gap: 4px; margin: 0; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--muted); }
.drv2 .bp-doc__addr svg { margin-top: 1px; color: var(--st-bad-fg); }
.drv2 .bp-doc__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.drv2 .bp-doc__meta:empty { display: none; }
.drv2 .bp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--chip); font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); font-weight: 500; color: var(--ink); }
.drv2 .bp-tag small { font-size: var(--fs-caption); font-weight: 400; color: var(--ink-2); }
.drv2 .bp-gold { color: var(--star); fill: currentColor; }

/* ملاحظة الطمأنة */
.drv2 .bp-note { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-12); background: var(--chip); }
.drv2 .bp-note__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--ink); }
.drv2 .bp-note strong { display: block; font-size: var(--fs-label-md); line-height: var(--lh-label-md); font-weight: 600; }
.drv2 .bp-note span { display: block; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--ink-2); }

/* رأس القسم المرقّم */
.drv2 .bp-sec { gap: 12px; }
.drv2 .bp-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drv2 .bp-sec__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; }
.drv2 .bp-sec__head small { flex: none; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--muted); }
.drv2 .bp-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.drv2 .bp-h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; }

/* 1) بطاقات الخدمة */
.drv2 .bp-svcs { display: grid; gap: 8px; }
.drv2 .bp-svc { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); cursor: pointer; }
.drv2 .bp-svc input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.drv2 .bp-svc__dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--card); }
.drv2 .bp-svc__name { flex: 1; min-width: 0; font-size: var(--fs-label-lg); line-height: var(--lh-label-lg); font-weight: 600; }
.drv2 .bp-svc__price { flex: none; font-size: var(--fs-label-lg); font-weight: 700; }
.drv2 .bp-svc__price small { font-size: var(--fs-label-sm); font-weight: 500; color: var(--muted); }
.drv2 .bp-svc:has(input:checked) { border-color: var(--ink); outline: 1px solid var(--ink); }
.drv2 .bp-svc:has(input:checked) .bp-svc__dot { background: var(--ink); border-color: var(--ink); }
.drv2 .bp-svc:has(input:checked) .bp-svc__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.drv2 .bp-svc:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

/* 2) شريط الأيام */
.drv2 .bp-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.drv2 .bp-day { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; min-height: 84px; padding: 8px 6px; border: 1px solid var(--border); border-radius: var(--r-12); background: var(--card); color: var(--ink); text-align: center; cursor: pointer; scroll-snap-align: start; }
.drv2 .bp-day input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.drv2 .bp-day__wd { display: inline-flex; align-items: center; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--ink-2); }
.drv2 .bp-day__n { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 700; }
.drv2 .bp-day__n--txt { font-size: var(--fs-label-sm); line-height: var(--lh-headline-sm); }
.drv2 .bp-day__sub { font-size: 10px; line-height: 16px; font-weight: 500; color: var(--muted); }
.drv2 .bp-day:has(input[type="radio"]:checked), .drv2 .bp-day.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.drv2 .bp-day:has(input[type="radio"]:checked) .bp-day__wd, .drv2 .bp-day:has(input[type="radio"]:checked) .bp-day__sub,
.drv2 .bp-day.is-active .bp-day__wd, .drv2 .bp-day.is-active .bp-day__sub { color: #D6DAE6; }
.drv2 .bp-day:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.drv2 .bp-day--other { border-style: dashed; border-color: var(--border-strong); }

/* لوحة أوقات اليوم: فترتان */
.drv2 .bp-panel { display: grid; gap: 16px; padding: 16px; }
.drv2 .bp-period h3 { margin: 0 0 8px; font-size: var(--fs-label-md); line-height: var(--lh-label-md); font-weight: 600; }
.drv2 .bp-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.drv2 .bp-slots .v2-chip { min-width: 0; height: 44px; padding: 0 8px; font-size: var(--fs-label-md); font-weight: 600; }
.drv2 .bp-slots .v2-chip.is-booked { font-weight: 500; }
.drv2 .bp-dateonly { margin: 0; font-size: var(--fs-label-md); line-height: var(--lh-label-md); color: var(--ink-2); }
.drv2 .bp-hint { margin: 0; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--muted); }

/* شروط الحجز / ماذا يحدث بعد التأكيد */
.drv2 .bp-policy h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--fs-label-lg); line-height: var(--lh-label-lg); font-weight: 700; }
.drv2 .bp-policy ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.drv2 .bp-policy li { display: flex; align-items: flex-start; gap: 10px; }
.drv2 .bp-policy li > svg { margin-top: 2px; color: var(--st-ok-fg); }
.drv2 .bp-policy li strong { display: block; font-size: var(--fs-label-md); line-height: var(--lh-label-md); font-weight: 500; }
.drv2 .bp-policy li span { display: block; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--ink-2); }

/* المراجعة والتأكيد */
.drv2 .bp-linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-label-md); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; justify-self: start; }
.drv2 .bp-review { display: grid; gap: 8px; padding: 12px; background: var(--chip); border-color: transparent; }
.drv2 .bp-review__row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-12); background: var(--card); }
.drv2 .bp-review__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.drv2 .bp-review__row + .bp-review__row .bp-review__ic { background: var(--chip); color: var(--ink); }
.drv2 .bp-review__txt { flex: 1; min-width: 0; }
.drv2 .bp-review small { display: block; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--muted); }
.drv2 .bp-review strong { display: block; font-size: var(--fs-label-lg); line-height: var(--lh-label-lg); font-weight: 600; overflow-wrap: anywhere; }
.drv2 .bp-review__price { flex: none; text-align: left; }
.drv2 .bp-review__price strong { font-size: var(--fs-headline-sm); font-weight: 700; }
.drv2 .bp-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drv2 .bp-seg__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 4px 12px; border: 1px solid transparent; border-radius: var(--r-btn); background: var(--chip); color: var(--ink); font: inherit; font-size: var(--fs-label-md); font-weight: 600; text-align: center; cursor: pointer; }
.drv2 .bp-seg__btn { flex-wrap: wrap; row-gap: 0; line-height: 1.35; overflow-wrap: anywhere; }
.drv2 .bp-seg__btn small { flex-basis: 100%; font-size: var(--fs-caption); font-weight: 400; opacity: .85; }
.drv2 .bp-seg__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.drv2 .bp-addlink { font-size: var(--fs-body-sm); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; justify-self: start; }
.drv2 .bp-me { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.drv2 .bp-me > div { padding: 10px 12px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--border); min-width: 0; }
.drv2 .bp-me dt { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--muted); }
.drv2 .bp-me dd { margin: 2px 0 0; font-size: var(--fs-label-md); font-weight: 600; overflow-wrap: anywhere; }
.drv2 .bp-coupon > summary { min-height: 44px; display: flex; align-items: center; font-size: var(--fs-label-md); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; list-style: none; }
.drv2 .bp-coupon > summary::-webkit-details-marker { display: none; }
.drv2 input[type="file"].v2-input { padding: 10px; font-size: 14px; }

/* حالة «الوقت حُجز للتو» */
.drv2 .bp-taken__old { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-12); background: var(--st-bad-bg); color: var(--st-bad-fg); }
.drv2 .bp-taken__old > div { flex: 1; min-width: 0; }
.drv2 .bp-taken__old small { display: block; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; }
.drv2 .bp-taken__old s { display: block; font-size: var(--fs-label-lg); font-weight: 600; }
.drv2 .bp-taken__old .v2-pill { background: var(--card); }
.drv2 .bp-taken__msg { display: grid; gap: 4px; padding: 16px; }
.drv2 .bp-taken__msg:focus, .drv2 .bp-sticky__err:focus { outline: none; } /* تركيز برمجي لقارئ الشاشة فقط */
.drv2 .bp-taken__msg strong { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 700; }
.drv2 .bp-taken__msg span { font-size: var(--fs-label-md); line-height: var(--lh-label-md); }
.drv2 .bp-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drv2 .bp-alts:empty { display: none; }
.drv2 .bp-alt { display: grid; gap: 2px; min-height: 64px; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--r-btn); background: var(--chip); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.drv2 .bp-alt strong { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 700; justify-self: start; }
.drv2 .bp-alt small { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--ink-2); }
.drv2 .bp-alt[aria-checked="true"] { background: var(--ink); color: #fff; }
.drv2 .bp-alt[aria-checked="true"] small { color: #BFE8D2; }

/* محتوى صفحة الطبيب أسفل النموذج */
.drv2 .bp-bio { margin: 0; white-space: pre-line; color: var(--ink-2); }
.drv2 .bp-others { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.drv2 .bp-others a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.drv2 .bp-gate { justify-content: space-between; text-align: start; padding: 8px 16px; }
.drv2 .bp-gate span { display: grid; }
.drv2 .bp-gate small { font-size: var(--fs-label-sm); font-weight: 500; }

/* الشريط المثبّت فوق التنقل السفلي: ملخص حيّ ثم الزر المرجاني الوحيد */
.drv2 .bp-sticky { position: fixed; inset-inline: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 55; background: var(--card); border-top: 1px solid var(--border); padding: 8px var(--gutter) 10px; }
.drv2 .bp-sticky__in { display: grid; gap: 6px; max-width: 528px; margin: 0 auto; }
.drv2 .bp-sticky__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--ink-2); }
.drv2 .bp-sticky__sum span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.drv2 .bp-sticky__sum span:first-child { overflow: hidden; }
.drv2 .bp-sticky__sum b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv2 .bp-sticky__fine { margin: 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); text-align: center; }
.drv2 .bp-sticky__err { padding: 8px 12px; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); }
.drv2 .bp-page { padding-bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
.drv2 .bp-page--nosticky { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 768px) {
  .drv2 .bp-sticky { bottom: 0; }
  .drv2 .bp-page { padding-bottom: 180px; }
  .drv2 .bp-page--nosticky { padding-bottom: 32px; }
}
