/* ============================================================
   bot.css — أداة الفحص الأولي | شركة اسم للمحاماة
   Design System: Navy #0d1e3d · Gold #c5a059 · Cream #fcfaf7
   ============================================================ */

/* ─── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  /* ألوان الهوية الملكية الفاخرة */
  --primary:        #0d1e3d; /* كحلي ملكي عميق (Royal Deep Navy) */
  --primary-l:      #182e5c; /* كحلي مضيء */
  --secondary:      #c5a059; /* ذهبي عتيق فاخر (Antique Classic Gold) */
  --gold:           #c5a059;
  --gold-l:         #e5c17d; /* ذهبي فاتح للتأثيرات والتفاعلات */
  --gold-d:         #a0782d; /* ذهبي عميق */
  --bg:             #fcfaf7; /* عاجي ملكي دافئ (Royal Ivory) */
  --bg-card:        #ffffff;
  --bg-dark:        #071329; /* أزرق داكن يقارب الأسود */
  --text:           #2c3545; /* كحلي رمادي مريح للنصوص */
  --text-mute:      #697386; /* نصوص ثانوية */
  --white:          #ffffff;
  --gray-border:    rgba(197, 160, 89, 0.25); /* حدود ذهبية شفافة */
  --gray-light:     #f3edd3;

  /* تدرجات ألوان فاخرة */
  --gold-gradient:        linear-gradient(135deg, #b38938 0%, #e5c17d 50%, #a0782d 100%);
  --gold-gradient-hover:  linear-gradient(135deg, #c5a059 0%, #f1d89d 50%, #b38938 100%);
  --navy-gradient:        linear-gradient(135deg, #0d1e3d 0%, #071329 100%);

  /* ألوان التنبيهات */
  --green:          #128c7e;
  --green-l:        #eef9f5;
  --yellow:         #8f6412;
  --yellow-l:       #fef9ed;
  --red:            #9e2a2b;
  --red-l:          #fdf0f0;
  --blue-info:      #0d1e3d;
  --blue-info-l:    #f3f6fa;

  /* الخطوط الفاخرة */
  --font-heading:   'Amiri', serif;
  --font-body:      'Tajawal', sans-serif;

  --radius:         14px;
  --radius-sm:      8px;
  --shadow-sm:      0 4px 20px rgba(13, 30, 61, 0.03);
  --shadow:         0 15px 35px rgba(13, 30, 61, 0.05);
  --shadow-hover:   0 20px 45px rgba(197, 160, 89, 0.16);
  --trans:          all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  direction: rtl;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  line-height: 1.7;
  letter-spacing: 0.2px;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
a { color: var(--gold); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--gold-l); text-decoration: none; }

/* ─── Topbar ────────────────────────────────────────────────── */
.topbar {
  background: var(--bg-dark);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-border);
  width: 100%;
  box-shadow: 0 4px 20px rgba(7, 19, 41, 0.5);
}
.topbar-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.topbar-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-logo {
  height: 38px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.topbar-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .01em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.topbar-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 99px;
  font-size: 0.72rem;
  color: var(--gold-l);
  font-weight: 500;
}
.topbar-badge-pill i {
  color: var(--gold);
}
.topbar-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-sm);
  color: var(--gold-l);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans);
  flex-shrink: 0;
}
.topbar-return-btn:hover {
  background: var(--gold-gradient);
  color: var(--bg-dark) !important;
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ─── Main Wrapper ─────────────────────────────────────────── */
.wizard-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 16px 50px;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
  display: flex;
  flex-direction: column;
}

/* ─── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(197,160,89,.18);
  overflow: hidden;
}
.card-header {
  background: var(--navy-gradient);
  padding: 28px 30px 22px;
  border-bottom: 2px solid rgba(197,160,89,.35);
}
.card-header-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}
.card-header-sub {
  font-family: var(--font-body);
  font-size: .88rem;
  color: rgba(229,193,125,.9);
  line-height: 1.6;
}
.card-body { padding: 28px 30px; }

/* ─── Progress Bar ─────────────────────────────────────────── */
.progress-wrap {
  margin-bottom: 24px;
}
.progress-label {
  font-family: var(--font-body);
  font-size: .84rem;
  color: var(--text-mute);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}
.progress-label strong { color: var(--gold-d); font-weight: 700; }
.progress-track {
  height: 7px;
  background: rgba(197, 160, 89, 0.15);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 99px;
  transition: width .45s cubic-bezier(.16,1,.3,1);
  width: 0%;
}

/* ─── Question Title ───────────────────────────────────────── */
.q-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.q-help {
  font-size: .82rem;
  color: var(--text-mute);
  margin-bottom: 20px;
  padding: 8px 14px;
  background: var(--blue-info-l);
  border-radius: var(--radius-sm);
  border-right: 3px solid #3a7bd5;
  display: none;
}
.q-help.visible { display: block; }

/* ─── Option Buttons ───────────────────────────────────────── */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.options-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opt-btn {
  background: var(--white);
  border: 1.5px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.45;
  width: 100%;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.opt-btn:hover {
  border-color: var(--gold);
  background: #fdfaf3;
  color: var(--primary);
  transform: translateX(-4px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.15);
}
.opt-btn:active {
  transform: scale(.985);
  background: rgba(197,160,89,.12);
}
.opt-btn > span:first-child {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  text-align: right;
}
.opt-btn .opt-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(197, 160, 89, 0.4);
  flex-shrink: 0;
  margin-inline-start: auto;
  transition: var(--trans);
}
.opt-btn:hover .opt-dot {
  border-color: var(--gold);
  background: var(--gold-gradient);
}

/* ─── Select Dropdown ──────────────────────────────────────── */
.select-wrap {
  position: relative;
  margin-bottom: 16px;
}
.select-wrap select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(13,30,61,.14);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: .98rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  cursor: pointer;
  transition: var(--trans);
  direction: rtl;
}
.select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
}
.select-wrap::after {
  content: '▾';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-mute);
  font-size: 1rem;
}
.select-confirm-btn {
  width: 100%;
  margin-top: 8px;
}

/* ─── Employer Picker ──────────────────────────────────────── */
.employer-search {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid rgba(13,30,61,.14);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 10px;
  transition: var(--trans);
  direction: rtl;
}
.employer-search:focus { outline: none; border-color: var(--gold); }
.employer-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(13,30,61,.1);
  border-radius: var(--radius-sm);
  display: none;
}
.employer-list.active { display: block; }
.employer-item {
  padding: 11px 16px;
  font-size: .92rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(13,30,61,.06);
  transition: background .15s;
}
.employer-item:hover { background: rgba(197,160,89,.1); }
.employer-other {
  margin-top: 10px;
  display: none;
}
.employer-other.active { display: block; }
.employer-other input {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid rgba(13,30,61,.14);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: .92rem;
  direction: rtl;
}
.employer-other input:focus { outline: none; border-color: var(--gold); }
.employer-or {
  text-align: center;
  color: var(--text-mute);
  font-size: .82rem;
  margin: 10px 0;
}

/* ─── Date Picker (S6B) ────────────────────────────────────── */
.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ─── Confirm Button ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
  font-size: 1rem;
  padding: 13px 24px;
}
.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-gradient-hover);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}
.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-d);
}
.btn-secondary:hover {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
}
.btn-wa {
  background: #128c7e;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(18, 140, 126, 0.25);
  border: 1px solid #128c7e;
  font-size: 1.02rem;
  width: 100%;
}
.btn-wa:hover {
  background: #25d366;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── Intro Screen ─────────────────────────────────────────── */
#intro-screen .intro-icon {
  width: 76px;
  height: 76px;
  background: var(--navy-gradient);
  border: 2px solid rgba(197, 160, 89, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 10px 30px rgba(7, 19, 41, 0.25);
}
#intro-screen .intro-icon svg { width: 38px; height: 38px; fill: var(--gold-l); }
#intro-screen .intro-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.45;
}
#intro-screen .intro-desc {
  font-size: .95rem;
  color: var(--text-mute);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}
.intro-info-box {
  background: #fbf8f0;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.75;
}
.intro-info-box strong { font-weight: 700; }
.intro-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list { margin-top: 16px; }
.faq-item {
  border: 1px solid rgba(13,30,61,.1);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 13px 18px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background .2s;
}
.faq-question:hover { background: rgba(197,160,89,.06); }
.faq-question .faq-arrow { transition: transform .2s; font-size: .75rem; color: var(--text-mute); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  font-size: .88rem;
  color: var(--text-mute);
  line-height: 1.7;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 12px 18px; }

/* ─── Result Screen ────────────────────────────────────────── */
.result-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.badge-pass    { background: var(--green-l); color: var(--green); }
.badge-manual  { background: var(--yellow-l); color: var(--yellow); }
.badge-scope   { background: var(--red-l); color: var(--red); }
.badge-paid    { background: var(--blue-info-l); color: var(--blue-info); }

.result-case-id {
  font-size: .8rem;
  color: var(--text-mute);
  margin-bottom: 14px;
  font-family: monospace;
  letter-spacing: .04em;
}
.result-headline {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.result-body {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.result-disclaimer {
  font-size: .82rem;
  color: var(--text-mute);
  background: #fbf8f0;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.result-note {
  font-size: .85rem;
  color: var(--yellow);
  background: var(--yellow-l);
  border: 1px solid rgba(143, 100, 18, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}
.result-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─── Lead Form ────────────────────────────────────────────── */
.lead-section {
  margin-top: 28px;
  border-top: 1px solid var(--gray-border);
  padding-top: 24px;
  display: none;
}
.lead-section.active { display: block; }
.lead-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.lead-sub {
  font-size: .85rem;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: var(--trans);
  direction: rtl;
  background: var(--white);
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}
.form-group input.error { border-color: var(--red); }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .83rem;
  color: var(--text-mute);
  line-height: 1.55;
}
.consent-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-d);
  cursor: pointer;
}
.lead-success {
  padding: 14px 18px;
  background: var(--green-l);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  display: none;
}
.lead-success.active { display: block; }

/* ─── Loading Spinner ───────────────────────────────────────── */
.spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(197,160,89,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Accessibility & Transitions ──────────────────────────── */
.screen { animation: fadeSlide .25s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer ────────────────────────────────────────────────── */
.wizard-footer {
  text-align: center;
  margin-top: 32px;
  font-size: .78rem;
  color: var(--text-mute);
  line-height: 1.8;
}
.wizard-footer a { color: var(--text-mute); }
.wizard-footer a:hover { color: var(--primary); }

/* ─── Error State ────────────────────────────────────────────── */
.error-state {
  text-align: center;
  padding: 40px 20px;
}
.error-state h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.error-state p { font-size: .9rem; color: var(--text-mute); margin-bottom: 20px; }

/* ─── Responsive Design System ────────────────────────────────── */

/* منع التكبير التلقائي المزعج في متصفحات iOS Safari عند النقر على الحقول */
@media (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  select,
  .employer-search,
  .employer-other input,
  .form-group input {
    font-size: 16px !important;
  }
}

/* الشاشات المتوسطة والصغيرة (الهواتف والأجهزة اللوحية الصغيرة) */
@media (max-width: 640px) {
  .wizard-wrap {
    padding: 18px 12px 45px;
  }
  .card-header {
    padding: 22px 20px 16px;
  }
  .card-body {
    padding: 20px 16px;
  }
}

/* شاشات الهواتف القياسية (<= 540px) */
@media (max-width: 540px) {
  .topbar {
    padding: 10px 14px;
    gap: 10px;
  }
  .topbar-logo {
    height: 28px;
    max-width: 90px;
  }
  .topbar-title {
    font-size: .84rem;
  }
  .topbar-secure {
    font-size: .7rem;
    gap: 4px;
  }

  .wizard-wrap {
    padding: 12px 10px 40px;
    min-height: calc(100dvh - 54px);
  }
  .card {
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(13,30,61,.06);
  }
  .card-header {
    padding: 18px 16px 14px;
  }
  .card-header-title {
    font-size: 1.05rem;
    line-height: 1.4;
  }
  .card-header-sub {
    font-size: .8rem;
    line-height: 1.5;
  }
  .card-body {
    padding: 18px 14px;
  }

  .q-title {
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .q-help {
    font-size: .8rem;
    padding: 8px 12px;
    margin-bottom: 16px;
  }

  .options-grid.two-col {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .opt-btn {
    padding: 12px 14px;
    font-size: .92rem;
    min-height: 48px;
  }

  /* Intro Screen */
  #intro-screen .intro-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }
  #intro-screen .intro-icon svg {
    width: 28px;
    height: 28px;
  }
  #intro-screen .intro-heading {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  #intro-screen .intro-desc {
    font-size: .85rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .intro-info-box {
    padding: 12px 14px;
    font-size: .82rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  /* Buttons */
  .btn {
    padding: 12px 18px;
    font-size: .95rem;
    min-height: 48px;
  }
  .btn-wa {
    font-size: .96rem;
  }

  /* FAQ */
  .faq-question {
    padding: 12px 14px;
    font-size: .88rem;
  }
  .faq-answer {
    font-size: .84rem;
  }

  /* Results & Leads */
  .result-headline {
    font-size: 1.02rem;
    line-height: 1.5;
  }
  .result-body {
    font-size: .88rem;
    line-height: 1.65;
  }
  .result-disclaimer {
    font-size: .76rem;
    padding: 10px 12px;
  }
  .result-note {
    font-size: .8rem;
    padding: 8px 12px;
  }
  .lead-title {
    font-size: .95rem;
  }
  .consent-row {
    font-size: .8rem;
  }
  .consent-row input[type=checkbox] {
    width: 18px;
    height: 18px;
  }

  .wizard-footer {
    font-size: .74rem;
    line-height: 1.7;
    margin-top: 20px;
    padding: 0 4px;
  }
}

/* شاشات الهواتف الضيقة (<= 400px مثل iPhone SE وغيرها) */
@media (max-width: 400px) {
  .topbar {
    padding: 8px 10px;
    gap: 8px;
  }
  .topbar-logo {
    height: 24px;
    max-width: 75px;
  }
  .topbar-title {
    font-size: .78rem;
  }
  .topbar-secure .secure-text {
    display: none;
  }

  .wizard-wrap {
    padding: 8px 6px 30px;
  }
  .card-body {
    padding: 14px 10px;
  }
  .card-header {
    padding: 14px 12px 10px;
  }
  .card-header-title {
    font-size: .98rem;
  }
  .card-header-sub {
    font-size: .76rem;
  }

  .date-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .opt-btn {
    padding: 11px 12px;
    font-size: .88rem;
  }
  .btn {
    font-size: .9rem;
    padding: 11px 14px;
  }
}

