/* =========================================================
   نموذج طلب الاجتماع (request.html)
   ويب: لوحة كحلية ثابتة (الهوية + مسار الخطوات) + النموذج
   موبايل: شريط كحلي علوي بخطوات أفقية + أزرار ثابتة أسفل الشاشة
   ========================================================= */

/* ---------- الشريط العلوي ---------- */
.rq-top {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding-inline: 20px; background: var(--navy-ink); color: #fff;
}
.rq-logo img { height: 32px; width: auto; }
.rq-side-logo { display: none; }
.rq-top-actions { display: flex; align-items: center; gap: 10px; }
.rq-lang {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35); font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s;
}
.rq-lang:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.rq-back {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 12px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.85); transition: color .2s, background .2s;
}
.rq-back:hover { color: #fff; background: rgba(255,255,255,.08); }
.rq-back .ico { width: 17px; height: 17px; }
/* السهم دايمًا لليسار: بالعربي بعد النص (من اليمين لليسار)، وبالإنجليزي قبله */
[dir="rtl"] .rq-back { flex-direction: row-reverse; }
@media (max-width: 479px) { .rq-back span { display: none; } .rq-back { width: 38px; padding: 0; justify-content: center; border: 1px solid rgba(255,255,255,.35); } }

/* ---------- الهيكل ---------- */
/* الحقل اللي عليه التركيز ما يختفي تحت أزرار الموبايل الثابتة */
@media (max-width: 1199px) { html { scroll-padding-bottom: 96px; } }
.rq-shell { position: relative; }

/* ---------- اللوحة الجانبية ---------- */
.rq-side {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: 6px 20px 30px;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(61,184,106,.16), transparent 70%),
    linear-gradient(162deg, #15234A 0%, #163760 100%);
}
[dir="ltr"] .rq-side {
  background:
    radial-gradient(520px 320px at 0% 0%, rgba(61,184,106,.16), transparent 70%),
    linear-gradient(162deg, #15234A 0%, #163760 100%);
}
.rq-wm {
  position: absolute; z-index: -1; inset-inline-end: -70px; bottom: -110px; width: 300px; aspect-ratio: 300 / 342; opacity: .05; pointer-events: none;
  background: url('../assets/images/brand/watermark-shape.png') no-repeat center / 100% 100%;
}
.rq-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--brand-light); }
.rq-eyebrow .dots { color: #fff; }
.rq-title { margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.45; }
.rq-title em { font-style: normal; color: var(--brand-light); }
.rq-lead { margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 520px; }

/* مسار الخطوات — موبايل أفقي */
.rq-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.rq-st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: default; }
.rq-st::before { /* الخط الواصل */
  content: ""; position: absolute; top: 20px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); height: 2px;
  background: rgba(255,255,255,.16); border-radius: 2px;
}
.rq-st:last-child::before { display: none; }
.rq-st.is-done::before { background: linear-gradient(90deg, var(--brand-light), var(--brand-light)); }
.rq-st.is-reach { cursor: pointer; }
.rq-hex { position: relative; display: grid; place-items: center; width: 36px; height: 41px; flex: none; }
.rq-hex svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.4); stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.rq-hex b { position: relative; font-size: 12px; font-weight: 700; transition: opacity .25s; }
.rq-hex-ok {
  position: absolute; width: 12px; height: 7px; margin-top: -3px; opacity: 0; transform: rotate(-45deg) scale(.4);
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1);
}
.rq-st.is-active .rq-hex svg { fill: var(--brand); stroke: var(--brand-light); }
.rq-st.is-active .rq-hex { filter: drop-shadow(0 6px 14px rgba(61,184,106,.45)); }
.rq-st.is-done .rq-hex svg { fill: rgba(61,184,106,.22); stroke: var(--brand-light); }
.rq-st.is-done:not(.is-active) .rq-hex b { opacity: 0; }
.rq-st.is-done:not(.is-active) .rq-hex-ok { opacity: 1; transform: rotate(-45deg) scale(1); }
.rq-st-t { display: flex; flex-direction: column; gap: 2px; }
.rq-st-t b { font-size: 11.5px; font-weight: 600; line-height: 1.4; color: rgba(255,255,255,.65); transition: color .25s; }
.rq-st-t small { display: none; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.rq-st.is-active .rq-st-t b { color: #fff; }
.rq-st.is-done .rq-st-t b { color: var(--brand-light); }
.rq-st.is-reach:hover .rq-st-t b { color: #fff; }
.rq-st.is-reach:hover .rq-hex svg { stroke: #fff; }

.rq-assure { display: none; }
.rq-assure li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.rq-assure .ico { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--brand-light); }

/* ---------- لوحة النموذج ---------- */
.rq-panel {
  position: relative; z-index: 2; margin-top: -14px; background: var(--card);
  border-radius: 18px 18px 0 0; padding: 26px 20px 120px; min-height: 60vh;
}
.rq-progress { position: absolute; top: 0; inset-inline: 22px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; display: none; }
.rq-progress span {
  display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(.125); transform-origin: right; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
[dir="ltr"] .rq-progress span { transform-origin: left; }
.rq-mstep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rq-draft {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 20px; padding: 11px 14px; border-radius: 8px;
  background: #EEF6F1; color: #1B5E36; font-size: 13.5px;
}
.rq-draft .ico { width: 17px; height: 17px; }
.rq-draft button { margin-inline-start: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--brand); }

fieldset.rq-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
fieldset.rq-step.is-active { display: block; animation: stepIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(var(--from, -18px)); } }
[dir="rtl"] form[data-dir="fwd"] { --from: -18px; }
[dir="rtl"] form[data-dir="back"] { --from: 18px; }
[dir="ltr"] form[data-dir="fwd"] { --from: 18px; }
[dir="ltr"] form[data-dir="back"] { --from: -18px; }

.rq-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.rq-head-i {
  width: 50px !important; height: 50px !important; padding: 13px; border-radius: 12px; flex: none;
  background: var(--navy-ink); color: var(--brand-light);
  box-shadow: 0 10px 24px -12px rgba(21,35,74,.6);
}
.rq-kicker { font-size: 12.5px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.rq-h { margin-top: 2px; font-size: 21px; font-weight: 700; line-height: 1.4; outline: none; }
.rq-sub { margin-top: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

.rq-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.lbl-i { width: 17px !important; height: 17px !important; color: var(--ink-3); }

/* ---------- الخيارات ---------- */
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt-box {
  position: relative; display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.opt:hover .opt-box { border-color: #AEB8CC; }
.opt input:focus-visible + .opt-box { box-shadow: var(--ring); border-color: var(--brand-light); }
.opt input:checked + .opt-box { border-color: var(--brand); background: #F3FAF5; box-shadow: 0 8px 22px -14px rgba(24,117,60,.55); }
.opt-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--bg); color: var(--navy-ink); transition: background .25s, color .25s;
}
.opt-ico .ico { width: 20px; height: 20px; }
.opt input:checked + .opt-box .opt-ico { background: var(--brand); color: #fff; }
.opt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-t { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.opt-d { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.opt-check {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; margin-inline-start: auto;
  border: 1.5px solid var(--line-2); color: #fff; background: #fff; transition: background .2s, border-color .2s, transform .3s cubic-bezier(.3,1.6,.5,1);
}
.opt-check .ico { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.opt input[type="checkbox"] + .opt-box .opt-check { border-radius: 6px; }
.opt input:checked + .opt-box .opt-check { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
.opt input:checked + .opt-box .opt-check .ico { opacity: 1; }
.is-invalid .opt-box { border-color: #E4A3A3; }

/* أنواع المؤسسات: بلاطات */
.opts--tiles { grid-template-columns: repeat(2, 1fr); }
.opts--tiles .opt-box { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 13px; }
.opts--tiles .opt-t { font-size: 13.5px; }
.opts--tiles .opt-check { position: absolute; top: 10px; inset-inline-end: 10px; }

/* شرائح صغيرة */
.opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opts--chips .opt-box { padding: 9px 16px; border-radius: 99px; gap: 8px; }
.opts--chips .opt-t { font-size: 14px; font-weight: 500; }
.opts--chips .opt-check { display: none; }
.opts--chips .opt-ico { width: auto; height: auto; background: none !important; color: var(--brand) !important; }
.opts--chips .opt-ico .ico { width: 16px; height: 16px; }
.opts--chips .opt input:checked + .opt-box { background: var(--navy-ink); border-color: var(--navy-ink); color: #fff; box-shadow: none; }
.opts--chips .opt input:checked + .opt-box .opt-ico { color: var(--brand-light) !important; }

/* وسيلة التواصل: خيارين جنب بعض */
.opts--row { grid-template-columns: 1fr 1fr; }
.opts--row .opt-box { padding: 12px; gap: 10px; }
.opts--row .opt-ico { width: 36px; height: 36px; }
.opts--row .opt-check { display: none; }

/* المسارات: كروت فيها وصف، و"المنظومة المتكاملة" كرت كحلي بعرض كامل */
.opts--tracks { grid-template-columns: 1fr; gap: 10px; }
.opts--tracks .opt-box { align-items: flex-start; padding: 14px; }
.opts--tracks .opt-ico { width: 42px; height: 42px; }
.opts--tracks .opt-t { font-size: 15px; }
.opts--tracks .opt-d { font-size: 13px; line-height: 1.7; }
.opts--tracks .opt-check { margin-top: 2px; }
.opt--all .opt-box { background: var(--navy-ink); border-color: var(--navy-ink); color: #fff; }
.opt--all .opt-ico { background: rgba(255,255,255,.1); color: var(--brand-light); }
.opt--all .opt-d { color: var(--muted); }
.opt--all .opt-check { background: transparent; border-color: rgba(255,255,255,.45); }
.opt--all:hover .opt-box { border-color: var(--brand-light); }
.opt--all input:checked + .opt-box { background: var(--navy-ink); border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(61,184,106,.25), 0 14px 30px -16px rgba(21,35,74,.7); }
/* المسارات الأربعة لما تكون ضمن "المنظومة المتكاملة": مختارة ومقفولة */
.opt.is-locked { cursor: default; }
.opt.is-locked .opt-box { opacity: .72; box-shadow: none; }
.opt input:disabled { cursor: default; }

/* الأوقات */
.opts--times { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opts--times .opt-box { justify-content: center; min-height: 46px; padding: 8px 4px; border-radius: 9px; }
.opts--times .opt-t { font-size: 14px; font-weight: 500; white-space: nowrap; }
.opts--times .opt input:checked + .opt-box { background: var(--navy-ink); border-color: var(--navy-ink); color: #fff; box-shadow: none; }
@media (max-width: 359px) { .opts--times { grid-template-columns: repeat(3, 1fr); } }

/* عنوان فرعي داخل الخطوة */
.rq-group { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--brand); }
.rq-group .ico { width: 16px; height: 16px; }
.rq-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* القوائم المنسدلة (بتفتح منتقي الموبايل الأصلي) */
.inp--select select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer; text-overflow: ellipsis; }
.inp--select select:hover { border-color: #B9C2D4; }
.inp--select select.is-empty { color: #A9B1C1; }
.inp--select::after {
  content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
}
.fld.is-invalid .inp select { border-color: var(--danger); background: var(--danger-soft); }

/* رقم واتساب: مفتاح الدولة + الرقم */
.tel { display: flex; gap: 8px; }
.dial {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 92px; height: 52px; padding-inline: 12px;
  border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.dial:hover { border-color: #B9C2D4; }
.dial:focus-within { border-color: var(--brand-light); box-shadow: var(--ring); }
.dial-v { font-size: 16px; font-weight: 500; }
.dial-v.is-empty { color: #A9B1C1; }
.dial-chev { width: 14px !important; height: 14px !important; color: var(--ink-3); transform: rotate(-90deg); }
.dial select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.tel input {
  flex: 1; min-width: 0; height: 52px; padding-inline: 14px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff;
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.tel input::placeholder { color: #A9B1C1; }
.tel input:hover { border-color: #B9C2D4; }
.tel input:focus { border-color: var(--brand-light); box-shadow: var(--ring); }
.fld.is-invalid .tel input, .fld.is-invalid .dial { border-color: var(--danger); background: var(--danger-soft); }

/* ---------- الموعد ---------- */
.rq-when { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cal { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px; background: #fff; }
.is-invalid .cal { border-color: #E4A3A3; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-month { font-size: 15px; font-weight: 700; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--navy-ink); transition: background .2s; }
.cal-nav:hover:not(:disabled) { background: var(--bg); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-nav .ico { width: 18px; height: 18px; }
[dir="rtl"] .cal-prev, [dir="ltr"] .cal-next { transform: scaleX(-1); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow span { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 0; }
.cal-day {
  position: relative; height: 40px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--navy-ink);
  transition: background .2s, color .2s, transform .2s;
}
.cal-day:hover:not(:disabled):not(.is-sel) { background: #EEF6F1; color: var(--brand); }
.cal-day:disabled { color: #C2C9D6; cursor: default; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink-3); }
.cal-day.is-sel { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(24,117,60,.8); }
.cal-day:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 1px; }

.rq-tz { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.rq-tz .ico { width: 15px; height: 15px; color: var(--ink-3); }
.rq-picked {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 10px;
  background: var(--navy-ink); color: #fff; animation: pop .4s cubic-bezier(.2,.7,.2,1);
}
.rq-picked .ico { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--brand-light); }
.rq-picked small { display: block; font-size: 11.5px; color: var(--muted); }
.rq-picked b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- المراجعة والموافقة ---------- */
.rq-review { padding: 16px; border-radius: 12px; background: var(--bg); }
.rq-review-t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.rq-review-t .ico { width: 18px; height: 18px; color: var(--brand); }
.rq-review-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rv { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.rv-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: var(--ink-2); }
.rv-h .ico { width: 16px; height: 16px; color: var(--ink-3); }
.rv-edit { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--brand); padding: 2px 4px; border-radius: 4px; }
.rv-edit .ico { width: 13px; height: 13px; color: currentColor; }
.rv-edit:hover { background: #EEF6F1; }
.rv p { font-size: 13px; color: var(--ink-2); line-height: 1.65; overflow-wrap: anywhere; }
.rv p.rv-main { font-size: 14.5px; font-weight: 600; color: var(--navy-ink); }

.rq-consent { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.rq-consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.rq-box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 6px;
  border: 1.5px solid var(--line-2); background: #fff; color: #fff; transition: background .2s, border-color .2s;
}
.rq-box .ico { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.rq-consent input:checked + .rq-box { background: var(--brand); border-color: var(--brand); }
.rq-consent input:checked + .rq-box .ico { opacity: 1; }
.rq-consent input:focus-visible + .rq-box { box-shadow: var(--ring); }
.is-invalid .rq-box { border-color: var(--danger); }

.rq-alert {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 10px;
  background: var(--danger-soft); border: 1px solid #F2C9C9; color: #9E2B2B; font-size: 13.5px; line-height: 1.7;
}
.rq-alert .ico { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- أزرار التنقل ---------- */
.rq-nav {
  position: fixed; z-index: 20; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(21,35,74,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rq-nav-sp { flex: 1; }
.rq-nav .btn { height: 50px; }
.rq-nav .btn-primary { flex: 1 1 auto; max-width: 340px; }
.rq-nav #rqPrev { padding-inline: 16px; }
[dir="rtl"] .nav-prev, [dir="ltr"] .nav-next { transform: scaleX(-1); }
.btn-primary:hover .nav-next { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { translate: -3px 0; } }
[dir="ltr"] .btn-primary:hover .nav-next { animation-name: nudge-r; }
@keyframes nudge-r { 50% { translate: 3px 0; } }

/* ---------- شاشة النجاح ---------- */
.rq-done { text-align: center; max-width: 560px; margin-inline: auto; padding: 12px 0 20px; outline: none; }
.rq-done-mark { width: 92px; height: 102px; margin: 0 auto 18px; }
.rq-done-mark svg { width: 100%; height: 100%; overflow: visible; }
.dm-hex { fill: var(--brand); stroke: var(--brand-light); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s cubic-bezier(.6,0,.2,1) forwards, fillIn .5s .5s both; transform-origin: center; }
.dm-check { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .85s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { from { fill: rgba(24,117,60,0); } }
.rq-done-mark { filter: drop-shadow(0 16px 30px rgba(61,184,106,.4)); }
.rq-done-k { font-size: 13px; font-weight: 600; color: var(--brand); }
.rq-done-t { margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 1.45; }
.rq-done-id { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 16px; border-radius: 99px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.rq-done-id b { font-size: 16px; color: var(--navy-ink); letter-spacing: .04em; }
.rq-done-p { margin-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.rq-done-slot {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; text-align: start;
  background: var(--navy-ink); color: #fff;
}
.rq-done-slot .ico { width: 38px; height: 38px; padding: 9px; border-radius: 9px; background: rgba(255,255,255,.08); color: var(--brand-light); }
.rq-done-slot small { display: block; font-size: 12px; color: var(--muted); }
.rq-done-slot b { display: block; font-size: 14px; font-weight: 600; }
.rq-done-next { margin-top: 28px; font-size: 14px; font-weight: 700; text-align: start; }
.rq-done-steps { margin: 12px 0 28px; text-align: start; }
.rq-done-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.rq-done-steps li:not(:last-child)::before { content: ""; position: absolute; top: 32px; bottom: 2px; inset-inline-start: 15px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 4px, transparent 4px 8px); }
.dn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--navy-ink); }
.rq-done-steps li:first-child .dn { background: var(--brand); color: #fff; }
.rq-done-steps li.is-goal .dn { background: var(--navy-ink); color: var(--brand-light); }
.rq-done-steps b { display: block; font-size: 14.5px; font-weight: 600; }
.rq-done-steps small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.rq-shell.is-done .rq-panel { padding-bottom: 40px; }

/* ---------- صفحة الشكر (thanks.html) ---------- */
.ty-main { position: relative; overflow: hidden; padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); }
.ty-main .rq-wm { inset-inline-end: -90px; bottom: auto; top: 40px; opacity: .04; filter: invert(1); }
.rq-ty .rq-done { position: relative; max-width: 600px; background: #fff; border-radius: 16px; padding: 30px 20px 26px; box-shadow: 0 1px 2px rgba(21,35,74,.04), 0 24px 60px -32px rgba(21,35,74,.28); }
.ty-back { width: 100%; }
@media (min-width: 640px) {
  .ty-main { padding: 48px 32px 64px; }
  .rq-ty .rq-done { padding: 44px 48px 40px; }
  .ty-back { width: auto; min-width: 220px; }
}

/* ---------- تابلت ---------- */
@media (min-width: 640px) {
  .rq-top { padding-inline: 32px; }
  .rq-side { padding: 10px 32px 34px; }
  .rq-title { font-size: 28px; }
  .rq-panel { padding: 34px 32px 120px; }
  .rq-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .span-2 { grid-column: span 2; }
  .opts--tiles { grid-template-columns: repeat(4, 1fr); }
  .opts--tracks { grid-template-columns: 1fr 1fr; }
  .opt--all { grid-column: 1 / -1; }
  .rq-review-grid { grid-template-columns: 1fr 1fr; }
  .rq-st-t b { font-size: 12.5px; }
  .rq-hex { width: 40px; height: 46px; }
  .rq-st::before { top: 22px; }
}
/* آيباد (عمودي وعرضي): نفس تصميم التابلت، والمحتوى بعرض مريح بالنص بدل ما يتمدد */
@media (min-width: 640px) and (max-width: 1199px) {
  .rq-top, .rq-side, .rq-panel { padding-inline: max(32px, calc((100% - 760px) / 2)); }
  .rq-nav { padding-inline: max(16px, calc((100% - 760px) / 2)); }
  .rq-when { grid-template-columns: 1.15fr 1fr; }
  .opts--times { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- ويب ---------- */
@media (min-width: 1200px) {
  body.rq { background: var(--bg); }
  .rq-top { position: absolute; inset-inline: 0; top: 0; height: 88px; padding-inline: 44px; background: transparent; color: var(--navy-ink); pointer-events: none; }
  .rq-top > * { pointer-events: auto; }
  .rq-top { justify-content: flex-end; }
  /* بالويب اللوجو جوّا اللوحة الجانبية (بيتحرك مع محتواها وما بيغطي على الكلام) */
  .rq-logo { display: none; }
  .rq-side-logo { display: block; align-self: flex-start; margin-bottom: 52px; }
  .rq-side-logo img { height: 40px; width: auto; }
  .rq-lang { border-color: var(--line-2); background: #fff; }
  .rq-lang:hover { background: #fff; border-color: var(--navy-ink); }
  .rq-back { color: var(--ink-2); }
  .rq-back:hover { color: var(--navy-ink); background: #fff; }

  .rq-shell { display: grid; grid-template-columns: minmax(380px, 34%) 1fr; min-height: 100vh; }
  .rq-side {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    padding: 26px 44px 40px; overflow-y: auto;
  }
  .rq-title { font-size: 32px; line-height: 1.4; margin-top: 12px; }
  .rq-lead { font-size: 15px; margin-top: 12px; }
  .rq-steps { display: block; margin-top: 36px; }
  .rq-st { flex-direction: row; align-items: flex-start; gap: 16px; text-align: start; padding: 8px 10px 22px; margin-inline: -10px; border-radius: 10px; transition: background .25s; }
  .rq-st::before { top: 58px; bottom: 6px; inset-inline-start: 30px; width: 2px; height: auto; }
  .rq-st.is-reach:hover { background: rgba(255,255,255,.05); }
  .rq-hex { width: 42px; height: 48px; }
  .rq-st-t { padding-top: 5px; }
  .rq-st-t b { font-size: 15.5px; font-weight: 700; }
  .rq-st-t small { display: block; }
  .rq-st:not(.is-active):not(.is-done) .rq-st-t small { opacity: .6; }
  .rq-assure { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }

  .rq-panel {
    margin: 0; border-radius: 0; background: transparent; min-height: 0;
    padding: 112px clamp(32px, 5vw, 80px) 56px;
  }
  .rq-panel > * { max-width: 780px; margin-inline: auto; }
  .rq-progress { display: block; position: relative; inset: auto; height: 4px; margin-bottom: 30px; background: #E1E6EF; }
  #rqForm, .rq-done { background: #fff; border-radius: 16px; padding: 40px 44px 36px; box-shadow: 0 1px 2px rgba(21,35,74,.04), 0 24px 60px -32px rgba(21,35,74,.28); }
  .rq-done { padding: 48px 56px; }
  .rq-head { margin-bottom: 30px; }
  .rq-head-i { width: 56px !important; height: 56px !important; padding: 15px; }
  .rq-h { font-size: 25px; }
  .rq-sub { font-size: 14.5px; }
  .rq-when { grid-template-columns: 1.2fr 1fr; gap: 22px; }
  .opts--times { grid-template-columns: repeat(3, 1fr); }

  .rq-nav {
    position: static; padding: 26px 0 0; margin-top: 30px; border-top: 1px solid var(--line);
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .rq-nav .btn-primary { flex: none; min-width: 190px; }
  .rq-nav #rqPrev { padding-inline: 22px; }
  .rq-draft { margin-bottom: 16px; }
  .rq-shell.is-done .rq-panel { padding-bottom: 56px; }
}
@media (min-width: 1200px) {
  .rq-ty .rq-top { position: relative; height: 76px; background: var(--navy-ink); color: #fff; justify-content: space-between; }
  .rq-ty .rq-logo { display: block; }
  .rq-ty .rq-logo img { height: 36px; }
  .rq-ty .rq-lang { background: transparent; border-color: rgba(255,255,255,.35); }
  .rq-ty .rq-lang:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
  .ty-main { padding-top: 64px; }
}
@media (min-width: 1200px) and (max-height: 820px) {
  .rq-side-logo { margin-bottom: 32px; }
  .rq-title { font-size: 28px; }
  .rq-steps { margin-top: 24px; }
  .rq-st { padding-bottom: 14px; }
  .rq-st::before { top: 56px; }
  .rq-assure { gap: 8px; padding-top: 20px; }
}
@media (min-width: 1440px) {
  .rq-side { padding-inline: 64px; }
  .rq-top { padding-inline: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
