
.review-form-wrapper {
    margin: 20px 0;
}

.review-form-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #8258FC;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form-toggle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.review-form-toggle:active {
    transform: translateY(0);
}

.review-form-toggle svg {
    flex-shrink: 0;
}

.review-form {
    margin-top: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-form__title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.review-form__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form__label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.review-form__required {
    color: #f44336;
    margin-left: 4px;
}

.review-form__input,
.review-form__textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
}

.review-form__input:focus,
.review-form__textarea:focus {
    outline: none;
    border-color: #8258FC;
}

.review-form__input::placeholder,
.review-form__textarea::placeholder {
    color: #aaa;
}

.review-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.review-form__rating {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.review-form__rating input[type="radio"] {
    display: none;
}

.review-form__rating label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-form__rating label svg {
    fill: none;
    stroke: #ddd;
    transition: all 0.2s ease;
}

.review-form__rating label:hover svg,
.review-form__rating label:hover ~ label svg {
    fill: #FFD700;
    stroke: #FFD700;
}

.review-form__rating input[type="radio"]:checked ~ label svg {
    fill: #FFD700;
    stroke: #FFD700;
}

.review-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.review-form__submit,
.review-form__cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form__submit {
    background: #8258FC;
    color: #fff;
    flex: 1;
}


.review-form__submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.review-form__cancel {
    background: #f5f5f5;
    color: #666;
}

.review-form__cancel:hover {
    background: #e0e0e0;
}

.review-form__message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.review-form__message.success {
    display: block;
    background: #8258FC;
    color: #ffffff;
}

.review-form__message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
    .review-form {
        padding: 20px;
    }

    .review-form__title {
        font-size: 20px;
    }

    .review-form__actions {
        flex-direction: column;
    }

    .review-form__submit,
    .review-form__cancel {
        width: 100%;
    }
}

.review-form__form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.review-form__form.loading .review-form__submit::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}