/* P20 Viết đánh giá (/danh-gia/viet/). Design: BVietDanhGia, BVietDanhGiaMo, BVietDanhGiaXong, BVietDanhGiaHetHan, BVietDanhGiaMobile. */
.rvw { max-width: 820px; margin: 0 auto; padding: 64px 20px 96px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 24px; }
.rvw-head { display: flex; flex-direction: column; gap: 12px; }
.rvw-head .fc-pill { align-self: flex-start; }
.rvw-h1 { margin: 0; font-size: 64px; line-height: 1.05; font-weight: 600; letter-spacing: -1px; color: var(--text-strong); }
.rvw-lead { margin: 0; font-size: 18px; line-height: 28px; font-weight: 300; color: var(--text-muted); }

.rvw-form { display: flex; flex-direction: column; gap: 22px; }
.rvw-legend { padding: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--text-strong); }
.rvw-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
.rvw-opt { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.rvw-hint { font-size: 13px; line-height: 19px; font-weight: 400; color: var(--text-muted); }
.rvw-hint a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.rvw-count { white-space: nowrap; }
.rvw-count.is-warn { color: #b23a35; }
.rvw-err { font-size: 13px; line-height: 19px; font-weight: 500; color: #b23a35; }

/* Mục đánh giá */
.rvw-item { background: var(--bg-raised); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.rvw-item__row { display: flex; gap: 16px; align-items: center; }
.rvw-item__img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 16px; background: var(--bg-sunken); overflow: hidden; }
.rvw-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvw-item__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rvw-item__kind, .rvw-item__meta { font-size: 13px; line-height: 19px; color: var(--text-muted); }
.rvw-item__meta:empty { display: none; }
.rvw-item__name { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.rvw-item__pick { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-strong); cursor: pointer; }
.rvw-item__pick:hover, .rvw-item__pick[aria-expanded="true"] { background: var(--bg-sunken); }
.rvw-item__box { display: flex; flex-direction: column; gap: 6px; }
.rvw-item__box[hidden] { display: none; }

/* Điểm */
.rvw-rate { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rvw-rate .rvw-legend { padding-bottom: 10px; }
.rvw-stars { display: flex; gap: 8px; }
.rvw-star { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg-raised); color: var(--text-subtle); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: background var(--as-fast, .15s) ease, color var(--as-fast, .15s) ease; }
.rvw-star.is-on { background: var(--accent-alt); color: var(--on-accent); }
.rvw-star:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }

/* Ô nhập */
.rvw-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rvw-input { width: 100%; min-width: 0; height: 48px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; line-height: 24px; background: var(--bg-raised); color: var(--text-strong); }
select.rvw-input { padding-right: 36px; }
.rvw-textarea { height: auto; min-height: 144px; padding: 12px 14px; resize: vertical; }
.rvw-input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.rvw-input[aria-invalid="true"] { border-color: #b23a35; box-shadow: 0 0 0 1px #b23a35; }
.rvw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }

/* Ảnh & video */
.rvw-media { display: flex; flex-direction: column; gap: 12px; }
.rvw-ups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rvw-ups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rvw-up { min-height: 96px; border-radius: 20px; border: 1.5px dashed var(--line-strong); background: var(--bg-raised); font: inherit; color: var(--text-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; cursor: pointer; text-align: center; }
.rvw-up span { font-size: 15px; line-height: 20px; font-weight: 600; }
.rvw-up:hover { background: var(--bg-sunken); }
.rvw-up:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.rvw-files { display: flex; flex-direction: column; gap: 8px; }
.rvw-files:empty { display: none; }
.rvw-file { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--bg-raised); }
.rvw-file__thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; }
.rvw-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rvw-file--video .rvw-file__thumb { background: #2b2826; }
.rvw-file--bad .rvw-file__thumb { background: #d75852; }
.rvw-file__txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rvw-file__name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvw-file__bar { height: 6px; border-radius: 99px; background: var(--line-subtle); overflow: hidden; }
.rvw-file__bar span { display: block; width: 0; height: 6px; background: var(--accent); transition: width .2s linear; }
.rvw-file.is-done .rvw-file__bar span { background: var(--accent-alt); }
.rvw-file__st { font-size: 12px; line-height: 17px; color: var(--text-muted); }
.rvw-file--bad .rvw-file__st { color: #b23a35; }
.rvw-file__x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.rvw-file__x:hover { background: var(--bg-sunken); color: var(--text-strong); }

/* Đồng ý, nút gửi */
.rvw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rvw-turnstile { min-height: 65px; }
.rvw-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rvw-submit .fc-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Đã gửi / hết hạn / tạm nghỉ */
.rvw-state { padding: 40px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rvw-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-alt); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.rvw-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rvw-resend { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 560px; }
.rvw-resend .rvw-input { flex: 1 1 260px; width: auto; }
.rvw-state .fc-form-msg { margin: 0; max-width: 560px; }

@media (max-width: 767px) {
	.rvw { padding: 32px 20px 56px; }
	.rvw-h1 { font-size: 40px; }
	.rvw-item { padding: 14px; }
	.rvw-grid { grid-template-columns: minmax(0, 1fr); }
	.rvw-stars { gap: 6px; }
	.rvw-up span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.rvw-star, .rvw-file__bar span { transition: none; }
}
