/* ARQUIVO: style.css (VERSÃO COM A CORREÇÃO DO DESIGN DOS FORMULÁRIOS) */

:root {
    --teal: #00C7A6; --magenta: #8C0376; --medium-gray: #6E6E6E; --dark-gray: #424242; --black: #000000; --gold: #FFD700;
    --text-light: #f0f0f0; --text-medium: #c0c0c0; --white: #ffffff;
}

/* --- ESTILOS GERAIS --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--black);
    color: var(--text-light);
}
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
section { padding: 100px 0; text-align: center; }

/* --- CLASSE PARA PÁGINAS CENTRALIZADAS (QUIZ, PESQUISA, ETC.) --- */
.page-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- CORREÇÃO AUTOMÁTICA DO CABEÇALHO --- */
body:not(.page-centered) main {
    padding-top: 100px; 
}

/* --- TIPOGRAFIA E BOTÕES --- */
h1 { font-size: 3.3rem; color: var(--teal); line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; color: var(--teal); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem; }
p { font-size: 1.1rem; color: var(--text-medium); line-height: 1.7; max-width: 800px; margin: 0 auto; }
.subtitulo { margin-bottom: 4rem; }
.btn { background: linear-gradient(90deg, var(--teal), var(--magenta)); color: var(--white); border: none; padding: 15px 35px; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(140, 3, 118, 0.4); }

/* --- HEADER PRINCIPAL (SÓ PARA INDEX.HTML) --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); padding: 1rem 0; z-index: 100; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.header-logo { max-width: 100px; }
.main-nav a { color: var(--text-light); text-decoration: none; margin-left: 2rem; font-weight: 600; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--teal); }

/* --- HEADER MINIMALISTA (PARA PÁGINAS SECUNDÁRIAS DE CONTEÚDO) --- */
.header-minimalista { position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 0; z-index: 100; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); }
.header-minimalista .container { display: flex; justify-content: space-between; align-items: center; }
.btn-inicio { background: transparent; color: var(--text-light); border: 1px solid var(--medium-gray); padding: 8px 20px; font-weight: 500; font-size: 0.9rem; text-decoration: none; border-radius: 50px; transition: all 0.3s ease; }
.btn-inicio:hover { background: var(--teal); color: var(--black); border-color: var(--teal); }

/* --- BOTÃO 'VOLTAR' PARA PÁGINAS SEM HEADER --- */
.header-voltar { position: fixed; top: 25px; left: 25px; z-index: 100; }
.header-voltar img { height: 40px; opacity: 0.8; transition: opacity 0.3s ease; }
.header-voltar img:hover { opacity: 1; }


/* --- SEÇÕES E CARDS --- */
#inicio { min-height: 100vh; display: flex; align-items: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--dark-gray); padding: 2.5rem 2rem; border-radius: 15px; border: 1px solid var(--medium-gray); transition: all 0.3s ease; }
.card:hover { transform: translateY(-10px); border-color: var(--teal); }
.card .icon { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }

/* --- NOVO ESTILO GLOBAL PARA FORMULÁRIOS --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--medium-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* --- AJUSTES ESPECÍFICOS DO QUIZ --- */
.quiz-container { background-color: var(--dark-gray); border-radius: 15px; box-shadow: 0 10px 40px rgba(0, 199, 166, 0.2); overflow: hidden; width: 100%; max-width: 700px; }
.slide { display: none; padding: 40px; text-align: center; }
.slide.active { display: block; animation: fadeIn 0.5s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.option-label { text-align: left; }


/* --- ESTILOS DO CHAT FLUTUANTE --- */
#nast-ia-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: linear-gradient(45deg, var(--teal), var(--magenta)); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4); z-index: 1001; transition: transform 0.3s ease; }
#nast-ia-fab:hover { transform: scale(1.1); }
#nast-ia-chat-window { position: fixed; bottom: 100px; right: 30px; width: 350px; max-height: 80vh; background-color: var(--dark-gray); border: 1px solid var(--medium-gray); border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); display: none; flex-direction: column; overflow: hidden; z-index: 1000; }
.chat-header { background-color: #333; padding: 15px; text-align: center; position: relative; }
.chat-header h3 { margin: 0; color: var(--teal); }
.chat-header p { margin: 0; font-size: 0.8rem; color: var(--text-medium); }
#close-chat-btn { position: absolute; top: 5px; right: 10px; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }
.chat-body { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-message { padding: 10px 15px; border-radius: 20px; max-width: 80%; line-height: 1.4; word-wrap: break-word; }
.chat-message.bot { background-color: var(--medium-gray); color: var(--text-light); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-message.user { background-color: var(--teal); color: var(--black); font-weight: 500; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-footer { padding: 10px; border-top: 1px solid var(--medium-gray); }
#chat-form { display: flex; gap: 10px; }
#chat-input { flex-grow: 1; margin: 0; border: 2px solid var(--medium-gray); }
#chat-form button { background: var(--teal); border: none; color: white; font-weight: 600; padding: 0 15px; border-radius: 10px; cursor: pointer; }

/* --- RODAPÉ --- */
.main-footer { background-color: var(--dark-gray); padding: 40px 0; text-align: center; border-top: 1px solid var(--medium-gray); }
.footer-logo { max-width: 80px; margin-bottom: 1rem; }
.main-footer p { font-size: 0.9rem; color: var(--text-medium); }

/* --- BLOCO ÚNICO DE RESPONSIVIDADE PARA CELULAR --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }
    .container { width: 95%; }
    
    body:not(.page-centered) main {
        padding-top: 80px;
    }

    .hamburger-btn { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
    .hamburger-line { width: 30px; height: 3px; background: var(--white); border-radius: 10px; transition: all 0.3s linear; }
    .main-nav { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.95); }
    .main-nav.active { display: flex; }
    .main-nav a { margin: 0; font-size: 1.5rem; color: var(--white); }
    .main-nav a.btn { font-size: 1.2rem; }
    
    #inicio h2 { font-size: 1.2rem; }
    .cards-grid { grid-template-columns: 1fr; }
    
    .survey-container, .quiz-container { margin: 10px 0; max-width: 100%; }
    .slide { padding: 20px; }
    .option-label { font-size: 0.9rem; }
    .navigation { flex-direction: column-reverse; gap: 1rem; }
    .navigation .btn { width: 100%; text-align: center; }
    .back-btn { margin-right: 0; }
    
    #nast-ia-chat-window { width: 95vw; max-height: 75vh; right: 2.5vw; bottom: 90px; }
}

/* --- CORREÇÃO COMPLETA PARA O POP-UP DE LOGIN --- */
div[data-netlify-identity-widget] {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
}

.header-escondido {
    display: none !important;
}

/* --- ESTILOS PARA A INTERFACE DE CHAT DO DASHBOARD --- */
.chat-interface-container {
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
    background-color: var(--black);
}
.chat-interface-container .chat-body { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-interface-container .chat-message { padding: 10px 15px; border-radius: 20px; max-width: 80%; line-height: 1.5; }
.chat-interface-container .chat-message.bot { background-color: var(--dark-gray); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-interface-container .chat-message.bot p { margin: 0; font-size: 1rem; }
.chat-interface-container .chat-message.user { background-color: var(--teal); color: var(--black); align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-interface-container .chat-message.user p { margin: 0; font-size: 1rem; color: var(--black); }
.chat-interface-container .chat-footer { padding: 15px; border-top: 1px solid var(--medium-gray); }
.chat-interface-container #ai-chat-form { display: flex; gap: 10px; margin: 0; }
.chat-interface-container #ai-chat-input { flex-grow: 1; margin-bottom: 0; }
.chat-interface-container .chat-footer button { background: var(--teal); border: none; color: white; font-weight: 600; padding: 0 20px; border-radius: 10px; cursor: pointer; }

/* ===== NOVO: ESTILOS PARA O CABEÇALHO COM BOTÃO DE QUIZ FIXO ===== */
.header-left { display: flex; align-items: center; gap: 2rem; }
.btn-quiz-header { padding: 12px 25px; font-size: 0.9rem; }

@media (max-width: 992px) {
    .header-left { gap: 1.5rem; }
    .btn-quiz-header { padding: 10px 20px; }
}
@media (max-width: 768px) {
    .btn-quiz-header { padding: 8px 15px; font-size: 0.8rem; }
    .header-logo { max-width: 80px; }
}

/* --- ADIÇÃO FINAL PARA CORRIGIR O LAYOUT DO QUIZ E PESQUISA DE VEZ --- */
.quiz-container .slide, .survey-container .slide {
    display: none;
}
.quiz-container .slide.active, .survey-container .slide.active {
    display: block;
}