/* MGC Safety Nets - Reviews Page Styles */

.reviews-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Rating Summary in Header */
.rating-summary {
    margin-top: 20px;
    text-align: left;
}

.rating-summary .stars {
    font-size: 32px;
    margin-bottom: 10px;
}

.rating-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
}

/* Review Filters */
.review-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.review-filters .filter-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-filters .filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.review-filters .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.review-card.hidden {
    display: none;
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.reviewer-details h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.reviewer-details .location {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.review-header .stars {
    font-size: 18px;
    color: #ffa500;
}

/* Review Content */
.review-content {
    margin-bottom: 20px;
}

.review-content p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.review-footer .service {
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 20px;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
}

.review-footer .date {
    font-size: 13px;
    color: #999;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Write Review Section */
.write-review-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.write-review-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.write-review-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.write-review-btn {
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Review Form Section */
.review-form-section {
    padding: 80px 0;
    background: var(--light-color);
}

.review-form-section .form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.review-form-section h2 {
    text-align: center;
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 40px;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    font-size: 40px;
    margin: 10px 0;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffa500;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 50px 0;
    }
    
    .rating-summary .stars {
        font-size: 24px;
    }
    
    .rating-text {
        font-size: 16px;
    }
    
    .review-filters {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .review-filters .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 25px;
    }
    
    .reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .reviewer-details h3 {
        font-size: 16px;
    }
    
    .review-header .stars {
        font-size: 16px;
    }
    
    .review-content p {
        font-size: 15px;
    }
    
    .write-review-section {
        padding: 50px 0;
    }
    
    .write-review-section h2 {
        font-size: 28px;
    }
    
    .write-review-section p {
        font-size: 16px;
    }
    
    .review-form-section {
        padding: 50px 0;
    }
    
    .review-form-section .form-container {
        padding: 35px 25px;
    }
    
    .review-form-section h2 {
        font-size: 26px;
    }
    
    .star-rating {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 20px;
    }
    
    .reviewer-info {
        gap: 12px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .reviewer-details h3 {
        font-size: 15px;
    }
    
    .reviewer-details .location {
        font-size: 13px;
    }
    
    .review-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .review-form-section .form-container {
        padding: 25px 20px;
    }
    
    .star-rating {
        font-size: 28px;
        gap: 5px;
    }
}