/* pesquisa/static/pesquisa/css/style.css */

/* --- CONFIGURAÇÕES GERAIS E FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

html {
    color-scheme: light;
}

:root {
    --cor-institucional: #f49aa5;
    --cor-destaque: #8d4750;
    --fundo-principal: #ffffff;
    --fundo-secundario: #EDEDED;
    --cor-texto: #333;
    --cor-sucesso: #2e7d32;
    --fundo-sucesso: #e8f5e9;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--fundo-principal);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
}

/* --- CABEÇALHO E RODAPÉ --- */
header { 
    width: 100%; 
    padding: 40px 0 20px 0; 
    display: flex; 
    justify-content: center; 
    /* Adicionado para lidar com múltiplos logos */
    gap: 20px;
    align-items: center;
    flex-wrap: wrap; 
}
.logo { 
    max-width: 180px; 
    height: auto; 
    max-height: 80px; /* Adicionado para alinhar alturas */
    object-fit: contain;
}
footer { 
    width: 100%; 
    text-align: center; 
    padding: 20px 0; 
    font-size: 0.8em; 
    color: #999; 
}

/* --- CONTAINER PRINCIPAL DO CHAT --- */
main.container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- ANIMAÇÃO DE SURGIMENTO --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BALÕES DE MENSAGEM DO CHAT --- */
.chat-message {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 80%;
    animation: fadeIn 0.5s ease-out forwards;
}

.bot-message {
    background-color: var(--fundo-secundario);
    color: var(--cor-texto);
    border-bottom-left-radius: 5px;
    align-self: flex-start;
}
.bot-message h1, .bot-message p { margin: 0; font-size: 1.1em; line-height: 1.5; }

/* --- BOTÕES DE OPÇÃO E LINKS --- */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: flex-end; /* Alinha botões à direita (estilo chat) */
    width: 100%;
    margin-top: 10px;
    animation: fadeIn 0.8s ease-out forwards;
}

.chat-button {
    display: block; 
    text-decoration: none;
    background-color: var(--fundo-principal);
    color: var(--cor-destaque);
    border: 2px solid var(--cor-destaque);
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: none;
    transform: translateY(1px);
}
.chat-button:hover { background-color: var(--cor-destaque); color: var(--fundo-principal); }
.action-button { background-color: var(--cor-destaque); color: var(--fundo-principal); }
.action-button:hover { background-color: #7a3a42; }

/* --- CAIXA DE TEXTO --- */
.input-area { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
    margin-top: 10px; 
    animation: fadeIn 0.8s ease-out forwards; 
}
.clean-input { 
    flex-grow: 1; 
    border: none; 
    border-bottom: 2px solid var(--cor-institucional); 
    background: transparent; 
    padding: 10px; 
    font-size: 1.1em; 
    outline: none; 
    font-family: 'Nunito', sans-serif; /* Garante a mesma fonte */
}
.clean-input:focus { border-bottom-color: var(--cor-destaque); }

/* (Estilo para Textarea é o mesmo de clean-input) */
textarea.clean-input {
    resize: vertical; /* Permite redimensionar verticalmente */
    min-height: 60px;
}

.submit-button { 
    background: var(--cor-destaque); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    font-size: 24px; 
    cursor: pointer; 
    transition: background-color 0.2s ease; 
    align-self: flex-end; /* Alinha com o final da caixa de texto */
}
.submit-button:hover { background-color: #7a3a42; }

/* --- BOTÃO DE VOLTAR --- */
.back-button-container { 
    width: 100%; 
    text-align: left; 
    margin-top: 20px; 
    animation: fadeIn 1s ease-out forwards; 
}
.back-button { 
    font-size: 0.9em; 
    color: #999; 
    text-decoration: none; 
    font-weight: 600; 
}
.back-button:hover { color: var(--cor-destaque); }

/* --- NOVOS ESTILOS PARA BÔNUS (do seu original) --- */
.bonus-wrapper {
    background: var(--fundo-sucesso);
    border: 2px dashed var(--cor-sucesso);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
}
.bonus-text { 
    font-weight: bold; 
    color: var(--cor-sucesso); 
    margin: 0 0 15px 0; 
    font-size: 1.1em; 
}
.bonus-button { 
    background-color: var(--cor-sucesso); 
    border-color: var(--cor-sucesso); 
    color: var(--fundo-principal); 
}
.bonus-button:hover { 
    background-color: #1e8e3e; 
    border-color: #1e8e3e; 
}
.bonus-text-claimed { 
    font-weight: bold; 
    color: var(--cor-sucesso); 
    margin: 0; 
    font-size: 1.2em; 
}