/* AUTO-EXTRACTED from public/assets/public/css/public.css (wizard rules). Do not edit — re-run extract_wizard_css.py when the live wizard CSS changes; restyle in speedo-wizard.css. */
/* ─── نظام الأيقونات المتحركة/الثابتة (Animated vs Static Icons) ───
   قاعدة الاختيار المعتمدة من الآن في كل أجزاء المشروع (الموقع العام/لوحة
   الإدارة/لوحة المزوّد/نظام الرسائل): الحركة تُستخدَم فقط حين تحمل معنى
   (مؤشر "مباشر/حيّ"، تفاعل عند hover لبطاقة/زر رئيسي، تأكيد نجاح) — لا
   حركة زخرفية بلا سبب، ولا حركة دائمة على أيقونات صغيرة متكررة (قوائم/
   حقول/أزرار ثانوية) حتى لا تشتّت الانتباه أو تُثقل الأداء. الأدوات
   الجاهزة أدناه: .icon-anim-float (تأرجح رأسي بطيء ومستمر — لعناصر بصرية
   قليلة العدد كأيقونة حالة فارغة أو بادج مميز) و .icon-anim-pop (نبضة
   دخول خفيفة تُشغَّل مرة واحدة عبر إضافة الكلاس من JS عند نجاح فعلي، مثل
   تأكيد إرسال نموذج) — بجانب أنماط hover الموجودة أصلًا لكل عائلة بطاقات
   (transform: scale+rotate على الأيقونة عند :hover). كل الحركات تحترم
   prefers-reduced-motion وتُعطَّل تلقائيًا. */
.icon-anim-float { animation: icon-float 3.2s ease-in-out infinite; }
.icon-anim-pop { animation: icon-pop .5s var(--ease-out); }
@keyframes icon-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .icon-anim-pop { animation: none; }
}
/* ═══════════════════════════════════════════════════
   معالج التسجيل السريع (Apply Wizard) — يُستخدَم مضمَّنًا داخل الهيرو في
   الرئيسية وككامل الصفحة في /apply (راجع apply-wizard.js). نفس البطاقة
   البصرية في الموضعين، فقط الحاوية الخارجية تختلف.
═══════════════════════════════════════════════════ */
.wizard-card { background: var(--surface); border-radius: var(--radius-card-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 440px; width: 100%; }
.wizard-header { background: var(--brand-gradient); padding: var(--space-5) var(--space-6); color: #fff; position: relative; }
.wizard-header-top { display: flex; align-items: center; gap: 12px; }
.wizard-header-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); background: rgba(255,255,255,.2); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wizard-header-icon svg { width: 22px; height: 22px; }
.wizard-header-text { flex: 1; min-width: 0; }
.wizard-header-text b { display: block; font-size: 16px; font-weight: 800; }
.wizard-header-text span { font-size: 12.5px; opacity: .85; }
.wizard-step-pill { background: rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; flex-shrink: 0; direction: ltr; unicode-bidi: isolate; }
.wizard-progress-track { height: 4px; background: rgba(255,255,255,.25); border-radius: 999px; margin-top: var(--space-4); overflow: hidden; }
.wizard-progress-bar { height: 100%; background: #fff; border-radius: 999px; transition: width var(--dur-slow) var(--ease-out); }
.wizard-stepper { display: flex; align-items: center; margin-top: var(--space-4); }
.wizard-stepper-dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); color: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; transition: all var(--dur-fast) var(--ease-out); }
.wizard-stepper-dot svg { width: 11px; height: 11px; }
.wizard-stepper-dot.done { background: #fff; color: var(--primary); cursor: pointer; }
.wizard-stepper-dot.current { background: #fff; color: var(--primary); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.wizard-stepper-line { flex: 1; height: 2px; background: rgba(255,255,255,.2); margin: 0 4px; }
.wizard-stepper-line.done { background: #fff; }
.wizard-review-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.wizard-review-row:last-child { border-bottom: none; }
.wizard-review-row .r-label { color: var(--text-muted); flex-shrink: 0; }
.wizard-review-row .r-value { font-weight: 700; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-review-note { font-size: 12px; color: var(--text-faint); margin-top: var(--space-3); text-align: center; }
.wizard-success-reqnum { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1.5px dashed var(--border); border-radius: var(--radius-full); padding: 8px 18px; font-size: 13.5px; font-weight: 800; color: var(--primary); margin-bottom: var(--space-5); }
.wizard-success-reqnum .num { font-size: 15px; }
/* ─── سعر أصلي مشطوب بجانب السعر الحالي (خصم) — منتجات/موتوسيكلات ─── */
.price-with-discount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-original-strike { text-decoration: line-through; color: var(--text-faint); font-size: 13px; font-weight: 700; }
.wizard-body { padding: var(--space-6); min-height: 260px; display: flex; flex-direction: column; }
.wizard-step-title { font-size: 19px; font-weight: 900; margin: 0 0 4px; }
.wizard-step-desc { font-size: 13.5px; color: var(--text-muted); margin: 0 0 var(--space-5); }
.wizard-input-group { position: relative; margin-bottom: var(--space-3); }
.wizard-input-group svg.leading { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); pointer-events: none; }
.wizard-input-group input { width: 100%; height: 52px; border-radius: var(--radius-lg); border: 1.5px solid var(--border); background: var(--surface-2); padding-inline-start: 44px; padding-inline-end: 14px; font-size: 15px; font-weight: 700; color: var(--text); }
.wizard-input-group input:focus { border-color: var(--primary); outline: none; background: var(--surface); }
.wizard-input-group input[dir="ltr"] { text-align: left; }
.wizard-helper { font-size: 11.5px; color: var(--text-faint); margin-top: -4px; margin-bottom: var(--space-3); }
.wizard-empty-state { text-align: center; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.wizard-empty-state-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); color: var(--text-faint); display: flex; align-items: center; justify-content: center; }
.wizard-empty-state-icon svg { width: 26px; height: 26px; }
.wizard-empty-state p { font-size: 13.5px; color: var(--text-muted); margin: 0; max-width: 320px; }
.wizard-empty-state .wizard-btn-back { width: auto; min-width: 180px; }
.wizard-error { font-size: 12.5px; color: var(--danger); margin-top: -4px; margin-bottom: var(--space-3); }
/* تمييز الحقل الفاشل تحديدًا بإطار أحمر واضح — طلب صريح: رسالة عامة واحدة
   ("يرجى تعبئة هذه الخطوة بشكل صحيح") لا توضّح أي حقل بالتحديد فيه مشكلة،
   خصوصًا في خطوات فيها أكثر من حقل معًا. راجع validateCurrent()/onNext(). */
.wizard-field-invalid { border-color: var(--danger) !important; }
input.wizard-field-invalid, select.wizard-field-invalid { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
div.wizard-field-invalid, label.wizard-field-invalid { outline: 2px solid var(--danger); outline-offset: 3px; border-radius: var(--radius-lg); }
.wizard-info { font-size: 12.5px; font-weight: 800; color: var(--primary); background: rgba(16,185,129,.1); border-radius: var(--radius-md); padding: 8px 12px; margin-top: -2px; margin-bottom: var(--space-3); }
/* ─── حاويات Lottie لخطوات OTP (الجزء 11 — الحركة) — تستضيف إما رسم SVG
       متحرّك أو الأيقونة الثابتة البديلة عند تعطيل الحركة/فشل التحميل ─── */
.wizard-otp-visual, .wizard-2fa-visual { width: 100%; max-width: 200px; margin: 0 auto var(--space-4); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.wizard-otp-visual svg, .wizard-2fa-visual svg { width: 100%; height: 100%; }
.wizard-otp-visual [data-lottie-fallback], .wizard-2fa-visual [data-lottie-fallback] { width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--primary-rgb),.1); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.wizard-otp-visual [data-lottie-fallback] svg, .wizard-2fa-visual [data-lottie-fallback] svg { width: 26px; height: 26px; }
.wizard-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wizard-choice-grid.cols-1 { grid-template-columns: 1fr; }
.wizard-choice { border: 1.5px solid var(--border); background: var(--surface-2); border-radius: var(--radius-lg); padding: 14px 10px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.wizard-choice-icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; color: var(--primary); }
.wizard-choice-icon svg { width: 24px; height: 24px; }
/* أيقونات توضيحية (صور PNG بدل SVG أحادي اللون) لخطوة اختيار وسيلة العمل —
   حجم أكبر يليق بتفاصيل الرسمة، بلا استدارة/قص حتى تظهر الخلفية الملوّنة
   الأصلية لكل صورة كاملة */
.wizard-choice-illustrated { padding-top: 12px; }
.wizard-choice-icon-img { width: 44px; height: 44px; margin-bottom: 8px; }
.wizard-choice-icon-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); display: block; }
.wizard-choice-company { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; }
.wizard-choice-company .wizard-choice-icon { margin: 0; flex-shrink: 0; }
.wizard-choice-company .wizard-choice-icon svg { width: 18px; height: 18px; }
.wizard-choice:hover { border-color: var(--primary); }
.wizard-choice.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
/* اختيار بعنوان+وصف (مسارات التقديم الثلاثة) — يعيد استخدام .wizard-choice-company (Flex+محاذاة يمين) بدل تكرار القواعد */
.wizard-choice-grid.cols-1 .wizard-choice:has(b) { display: flex; align-items: flex-start; gap: 10px; text-align: start; padding: 14px; }
.wizard-choice-grid.cols-1 .wizard-choice:has(b) .wizard-choice-icon { margin: 2px 0 0; flex-shrink: 0; }
.wizard-terms-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-top: var(--space-3); cursor: pointer; }
.wizard-terms-check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); }
.wizard-terms-check a { color: var(--primary); font-weight: 700; }
.wizard-whatsapp-notice { display: flex; align-items: flex-start; gap: 8px; background: rgba(37, 211, 102, .08); border: 1px solid rgba(37, 211, 102, .25); border-radius: var(--radius-lg); padding: 10px 12px; font-size: 12.5px; color: var(--text-muted); margin-bottom: var(--space-4); }
.wizard-whatsapp-notice svg { width: 18px; height: 18px; flex-shrink: 0; color: #25D366; margin-top: 1px; }
.wizard-footer { padding: 0 var(--space-6) var(--space-6); display: flex; gap: 10px; margin-top: auto; }
.wizard-btn-back { flex: 0 0 auto; padding: 13px 18px; border-radius: var(--radius-lg); border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: 14px; }
.wizard-btn-next { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: var(--radius-lg); background: var(--primary); color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 8px 20px rgba(var(--primary-rgb), .3); }
.wizard-btn-next:disabled { opacity: .5; cursor: not-allowed; }
.wizard-btn-next svg { width: 17px; height: 17px; }
.wizard-success { text-align: center; padding: var(--space-8) var(--space-6); }
.wizard-success-icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(16,185,129,.12); color: #10B981; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); }
.wizard-success-icon svg { width: 34px; height: 34px; }
.wizard-success h3 { font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.wizard-success p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 var(--space-5); }
.wizard-blocked { text-align: center; padding: var(--space-8) var(--space-6); }
.wizard-blocked-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(239,68,68,.1); color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); }
.wizard-blocked-icon svg { width: 28px; height: 28px; }
@media (max-width: 480px) {
  .wizard-card { max-width: 100%; }
  .wizard-choice-grid { grid-template-columns: 1fr 1fr; }
}
/* ─── خطوة اختيار مركبة/منتج حقيقي (إيجار/تقسيط مباشر) ─── */
.wizard-vehicle-grid { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: var(--space-3); }
.wizard-vehicle-card { border: 1.5px solid var(--border); background: var(--surface-2); border-radius: var(--radius-lg); padding: 10px; transition: border-color var(--dur-fast) var(--ease-out); }
.wizard-vehicle-card.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); }
.wizard-vehicle-top { display: flex; align-items: center; gap: 10px; }
.wizard-vehicle-top img, .wizard-vehicle-noimg { width: 52px; height: 52px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.wizard-vehicle-noimg { display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text-faint); }
.wizard-vehicle-noimg svg { width: 24px; height: 24px; }
.wizard-vehicle-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wizard-vehicle-info b { font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-vehicle-info .num { font-size: 13px; color: var(--primary); font-weight: 800; }
.wizard-vehicle-actions { display: flex; gap: 8px; margin-top: 8px; }
.wizard-vehicle-details-btn, .wizard-vehicle-select-btn { flex: 1; padding: 8px 10px; border-radius: var(--radius-md); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.wizard-vehicle-select-btn svg { width: 13px; height: 13px; }
.wizard-vehicle-details-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.wizard-vehicle-select-btn { background: var(--primary); color: #fff; border: none; }
.wizard-vehicle-detail-panel { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.wizard-detail-rows { display: flex; flex-direction: column; gap: 4px; }
.wizard-detail-row { font-size: 12px; color: var(--text-muted); }
.wizard-detail-row b { color: var(--text); }
/* ─── خطوة رفع مستندات "أسرع بداية" الاختيارية (بطاقة وش+ظهر + صورة شخصية) ─── */
.wizard-doc-glare-notice { display: flex; align-items: flex-start; gap: 8px; background: var(--warning-soft); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg); padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: var(--warning); margin-bottom: var(--space-4); }
.wizard-doc-glare-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.wizard-doc-upload-grid { display: flex; flex-direction: column; gap: var(--space-4); }
.wizard-doc-upload-item { border: 1.5px solid var(--border); background: var(--surface-2); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.wizard-doc-upload-item b { font-size: 13.5px; font-weight: 800; }
.wizard-doc-item-hint { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 0; }
.wizard-doc-example { position: relative; border-radius: var(--radius-md); overflow: hidden; display: flex; justify-content: center; padding: 8px; background: var(--surface); }
.wizard-doc-example-tag { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--warning); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); z-index: 1; }
/* لون صريح (خلفية var(--primary) بدل حدود منقّطة شبه شفافة) — طلب صريح:
   الزر كان باهتًا لدرجة إن متقدّمين ما كانوش لاقيين مكان رفع الصورة أصلاً */
.wizard-doc-upload-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 700; color: #fff; background: var(--primary); cursor: pointer; text-align: center; transition: filter var(--dur-fast) var(--ease-out); }
.wizard-doc-upload-btn:hover { filter: brightness(1.08); }
.wizard-doc-upload-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
/* ─── خطوة اختيار الشركة/العرض الوظيفي الفعلي (رحلة تقديم الوظيفة عبر واتساب) ─── */
.wizard-company-card { border: 1.5px solid var(--border); background: var(--surface-2); border-radius: var(--radius-lg); padding: var(--space-3); margin-bottom: var(--space-3); }
.wizard-company-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wizard-company-logo { width: 40px; height: 40px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.wizard-company-logo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text-faint); }
.wizard-company-logo-placeholder svg { width: 20px; height: 20px; }
.wizard-company-header b { font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.wizard-company-header b svg { width: 15px; height: 15px; color: var(--primary); }
.wizard-offer-grid { display: flex; flex-direction: column; gap: 8px; }
.wizard-offer-card { border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: 10px; transition: border-color var(--dur-fast) var(--ease-out); }
.wizard-offer-card.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); }
.wizard-offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wizard-offer-top b { font-size: 13px; font-weight: 800; }
.wizard-offer-payout { font-size: 11px; color: var(--text-muted); background: var(--surface-2); padding: 2px 8px; border-radius: var(--radius-full); }
.wizard-offer-salary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wizard-offer-salary span { font-size: 11.5px; color: var(--primary); font-weight: 700; background: rgba(var(--primary-rgb), .08); padding: 3px 8px; border-radius: var(--radius-md); }
.wizard-offer-benefits { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.wizard-offer-age { font-size: 11.5px; color: var(--text-faint); margin-bottom: 8px; }
.wizard-offer-card .wizard-vehicle-select-btn { width: 100%; padding: 9px 10px; }
/* ─── بطاقة "مقفلة" لمركبة/منتج مُختار مسبقًا (يصل المستخدم مباشرة من صفحة الموتوسيكل/المنتج) ─── */
.wizard-locked-card { position: relative; background: var(--surface); border: 1.5px solid var(--success); border-radius: 20px; padding: var(--space-4); max-width: 440px; width: 100%; margin-bottom: var(--space-3); box-shadow: var(--shadow-sm); }
.wizard-locked-badge { position: absolute; top: -11px; inset-inline-start: var(--space-4); display: inline-flex; align-items: center; gap: 4px; background: var(--success); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-full); }
.wizard-locked-badge svg { width: 12px; height: 12px; }
.wizard-locked-top { display: flex; align-items: center; gap: var(--space-3); }
.wizard-locked-top img, .wizard-locked-noimg { width: 64px; height: 64px; border-radius: var(--radius-lg); object-fit: cover; flex-shrink: 0; }
.wizard-locked-noimg { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-faint); }
.wizard-locked-noimg svg { width: 26px; height: 26px; }
.wizard-locked-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wizard-locked-info > b { font-size: 11px; font-weight: 800; color: var(--text-muted); }
.wizard-locked-title { font-size: 14.5px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-locked-price { font-size: 13px; color: var(--primary); font-weight: 800; }
.wizard-locked-owner { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.wizard-locked-owner svg { width: 13px; height: 13px; }
.wizard-legal-note { max-width: 440px; width: 100%; background: var(--danger-soft); border: 1px solid rgba(220,38,38,.2); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); font-size: 11.5px; line-height: 1.7; color: var(--text-muted); margin-bottom: var(--space-4); }
.wizard-legal-note b { color: var(--danger); }
.job-card-quickinfo-item { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.job-card-quickinfo-item svg { width: 13px; height: 13px; color: var(--text-faint); flex-shrink: 0; }
.job-card-chip { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--surface-2); border-radius: var(--radius-md); padding: 7px 11px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); flex: 1; min-width: 105px; }
.job-card-chip svg { width: 13px; height: 13px; color: var(--text-faint); flex-shrink: 0; }
/* سرعة التفعيل عامل تحويل حقيقي — تُبرَز بلون النجاح بدل الرمادي المحايد */
.job-card-chip-accent { background: var(--success-soft, rgba(16,185,129,.12)); color: var(--success); }
.job-card-chip-accent svg { color: var(--success); }
.job-detail-apply-panel .wizard-card { max-width: none; box-shadow: var(--shadow-xl), 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent); }
