:root {
    --primary: #5D8736;
    --primary-light: #809D3C;
    --primary-dark: #4A6C2C;
    --neutral-100: #ffffff;
    --neutral-200: #f8f9fa;
    --neutral-300: #e9ecef;
    --neutral-400: #555555;
    --neutral-500: #111111;
    --text-color: var(--neutral-400);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Playfair Display', serif;
}

/* Enhanced Testimonial Section Styles */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(93, 135, 54, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 30px auto 0;
}

.testimonials-wrapper {
    position: relative;
    z-index: 2;
}

.testimonials-intro {
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary-dark);
    margin-bottom: 40px;
    font-style: italic;
}

.scroll-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--neutral-100);
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 135, 54, 0.3);
}

.scroll-btn:disabled {
    background: var(--neutral-300);
    cursor: not-allowed;
}

.share-experience-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--neutral-100);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(93, 135, 54, 0.3);
}

.share-experience-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 135, 54, 0.4);
    color: var(--neutral-100);
}

/* Enhanced Testimonial Cards */
.testimonials-carousel {
    position: relative;
    padding: 20px;
}

.testimonials-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--neutral-200);
}

.testimonials-scroll::-webkit-scrollbar {
    height: 8px;
}

.testimonials-scroll::-webkit-scrollbar-track {
    background: var(--neutral-200);
    border-radius: 10px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.testimonial-card {
    flex: 0 0 450px;
    background: var(--neutral-100);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.4s ease;
    scroll-snap-align: start;
    height: auto;
    min-height: 300px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.quote-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--neutral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(93, 135, 54, 0.2);
}

.testimonial-content {
    margin-bottom: 30px;
    flex-grow: 1;
    width: 100%;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    width: 100%;
    height: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    margin-top: auto;
    width: 100%;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neutral-100);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.country {
    color: var(--text-color);
    font-weight: 500;
}

.date {
    color: var(--neutral-400);
    opacity: 0.7;
    font-style: italic;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid var(--neutral-300);
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--neutral-100);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid var(--neutral-300);
    padding: 20px 30px;
    background: var(--neutral-200);
    border-radius: 0 0 20px 20px;
}

/* Form styles */
.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 12px;
    border: 1px solid var(--neutral-300);
    padding: 1.2rem 1rem;
}

.form-floating > label {
    padding: 1rem 1.25rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(93, 135, 54, 0.25);
}

.btn-primary {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 135, 54, 0.3);
}

/* Success Toast Notification */
.success-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--neutral-100);
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 400px;
}

.success-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 24px;
    color: var(--primary);
}

.toast-message {
    font-size: 1rem;
    color: var(--neutral-500);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--neutral-400);
    font-size: 18px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 400px;
    }
    
    .testimonials-intro {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 320px;
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .testimonials-section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        flex: 0 0 280px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
