/* Reviews Section Styling */
.reviews-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Side - Reviews List */
.reviews-list {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-list h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.review-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    margin-right: 15px;
}

.reviewer-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.reviewer-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-content {
    color: #555;
    line-height: 1.6;
    margin-left: 65px;
}

.no-reviews {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Right Side - Review Form */
.review-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.review-form-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.review-form input[type="text"]:focus,
.review-form input[type="email"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-review-btn:hover {
    background: #218838;
}

.submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .review-form-container {
        position: static;
    }
    
    .reviews-list,
    .review-form-container {
        padding: 20px;
    }
    
    .reviews-list h2,
    .review-form-container h2 {
        font-size: 20px;
    }
    
    .review-content {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* Loading State */
.review-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.review-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}