/*
 * v1.10.74 — نظرات و پیشنهادات: استایلِ فرمِ بازخورد
 * v1.10.77 — دیوارِ نظراتِ تأییدشده (rh-fdb__wall* و rh-fdb__reply*)
 * v1.10.78 — چیدمانِ تازه: فهرستِ نظرات بالای صفحه (rh-fdb__wallhead و rh-fdb__avg و rh-fdb__cta) و فرمِ پایین (rh-fdb__formsec)
 * v1.10.79 — برچسب و ستاره‌های امتیاز در یک سطر (rh-fdb__row--rating)، دکمهٔ ثبتِ بزرگ‌تر (rh-fdb__submit)،
 *            حذفِ rh-fdb__hint و rh-fdb__formhint به همراهِ عناصرشان
 * v1.10.80 — سرستونِ چسبانِ فهرست (rh-fdb__wallhead): عنوان، میانگین و دکمهٔ «ثبت نظر جدید» هنگامِ اسکرولِ نظرات،
 *            درست زیرِ هدرِ چسبانِ سایت (top: 65px) می‌مانند و با رسیدن به فرم آزاد می‌شوند
 * فقط روی برگهٔ feedback بارگذاری می‌شود؛ همهٔ کلاس‌ها با پیشوندِ rh-fdb__ و
 * هیچ اثرِ جانبی روی استایل‌های دیگر صفحات ندارد. متغیرهای پالت --rh-* تم.
 */
.rh-fdb { max-width: 640px; position: relative; }
.rh-fdb__notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.8; }
.rh-fdb__notice--ok { background: rgba(46,83,57,.10); border: 1.5px solid var(--rh-primary); color: var(--rh-primary); }
.rh-fdb__notice--err { background: rgba(178,58,58,.08); border: 1.5px solid #b23a3a; color: #8c2626; }
.rh-fdb__form { display: grid; gap: 14px; }
.rh-fdb__row { display: grid; gap: 6px; min-width: 0; }
.rh-fdb__row--2 { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .rh-fdb__row--2 { grid-template-columns: 1fr; } }
.rh-fdb__label { font-weight: 700; font-size: 14px; color: var(--rh-foreground); }
.rh-fdb__req { color: #b23a3a; }
.rh-fdb__opt { font-weight: 400; font-size: 12px; color: var(--rh-muted-fg); }
.rh-fdb__input, .rh-fdb__select, .rh-fdb__textarea {
        width: 100%; padding: 10px 14px; border: 1.5px solid var(--rh-border); border-radius: 12px;
        background: var(--rh-card); color: var(--rh-foreground); font: inherit; font-size: 14px;
}
.rh-fdb__textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.rh-fdb__input:focus, .rh-fdb__select:focus, .rh-fdb__textarea:focus {
        outline: none; border-color: var(--rh-primary); box-shadow: 0 0 0 3px rgba(46,83,57,.12);
}
.rh-fdb__hp { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rh-fdb__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rh-fdb__stars label { display: inline-flex; cursor: pointer; font-size: 30px; line-height: 1; color: var(--rh-border); transition: color .12s; }
.rh-fdb__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rh-fdb__stars span { pointer-events: none; }
.rh-fdb__stars input:checked + span,
.rh-fdb__stars input:checked ~ label span,
.rh-fdb__stars label:hover span,
.rh-fdb__stars label:hover ~ label span { color: var(--rh-gold); }
.rh-fdb__stars input:focus-visible + span { outline: 2px solid var(--rh-primary); outline-offset: 3px; border-radius: 4px; }
.rh-fdb__submit { justify-self: start; }

/* ---------- v1.10.79 — امتیاز در یک سطر + دکمهٔ ثبتِ بزرگ‌تر ---------- */
.rh-fdb__row--rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.rh-fdb__row--rating .rh-fdb__label { white-space: nowrap; }
.rh-fdb__submit .rh-btn { height: 52px; padding: 0 44px; font-size: 17px; font-weight: 700; }
@media (max-width: 430px) { .rh-fdb__row--rating .rh-fdb__stars { gap: 3px; } .rh-fdb__row--rating .rh-fdb__stars label { font-size: 22px; } }
@media (max-width: 520px) { .rh-fdb__submit { justify-self: stretch; } .rh-fdb__submit .rh-btn { width: 100%; padding: 0 20px; } }

/* ---------- v1.10.77 — دیوارِ نظراتِ تأییدشده ---------- */
.rh-fdb__walltitle { margin: 0; font-size: 17px; font-weight: 700; color: var(--rh-foreground); }
.rh-fdb__wallcount { font-weight: 400; font-size: 13px; color: var(--rh-muted-fg); }
.rh-fdb__list { display: grid; gap: 12px; }
.rh-fdb__item { background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 14px; padding: 14px 16px; }
.rh-fdb__itemhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.rh-fdb__who { font-size: 14px; color: var(--rh-foreground); }
.rh-fdb__chip { background: rgba(46,83,57,.08); color: var(--rh-primary); border-radius: 9999px; padding: 2px 10px; font-size: 11.5px; }
.rh-fdb__rstars { color: var(--rh-gold); font-size: 13px; letter-spacing: 2px; }
.rh-fdb__date { margin-inline-start: auto; color: var(--rh-muted-fg); font-size: 12px; }
.rh-fdb__text { margin: 0; line-height: 1.9; font-size: 14px; color: var(--rh-foreground); white-space: pre-wrap; }
.rh-fdb__reply { margin-top: 10px; background: rgba(46,83,57,.05); border: 1px solid rgba(46,83,57,.18); border-radius: 10px; padding: 10px 12px; }
.rh-fdb__replytitle { display: block; font-weight: 700; color: var(--rh-primary); font-size: 12.5px; margin-bottom: 4px; }
.rh-fdb__replytext { margin: 0; line-height: 1.9; font-size: 13.5px; color: var(--rh-foreground); white-space: pre-wrap; }
.rh-fdb__wallnote { margin: 0; background: var(--rh-card); border: 1px dashed var(--rh-border); border-radius: 14px; padding: 14px 16px; color: var(--rh-muted-fg); font-size: 13.5px; }
.rh-fdb__pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rh-fdb__page { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--rh-border); color: var(--rh-foreground); text-decoration: none; font-size: 13px; }
.rh-fdb__page:hover { border-color: var(--rh-primary); color: var(--rh-primary); }
.rh-fdb__page.is-on { background: var(--rh-primary); border-color: var(--rh-primary); color: #fff; }

/* ---------- v1.10.78 — چیدمانِ تازه: نظرات بالا، فرم پایین ---------- */
.rh-fdb__wallhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 0; padding: 8px 0 14px; position: sticky; top: 65px; z-index: 30; background: var(--rh-background); border-bottom: 1px solid var(--rh-border); }
.rh-fdb__avg { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--rh-muted-fg); background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 9999px; padding: 3px 11px; }
.rh-fdb__avg b { color: var(--rh-gold); font-size: 13px; line-height: 1; }
.rh-fdb__cta { margin-inline-start: auto; text-decoration: none; }
.rh-fdb__emptycta { margin-top: 12px; }
.rh-fdb__formsec { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rh-border); scroll-margin-top: 96px; }
.rh-fdb__formtitle { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--rh-foreground); }
