
            
.chat-container {
    width: 450px;
    height: 600px;
    display: none;
    position: fixed;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #fff;
    border-radius: 10px;
    z-index: 20000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    bottom: 10px;
    left: 84%;
    transform: translateX(-50%); /* Centers horizontally */
    transition: all 0.3s ease-in-out;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-around; /* Space between heading and close button */
    background-color: #5a7585;
    padding: 10px;
}

.chat-header h3 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}


.close-btn:hover {
    color: #a30808;
}



.chat-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-footer {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background-color: #f4f4f9;
    border-radius: 0 0 10px 10px;
}

#user-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
}

#send-btn {
    width: 25%;
    padding: 12px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#send-btn:hover {
    background-color: rgb(237, 116, 116);
}

.message {
    max-width: 80%;
    padding: 12px;
    border-radius: 10px;
    background-color: #f1f1f1;
    display: inline-block;
    word-wrap: break-word;
}

.user-message {
    background-color: #4d87a9;
    color: white;
    align-self: flex-end;
}

.bot-message {
    background-color: #e2e2e2;
    color: #333;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    border-radius: 50%;
    background-color: #4d87a9;
    animation: typing 1.2s infinite ease-in-out;
}

.bot-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.bot-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


.options button {
    background-color: #4d87a9;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 200px;
    transition: background-color 0.3s;
}

.options button:hover {
    background-color: #0a4262;
}

.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-inputs input[type="text"],
.form-inputs input[type="tel"] {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
    background-color: #f9f9f9;
}

.form-inputs input[type="button"] {
    padding: 12px;
    border-radius: 5px;
    background-color: rgb(226, 152, 152);
    color: white;
    border: none;
    cursor: pointer;
}

.form-inputs input[type="button"]:hover {
    background-color: rgb(226, 152, 152);
}

.details-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.6;
}

.details-card strong {
    font-weight: bold;
}

/* For screens 1300px and smaller */
@media (max-width: 1300px) {
    .chat-container {
        left: 75%;
    }

    .chat-header h3 {
        font-size: 20px;
    }

    #user-input {
        font-size: 16px;
        padding: 12px;
    }

    #send-btn {
        font-size: 16px;
        padding: 12px;
    }

    .options button {
        font-size: 16px;
        width: 100%;
    }
}

/* For screens 1000px and smaller */
@media (max-width: 1000px) {
    .chat-container {
        left: 65%;
    }

    .chat-header h3 {
        font-size: 18px;
    }

    #user-input {
        font-size: 15px;
        padding: 10px;
    }

    #send-btn {
        font-size: 15px;
        padding: 10px;
    }

   
}

/* For screens 700px and smaller */
@media (max-width: 700px) {
    .chat-container {
        left: 55%;
    }

    .chat-header h3 {
        font-size: 16px;
    }

    #user-input {
        font-size: 14px;
        padding: 8px;
    }

    #send-btn {
        font-size: 14px;
        padding: 8px;
    }

   
}

/* For screens 500px and smaller */
@media (max-width: 500px) {
    .chat-container {
        left: 50%;
        width: 95%;

    }

    .chat-header h3 {
        font-size: 14px;
    }

    #user-input {
        font-size: 10px;
    }

    #send-btn {
        font-size: 12px;
        padding: 6px;
    }

    
}

/* For screens 300px and smaller */
@media (max-width: 300px) {

    .chat-header h3 {
        font-size: 12px;
    }

    #user-input {
        font-size: 10px;
        padding: 4px;
    }

    #send-btn {
        font-size: 10px;
        padding: 4px;
    }

    
}
