/* Reviews Page Styles */

/* Reviews Hero Section */
.reviews-hero {
    background: linear-gradient(135deg, #2a5d9f 0%, #1a3d6f 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}

.reviews-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.reviews-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Reviews Stats Section */
.reviews-stats-section {
    padding: 60px 0;
    background-color: #f7f9fc;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #2a5d9f;
    margin-bottom: 10px;
}

.stat-stars {
    color: #ffa500;
    font-size: 20px;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Submit Review Section */
.submit-review-section {
    padding: 80px 0;
    background-color: white;
}

.submit-review-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2a5d9f;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.review-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f7f9fc;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5d9f;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 10px;
}

.star-rating input {
    display: none;
}

.star-rating .star {
    cursor: pointer;
    font-size: 32px;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.hover {
    color: #ffa500;
}

.star-rating input:checked ~ .star {
    color: #ffa500;
}

.rating-text {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #2a5d9f;
    color: white;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #1a3d6f;
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    max-width: 600px;
    margin: 0 auto;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.success-message i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 28px;
    color: #155724;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #155724;
    margin: 0;
}

/* Reviews Display Section */
.reviews-display-section {
    padding: 80px 0;
    background-color: #f7f9fc;
}

.reviews-display-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2a5d9f;
    text-align: center;
    margin-bottom: 15px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2a5d9f 0%, #1a3d6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.reviewer-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

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

.review-rating {
    color: #ffa500;
    font-size: 16px;
    white-space: nowrap;
}

.review-title {
    font-size: 20px;
    font-weight: 600;
    color: #2a5d9f;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.review-service {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
}

.review-service i {
    margin-right: 5px;
}

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

/* CTA Section */
.reviews-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2a5d9f 0%, #1a3d6f 100%);
    text-align: center;
    color: white;
}

.reviews-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.reviews-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: white;
    color: #2a5d9f;
}

.btn-large:hover {
    background-color: #f0f0f0;
    color: #1a3d6f;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-hero h1 {
        font-size: 32px;
    }

    .reviews-hero p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .review-form {
        padding: 30px 20px;
    }

    .submit-review-section h2,
    .reviews-display-section h2 {
        font-size: 28px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }

    .reviews-cta h2 {
        font-size: 28px;
    }

    .reviews-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .reviews-hero {
        padding: 60px 0 40px;
    }

    .reviews-stats-section {
        padding: 40px 0;
    }

    .submit-review-section {
        padding: 50px 0;
    }

    .reviews-display-section {
        padding: 50px 0;
    }

    .reviews-cta {
        padding: 50px 0;
    }

    .review-card {
        padding: 20px;
    }

    .star-rating .star {
        font-size: 28px;
    }
}
