/* dr-v2-otp.css — خطوة تحقق الهاتف في الحجز السريع v2 بتصميم Stitch (الجوال). تحت .drv2 فقط ولا تُحمَّل إلا في quick-book/_otp.blade.php.
   المرجع: DESIGN.md (بلا ظلال ولا تدرّجات؛ العمق بالحدود). ?v=1 */

.drv2 .ot-ic { flex: none; display: block; }
.drv2 .ot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* الشريط العلوي */
.drv2 .ot-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top)); background: var(--card); border-bottom: 1px solid var(--line); }
.drv2 .ot-back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--chip); color: var(--ink); }
.drv2 .ot-bar__brand { display: block; font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.drv2 .ot-bar__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); }

.drv2 .ot-page { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }

/* ملخص الحجز */
.drv2 .ot-doc { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drv2 .ot-doc__main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.drv2 .ot-doc__avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; }
.drv2 .ot-doc__text { min-width: 0; }
.drv2 .ot-doc__name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.drv2 .ot-doc__name h2 { margin: 0; overflow: hidden; font-size: 18px; font-weight: 600; line-height: 1.55; white-space: nowrap; text-overflow: ellipsis; }
.drv2 .ot-doc__badge { position: relative; flex: none; color: var(--st-ok-fg); }
.drv2 .ot-doc__meta { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 11px; font-weight: 500; line-height: 1.5; color: var(--ink-2); }
.drv2 .ot-doc__meta strong { font-weight: 600; }
.drv2 .ot-doc__fee { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding: 4px 8px; border-radius: var(--r-chip); background: var(--chip); }
.drv2 .ot-doc__fee span { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.drv2 .ot-doc__fee strong { font-size: 15px; font-weight: 700; }

/* الخطوات */
.drv2 .ot-prog__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.drv2 .ot-prog__now { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.drv2 .ot-prog__now i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.drv2 .ot-prog__count { flex: none; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.drv2 .ot-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.drv2 .ot-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.drv2 .ot-steps li::before { content: ""; flex: 0 0 100%; height: 6px; border-radius: 9999px; background: var(--chip); }
.drv2 .ot-steps__mark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--chip); color: var(--ink-2); font-size: 9px; font-weight: 700; }
.drv2 .ot-steps .is-done { color: var(--st-ok-fg); }
.drv2 .ot-steps .is-done::before, .drv2 .ot-steps .is-done .ot-steps__mark { background: var(--st-ok-fg); color: #fff; }
.drv2 .ot-steps .is-now { color: var(--ink); font-weight: 600; }
.drv2 .ot-steps .is-now::before, .drv2 .ot-steps .is-now .ot-steps__mark { background: var(--ink); color: #fff; }

/* بطاقة الرمز */
.drv2 .ot-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.drv2 .ot-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.drv2 .ot-hero__ic { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--st-ok-bg); color: var(--st-ok-fg); }
.drv2 .ot-hero__ic span { position: absolute; bottom: -4px; left: -4px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--st-ok-fg); color: #fff; }
.drv2 .ot-hero h2 { margin: 12px 0 4px; font-size: 20px; font-weight: 700; line-height: 1.6; }
.drv2 .ot-hero p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.drv2 .ot-hero p b { font-weight: 600; color: var(--st-ok-fg); }
.drv2 .ot-hero__phone { display: block; font-size: 15px; font-weight: 700; letter-spacing: .05em; color: var(--ink); }
.drv2 .ot-err { padding: 8px 12px; border-radius: var(--r-chip); background: var(--st-bad-bg); text-align: center; }
.drv2 .ot-err[hidden] { display: none; }

/* خانات الرمز: حقل واحد شفاف فوق 6 خانات، ليعمل الملء التلقائي واللصق وقارئ الشاشة */
.drv2 .ot-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.drv2 .ot-code input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; opacity: 0; }
.drv2 .ot-cell { display: flex; align-items: center; justify-content: center; height: 56px; border: 1px solid transparent; border-radius: var(--r-chip); background: var(--chip); color: var(--muted); font-size: 20px; font-weight: 600; }
.drv2 .ot-cell.is-filled { color: var(--ink); }
.drv2 .ot-code:focus-within .ot-cell.is-active { border-color: var(--ink); background: var(--card); }
.drv2 .ot-code.is-error .ot-cell { border-color: var(--st-bad-fg); }

.drv2 .ot-resend { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 44px; padding: 4px 8px; border: 0; border-radius: var(--r-chip); background: var(--chip); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.drv2 .ot-resend:disabled { color: var(--ink-2); cursor: default; }
.drv2 .ot-resend:disabled .ot-ic, .drv2 .ot-resend b { color: var(--ink); }
.drv2 .ot-resend b { font-weight: 700; letter-spacing: .05em; }
.drv2 .ot-resend:not(:disabled) { background: var(--chip); font-weight: 600; }

.drv2 .ot-link { display: flex; align-items: center; justify-content: center; gap: 4px; align-self: center; min-height: 44px; padding: 0 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.drv2 .ot-meta { color: var(--ink-2); font-size: 11px; font-weight: 500; line-height: 1.5; text-align: center; }
.drv2 .ot-meta p { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; }
.drv2 .ot-meta p + p { margin-top: 2px; }
.drv2 .ot-meta b { display: inline-block; font-weight: 700; color: var(--ink); }

/* رسالة الطمأنة والزر */
.drv2 .ot-trust { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-card); background: var(--chip); }
.drv2 .ot-trust__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--ink); }
.drv2 .ot-trust strong { display: block; font-size: 14px; font-weight: 700; }
.drv2 .ot-trust p { margin: 0; font-size: 11px; font-weight: 500; line-height: 1.5; color: var(--ink-2); }
.drv2 .ot-cta { min-height: 52px; font-size: 16px; }
.drv2 .ot-cta:disabled { opacity: .6; cursor: default; }
.drv2 #otpCta[hidden] { display: none; }
