/* Enhanced Testimonial Section */

.testimonial-wrapper {
    position: relative;
    padding: 70px 0;
    background-color: #f9faff;
    margin: 40px 0;
    overflow: visible;
    min-height: 650px; /* Added minimum height */
}

.testimonial-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('http://localhost/yati-express/assets/img/pattern.png');
    opacity: 0.03;
    z-index: 0;
}

/* Testimonial Header */
.testimonial-header {
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.testimonial-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.testimonial-subtitle {
    display: inline-block;
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonial Box */
.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    min-height: 450px; /* Added minimum height for content */
}

.testimonial-side {
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
}

.testimonial-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 400px; /* Added minimum height */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.testimonial-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #4169e1, #73a5ff);
}

/* Testimonial Items */
.testimonial-items {
    padding: 10px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rate {
    margin-bottom: 15px;
}

.rate i {
    color: #ffc107;
    font-size: 16px;
    margin-right: 2px;
}

.testimonial__text {
    margin-bottom: 20px;
}

.testimonial__text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    font-style: italic;
}

.testimonial__auth-text {
    margin-top: 20px;
}

.testimonial__auth-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.testimonial__auth-text span {
    font-size: 14px;
    color: #777;
}

.quote {
    position: absolute;
    top: 0;
    right: 0;
    color: rgba(65, 105, 225, 0.1);
    font-size: 40px;
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 400px; /* Added minimum height */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #73a5ff, #4169e1);
}

.single-input-field {
    position: relative;
    margin-bottom: 20px;
}

.single-input-field input,
.single-input-field textarea {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-size: 15px;
}

.single-input-field input:focus,
.single-input-field textarea:focus {
    border-color: #4169e1;
    box-shadow: 0 0 8px rgba(65, 105, 225, 0.2);
    outline: none;
}

.single-input-field i {
    position: absolute;
    left: 15px;
    top: 14px;
    color: #4169e1;
    font-size: 16px;
}

.single-input-field.textarea i {
    top: 20px;
}

.fill-btn {
    display: inline-block;
    background: linear-gradient(to right, #4169e1, #73a5ff);
    padding: 12px 30px;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.fill-btn:hover {
    background: linear-gradient(to right, #73a5ff, #4169e1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-wrapper {
        padding: 60px 0;
        min-height: 1100px; /* Adjust for stacked layout */
    }
    
    .testimonial-container {
        min-height: 900px; /* Adjust for stacked layout */
    }
    
    .testimonial-box, 
    .contact-form {
        padding: 25px;
        min-height: 350px; /* Adjust minimum height */
    }
    
    .testimonial-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .testimonial-wrapper {
        padding: 50px 0;
        min-height: 1000px; /* Adjust for mobile */
    }
    
    .testimonial-container {
        min-height: 800px; /* Adjust for mobile */
    }
    
    .testimonial-side {
        margin-bottom: 20px;
    }
    
    .testimonial-box, 
    .contact-form {
        min-height: 300px; /* Adjust minimum height */
    }
    
    .testimonial-title {
        font-size: 24px;
    }
    
    .single-input-field input,
    .single-input-field textarea {
        padding: 10px 15px 10px 40px;
    }
}

@media (max-width: 575px) {
    .testimonial-wrapper {
        padding: 40px 0;
        min-height: 900px; /* Adjust for small mobile */
    }
    
    .testimonial-container {
        min-height: 750px; /* Adjust for small mobile */
    }
    
    .testimonial-header {
        margin-bottom: 25px;
    }
    
    .testimonial-subtitle {
        font-size: 12px;
        padding: 5px 15px;
    }
    
    .testimonial-title {
        font-size: 22px;
    }
    
    .testimonial-box, 
    .contact-form {
        padding: 20px;
        min-height: 280px; /* Adjust minimum height */
    }
    
    .testimonial__text p {
        font-size: 14px;
    }
}
