* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: relative;
    height: 10vh; /* Full viewport height for the intro section */
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.5s ease;
}

nav.scrolled {
    justify-content: flex-start;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.868);
}

.logo {
    font-size: 1.5rem;
    color: white;
    transition: all 0.5s ease;
    width: 15%;
}
nav.scrolled .logo {
    transform: scale(0.6); /* Panga logo scaling */
}

.brand {
    width: 100%;
}
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1000;
    background-attachment: fixed;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 80vh; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.content {
    color: white;
    padding-top: 20rem;
    height: 90vh;
    animation: fadeIn 0.5s ease;
    padding-left: 9rem;
}

.content h1 {
    font-size: 3.5rem;
    margin: 0;
    width: 550px;
    font-family: 'Lato';
}

.content p {
    margin: 10px 0;
    font-size: 1rem;
    width: 400px;
    font-weight: 400;
    font-family: 'Lato';
    padding-bottom: 15px;
}
.content a {
    text-decoration: none;
    color: white;
}
.content .btn:hover {
    color: white;
    background-color: #011228;
}
.text-out {
    color: #069a9a;
    font-weight: 900;
}
.btn {
    background-color: #069a9a;
    color: rgb(255, 255, 255);
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'poppins';
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #f4f4f4;
}

.navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btn.active {
    background-color: #0b4646;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* General Styles */
.features-overview {
    padding: 6rem 0;
    background-color: #f9f9f9;
    text-align: center;
    padding-bottom: 2rem;
}

.features-overview .section-heading {
    font-size: 2.5rem;
    color: #021c42;
    font-family: 'poppins';
}

.features-overview .section-subheading {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    font-weight: 300;
    font-family: 'poppins';
}

.features-overview .features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 4rem;
    font-family: 'poppins';
}

.feature-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    max-width: 330px;
    text-align: left;
    box-shadow: 0px 4px 6px rgba(6, 65, 76, 0.184);
    text-align: center;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a4a4a;
    font-family: 'poppins';
}

.feature-item p {
    font-size: 1rem;
    font-weight: 300;
    color: #555;
}

/* Icon Styling */
.icon {
    font-size: 2.5rem;
    color: #0b4646;
    margin-bottom: 10px;
    display: block;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'poppins';
    font-size: 1rem;
    text-decoration: none;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}
.key {
    padding-bottom: 5rem;
}

.cta-buttons .btn-primary {
    background-color: #0b4646;
    color: #fff;
}

.cta-buttons .btn-secondary {
    background-color: #6e747a;
    color: #fff;
}

.cta-buttons .btn-primary:hover,
.cta-buttons .btn-secondary:hover {
    background-color: #021c42;
}
.exhibition {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: auto;
}
.first-ad,
.second-ad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
}
.ad-text-only {
    display: flex;
    flex-direction: column;
    width: 50%;
}
.first-ad-img {
    width: 35%;
}
.first-ad-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a4a4a;
    font-family: 'poppins';
}
.first-ad-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    font-family: 'poppins';
    font-weight: 300;
}

/* Integrate Section Styling */
.integrate-section {
    background-color: #e9f7f8;
    padding: 60px 20px;
}

.inside-integrate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    flex-wrap: wrap;
    max-width: 1350px;
    margin: 0 auto;
     font-family: 'poppins';
}

.integrate-content {
    flex: 1;
    max-width: 600px;
}

.integrate-heading {
    font-size: 2rem;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.integrate-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    color: #0b4646;
    background: none;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #069a9a;
    color: white;
}

.integrate-image {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.integrate-pic {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

section.pricing {
    padding: 5rem 5rem;
    background-color: #f9f9f9;
    text-align: center;
    font-family: 'poppins';
}

.pricing .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.pricing .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: #666;
    font-family: 'poppins';
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Pricing Card Styles */
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 4rem;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card.featured {
    border: 2px solid #0b4646;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
    background-color: #0b4646;
}

.plan-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'poppins';
}
.plan-title.featured {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: 'poppins';
}

.price {
    font-size: 2rem;
    color: #0b4646;
    margin: 20px 0;
    font-family: 'poppins';
}
.price.featured {
    font-size: 2rem;
    color: #ffffff;
    margin: 20px 0;
    font-family: 'poppins';
}

.price span {
    font-size: 2rem;
    vertical-align: top;
    font-weight: 500;
}

.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    color: #555;
    font-weight: 300;
}
.features.featured {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    color: white;
    font-weight: 300;
}

.features li {
    margin: 10px 0;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0b4646;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-primary.featured {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #ffff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-primary.featured:hover {
    background-color: #ffffff;
    color: #0b4646;
}

.btn-primary:hover {
    background-color: #021c42;
}

/* Promo Section Styling */
.promo-section {
    background-color: #e9f7f8; /* Light blue background */
    text-align: center;
    padding: 5rem 5rem;
}

.promo-section .promo-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'poppins';
}

.badge {
    display: inline-block;
    background-color: #1ec877;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.promo-heading {
    font-size: 2.5rem;
    color: #033d52;
    margin: 10px 0;
}

.promo-text {
    font-size: 1rem;
    color: #333;
    margin: 10px 0 20px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 10px 25px;
    color: #0b4646;
    background: none;
    border: 1px solid #033d52;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #033d52;
    color: white;
}

.testimonials {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    background-color: #0b4646;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem 5rem;
    font-family: 'poppins';
}

.testimonial-heading {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.testimonial-container {
    display: flex;
    overflow: hidden;
    position: relative;
}

.testimonial {
    flex: 1;
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.testimonial-text {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #ffffff;
}

.author {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0;
    font-weight: 500;
}

.controls {
    margin-top: 20px;
}

.controls button {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.controls button:hover {
    background-color: #ffffff;
    color: #033d52;
}
.footer {
    background-color: #011228;
    color: #fff;
    padding: 10rem 9rem;
    font-family: 'poppins';
    overflow-wrap: break-word;
}

.footer-container {
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}
.copyright {
    margin-bottom: 15px;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
}

.footer-links {
    width: 40%;
    max-width: 100%;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .first-ad-title {
        font-size: 1.5rem;
    }
    .first-ad-text {
        font-size: 1rem;
    }
}
@media (max-width: 920px) {
    .first-ad {
        flex-direction: column;
        gap: 2rem;
    }
    .second-ad {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .exhibition {
        text-align: center;
        gap: 5rem;
    }
    .first-ad-img {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .slide {
        height: 50vh;
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 1.2rem;
    }
    .ad-text-only {
        width: 90%;
    }
    .inside-integrate {
        flex-direction: column;
        text-align: center;
    }

    .integrate-content {
        margin-bottom: 20px;
    }
    .promo-heading {
        font-size: 2rem;
    }

    .promo-text {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .footer {
        padding: 4rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        width: 100%;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-info {
        text-align: center;
    }

    .footer-certification {
        text-align: center;
        margin-top: 15px;
    }
    .testimonials h2 {
        font-size: 1.5rem;
    }

    .testimonial p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 40vh;
    }

    .nav-btn {
        width: 10px;
        height: 10px;
    }
    .content {
        color: white;
        padding-top: 19rem;
        padding-left: 2rem;
    }
    .content h1 {
        width: 250px;
    }
    .content p {
        width: 270px;
        font-size: 0.9rem;
        font-weight: 300;
    }
    .btn {
        padding: 10px 25px;

        font-size: 0.9rem;
    }
    .first-ad-img {
        width: 80%;
    }
    .promo-heading {
        font-size: 1.5rem;
    }
    .promo-text {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 2rem;
    }

    .price {
        font-size: 1.8rem;
    }

    .footer {
        padding: 3rem 1.25rem;
    }

    .footer-logo {
        font-size: 1.75rem;
    }

    .footer-container {
        gap: 0.75rem;
    }

    .footer-links {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.company {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'poppins';
}
.company-text {
    font-size: 0.9rem;
    font-weight: 300;
}
.owner {
    width: 5%;
}

#get_started {
    color: #069a9a;
}







/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    font-family: 'Poppins', sans-serif;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalOpen 0.4s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #033c42;
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: #033c42;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-header p {
    color: #666;
    font-size: 1rem;
}

/* Floating Input Styles */
.floating-input {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
}

.floating-input input {
    width: 100%;
    height: 50px;
    border: 1px solid #2f2f2f;
    color: #2f2f2f;
    border-radius: 10px;
    background-color: transparent;
    outline: none;
    font-size: 1rem;
    padding: 0 15px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.floating-input label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #2f2f2f;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0 5px;
    font-family: 'Poppins', sans-serif;
}

.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 15px;
    color: white;
    background-color: #033c42;
    font-size: 0.8rem;
    transform: translateY(-50%);
}

.floating-input input:focus,
.floating-input input:not(:placeholder-shown) {
    border: 1px solid #033c42;
}

/* Submit Button */
.submit {
    width: 100%;
    height: 50px;
    margin-top: 2rem;
    color: white;
    background: #033c42;
    border: none;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit:hover {
    background: #069a9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Contact Info Section */
.modal-footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.modal-footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #033c42;
    font-size: 1rem;
    font-weight: 500;
}

.contact-item i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    color: #069a9a;
}

/* Error State */
.floating-input.error input {
    border-color: #ff4444;
}

.floating-input.error label {
    color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
    padding-left: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 10% auto;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 1.2rem;
    }
    
    .floating-input input {
        height: 45px;
    }
    
    .submit {
        height: 45px;
        font-size: 1rem;
    }
}

.contact-email {
    color: #033c42;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #069a9a;
    text-decoration: underline;
}

.contact-phone {
    color: #033c42;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-phone:hover {
    color: #069a9a;
    text-decoration: underline;
}


 /* Custom SweetAlert styling */
 .swal2-popup {
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
}
.swal2-confirm {
    background-color: #069a9a !important;
    border: none !important;
}
.swal2-title {
    color: #033c42;
    font-weight: 600;
}
.swal2-html-container {
    color: #555;
}

/* ============================================
   CUSTOMER SERVICE CHATBOT STYLES
   ============================================ */

/* Chatbot Widget Container */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Lato', sans-serif;
}

/* Chat Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.6);
}

.chatbot-toggle i {
    color: white;
    font-size: 24px;
}

.chatbot-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background-color: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

.chatbot-notification.active {
    display: block;
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar i {
    color: white;
    font-size: 18px;
}

.chatbot-title h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-timer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-left: 4px;
}

.session-timer::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 4px;
    font-size: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-actions {
    display: flex;
    gap: 8px;
}

.chatbot-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar i {
    color: white;
    font-size: 14px;
}

.user-message .message-avatar {
    background: #6c757d;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message .message-content {
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.message-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Actions */
.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-action-btn {
    background: white;
    border: 1px solid #800000;
    color: #800000;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: #800000;
    color: white;
}

.quick-action-btn i {
    font-size: 11px;
}

/* Typing Indicator */
.chatbot-typing {
    padding: 0 20px 10px;
    background-color: #f8f9fa;
}

.chatbot-typing.hidden {
    display: none;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #800000;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Input Area */
.chatbot-input-area {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chatbot-form {
    margin: 0;
}

.chatbot-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.chatbot-input-wrapper:focus-within {
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.chatbot-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    color: #333;
}

.chatbot-input::placeholder {
    color: #999;
}

.chatbot-input-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-input-btn:hover {
    background: #e9ecef;
    color: #666;
}

.chatbot-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.4);
}

.chatbot-send-btn i {
    font-size: 14px;
}

.chatbot-footer-text {
    text-align: center;
    margin-top: 8px;
}

.chatbot-footer-text small {
    color: #999;
    font-size: 11px;
}

/* Pre-Chat Form Styles */
.chatbot-prechat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.prechat-header {
    text-align: center;
    margin-bottom: 24px;
}

.prechat-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.prechat-avatar i {
    color: white;
    font-size: 28px;
}

.prechat-header h4 {
    color: #003366;
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.prechat-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.prechat-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.prechat-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prechat-field label {
    color: #003366;
    font-size: 13px;
    font-weight: 500;
}

.prechat-field input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.prechat-field input:focus {
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.prechat-field input::placeholder {
    color: #aaa;
}

.prechat-submit {
    background: linear-gradient(135deg, #800000 0%, #003366 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.prechat-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.4);
}

.prechat-submit i {
    font-size: 16px;
}

.prechat-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.prechat-privacy i {
    color: #800000;
    font-size: 14px;
}

.prechat-privacy small {
    color: #888;
    font-size: 11px;
}

/* Hidden state for pre-chat and chat areas */
.chatbot-messages.hidden,
.chatbot-input-area.hidden {
    display: none;
}

.chatbot-messages {
    display: flex;
}

/* Responsive Design */
@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        height: 450px;
        right: -5px;
        bottom: 70px;
    }

    .chatbot-header {
        padding: 12px 16px;
    }

    .chatbot-messages {
        padding: 15px;
    }

    .chat-message {
        max-width: 90%;
    }

    .quick-action-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .chatbot-prechat {
        padding: 20px;
    }

    .prechat-avatar {
        width: 56px;
        height: 56px;
    }

    .prechat-avatar i {
        font-size: 24px;
    }

    .prechat-header h4 {
        font-size: 18px;
    }

    .prechat-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .chatbot-window {
        background: #1a1a1a;
    }

    .chatbot-messages {
        background-color: #2d2d2d;
    }

    .message-content {
        background: #3d3d3d;
        color: white;
    }

    .chatbot-input-area {
        background: #1a1a1a;
        border-top-color: #3d3d3d;
    }

    .chatbot-input-wrapper {
        background: #2d2d2d;
        border-color: #3d3d3d;
    }

    .chatbot-input {
        color: white;
    }

    .chatbot-input::placeholder {
        color: #666;
    }
}

