/* Chatbot de Captação */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 25px;
    width: 300px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9997;
    display: none;
    flex-direction: column;
    border: 2px solid var(--cor-primaria);
}

.chatbot-container.ativo {
    display: flex;
}

.chatbot-header {
    background: var(--cor-primaria);
    color: white;
    padding: 15px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-fechar {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
}

.chatbot-mensagens {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mensagem {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.mensagem.bot {
    background: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.mensagem.user {
    background: var(--cor-primaria);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    max-width: 200px; /* Largura máxima de 200px */
}

.chatbot-input button {
    background: var(--cor-primaria);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transicao);
    white-space: nowrap;
}

.chatbot-input button:hover {
    background: var(--cor-secundaria);
    color: var(--cor-primaria);
}

.chatbot-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--cor-primaria);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 9996;
    border: none;
    box-shadow: 0 4px 20px rgba(68, 0, 170, 0.4);
    transition: var(--transicao);
}

.chatbot-flutuante:hover {
    transform: scale(1.1);
    background: var(--cor-secundaria);
    color: var(--cor-primaria);
}