/* Customer reviews — /reviews/ form + review blocks rendered by scripts/reviews.py.
   Builds on styles.css (buyer-quote, contact-form__*, order-similar__btn). */

/* Star rating shown on a published review */
.review-stars {
    font-size: 15px;
    letter-spacing: 0.18em;
    color: var(--terracotta);
    margin-bottom: 10px;
}
.review-stars__off { color: rgba(44, 42, 37, 0.18); }

/* "Leave a review" text link (homepage Real Homes, sold archive, thanks page) */
.review-cta {
    margin-top: 32px;
    text-align: center;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.review-cta a {
    color: var(--stone);
    text-decoration: none;
    border-bottom: 1px solid rgba(44, 42, 37, 0.25);
    padding-bottom: 2px;
    transition: color 250ms ease, border-color 250ms ease;
}
.review-cta a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.review-cta--header { margin-top: 20px; text-align: left; }

/* Sold pages: three buttons in the "Found Its Home" panel need to wrap cleanly */
.order-similar__actions { flex-wrap: wrap; }

/* /reviews/ page */
.reviews-list .buyer-quote { margin: 0 0 40px; }
.reviews-list .styled-in-home__grid { margin: -20px 0 40px; }
.reviews-empty {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 15px;
    color: var(--mid-grey);
}
.review-form__intro {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.9;
    color: var(--stone);
    opacity: 0.8;
    margin-bottom: 40px;
}
.review-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.review-form__file {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 14px;
    color: var(--stone);
}
.review-form__file::file-selector-button {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 16px;
    margin-right: 14px;
    background: transparent;
    color: var(--stone);
    border: 1px solid rgba(44, 42, 37, 0.3);
    cursor: pointer;
}
.review-form__hint {
    display: block;
    margin-top: 6px;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 12px;
    line-height: 1.6;
    color: var(--mid-grey);
}

/* Star picker: radios in reverse order so ~ can light up "this star and the ones before it" */
.review-rating { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.review-rating__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}
.review-rating__stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.review-rating__stars label {
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    color: rgba(44, 42, 37, 0.2);
    transition: color 150ms ease;
}
.review-rating__stars label::before { content: "\2605"; }
.review-rating__stars input:checked ~ label,
.review-rating__stars label:hover,
.review-rating__stars label:hover ~ label { color: var(--terracotta); }
.review-rating__stars input:focus-visible + label {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
}

/* Consent checkbox */
.review-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.review-consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--terracotta);
}
.review-consent label {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
    color: var(--stone);
}

.review-form .contact-form__submit:disabled { opacity: 0.6; cursor: wait; }
