/* CHAT POPUP */

.chat-popup {
    position: fixed;

    bottom: 20px;
    right: 20px;

    background: #f3a233;
    color: #fff;

    padding: 14px 22px;

    border-radius: 50px;

    cursor: pointer;

    z-index: 9999;

    font-weight: 600;
    font-size: 16px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    width: auto;

    box-shadow: 0 6px 18px rgba(0,0,0,0.2);

    transition: all .3s ease;
}

/* CHATBOT CONTAINER */

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    max-height: 700px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

/* HEADER */

.chatbot-header {
    background: #111827;
    color: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

.chatbot-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* MESSAGES */

.chatbot-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f9fafb;
}

/* MESSAGE BUBBLES */

.bot-message,
.user-message {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
}

.bot-message {
    background: #e5e7eb;
    color: #111827;
}

.user-message {
    background: #f3a233;
    color: #fff;
    margin-left: auto;
}

/* INPUT AREA */

.chatbot-input-area {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chatbot-input-area input {
    flex: 1;
    border: none;
    padding: 16px;
    font-size: 14px;
    outline: none;
}

.chatbot-input-area button {
    background: #f3a233;
    color: #fff;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 600;
}

/* BUTTON OPTIONS */

.chatbot-options {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatbot-options button {
    background: #111827;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
}

/* FORM */

.chatbot-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.chatbot-form input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
}

.chatbot-form button {
    background: #f3a233;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* MOBILE */

@media (max-width: 768px) {

    .chatbot-container {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 80px;
        max-height: 85vh;
    }

    .chat-popup {
        right: 10px;
        bottom: 10px;
    }
}