/* === TESTIMONIALS CAROUSEL SLIDER - PREMIUM DESIGN === */
.testimonials {
    background: linear-gradient(135deg, #F7FAFC 0%, #E2E8F0 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Slider Wrapper */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    /* Space for nav buttons */
}

/* Slider Container */
.testimonial-slider {
    overflow: hidden;
    width: 100%;
}

/* Slider Track */
.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Individual Slide */
.testimonial-slide {
    flex: 0 0 50%;
    /* Show 2 slides on desktop */
    padding: 0 15px;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Testimonial Card in Slider */
.testimonial-card-slider {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.testimonial-card-slider::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    color: rgba(0, 119, 255, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

@media (hover: hover) {
    .testimonial-card-slider:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 119, 255, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 119, 255, 0.3);
    }
}

/* Customer Photo */
.testimonial-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    z-index: 1;
}

.customer-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

@media (hover: hover) {
    .testimonial-card-slider:hover .customer-photo {
        transform: scale(1.05);
    }
}

/* Verified Badge */
.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #00D97E 0%, #00F5A0 100%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Testimonial Content */
.testimonial-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Animated Star Rating */
.testimonial-rating {
    margin: var(--spacing-md) 0;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.testimonial-rating i {
    color: #FFB800;
    font-size: 1.25rem;
    animation: starPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Staggered animation for each star */
.testimonial-rating i:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-rating i:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-rating i:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-rating i:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-rating i:nth-child(5) {
    animation-delay: 0.4s;
}

/* Star Pulse Animation */
@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
        filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.6));
    }
}

/* Hover effect on stars */
.testimonial-card-slider:hover .testimonial-rating i {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.8));
}

.testimonial-card-slider:hover .testimonial-rating i:nth-child(odd) {
    transform: scale(1.3) rotate(-15deg);
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-dark);
    margin: var(--spacing-md) 0;
    font-style: italic;
}

/* Author Info */
.testimonial-author-info {
    margin-top: var(--spacing-md);
}

.testimonial-author-info h4 {
    margin: 0 0 0.25rem;
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 600;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-medium);
}

/* Service Badge */
.testimonial-service {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(0, 201, 255, 0.1) 100%);
    border: 1px solid rgba(0, 119, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: var(--spacing-md);
    transition: all 0.3s ease;
}

.testimonial-card-slider:hover .testimonial-service {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.15) 0%, rgba(0, 201, 255, 0.15) 100%);
    border-color: rgba(0, 119, 255, 0.4);
    transform: scale(1.05);
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC 0%, #0077FF 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    /* Increased z-index */
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.5);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.2);
    border: 2px solid rgba(0, 102, 204, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: linear-gradient(135deg, #0066CC 0%, #0077FF 100%);
    border-color: #0066CC;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(0, 102, 204, 0.5);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
        /* Show 1 slide on mobile */
    }

    .testimonial-slider-wrapper {
        padding: 0 50px;
        /* Smaller padding for nav buttons */
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .customer-photo {
        width: 80px;
        height: 80px;
    }
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-family: inherit;
}

.star-rating-input {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
}

.star-rating-input i {
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.star-rating-input i.active,
.star-rating-input i:hover,
.star-rating-input i:hover~i {
    color: #FFB800;
}

/* Fix for hover select logic needs JS, but CSS can help */
.star-rating-input:hover i {
    color: #FFB800;
}

.star-rating-input i:hover~i {
    color: #ddd;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-upload {
    background: #f0f2f5;
    border: 1px dashed #ccc;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
}