/* Testimonials Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 6rem 0 3rem;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Overall Rating */
.overall-rating {
    padding: 4rem 0;
    background: white;
}

.rating-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.rating-stats {
    text-align: center;
}

.rating-number {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 3px solid #d32f2f;
}

.rating-score {
    font-size: 4rem;
    font-weight: 700;
    color: #d32f2f;
    display: block;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rating-text {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.rating-breakdown {
    display: grid;
    gap: 1rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.rating-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #d32f2f;
    border-radius: 4px;
    transition: width 1s ease;
}

.rating-count {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-align: right;
}

/* Featured Testimonials */
.featured-testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.featured-testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 4px solid #d32f2f;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-card.featured {
    border: 3px solid #d32f2f;
    transform: scale(1.02);
}

.testimonial-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    background: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.customer-details h4 {
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

.testimonial-service {
    display: flex;
    justify-content: flex-end;
}

.service-tag {
    background: #f8f9fa;
    color: #d32f2f;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

/* Categorized Reviews */
.categorized-reviews {
    padding: 4rem 0;
    background: white;
}

.categorized-reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.service-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.tab-btn:hover:not(.active) {
    border-color: #d32f2f;
    color: #d32f2f;
}

.reviews-container {
    min-height: 400px;
}

.reviews-section {
    display: none;
}

.reviews-section.active {
    display: block;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Google Reviews */
.google-reviews {
    padding: 4rem 0;
    background: #f8f9fa;
    text-align: center;
}

.google-reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.google-reviews p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.google-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.google-cta .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Leave a Review */
.leave-review {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.leave-review h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.leave-review p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.review-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.review-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.review-btn:hover {
    background: white;
    border-color: #d32f2f;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.review-btn i {
    font-size: 2.5rem;
    color: #d32f2f;
    width: 60px;
    text-align: center;
}

.review-btn h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.review-btn p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.google-review:hover i {
    color: #4285f4;
}

.contact-review:hover i {
    color: #d32f2f;
}

/* Testimonials CTA */
.testimonials-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    text-align: center;
}

.testimonials-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.testimonials-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonials-cta .btn-primary {
    background: white;
    color: #d32f2f;
}

.testimonials-cta .btn-primary:hover {
    background: #f8f9fa;
}

.testimonials-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.testimonials-cta .btn-secondary:hover {
    background: white;
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rating-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .rating-breakdown {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .featured-testimonials h2,
    .categorized-reviews h2,
    .google-reviews h2,
    .leave-review h2,
    .testimonials-cta h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .service-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .google-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .review-options {
        grid-template-columns: 1fr;
    }
    
    .review-btn {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .rating-score {
        font-size: 3rem;
    }
    
    .rating-stars {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .rating-number {
        padding: 2rem 1rem;
    }
    
    .rating-score {
        font-size: 2.5rem;
    }
    
    .customer-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .review-btn {
        padding: 1.5rem;
    }
    
    .review-btn i {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #d32f2f;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rating Bar Animation */
.rating-bar .bar-fill {
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: var(--target-width); }
}

/* Book Now Section */
.book-now-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #32cd32 0%, #28a745 100%);
    color: white;
}

.book-now-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.book-now-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.book-now-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.book-now-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature i {
    font-size: 1.2rem;
    color: #ff0000;
}

.book-now-action {
    text-align: center;
}

.book-now-btn {
    background: #ff0000;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.book-now-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    color: white;
}

.book-now-note {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}

.book-now-note a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.book-now-note a:hover {
    text-decoration: underline;
}

/* Responsive Book Now Section */
@media (max-width: 768px) {
    .book-now-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .book-now-text h2 {
        font-size: 2rem;
    }
    
    .book-now-features {
        justify-content: center;
        gap: 1rem;
    }
    
    .book-now-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .book-now-section {
        padding: 3rem 0;
    }
    
    .book-now-text h2 {
        font-size: 1.8rem;
    }
    
    .book-now-text p {
        font-size: 1rem;
    }
    
    .book-now-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
