/* Modal background wrapper */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    /* top:0, right:0, bottom:0, left:0 */
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.2);
    align-items: center;
    /* center vertically */
    justify-content: flex-end;
    /* push content to the right */
    padding: 5vh 20px;
    /* space from top/bottom/right */
    box-sizing: border-box;
}

/* The actual chat box */
.modal-content {
    width: 35vw;
    max-width: 400px;
    min-width: 280px;
    height: 500px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .modal {
        align-items: flex-end;
        padding: 0 10px 10px 10px;
    }

    .modal-content {
        width: 100%;
        height: 90vh;
        border-radius: 12px 12px 0 0;
    }
}


/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: black;
}


/* ChatBot */

/* Button fixed in bottom-right corner */
#chatbotToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}




.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    font-size: 1.25rem;
    text-align: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 20px;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background: #007bff;
    color: white;
    border-bottom-right-radius: 0;
}

.message.bot {
    align-self: flex-start;
    background: #e2e3e5;
    color: #333;
    border-bottom-left-radius: 0;
}

.chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    border-radius: 0 0 0 8px;
    outline: none;
}

.chat-footer button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0 0 8px 0;
    transition: background 0.3s;
}

.chat-footer button:hover {
    background: #0056b3;
}

.whatsapp-bg {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1000;
    height: 50px;
    width: 50px;
    border-radius: 10px;
}




.chat-user-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-user-info input,
.chat-user-info button {
    padding: 0.5rem;
    font-size: 1rem;
}



