/* Reviews: home page section, the client's review form, and the studio list. Shared by the site and the phone app. */
body { --rv-gold: #ffc23d; --rv-off: color-mix(in srgb, var(--color-text) 26%, transparent); }

.stars { display: inline-flex; gap: 3px; color: var(--rv-off); line-height: 0; }
.stars .on { color: var(--rv-gold); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rv-gold) 45%, transparent)); }

/* home section */
.home-reviews { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); display: flex; flex-direction: column; }
.rv-score { display: flex; align-items: center; gap: 14px; }
.rv-score > b { font-family: var(--font-heading); font-size: clamp(44px, 6vw, 68px); line-height: .9; color: var(--rv-gold); }
.rv-score > div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-bottom: 24px; }
.rv-card { padding: 24px 26px; gap: 14px; }
.rv-card[hidden] { display: none; }
.rv-body { margin: 0; font-size: 16px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
.home-reviews .rv-body { font-size: 17px; }
.home-reviews .rv-body::before { content: "\201C"; } .home-reviews .rv-body::after { content: "\201D"; }
.rv-who { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.rv-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rv-who .text-muted { font-size: 13px; }
.rv-who .avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--rv-gold) 22%, transparent); color: var(--rv-gold); }

/* client form + their review */
.rv-form, .rv-mine { padding: 26px 28px; gap: 16px; border: 1px solid color-mix(in srgb, var(--rv-gold) 35%, transparent); }
.rv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-head h3 { margin: 0; }
.rv-head .btn-ghost { margin-left: auto; }
.rv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.rv-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.rv-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rv-gold); flex: none; }
.rv-form textarea { border-radius: 18px; min-height: 110px; resize: vertical; }
.rv-form .field { display: flex; flex-direction: column; gap: 6px; }
.rv-form .field-error { color: var(--color-danger, #ff6b5b); font-size: 13px; }

/* star picker: radios come 5..1 in the DOM and are shown reversed, so "this star and the ones after it" = up to here */
.rate-field { border: 0; padding: 0; margin: 0; }
.rate-field legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate label { cursor: pointer; color: var(--rv-off); padding: 4px; border-radius: 8px; line-height: 0; transition: color .15s, transform .15s var(--ease-out, ease-out); }
.rate input:checked ~ label { color: var(--rv-gold); }
.rate:hover label { color: var(--rv-off); }
.rate label:hover, .rate label:hover ~ label { color: var(--rv-gold); }
.rate label:hover { transform: translateY(-2px) scale(1.08); }
.rate input:focus-visible + label { outline: 2px solid var(--rv-gold); outline-offset: 2px; }
.rate[aria-invalid="true"] label { color: color-mix(in srgb, var(--color-danger, #ff6b5b) 45%, transparent); }

/* studio list */
.rv-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; }

/* phone app */
#phone .rv-form, #phone .rv-mine { padding: 18px; gap: 12px; }
#phone .rate label svg { width: 26px; height: 26px; }
#phone .rv-form .input { width: 100%; }

@media (prefers-reduced-motion: reduce) { .rate label { transition: none; } .rate label:hover { transform: none; } }
