.review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Основной контейнер модального окна */
.review-modal-content {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    box-sizing: border-box;
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 8% auto;
    padding: 25px;
    border-radius: 10px;
}

/* Кнопка закрытия */
.review-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.review-close:hover {
    color: #333;
}

/* Заголовок */
.review-modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

/* Общие стили для label */
.review-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
}

/* Блок с рейтингом (звезды) */
.star-rating-wrapper {
    margin-bottom: 20px;
}

.star-rating {
    display: flex;
    gap: 4px;
    font-size: 28px;
    color: #e0e0e0; /* Цвет неактивных звезд */
    cursor: pointer;
}

.star-rating span {
    transition:
        color 0.2s ease,
        transform 0.1s ease;
}

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

/* Классы для активных звезд (управляются через JS) */
.star-rating span.hover,
.star-rating span.active {
    color: #ffc107; /* Приятный золотой цвет */
}

/* Текстовое поле */
.review-modal-content p {
    margin-bottom: 25px;
}

.review-modal-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    resize: vertical; /* Позволяет менять только высоту */
    box-sizing: border-box;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    background-color: #fafafa;
}

.review-modal-content textarea:focus {
    outline: none;
    border-color: #222;

    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1); /* Мягкое свечение при фокусе */
}

/* Кнопка отправки */
.review-modal-content button[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #f46036;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.review-modal-content button[type="submit"]:hover {
    background-color: #d6693d;
}

.review-modal-content button[type="submit"]:active {
    transform: translateY(1px); /* Легкий эффект нажатия */
}
