/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.testimonials-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff, #e8f0fe);
    border-radius: 12px;
    //box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center headline and button */
}

.testimonials-container h2 {
    font-size: 2rem; /* 32px */
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.open-popup-btn {
    display: block;
    margin: 0 auto 1.5rem auto; /* Center button */
    background: linear-gradient(45deg, #28a745, #34c759); /* Green gradient */
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.open-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Popup Styles */
.testimonial-popup {
    display: none; /* Hidden on load */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    position: relative;
    text-align: left; /* Left align form content */
    overflow: hidden; /* Prevent overflow */
    box-sizing: border-box;
}

.popup-content h2 {
    font-size: 1.5rem; /* 24px */
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #28a745; /* Green hover */
}

.testimonial-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem; /* 16px */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem; /* 16px */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
    border-color: #28a745; /* Green border on focus */
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    outline: none;
}

.testimonial-form textarea {
    height: 100px;
    resize: vertical;
    max-height: 200px;
}

.testimonial-form button {
    background: linear-gradient(45deg, #28a745, #34c759); /* Green gradient */
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonials-list {
    display: grid;
    gap: 1rem;
    text-align: left; /* Left align testimonials */
}

.testimonial-item {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    overflow: hidden;
    max-width: 100%;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-item h3 {
       margin: 0 0 0.5rem;
    color: #649a70;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}

.testimonial-item p {
    margin: 0 0 0.5rem;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    overflow: hidden;
    max-height: 150px;
    overflow-y: auto;
	
    white-space: break-spaces!important;
    padding: 15px;
    border-radius: 10px!important;
    border: 0px solid #e7e7e7!important;
    background: #fafafa;	
	
}

.testimonial-timestamp {
 
    /* color: #718096; */
    padding: 5px 15px!important;
    margin: 0px !important;
    font-size: 13px !important;
    font-style: italic;
    /* word-wrap: break-word; */
    /* overflow-wrap: break-word; */
    /* white-space: break-spaces !important; */
    /* padding: 12px !important; */
    /* border-radius: 0px !important; */
    /* border: 0px solid #e7e7e7 !important; */
    background: white !important;
	
}

.success-message {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
    background: #f0fff4;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: left;
    font-size: 0.875rem; /* 14px */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    overflow: hidden;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 1rem;
    background: #fff5f5;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: left;
    font-size: 0.875rem; /* 14px */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    overflow: hidden;
}

/* Animation for Popup */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .testimonials-container {
        padding: 15px;
        margin: 20px 10px;
    }

    .testimonials-container h2 {
        font-size: 1.5rem; /* 24px */
    }

    .open-popup-btn {
        font-size: 1rem; /* 16px */
        padding: 0.5rem 1rem;
    }

    .popup-content {
        padding: 1rem;
        width: 95%;
        max-width: 400px;
    }

    .popup-content h2 {
        font-size: 1.25rem; /* 20px */
    }

    .testimonial-form label {
        font-size: 0.875rem; /* 14px */
    }

    .testimonial-form input,
    .testimonial-form textarea {
        font-size: 0.875rem; /* 14px */
        padding: 0.5rem;
    }

    .testimonial-form textarea {
        height: 80px;
        max-height: 150px;
    }

    .testimonial-form button {
        font-size: 0.875rem; /* 14px */
        padding: 0.5rem 1rem;
    }

    .testimonial-item {
        padding: 1rem;
    }

    .testimonial-item h3 {
        font-size: 1.125rem; /* 18px */
		    margin: 0 0 0.5rem; 
    }

    .testimonial-item p {
        font-size: 0.875rem; /* 14px */
        max-height: 120px;
    }

    .testimonial-timestamp {
        font-size: 0.75rem; /* 12px */
    }

    .success-message,
    .error-message {
        font-size: 0.75rem; /* 12px */
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-container h2 {
        font-size: 1.25rem; /* 20px */
    }

    .open-popup-btn {
        font-size: 0.875rem; /* 14px */
        padding: 0.5rem 0.75rem;
    }

    .popup-content {
        padding: 0.75rem;
    }

    .popup-content h2 {
        font-size: 1.125rem; /* 18px */
    }

    .close-popup {
        font-size: 1.25rem; /* 20px */
        top: 0.75rem;
        right: 0.75rem;
    }

    .testimonial-item p {
        max-height: 100px;
        overflow-y: auto;
        word-wrap: break-word;
        word-break: break-all;
    }
}

 