/* =====================================================================
   VXCZ — تقييمات العملاء (js/reviews.js)
   ===================================================================== */
.rv-sec { background: var(--bg); }
/* الجوال: الملخص ← التقييمات ← النموذج | الكمبيوتر: عمود جانبي (ملخص + نموذج) */
.rv-grid { display: flex; flex-direction: column; gap: 14px; }
.rv-side { display: contents; }
.rv-sum { order: 1; }
.rv-main { order: 2; }
.rv-form { order: 3; }

/* الملخص */
.rv-sum { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--dark); color: #fff; }
.rv-sum b { grid-row: span 2; font-family: var(--font-latin); font-size: 44px; font-weight: 700; line-height: 1; color: var(--gold); }
.rv-sum small { font-size: 13px; color: #aeb6bb; }

/* النجوم */
.rv-stars { display: inline-flex; gap: 2px; }
.rv-star { width: 16px; height: 16px; fill: #d5dade; }
.rv-star.on { fill: var(--gold); }
.rv-stars--lg .rv-star { width: 22px; height: 22px; }
.rv-sum .rv-star:not(.on) { fill: #39434b; }

/* البطاقات */
.rv-list { display: grid; gap: 12px; }
.rv-card { padding: 16px 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.rv-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--gold); font-weight: 900; font-size: 16px; }
.rv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.rv-who b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-who small { font-size: 12px; color: var(--muted); }
.rv-card p { font-size: 14px; line-height: 1.85; color: #3a4248; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 24px; border-radius: var(--r); border: 1px dashed var(--line); background: var(--white); text-align: center; color: var(--muted); font-weight: 700; }
.rv-empty span { font-size: 30px; }

/* النموذج */
.rv-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.rv-form h3 { font-size: 17px; font-weight: 900; }
.rv-row { display: grid; gap: 12px; }
.rv-fld { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.rv-fld em { color: #c0392b; font-style: normal; }
.rv-fld input, .rv-fld textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 16px; font-weight: 500; color: inherit; resize: vertical; }
.rv-fld input:focus, .rv-fld textarea:focus { outline: 0; border-color: var(--gold); background: #fff; }
.rv-fld input[dir="ltr"] { text-align: left; }
.rv-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* اختيار النجوم: الترتيب 5←1 في الكود، وتتعبى من اليمين (1 أقصى اليمين) */
.rv-pick { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 4px; align-self: flex-start; }
.rv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-pick label { cursor: pointer; padding: 2px; }
.rv-pick .rv-star { width: 32px; height: 32px; fill: #d5dade; transition: fill .15s, transform .15s; }
.rv-pick input:checked ~ label .rv-star, .rv-pick label:hover .rv-star, .rv-pick label:hover ~ label .rv-star { fill: var(--gold); }
.rv-pick input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 6px; }
.rv-pick label:active .rv-star { transform: scale(.9); }

.rv-msg { min-height: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.rv-msg:empty { display: none; }
.rv-msg--err { color: #c0392b; }
.rv-note { font-size: 12px; color: var(--muted); text-align: center; }
.rv-done { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 6px; text-align: center; }
.rv-done span { font-size: 32px; }
.rv-done p { font-size: 14px; color: var(--muted); }

@media (min-width: 640px) { .rv-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .rv-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; }
  .rv-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
  .rv-row { grid-template-columns: 1fr; }
  .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
