.review-wrapper {
    width: 100%;
    padding: 80px 20px 50px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.review-form-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.review-form-panel {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #970f11;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.success-message {
    background: #970f11;
    color: white;
    padding: 16px 24px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(151, 15, 17, 0.3);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message i {
    font-size: 24px;
}

.form-group {
    margin-bottom: 10px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.section-label i {
    color: #970f11;
    font-size: 18px;
}

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #970f11;
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.textarea-wrapper .input-icon {
    top: 20px;
    transform: none;
}

.input-wrapper input,
.textarea-wrapper textarea {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
    direction: rtl;
}

.textarea-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    outline: none;
    border-color: #970f11;
    background: white;
    box-shadow: 0 5px 20px rgba(151, 15, 17, 0.15);
}

.input-wrapper input:focus~.input-icon,
.textarea-wrapper textarea:focus~.input-icon {
    color: #970f11;
    transform: translateY(-50%) scale(1.1);
}

.textarea-wrapper textarea:focus~.input-icon {
    transform: scale(1.1);
}

.floating-label {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
}

.textarea-wrapper .floating-label {
    top: 20px;
    transform: none;
}

.input-wrapper input:focus~.floating-label,
.input-wrapper input:not(:placeholder-shown)~.floating-label,
.textarea-wrapper textarea:focus~.floating-label,
.textarea-wrapper textarea:not(:placeholder-shown)~.floating-label {
    top: -10px;
    right: 40px;
    font-size: 12px;
    color: #970f11;
    background: white;
    font-weight: 600;
}

.input-border-effect {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #970f11;
    transition: width 0.4s ease;
    border-radius: 0 0 15px 15px;
}

.input-wrapper input:focus~.input-border-effect,
.textarea-wrapper textarea:focus~.input-border-effect {
    width: 100%;
}

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.star-btn i {
    font-size: 32px;
    color: #ddd;
    transition: all 0.3s ease;
}

.star-btn:hover i,
.star-btn.active i {
    color: #ffd700;
    transform: scale(1.2);
}

.star-btn:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    animation: ripple 0.6s ease;
}

@keyframes ripple {
    from {
        width: 0;
        height: 0;
        opacity: 1;
    }

    to {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

.rating-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #970f11;
    margin-top: 5px;
}

.quick-comments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-comment-chip {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    direction: rtl;
}

.quick-comment-chip i {
    font-size: 18px;
    color: #970f11;
    transition: all 0.3s ease;
}

.quick-comment-chip:hover {
    background: #970f11;
    border-color: #970f11;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(151, 15, 17, 0.3);
}

.quick-comment-chip:hover i {
    color: white;
    transform: scale(1.2);
}

.quick-comment-chip.selected {
    background: #970f11;
    border-color: #970f11;
    color: white;
    box-shadow: 0 8px 20px rgba(151, 15, 17, 0.4);
}

.quick-comment-chip.selected i {
    color: white;
}

.submit-btn {
    position: relative;
    background: #970f11;
    border: none;
    border-radius: 15px;
    padding: 18px 40px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000000;
    transition: width 0.4s ease;
    z-index: 0;
}

.submit-btn:hover .btn-bg-effect {
    width: 100%;
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-content i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-content i {
    transform: translateX(-5px);
}

.submit-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .review-wrapper {
        padding: 60px 15px;
    }

    .quick-comments-grid {
        grid-template-columns: 1fr;
    }

    .review-form-panel {
        padding: 40px 30px;
    }

    .star-btn i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .review-form-panel {
        padding: 30px 20px;
    }

    .submit-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
}