/* Floating Trigger Button */
.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background-color: #E41C3B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(228, 28, 59, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.chatbot-trigger:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .chatbot-trigger { bottom: 80px; }
    .chatbot-container {
        bottom: 155px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        height: 400px !important;
    }
}

/* Chat Window */
.chatbot-container {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 450px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid rgba(228, 28, 59, 0.1);
}
.chatbot-container.active { display: flex; }

/* Header */
.chatbot-header {
    background: #E41C3B;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chatbot-header .user-profile { display: flex; align-items: center; gap: 10px; }
.chatbot-header .avatar {
    width: 40px; height: 40px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.chatbot-header .status { font-size: 12px; display: flex; align-items: center; gap: 4px; opacity: 0.9; }
.chatbot-header .online-dot { width: 8px; height: 8px; background: #4dfd4d; border-radius: 50%; }
.chatbot-header .close-btn { cursor: pointer; font-size: 24px; border: none; background: none; color: white; }

/* Body */
.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fff8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-bubble {
    background: #ffffff;
    color: #1f1b18;
    padding: 12px 15px;
    border-radius: 12px 12px 12px 2px;
    font-size: 14px;
    max-width: 85%;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

.bot-bubble.error-bubble {
    background: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Options */
.options-list { display: flex; flex-direction: column; gap: 8px; }
.option-item {
    background: #ffffff;
    border: 1px solid #E41C3B;
    color: #E41C3B;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.option-item:hover { background: #E41C3B; color: #ffffff; }

/* Form */
.chatbot-form-step { display: flex; flex-direction: column; gap: 10px; }
.chatbot-form-step input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
.chatbot-form-step input:focus {
    border-color: #E41C3B;
    box-shadow: 0 0 0 3px rgba(228, 28, 59, 0.1);
}
.chatbot-form-step button {
    background: #E41C3B;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s;
}
.chatbot-form-step button:hover {
    background: #B0162A;
}
.chatbot-form-step button:disabled {
    background: #999;
    cursor: not-allowed;
}

.hidden { display: none !important; }
.success-msg { color: #28a745; font-weight: 500; text-align: center; }
.validation-msg { font-size: 11px; color: #c53030; margin-top: -5px; display: none; }
