/* =========================================
   FORMULARIO DE RESEÑA
========================================= */

.review-form {
    margin-top: 30px;
    padding: 25px;
    border-radius: 14px;
    background: #20243a;
}

.review-form h4 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
}

.review-form-rating,
.review-form-comment {
    margin-bottom: 20px;
}

.review-form-rating > label,
.review-form-comment > label {
    display: block;
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   ESTRELLAS
========================================= */

.star-rating {
    display: inline-flex;
    gap: 6px;
}

.star-rating label {
    cursor: pointer;

    font-size: 28px;
    color: #292d3f;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.star-rating label:hover {
    transform: scale(1.1);
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label:has(input:checked) {
    color: #ffc107;
}

.star-rating label:has(~ label input:checked) {
    color: #ffc107;
}

.star-rating label:hover,
.star-rating label:has(~ label:hover) {
    color: #ffc107;
}


/* =========================================
   COMENTARIO
========================================= */

.review-form-comment textarea {
    width: 100%;
    min-height: 120px;

    padding: 12px 14px;

    border: 1px solid #353b55;
    border-radius: 8px;

    background: #181b2c;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    resize: vertical;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.review-form-comment textarea::placeholder {
    color: #8b90a5;
}

.review-form-comment textarea:focus {
    border-color: #ffc107;

    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15);
}


/* =========================================
   BOTÓN
========================================= */

.review-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border: none;
    border-radius: 8px;

    background: #ffc107;
    color: #181b2c;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================================
   ERRORES
========================================= */

.review-form ul.errorlist {
    margin: 8px 0 0;
    padding: 0;

    list-style: none;

    color: #ff6b6b;

    font-size: 12px;
}