/*
 * Yewodze Enterprise - Enhanced Testimonials Page Styles
 * Theme: Green, Yellow, and White
 */

/* Testimonials Header */
.testimonials-header {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.95) 0%, rgba(46, 139, 87, 0.85) 100%), url('../images/soap-pattern-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.testimonials-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation: float 15s infinite alternate;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation: float 12s infinite alternate-reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 30%;
    animation: float 10s infinite alternate;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(15deg);
    }
}

.testimonials-header .page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInDown 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
    z-index: 1;
}

.testimonials-header .page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ffd700, rgba(255, 215, 0, 0.5));
    border-radius: 2px;
}

.testimonials-header .lead {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    animation: fadeInUp 1.2s ease-out;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    position: relative;
    background-color: #fff;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e8b57' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease-out;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(46, 139, 87, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.testimonial-author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 0.25rem;
}

.testimonial-author-info p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

.testimonial-rating {
    margin-top: 0.5rem;
    color: #ffd700;
}

.testimonial-date {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

.testimonial-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #2e8b57, #ffd700);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Featured Testimonials */
.featured-testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    position: relative;
}

.featured-testimonials h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.featured-testimonials h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2e8b57, #ffd700);
    border-radius: 2px;
}

.testimonial-carousel {
    position: relative;
    padding: 2rem 0;
}

.testimonial-carousel-item {
    padding: 1rem;
}

.testimonial-carousel-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-carousel-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(46, 139, 87, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-carousel-content {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-carousel-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.testimonial-carousel-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-carousel-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-carousel-author-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 0.25rem;
}

.testimonial-carousel-author-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.testimonial-carousel-rating {
    margin-top: 0.5rem;
    color: #ffd700;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #2e8b57;
    border-radius: 50%;
    opacity: 0.9;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2e8b57;
    opacity: 0.3;
    margin: 0 5px;
}

.carousel-indicators button.active {
    opacity: 1;
}

/* Submit Testimonial Section */
.submit-testimonial {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
}

.submit-testimonial h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.submit-testimonial h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2e8b57, #ffd700);
    border-radius: 2px;
}

.submit-testimonial p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-out;
}

.testimonial-form {
    background-color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 1.4s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2e8b57;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
    outline: none;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #e9ecef;
    padding: 0 0.2rem;
    transition: all 0.3s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label,
.rating-stars label i.active {
    color: #ffd700;
}

.submit-btn {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #1a5632;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact CTA */
.contact-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2e8b57 0%, #1a5632 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.contact-cta h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-cta p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-cta .btn {
    animation: fadeInUp 1.4s ease-out;
}

.contact-btn {
    background-color: #ffd700;
    color: #343a40;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.contact-btn:hover {
    background-color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    color: #2e8b57;
}

.contact-btn:hover::before {
    left: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .testimonials-header {
        padding: 5rem 0;
    }

    .testimonials-header .page-title {
        font-size: 2.75rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-date {
        position: static;
        margin-top: 1rem;
        display: block;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials-header .page-title {
        font-size: 2.25rem;
    }

    .testimonials-header .lead {
        font-size: 1.15rem;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-author-image {
        margin-bottom: 1rem;
    }

    .submit-testimonial h2,
    .featured-testimonials h2,
    .contact-cta h2 {
        font-size: 2rem;
    }

    .contact-cta p {
        font-size: 1.15rem;
    }

    .contact-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
