/* موقع العيادة للمرضى — v2: نفس لغة تصميم السيستم (teal + سطح فاتح + ظلال ناعمة) */
:root {
  --bg: #F4F5F2; --surface: #FFFFFF; --soft: #F8F9F7; --line: #E7E9E4; --line-2: #DCE0DA;
  --text: #14201E; --muted: #55625F; --text-3: #8A9592; --control: #C8CEC6;
  --primary: #0E7A68; --primary-hover: #0B6455; --tint: #E5F3EF;
  --focus: #1D4ED8; --danger: #B91C1C; --danger-bg: #FEECEC; --ok: #15803D; --ok-bg: #E8F7EE;
  --sh-1: 0 1px 2px rgba(16, 24, 20, .04), 0 1px 3px rgba(16, 24, 20, .06);
  --sh-2: 0 24px 60px -20px rgba(10, 40, 34, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.7 'Alexandria', Tahoma, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.3; font-weight: 600; margin: 0; }
h2 { font-size: 26px; margin-bottom: 20px; letter-spacing: -.3px; }
h3 { font-size: 16px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 12px; line-height: 1.5; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--tint); color: var(--primary); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; }
.a1 { background: #DDF4EE; color: #0B6455; } .a2 { background: #FCE7F3; color: #9D174D; } .a3 { background: #E0E7FF; color: #3730A3; }
.a4 { background: #FEF3C7; color: #92400E; } .a5 { background: #EDE9FE; color: #5B21B6; } .a6 { background: #DCFCE7; color: #166534; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 18px -8px rgba(14, 122, 104, .6); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; font-size: 16px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #14B8A6, #0E7A68); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: 0 6px 16px -6px rgba(20, 184, 166, .6); }
.top-nav { display: none; gap: 24px; margin-inline-start: 12px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.top .btn { margin-inline-start: auto; min-height: 42px; }
@media (min-width: 860px) { .top-nav { display: flex; } }

/* hero */
.hero { position: relative; padding: 48px 0 56px; background: radial-gradient(900px 420px at 85% 0%, #CFF3EA 0%, transparent 60%), radial-gradient(700px 380px at 0% 100%, #E7F0FF 0%, transparent 60%), #F7FBFA; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; } }
.hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 700; letter-spacing: -.8px; margin: 16px 0 12px; }
.hero-lead { color: var(--muted); font-size: 17px; max-width: 540px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { display: flex; gap: 28px; margin-top: 28px; }
.trust div { display: grid; }
.trust b { font-size: 22px; font-weight: 600; }
.trust span { color: var(--muted); font-size: 13px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.facts li { display: flex; gap: 8px; align-items: flex-start; }
.facts a { color: var(--text); font-weight: 500; text-decoration: none; direction: ltr; }

/* booking card */
.bookcard { background: var(--surface); border-radius: 22px; box-shadow: var(--sh-2); border: 1px solid var(--line); padding: 22px; scroll-margin-top: 90px; }
.progress { display: flex; gap: 6px; margin-bottom: 14px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s; }
.progress i.on { background: var(--primary); }
.book-title { font-size: 18px; margin-bottom: 14px; }
.book { display: grid; gap: 12px; }
.step { border: 0; padding: 0; margin: 0; transition: opacity .2s; }
.step[disabled] { opacity: .4; }
.step legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.step legend b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 12px; }
.choices { display: grid; gap: 8px; }
.choice, .day, .slot { position: relative; cursor: pointer; }
.choice input, .day input, .slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 50px; background: var(--surface); }
.choice small { color: var(--muted); font-size: 13px; }
.choice input:checked + span, .day input:checked + span { border-color: var(--primary); background: var(--tint); box-shadow: inset -3px 0 0 var(--primary); }
.choice input:focus-visible + span, .day input:focus-visible + span, .slot input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.day span { display: grid; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; min-width: 76px; font-weight: 500; white-space: nowrap; font-size: 14px; }
.day small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.slot span { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; min-height: 42px; font-weight: 500; font-size: 14px; }
.slot input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field label { font-weight: 500; font-size: 14px; }
.field input { min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; font: inherit; background: var(--surface); color: var(--text); }
.field input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--tint); }
.summary { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.form-error { color: var(--danger); background: var(--danger-bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.done-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 28px; font-weight: 600; }
.ref { font-size: 20px; letter-spacing: .5px; }

.block { padding: 56px 0; }
.alt { background: var(--bg); border-block: 1px solid var(--line); }

/* doctor personal site */
.eyebrow { display: inline-block; color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: .2px; margin-bottom: 6px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.dhero { padding: 40px 0 56px; background: radial-gradient(900px 460px at 90% 10%, #D7F2EA 0%, transparent 60%), radial-gradient(700px 380px at 0% 100%, #EAF1FF 0%, transparent 60%), #F7FBFA; border-bottom: 1px solid var(--line); }
.dhero-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .dhero-in { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.dhero h1 { font-size: clamp(34px, 5.4vw, 54px); font-weight: 700; letter-spacing: -1px; margin: 14px 0 6px; }
.dhero-title { color: var(--primary); font-weight: 500; font-size: 18px; margin-bottom: 16px; }
.dhero-lead { color: var(--muted); font-size: 17px; line-height: 1.9; max-width: 560px; margin-bottom: 26px; }
.dhero-photo { margin: 0; position: relative; }
.dhero-photo img { display: block; width: 100%; aspect-ratio: 4 / 4.4; height: auto; object-fit: cover; object-position: 45% 30%; border-radius: 28px; box-shadow: var(--sh-2); background: var(--soft); }
.dhero-badge { position: absolute; inset-inline-start: -14px; bottom: 26px; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-2); font-size: 14px; font-weight: 500; }
.dhero-badge .ico { color: var(--primary); }
@media (max-width: 899px) { .dhero-photo { order: -1; max-width: 420px; } .dhero-badge { inset-inline-start: 12px; bottom: 12px; } }

.about { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.about-bio { font-size: 17px; line-height: 2; margin: 4px 0 12px; }
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-inline-start: 2px solid var(--tint); }
.creds li { position: relative; padding: 4px 22px 18px; display: grid; gap: 2px; }
.creds li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.creds span { color: var(--muted); font-size: 14px; }

.conds { display: grid; gap: 14px; }
@media (min-width: 640px) { .conds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .conds { grid-template-columns: repeat(3, 1fr); } }
.cond { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--sh-1); display: grid; gap: 6px; align-content: start; }
.cond .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--primary); margin-bottom: 6px; }
.cond p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.how li b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 15px; margin-bottom: 4px; }
.how p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.book-in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .book-in { grid-template-columns: .9fr 1.1fr; gap: 56px; } .book-text { position: sticky; top: 100px; } }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.8; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }

.reviews { display: grid; gap: 14px; margin-bottom: 10px; }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--sh-1); display: grid; gap: 14px; align-content: space-between; }
.review blockquote { margin: 0; line-height: 1.9; }
.review figcaption { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.review .av { width: 36px; height: 36px; font-size: 14px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); line-height: 1.9; }

.visit-in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .visit-in { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hours-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.hours-card h3 { margin-bottom: 10px; }
.hours-card dl { margin: 0 0 8px; display: grid; }
.hours-card dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.hours-card dd { margin: 0; font-weight: 500; }

.fab { position: fixed; bottom: 16px; inset-inline: 16px; z-index: 30; box-shadow: var(--sh-2); }
@media (min-width: 860px) { .fab { display: none; } }
@media (max-width: 859px) { .foot { padding-bottom: 90px; } }

/* inside the clinic */
.gallery { display: grid; gap: 16px; margin: 18px 0 10px; align-items: start; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1.15fr .85fr; } }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.gallery img { display: block; width: 100%; height: auto; max-height: 380px; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--soft); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 1px 10px; font-size: 12.5px; }

/* services */
.services { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 860px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); box-shadow: var(--sh-1); }
.service-meta { display: grid; text-align: end; flex: none; gap: 2px; justify-items: end; }
.service-meta .btn { margin-top: 6px; }
.service-meta strong { font-size: 18px; color: var(--primary); }

/* my booking */
.my-form { display: grid; gap: 4px; margin: 14px 0; }
@media (min-width: 640px) { .my-form { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; } .my-form .field { margin: 0; } }
.visits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.visit { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: grid; gap: 6px; box-shadow: var(--sh-1); }
.visit-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.sum { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.sum ul { margin: 0; padding-inline-start: 20px; }

.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: grid; gap: 4px; text-align: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .step, .progress i { transition: none; } }
