.rating-form-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 20px auto;
}

#rating-form .form-group {
    margin-bottom: 15px;
}

#rating-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

#rating-form input,
#rating-form select,
#rating-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#rating-form textarea {
    min-height: 80px;
    resize: vertical;
}

.rating-btn {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.rating-btn:hover {
    background: #1a5fc4;
}

.rating-avg {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
}

.stars {
    display: flex;
    gap: 5px;
    font-size: 36px;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: 0.2s;
}

.star:hover,
.star:hover ~ .star {
    color: #ccc;
}

.star.active {
    color: #ffcc00;
}

/* hover эффект */
.stars .star:hover,
.stars .star:hover ~ .star {
    color: #ddd;
}

.stars .star:hover,
.stars .star:hover ~ .star {
    color: #ffcc00;
}

.rating-btn {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.rating-btn:hover {
    background: #1a5fc4;
}

.rating-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    background: #e6f7e6;
    color: #2d7a2d;
    border: 1px solid #b6e2b6;
}