/* placement.css — تحسينات بسيطة لصفحة اختبار تحديد المستوى
   تعتمد على ألوان/متغيرات النظام العام بدون تعارض.
   تركيز على: لمسات بصريّة، حركة خفيفة، ريسبونسف أفضل.
*/

/* =============== 0) HERO الممتد =============== */
.hero.pt-hero-full{
  position: relative;
  overflow: clip; /* يمنع تسرب تأثير اللمعان */
  background:
    radial-gradient(1100px 420px at 12% -10%, hsl(var(--brand-copper) / .10), transparent 60%),
    radial-gradient(900px 360px at 110% 120%, hsl(var(--brand-stone) / .10), transparent 60%),
    linear-gradient(180deg, hsl(var(--surface)), hsl(var(--surface-2)));
}

.hero.pt-hero-full::after{
  content:"";
  position:absolute; inset-inline:-20%; top:-1px; height:3px;
  background: linear-gradient(90deg, hsl(var(--brand-copper)), hsl(var(--brand-stone)));
  opacity:.28; pointer-events:none;
}

.hero.pt-hero-full .hero-inner{
  display:grid;
  gap: .7rem;
  text-align:center;
}

/* مسافات عامّة للـ HERO بحيث تكون رحبة على الشاشات الكبيرة ومضغوطة على الموبايل */
.pt-hero-full{
  padding-top: clamp(14px, 3vw, 24px);
  padding-bottom: clamp(14px, 3vw, 24px);
}

/* تحسين بسيط للبادجز داخل الهيرو */
.pt-hero-full .badge{
  letter-spacing:.02em;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}

/* =============== 1) Stepper (المراحل) =============== */
.stepper{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px){
  .stepper{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.stepper > li{
  position: relative;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease, background-color .15s ease;
}
.stepper > li:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-index{
  display:inline-grid; place-items:center;
  inline-size: 28px; block-size: 28px;
  border-radius: 999px;
  background: hsl(var(--muted-bg));
  border:1px solid hsl(var(--border));
  color: hsl(var(--brand-stone));
  font-weight: 900;
  margin-inline-end: 8px;
}

.step-title{
  font-weight: 800;
  letter-spacing: -.01em;
}

/* =============== 2) بطاقات المِلخص (Section بعد الهيرو) =============== */
.section .card{
  backdrop-filter: saturate(1.02);
}
.section .card:hover{
  border-color: color-mix(in hsl, hsl(var(--border)), hsl(var(--brand-copper)) 28%);
}

/* =============== 3) شبكة النموذج + الشريط الجانبي =============== */
.pt-form-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .pt-form-grid{
    grid-template-columns: 1fr 2fr; /* Aside / Form */
  }
}

/* قوائم منقّطة لطيفة للنصائح */
.list-dashed{
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-dashed li{
  position: relative;
  padding-inline-start: 18px;
  color: hsl(var(--fg));
}
[dir="rtl"] .list-dashed li{ padding-inline-start: 0; padding-inline-end: 18px; }
.list-dashed li::before{
  content: "—";
  position: absolute;
  inset-inline-start: 0;
  color: hsl(var(--muted-fg));
}
[dir="rtl"] .list-dashed li::before{ inset-inline-start: auto; inset-inline-end: 0; }

/* =============== 4) FAQ (تفاصيل/أكورديون) =============== */
.pt-acc{
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--surface));
  margin-block: 8px;
  overflow: clip;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .18s ease;
}
.pt-acc:hover{
  box-shadow: var(--shadow-sm);
}

.pt-acc__sum{
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  list-style: none; /* يخفي الماركر الافتراضي */
}
.pt-acc__sum::-webkit-details-marker{ display:none; }

.pt-acc__sum::after{
  content: "▾";
  font-size: 14px;
  line-height: 1;
  color: hsl(var(--muted-fg));
  transition: transform .18s ease;
}

.pt-acc[open] .pt-acc__sum::after{
  transform: rotate(180deg);
}

.pt-acc__body{
  padding: 0 14px 12px 14px;
  color: hsl(var(--muted-fg));
  font-size: .95rem;
  line-height: 1.7;
  border-top: 1px dashed hsl(var(--border));
  animation: pt-acc-reveal .22s ease-out both;
}

@keyframes pt-acc-reveal{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =============== 5) حركات خفيفة (slide-up) =============== */
@keyframes pt-slide-up{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}

.slide-up{
  animation: pt-slide-up .28s ease-out both;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce){
  .slide-up,
  .pt-acc__sum::after{
    animation: none !important;
    transition: none !important;
  }
}

/* =============== 6) تحسينات صغيرة على الأزرار في هذه الصفحة =============== */
.hero .hero-actions .btn{
  will-change: transform, filter;
  transition: transform .08s ease, filter .15s ease;
}
.hero .hero-actions .btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.02);
}

/* =============== 7) تحسينات استجابة صغيرة =============== */
@media (max-width: 380px){
  .hero .hero-actions .btn{
    min-height: 38px;
    padding-inline: 10px;
    font-size: .95rem;
  }
}

/* =============== 8) شريط مؤشرات الميتا (داخل الهيرو) =============== */
.hero .badge + .badge{
  /* مسافة لطيفة إذا تتابعت البادجز */
  margin-inline-start: 4px;
}

