/* ==========================================================================
   د. عادل عيد — استشارة أونلاين
   style.css  |  Mobile-first · Arabic RTL
   البنية:
     1) التوكنز (ألوان، مسافات، خطوط)
     2) إعادة الضبط والأساسيات
     3) عناصر مشتركة (أزرار، بطاقات، تنبيهات)
     4) الشريط العلوي
     5) الهيرو
     6) نبذة الطبيب
     7) الحجز: التقويم، الملخص، النموذج، الدفع، التأكيد
     8) الخدمات + الأسئلة الشائعة
     9) التذييل + زر الحجز الثابت
    10) نقاط التجاوب (600px / 900px / 1200px)
   ========================================================================== */

/* ---------- 1) التوكنز ---------- */
:root {
  /* اللون الأساسي الوحيد للموقع */
  --brand:        #0E5B5E;
  --brand-dark:   #0A4548;
  --brand-soft:   #E7F2F1;
  --brand-tint:   #F3F9F8;

  --ink:          #10262B;   /* نص أساسي */
  --ink-2:        #3E5760;   /* نص ثانوي */
  --muted:        #6B838C;   /* نص خافت */
  --line:         #E2EAE9;
  --line-strong:  #CBD9D8;

  --bg:           #FFFFFF;
  --bg-soft:      #F6FAF9;

  --warn-bg:      #FFF7E8;
  --warn-line:    #F0DCB4;
  --warn-ink:     #7A5312;

  --danger:       #B3261E;
  --ok:           #1B7A4B;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(16, 38, 43, .05);
  --shadow-sm: 0 2px 10px rgba(16, 38, 43, .05);
  --shadow-md: 0 6px 24px rgba(16, 38, 43, .07);

  --font: "Cairo", "Segoe UI", "Tahoma", system-ui, sans-serif;

  --container: 1120px;
  --container-narrow: 720px;
  --pad: 20px;

  --topbar-h: 60px;
}

/* ---------- 2) إعادة الضبط ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.sprite { display: none; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 26px; height: 26px; stroke-width: 1.6; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ltr-cell { direction: ltr; unicode-bidi: isolate; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: 48px; }
.section--tight { padding-block: 32px; }
.section__head { margin-bottom: 20px; }
.section__title { font-size: 1.5rem; letter-spacing: -.01em; }
.section__title--center { text-align: center; }
.section__sub { color: var(--ink-2); margin: 0; }

/* ---------- 3) عناصر مشتركة ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:disabled,
.btn--primary[disabled] {
  background: #C6D5D5;
  color: #6C7E80;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn--ghost:disabled,
.btn--ghost[disabled] {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
  cursor: not-allowed;
  transform: none;
}

.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn--lg { min-height: 54px; font-size: 1.0625rem; padding-inline: 30px; }
.btn--block { display: flex; width: 100%; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.notice .icon { margin-top: 3px; }
.notice--alert {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
}

.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .875rem;
  font-weight: 600;
}

/* ---------- 4) الشريط العلوي ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }

.topbar__inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { color: var(--ink); display: block; line-height: 1.25; }
.brand:hover { text-decoration: none; }
.brand__name { display: block; font-weight: 700; font-size: 1.0625rem; }
.brand__role { display: none; font-size: .8125rem; color: var(--muted); }

/* ---------- 5) الهيرو ---------- */
.hero { padding-block: 24px 8px; background: linear-gradient(180deg, var(--brand-tint), #fff 70%); }
.hero__grid { display: grid; gap: 22px; }

.hero__media { margin: 0; }
.hero__media picture { display: block; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}

.hero__kicker { margin: 0 0 6px; }
.hero__name { font-weight: 700; font-size: 1.125rem; display: block; }
.hero__role { color: var(--brand); font-size: .9375rem; font-weight: 600; }
.hero__title { font-size: 1.6rem; letter-spacing: -.015em; margin-bottom: .35em; }
.hero__lead { color: var(--ink-2); font-size: 1.0625rem; margin-bottom: 1.25em; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: .9375rem;
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .icon { color: var(--brand); width: 18px; height: 18px; }

/* ---------- 6) نبذة الطبيب ---------- */
.about__card { background: var(--bg-soft); box-shadow: none; }
.about__role { color: var(--brand); font-weight: 600; margin-bottom: .5em; }
.about__bio { color: var(--ink-2); margin: 0; }

/* ---------- 7) الحجز ---------- */
.booking { background: var(--bg-soft); }
.booking .card + .card,
.booking form > .card { margin-top: 16px; }
.booking form { margin: 0; }

.step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step__num {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .9375rem;
}
.step__title { font-size: 1.125rem; margin: 0; }
.step__subtitle { font-size: 1rem; margin: 0 0 10px; color: var(--ink); }

/* التقويم — بطاقات أيام قابلة للتمرير أفقياً */
.dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-block-end: 6px;
  margin-inline: -4px;
  padding-inline: 4px;
  scrollbar-width: thin;
}
.dates::-webkit-scrollbar { height: 6px; }
.dates::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.date-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 84px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.date-card__wd { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.date-card__day { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.date-card__mo { font-size: .8125rem; color: var(--muted); }
.date-card__count { font-size: .8125rem; color: var(--muted); }
.date-card:hover { border-color: var(--brand); }

.date-card[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.date-card[aria-pressed="true"] .date-card__wd,
.date-card[aria-pressed="true"] .date-card__mo,
.date-card[aria-pressed="true"] .date-card__count { color: rgba(255,255,255,.85); }

.times-block { margin-top: 20px; }
.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}
.time-btn {
  min-height: 50px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.time-btn:hover { border-color: var(--brand); }
/* الحالة المختارة: لون + إطار سميك + علامة ✓ (لا نعتمد على اللون وحده) */
.time-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #fff;
}
.time-btn[aria-pressed="true"]::before {
  content: "✓";
  font-weight: 700;
}
.calendar-note { margin: 14px 0 0; }

/* ملخص الموعد */
.summary__list { margin: 0; }
.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { color: var(--muted); font-size: .9375rem; }
.summary__row dd { margin: 0; font-weight: 600; text-align: end; }
.summary__row--price dd { color: var(--brand); font-size: 1.0625rem; }
.placeholder-value { color: var(--danger); font-weight: 600; font-size: .875rem; }

/* الحجز المؤقت */
.hold {
  margin-top: 16px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .9375rem;
}
.hold__text { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 4px; color: var(--brand-dark); font-weight: 600; }
.hold__timer { margin: 0; color: var(--ink-2); }
.hold__demo { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
#changeSlotBtn { margin-top: 16px; }

/* النموذج */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.fieldset > legend,
.label-like {
  display: block;
  font-weight: 600;
  font-size: .9375rem;
  margin-bottom: 7px;
  padding: 0;
}
.fieldset { border: 0; margin-inline: 0; padding: 0; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 91, 94, .12);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: #9BAAAF; }
.input--ltr { text-align: right; }

/* إزالة أسهم input[type=number] */
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field__hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.field__error {
  font-size: .875rem;
  color: var(--danger);
  margin: 6px 0 0;
  display: none;
}
.field__error.is-visible { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* الرفع */
.upload { display: block; }
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--brand-dark);
}
.file-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.file-input:focus-visible + .file-btn { outline: 3px solid var(--brand); outline-offset: 2px; }
.file-btn--primary { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }

.files { margin-top: 12px; display: grid; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .875rem;
}
.file-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-item__size { color: var(--muted); font-size: .8125rem; flex: none; }
.file-item__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.file-item__remove:hover { color: var(--danger); background: #fff; }

/* الدفع */
.price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.price__label { color: var(--ink-2); font-size: .9375rem; }
.price__value { font-size: 1.5rem; color: var(--brand); font-weight: 700; }

.pay__intro { margin-bottom: 8px; font-weight: 600; font-size: .9375rem; }
.instapay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
}
.instapay__value {
  font-weight: 700;
  font-size: 1.0625rem;
  word-break: break-all;
  unicode-bidi: isolate;
  min-width: 0;
}
.copied { min-height: 22px; margin: 6px 0 0; font-size: .875rem; color: var(--ok); font-weight: 600; }
.pay__note { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }

/* الموافقة والإرسال */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-2);
  cursor: pointer;
  margin-bottom: 14px;
}
.consent input {
  margin-top: 5px;
  width: 20px; height: 20px;
  flex: none;
  accent-color: var(--brand);
}
#submitBtn { margin-top: 6px; }

.submit-error {
  margin: 12px 0 0;
  font-size: .9375rem;
  color: var(--danger);
  font-weight: 600;
  display: none;
}
.submit-error.is-visible { display: block; }

.btn.is-busy { opacity: .8; pointer-events: none; }

#waBtn { margin-top: 16px; }

.missing { margin-top: 14px; }
.missing__title { font-size: .875rem; color: var(--muted); margin: 0 0 4px; }
.missing__list { font-size: .875rem; color: var(--muted); display: grid; gap: 2px; }
.missing__list li { padding-inline-start: 16px; position: relative; }
.missing__list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
}
.missing.is-complete .missing__title,
.missing:empty { display: none; }

/* التأكيد */
.confirm { border-color: var(--brand-soft); background: linear-gradient(180deg, var(--brand-tint), #fff 60%); }
.confirm__mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.confirm__mark .icon { width: 28px; height: 28px; stroke-width: 2.4; }
.confirm__title { font-size: 1.375rem; }
.confirm__text { color: var(--ink-2); }
.confirm__foot { margin: 16px 0 0; font-weight: 600; }

/* ---------- 8) الخدمات + الأسئلة ---------- */
.cards { display: grid; gap: 14px; margin-top: 20px; }
.card--service { padding: 20px; }
.card--service .icon { color: var(--brand); margin-bottom: 10px; }
.card--service h3 { font-size: 1.0625rem; margin-bottom: .3em; }
.card--service p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.services__note { margin-top: 18px; font-size: .9375rem; text-align: center; }

.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  list-style: none;
  min-height: 52px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__chev { color: var(--muted); transition: transform .2s ease; flex: none; }
.qa[open] .qa__chev { transform: rotate(180deg); }
.qa[open] summary { color: var(--brand-dark); }
.qa p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- 9) التذييل + الزر الثابت ---------- */
.footer {
  background: var(--ink);
  color: #DCE7E7;
  padding-block: 34px;
  margin-top: 8px;
}
.footer__inner { display: grid; gap: 18px; }
.footer__name { font-weight: 700; color: #fff; margin: 0; font-size: 1.0625rem; }
.footer__role { margin: 0; color: #A8BEC0; font-size: .9375rem; }
.footer__contact { display: grid; gap: 8px; font-size: .9375rem; }
.footer__contact li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__contact .icon { color: #7FB3B2; width: 18px; height: 18px; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9375rem; }
.footer__links a { color: #BFD6D6; }
.footer__copy { margin: 0; color: #8FA7AA; font-size: .875rem; }

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
body { padding-bottom: 76px; } /* مساحة لزر الحجز الثابت على الموبايل */

/* ---------- 10) نقاط التجاوب ---------- */
@media (min-width: 600px) {
  .section { padding-block: 64px; }
  .hero__title { font-size: 2rem; }
  .hero__media img { aspect-ratio: 16 / 10; object-position: 50% 22%; }
  .card { padding: 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .field--half { max-width: 220px; }
  .section__title { font-size: 1.75rem; }
  .times { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (min-width: 900px) {
  :root { --pad: 28px; }

  body { padding-bottom: 0; }
  .sticky-cta { display: none; }

  .brand__role { display: block; }

  .hero { padding-block: 44px 20px; }
  .hero__grid {
    grid-template-columns: 1fr 400px;
    grid-template-areas: "body media";
    align-items: center;
    gap: 44px;
  }
  .hero__body { grid-area: body; }
  .hero__media { grid-area: media; }
  .hero__media img { aspect-ratio: 4 / 5; object-position: 50% 18%; }
  .hero__title { font-size: 2.4rem; }
  .hero__lead { font-size: 1.125rem; max-width: 46ch; }

  .cards { grid-template-columns: repeat(4, 1fr); }
  .section__title { font-size: 1.875rem; }

  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
    gap: 24px 32px;
  }
  .footer__copy { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
}

@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: 1fr 420px; }
}

/* شاشات صغيرة جداً (320px) */
@media (max-width: 359px) {
  :root { --pad: 14px; }
  .hero__title { font-size: 1.4rem; }
  .times { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .date-card { min-width: 84px; }
  .btn--lg { font-size: 1rem; padding-inline: 20px; }
}

/* تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* الطباعة */
@media print {
  .topbar, .sticky-cta, .hero, .faq, #bookingForm, .booking .step { display: none !important; }
}

/* ---------- فخ البرامج الآلية ----------
   يُخفى بصرياً دون display:none، لأن بعض الروبوتات تتجاهل الحقول المخفية
   بـ display:none وتملأ ما عداها. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- الصفحات النصية (الخصوصية والشروط) ---------- */
.legal {
  max-width: var(--container-narrow);
  padding-top: 40px;
  padding-bottom: 56px;
}

.legal h1 {
  font-size: 1.75rem;
  line-height: 1.35;
  color: var(--brand-dark);
  margin: 0 0 6px;
}

.legal h2 {
  font-size: 1.1rem;
  color: var(--brand-dark);
  margin: 32px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal p,
.legal li {
  color: var(--ink-2);
  line-height: 1.9;
}

.legal ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin: 10px 0;
}

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--ink); }

.legal a { color: var(--brand); }

.legal__updated {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 26px;
}

.legal__intro {
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.legal__back {
  margin: 0 0 26px;
  font-size: .95rem;
}

.legal__back a {
  color: var(--brand);
  text-decoration: none;
}

.legal__back a:hover { text-decoration: underline; }

@media (min-width: 600px) {
  .legal h1 { font-size: 2rem; }
}
