/* FAQ ChatBot Styles */

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chatbot-button {
    width: 70px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #324728;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.chatbot-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

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

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: 90vw;
    height: 550px;
    max-height: 80vh;
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

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

.chatbot-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #eac566 0%, #324728 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chatbot-close:hover {
    opacity: 0.8;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

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

.message .message-text {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

.message.user {
    text-align: right;
}

.message.user .message-text {
    background: linear-gradient(135deg, #eac566 0%, #324728 100%);
    color: white;
    display: inline-block;
}

.message.bot .message-text {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.message.bot.loading .message-text {
    color: #64748b;
    font-style: italic;
}

.chatbot-autocomplete {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #374151;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #F9FAFB;
}

.chatbot-popular {
    padding: 12px 16px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    max-height: 150px;
    overflow-y: auto;
}

.popular-title {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.popular-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #cdddb7;
    color: #143317;
    border: 1px solid #C7D2FE;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s;
}

.popular-btn:hover {
    background: #fffbe8;
    border-color: #618150;
}

.popular-btn:last-child {
    margin-bottom: 0;
}

.chatbot-input {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    background: white;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.chatbot-input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-field:focus {
    border-color: #a3690d;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chatbot-send {
    padding: 10px 18px;
    background: linear-gradient(135deg, #eac566 0%, #324728 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-send:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 10px;
        bottom: 100px;
        border-radius: 24px;
    }

    .chatbot-container {
        right: 10px;
        bottom: 10px;
    }

    .chatbot-header {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .chatbot-input {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
}

