/* reviews.css — Review section: list, "Write a review" button and the form (index.html, about.html) */
.reviews-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.reviews-summary { display: flex; align-items: center; gap: 1rem; }
.reviews-summary[hidden] { display: none; }
.reviews-summary .avg-num { font-family: 'Playfair Display', serif; font-size: 2.75rem; line-height: 1; color: var(--green-dark); font-weight: 700; }
.reviews-summary .avg-count { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.btn-write-review { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-dark); color: #fff; border: 0; border-radius: .6rem; padding: .75rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; margin-left: auto; transition: background .2s; }
.btn-write-review:hover, .btn-write-review:focus-visible { background: var(--green); }
.btn-write-review svg, .btn-write-review i { width: 18px; height: 18px; }

.stars { display: inline-flex; gap: 1px; font-size: 1rem; line-height: 1; }
.stars.big { font-size: 1.35rem; }
.stars .on { color: #e8a525; }
.stars .off { color: #d9d2c3; }
.review-card .review-top { margin-bottom: .75rem; }
.review-card .review-text { font-style: normal; white-space: pre-line; overflow-wrap: anywhere; }
.review-card .review-date { margin-top: .85rem; color: #9a9588; font-size: .78rem; }
.reviews-empty { grid-column: 1 / -1; text-align: center; padding: 2rem 1rem; color: var(--green-dark); font-weight: 700; }
.reviews-empty .muted { color: var(--muted); font-weight: 400; margin-top: .25rem; }

/* the form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-dialog { border: 0; border-radius: 1rem; padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 24px 60px rgba(0,0,0,.25); background: #fff; color: #222; }
.rv-dialog::backdrop { background: rgba(20, 30, 22, .55); }
.rv-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid #efe7d9; position: sticky; top: 0; background: #fff; z-index: 1; }
.rv-head h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--green-dark); margin: 0; }
.rv-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: #777; cursor: pointer; padding: 0 .3rem; border-radius: .3rem; }
.rv-close:hover, .rv-close:focus-visible { color: #000; }
.rv-body { padding: 1.25rem 1.5rem 1.5rem; }
.rv-intro { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0 0 1rem; }
.rv-privacy { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: -.15rem 0 1.1rem; }
.rv-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 520px) { .rv-row { grid-template-columns: 1fr 1fr; } }
.rv-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.rv-field label, .rv-label { font-size: .82rem; font-weight: 700; color: var(--green-dark); }
.rv-field input[type=text], .rv-field input[type=email], .rv-field textarea { font: inherit; font-size: .95rem; padding: .65rem .8rem; border: 1.5px solid #ddd6c6; border-radius: .55rem; background: #fcfbf8; width: 100%; box-sizing: border-box; }
.rv-field textarea { resize: vertical; min-height: 7rem; }
.rv-field input:focus, .rv-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 80, 50, .13); }
.rv-field small, .rv-count { color: var(--muted); font-size: .76rem; }
.rv-count { display: block; text-align: right; margin: -.5rem 0 .75rem; }
.rv-err { color: #b03a2e; font-size: .78rem; min-height: .9rem; display: block; }
.rv-err:empty { display: none; }
.rv-stars { display: flex; gap: .2rem; margin-top: .15rem; }
.rv-star { background: none; border: 0; font-size: 2rem; line-height: 1; color: #d9d2c3; cursor: pointer; padding: .1rem .15rem; border-radius: .3rem; transition: color .12s, transform .12s; }
.rv-star.on { color: #e8a525; }
.rv-star:hover { transform: scale(1.12); }
.rv-star:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.rv-rating-label { display: block; min-height: 1.1rem; font-size: .82rem; color: var(--green-dark); font-weight: 700; }
.rv-check { display: flex; align-items: center; gap: .55rem; font-size: .9rem; margin: .25rem 0 1rem; cursor: pointer; }
.rv-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--green); }
.rv-general { color: #b03a2e; font-size: .88rem; line-height: 1.5; margin: 0 0 .75rem; min-height: 0; }
.rv-general:empty { display: none; }
.rv-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.btn-send-review { background: var(--green-dark); color: #fff; border: 0; border-radius: .55rem; padding: .7rem 1.5rem; font: inherit; font-weight: 700; cursor: pointer; }
.btn-send-review:hover:not([disabled]) { background: var(--green); }
.btn-send-review[disabled] { opacity: .65; cursor: wait; }
.btn-cancel-review { background: none; border: 1.5px solid #ddd6c6; color: #555; border-radius: .55rem; padding: .7rem 1.2rem; font: inherit; font-weight: 700; cursor: pointer; }
.rv-thanks { text-align: center; padding: 1rem 0 .25rem; }
.rv-thanks p { color: #4d4d4d; line-height: 1.65; margin: 0 0 1.25rem; }
.rv-thanks-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #eef7f0; color: var(--green); display: flex; align-items: center; justify-content: center; }
.rv-thanks-icon svg, .rv-thanks-icon i { width: 30px; height: 30px; }
