@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --darkest: #032c40;
    --dark: #034260;
    --primary: #026694;
    --light: #82bdd4;
    --lighter-blue: #82bcd3;
    --white: #ffffff;
    --bg-page: #F3F4F6;
    --line-color: rgba(3, 44, 64, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    width: 100%; margin: 0; padding: 0; overflow-x: hidden;
    font-family: 'Poppins', sans-serif; background-color: var(--bg-page); color: var(--darkest);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* --- ANIMAÇÕES --- */
.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; visibility: hidden; }
.show { opacity: 1; transform: translateY(0); visibility: visible; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- HEADER --- */
header { position: fixed; top: 0; width: 100%; background: transparent; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.4s ease; border-bottom: 1px solid rgba(255,255,255,0.05); }
header.header-scrolled, header.header-solid { background: rgba(3, 44, 64, 0.95); padding: 15px 5%; box-shadow: 0 5px 20px rgba(0,0,0,0.1); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-img { height: 85px; width: auto; display: block; transition: height 0.3s; }
header.header-scrolled .logo-img, header.header-solid .logo-img { height: 70px; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { text-decoration: none; color: var(--white); font-weight: 400; font-size: 0.95rem; transition: color 0.3s; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
nav a:hover, nav a.active { color: var(--light); font-weight: 500; }

/* --- HERO SLIDER --- */
.hero-slider { position: relative; width: 100%; height: 100vh; overflow: hidden; margin-bottom: 40px; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 35vh; opacity: 0; transition: opacity 1s ease-in-out; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3, 44, 64, 0.5); z-index: 1; }
.slide.active { opacity: 1; }
.slide-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; padding: 0 20px; text-align: center; }
.slide-content h1 { font-size: 2.8rem; font-weight: 500; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.slide-content p { font-size: 1.1rem; margin-bottom: 30px; font-weight: 300; line-height: 1.6; opacity: 0.9; text-shadow: 0 1px 5px rgba(0,0,0,0.2); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--white); font-size: 3rem; cursor: pointer; padding: 20px; z-index: 10; transition: all 0.3s; opacity: 0.5; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.slider-btn:hover { opacity: 1; color: var(--light); transform: translateY(-50%) scale(1.1); }
.prev { left: 10px; } .next { right: 10px; }

/* --- BENTO GRID (HOME) --- */
.container-principal { max-width: 1200px; margin: 0 auto; padding: 20px; }
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 80px; }
.bento-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.bento-item { background: var(--white); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; height: 100%; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #e0e0e0; }
.bento-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: var(--primary); }
.bento-item p { font-size: 1rem; color: #555; line-height: 1.7; }
.bento-item h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }

.lista-servicos { list-style: none; margin-top: 10px; }
.lista-servicos li { padding: 10px 0; border-bottom: 1px solid #eee; color: var(--darkest); font-weight: 500; display: flex; align-items: center; }
.lista-servicos li::before { content: '•'; color: var(--primary); font-size: 1.5rem; margin-right: 10px; line-height: 1; }
.lista-servicos li:last-child { border-bottom: none; }

/* Boxes Coloridos (Home) */
.bg-dark { background-color: var(--darkest); color: var(--white); }
.bg-dark h3 { color: var(--white) !important; }
.bg-dark p, .bg-dark .card-arrow, .bg-dark .lista-servicos li { color: var(--white); }
.bg-primary { background-color: var(--primary); color: var(--white); }
.bg-primary h3 { color: var(--white) !important; }
.bg-primary p, .bg-primary .card-arrow { color: var(--white); }
.bg-light-blue { background-color: var(--lighter-blue); color: var(--white); }
.bg-light-blue h3 { color: var(--white) !important; }
.bg-light-blue p, .bg-light-blue .card-arrow { color: var(--white); }
.card-arrow { margin-top: 20px; font-size: 1.5rem; font-weight: bold; align-self: flex-end; color: var(--primary); }

/* --- GRID LAYOUT (SOBRE/SERVIÇOS) --- */
.modern-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px 100px; }
.page-header-spacer { height: 100px; background-color: var(--darkest); }
.grid-layout { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line-color); border-left: 1px solid var(--line-color); background: var(--white); }
.grid-box { padding: 50px; border-right: 1px solid var(--line-color); border-bottom: 1px solid var(--line-color); display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Tipografia Boxes */
.big-section-title { font-size: 3.5rem; font-weight: 700; color: var(--darkest); line-height: 1; margin-bottom: 40px; letter-spacing: -1px; margin-top: 80px; }
.big-section-title:first-child { margin-top: 0; }
.grid-box h2, .grid-box h3 { font-size: 2rem; font-weight: 600; margin-bottom: 20px; line-height: 1.1; }
.grid-box p { font-size: 1.05rem; font-weight: 400; line-height: 1.8; margin: 0; opacity: 0.9; }

.values-list { list-style: none; margin-top: 10px; }
.values-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 1rem; display: flex; align-items: center; }
.values-list li:last-child { border-bottom: none; }
.values-list i { margin-right: 15px; color: var(--light); }

/* --- CORES DOS BOXES --- */
.box-white { background-color: var(--white); color: var(--darkest); }
.box-light { background-color: #E6F4F9; color: var(--darkest); }
.box-primary { background-color: var(--primary); color: var(--white); }
.box-dark { background-color: var(--darkest); color: var(--white); }

/* Afina apenas parágrafos em fundo escuro */
.box-primary p, .box-dark p { 
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SERVIÇOS ESTRUTURA --- */
.services-intro { text-align: center; padding: 40px 20px 80px; max-width: 900px; margin: 0 auto; }
.services-intro h1 { font-size: 3rem; color: var(--primary); margin-bottom: 20px; font-weight: 700; }
.service-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px 20px; }
.service-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 100px; gap: 60px; width: 100%; }
.service-row.reverse { flex-direction: row-reverse; }
.service-image { flex: 1; height: 400px; overflow: hidden; border-bottom: 5px solid var(--primary); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-image:hover img { transform: scale(1.05); }
.service-info { flex: 1; }
.service-title-link { text-decoration: none; color: var(--darkest); transition: color 0.3s; display: inline-block; }
.service-title-link h2 { font-size: 2.2rem; margin-bottom: 20px; font-weight: 700; }
.btn-know-more { text-decoration: none; color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); padding-bottom: 2px; transition: all 0.3s; }

/* --- PÁGINAS INTERNAS --- */
.back-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--primary); font-weight: 600; margin-bottom: 20px; transition: transform 0.2s; }
.back-link:hover { transform: translateX(-5px); }
.back-link i { margin-right: 8px; }

/* Etapas */
.step-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    width: 100%;
}
.step-meta { display: flex; gap: 10px; align-items: center; }
.step-number {
    background-color: var(--darkest);
    color: var(--white);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}
.step-title { font-weight: 700; font-size: 1.5rem; }
.free-badge {
    background-color: #4cd137;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.95rem; line-height: 1.5; }
.step-list li::before { content: '›'; position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; }

/* Cores das Etapas */
.step-box-1 { background-color: var(--white); color: var(--darkest); }
.step-box-1 .step-list li::before { color: var(--primary); }
.step-box-2 { background-color: #E6F4F9; color: var(--darkest); }
.step-box-2 .step-list li::before { color: var(--primary); }
.step-box-3 { background-color: #82bdd4; color: var(--darkest); }
.step-box-3 .step-number { background-color: rgba(0,0,0,0.2); }
.step-box-3 .step-list li::before { color: var(--darkest); }
.step-box-4 { background-color: #026694; color: var(--white); }
.step-box-4 .step-title { color: var(--white); }
.step-box-4 .step-number { background-color: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); }
.step-box-4 .step-header { border-bottom: 1px solid rgba(255,255,255,0.2); }
.step-box-4 .step-list li { color: rgba(255,255,255,0.9); }
.step-box-4 .step-list li::before { color: var(--white); }

/* --- LISTA DE BENEFÍCIOS ALINHADA --- */
.benefits-aligned-list { list-style: none; margin-top: 15px; padding: 0; }
.benefits-aligned-list li { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); line-height: 1.6; font-size: 0.95rem; }
.benefits-aligned-list li:last-child { border-bottom: none; }

.benefit-label {
    flex: 0 0 210px; /* AUMENTADO PARA 210px PARA CABER "ACOMPANHAMENTO:" */
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
}
.benefit-label i { margin-right: 10px; color: var(--light); min-width: 20px; text-align: center; }
.benefit-text { flex: 1; opacity: 0.9; padding-left: 10px; }

/* Footer */
footer { background-color: var(--darkest); color: var(--white); padding: 60px 20px; border-top: 5px solid var(--primary); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; text-align: left; }
.footer-logo img { height: 80px; margin-bottom: 10px; }
.footer-info h4 { font-size: 1.1rem; margin-bottom: 15px; color: var(--light); }
.footer-info ul { list-style: none; }
.footer-info li { margin-bottom: 10px; font-size: 0.95rem; color: #ffffff !important; opacity: 1 !important; }
.footer-logo p { color: #ffffff !important; opacity: 1 !important; }
.footer-social { display: flex; gap: 25px; }
.btn-social { display: inline-block; text-decoration: none; color: var(--white); font-size: 2rem; transition: all 0.3s; }
.btn-social:hover { color: var(--light); transform: translateY(-3px); }

/* Responsividade */
@media (max-width: 992px) { .span-3, .span-4, .span-6, .span-8 { grid-column: span 12; } .grid-box { padding: 30px; } }
@media (max-width: 768px) { .bento-grid { grid-template-columns: 1fr; } .logo-img { height: 60px; } }
@media (max-width: 480px) {
    .benefits-aligned-list li { flex-direction: column; }
    .benefit-label { flex: 0 0 auto; margin-bottom: 5px; }
    .benefit-text { padding-left: 30px; }
}

/* =======================================================
   ESTILOS ESPECÍFICOS DA PÁGINA CONTATO (DEFINITIVO)
   ======================================================= */

.page-contact-body {
    padding-top: 100px; /* Espaço para o menu fixo */
}

.contact-main-wrapper {
    padding: 50px 0 80px;
}

/* Cabeçalho de Texto da Página */
.contact-header-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-header-text h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-header-text p {
    color: #555;
    font-size: 1.1rem;
}

/* --- GRID PRINCIPAL (LAYOUT) --- */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Coluna Info menor, Form maior */
    gap: 30px; /* Espaço entre os dois quadros */
    align-items: stretch; /* Garante que tenham a mesma altura */
}

/* Configuração Geral dos Cards (Pontas Retas) */
.contact-info-card, .contact-form-card {
    padding: 50px;
    border-radius: 0; /* PONTAS RETAS (QUADRADOS) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- COLUNA ESQUERDA: CANAIS DE ATENDIMENTO (AZUL) --- */
.contact-info-card {
    background-color: var(--primary); /* Azul da marca */
    color: var(--white);
}

.contact-info-card h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info-card .desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Ícones e Texto de Contato */
.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--white); 
    color: var(--primary);
    border-radius: 50%; /* Ícone redondinho fica elegante dentro do quadrado */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-row h4 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-row p {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* Redes Sociais no box azul */
.social-area {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.social-area h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary);
    border-radius: 0; /* Botões sociais quadrados */
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--darkest);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- COLUNA DIREITA: FORMULÁRIO (BRANCO) --- */
.contact-form-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--darkest);
    font-size: 0.9rem;
}

.form-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ESTILO DOS CAMPOS (INPUTS) - CORRIGIDO */
.form-input, .form-textarea, select {
    width: 100%;
    padding: 15px; /* Espaço interno generoso */
    border: 1px solid #ddd;
    background-color: #f9f9f9; /* Fundo cinza claro */
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 0 !important; /* FORÇA PONTAS RETAS */
    outline: none;
    box-sizing: border-box;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Efeito de Foco (Ao clicar) */
.form-input:focus, .form-textarea:focus, select:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(2, 102, 148, 0.1);
}

/* Checkbox LGPD */
.lgpd-wrapper {
    margin: 20px 0 30px;
}

.lgpd-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.lgpd-label input {
    margin-top: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.lgpd-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

/* Botão Enviar */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0 !important; /* Botão Quadrado */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--darkest);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- MODAL (POP UP - POLÍTICA) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(3, 44, 64, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 0; /* Modal quadrado */
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.close-btn:hover { color: var(--primary); }

.modal-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-body p, .modal-body ul {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 0; /* Remove gap visual no mobile */
    }
    
    .contact-info-card, .contact-form-card {
        padding: 30px;
    }
    
    .form-flex {
        grid-template-columns: 1fr;
    }

    /* Arredonda cantos apenas no mobile para separar visualmente */
    .contact-info-card {
        border-radius: 0 0 0 0; 
        margin-bottom: 20px;
    }
}

/* =======================================================
   PÁGINA DE SIMULADORES (FINAL CORRIGIDO)
   ======================================================= */

.page-simuladores {
    padding-top: 80px; 
    background-color: #f4f6f8;
}

/* --- Hero Section (Ajustado: Menor e Mais alto) --- */
.page-hero {
    background-color: var(--darkest);
    /* Reduzido de 120px para 100px (bem mais próximo do menu) */
    padding: 100px 0 80px; 
    text-align: center;
    color: var(--white);
    margin-bottom: -50px; 
}

.page-hero-content h1 {
    font-size: 3rem; /* Reduzido levemente para não ficar gigante */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* --- Grade --- */
.tools-section {
    padding-bottom: 100px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 10;
}

/* --- Card (Estrutura de Alinhamento) --- */
.tool-card {
    background: var(--white);
    /* Flexbox na vertical para o card inteiro */
    display: flex; 
    flex-direction: column; 
    
    text-decoration: none;
    position: relative;
    padding: 40px;
    height: 100%; /* Garante altura igual */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-radius: 0; 
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-top-accent {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.tool-card:hover .card-top-accent { transform: scaleX(1); }

/* Ícone */
.tool-icon-box {
    width: 60px; height: 60px;
    background-color: #f0f7fa;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
    border-radius: 0;
}
.tool-card:hover .tool-icon-box { background-color: var(--primary); color: var(--white); }

/* --- Conteúdo Interno (Onde acontece a mágica do alinhamento) --- */
.tool-content {
    /* Ocupa todo o espaço restante do card */
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.tool-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--darkest);
    margin-bottom: 15px;
}

.tool-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- Botão --- */
.link-text {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
    
    /* Empurra o botão para o fundo do container .tool-content */
    margin-top: auto; 
}

.tool-card:hover .link-text {
    color: var(--darkest);
    gap: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-hero-content h1 { font-size: 2.2rem; }
    .page-simuladores { padding-top: 100px; }
    .tool-card { padding: 30px; }
}

/* =========================================
   ESTILOS DAS CALCULADORAS (GERAL)
   ========================================= */

/* Hero menor para páginas internas de simulador */
.hero-small {
    padding: 120px 0 60px; /* Menos altura que a vitrine */
}

.back-link-hero {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.back-link-hero:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.back-link-hero i { margin-right: 5px; }

/* Grid da Calculadora */
.calc-section {
    padding: 60px 0 100px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Metade Inputs, Metade Resultado */
    gap: 40px;
    align-items: start;
}

/* Box de Formulário */
.calc-form-box {
    background: var(--white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.calc-form-box h3, .calc-result-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Inputs da Calculadora */
.input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix span {
    position: absolute;
    left: 15px;
    color: #888;
    font-weight: 500;
}

.input-prefix input {
    padding-left: 40px; /* Espaço para o R$ */
}

.btn-calc {
    width: 100%;
    padding: 18px;
    background-color: var(--darkest); /* Botão escuro para destaque */
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    letter-spacing: 1px;
}

.btn-calc:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Box de Resultados */
.calc-result-box {
    background: var(--darkest); /* Fundo Azul Escuro */
    color: var(--white);
    padding: 40px;
    position: sticky; /* Fica fixo ao rolar */
    top: 100px;
}

.calc-result-box h3 {
    color: var(--white);
    border-color: rgba(255,255,255,0.1);
}

.result-big {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.result-big small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.result-big span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4db8ff; /* Azul claro neon para destaque */
}

/* Cards menores de resultado */
.result-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.res-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.res-card i {
    font-size: 1.5rem;
    color: var(--primary); /* Azul médio */
}

.res-card div {
    display: flex;
    flex-direction: column;
}

.res-card small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.res-card strong {
    font-size: 1.1rem;
}

/* Área do Gráfico */
.chart-container {
    background: var(--white);
    padding: 15px;
    border-radius: 4px;
    height: 250px;
    margin-bottom: 20px;
}

/* Insight (Dica) */
.result-insight {
    display: flex;
    gap: 15px;
    background: rgba(255, 235, 59, 0.1); /* Amarelo bem suave */
    border: 1px solid rgba(255, 235, 59, 0.3);
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.result-insight i {
    color: #ffeb3b; /* Amarelo */
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Responsividade */
@media (max-width: 900px) {
    .calc-grid {
        grid-template-columns: 1fr; /* Vira coluna única */
    }
    
    .calc-result-box {
        position: static; /* Remove sticky no mobile */
        order: -1; /* Opcional: Se quiser que o resultado apareça antes do form no mobile, use isso. Se não, remova. */
    }
}

/* =========================================
   SIMULADOR CUSTO CARRO (VERSÃO FINAL)
   ========================================= */

.page-simulador-interna {
    /* Garante espaço para o menu e libera o scroll */
    padding-top: 100px;
    background-color: var(--bg-page);
    min-height: 100vh;
}

/* --- Cabeçalho Interno --- */
.sim-header {
    margin-bottom: 30px;
    /* Removemos animações que escondiam o texto */
}

.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.back-link:hover { transform: translateX(-5px); }
.back-link i { margin-right: 8px; }

.sim-header h1 {
    font-size: 2rem;
    color: var(--darkest);
    font-weight: 700;
    margin-bottom: 5px;
}

.sim-header p {
    font-size: 1rem;
    color: #666;
}

/* --- Grid Principal --- */
.calc-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Inputs 1.2 vs Resultados 1 */
    gap: 40px;
    margin-bottom: 80px; /* Espaço antes do footer */
}

/* Boxes Gerais */
.calc-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 0; /* Quadrado */
}

/* --- Inputs (Esquerda) --- */
.input-section { margin-bottom: 25px; }

.input-section h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-compact { margin-bottom: 15px; }

.form-group-compact label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--darkest);
    margin-bottom: 5px;
}

.form-group-compact input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #333;
    border-radius: 0;
    background-color: #f9f9f9;
    outline: none;
}
.form-group-compact input:focus {
    border-color: var(--primary);
    background-color: #fff;
}

.input-prefix { position: relative; }
.input-prefix span {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #666; font-size: 0.9rem;
}
.input-prefix input { padding-left: 38px; }

.btn-calc-full {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    letter-spacing: 1px;
}
.btn-calc-full:hover { background-color: var(--darkest); }

/* --- Resultados (Direita) --- */
.result-box {
    background: var(--darkest); /* Fundo Azul Escuro */
    color: var(--white);
    border: none;
    height: fit-content; /* Altura ajusta ao conteúdo */
}

.top-results {
    text-align: center;
    margin-bottom: 30px;
}

.big-res small, .small-res small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.big-res span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4db8ff; /* Destaque Neon */
}

.small-res strong {
    font-size: 1.2rem;
    color: var(--white);
}

/* Lista de Barras de Progresso */
.breakdown-list h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.9;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.breakdown-item { margin-bottom: 20px; }

.bd-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.bd-info span:first-child { opacity: 0.8; }
.bd-info span:last-child { font-weight: 600; color: #fff; }

.progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4db8ff; /* Azul Padrão */
    transition: width 0.6s ease-out;
}

/* Cor de alerta para depreciação (opcional) */
.progress-fill.warning { background-color: #ff9f43; } 

/* Responsividade */
@media (max-width: 900px) {
    .calc-layout-grid {
        grid-template-columns: 1fr;
    }
    .page-simulador-interna { padding-top: 120px; }
}

/* --- Novo Botão FIPE --- */
.fipe-btn {
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--primary);
    background-color: #eef7fc;
    padding: 3px 10px;
    border-radius: 4px; /* Levemente arredondado para parecer botão */
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid rgba(2, 102, 148, 0.2);
}

.fipe-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.fipe-btn i { margin-right: 4px; }

/* --- Ajuste na Lista de Detalhes (Resultados) --- */
.bd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--white);
}

.pct-badge {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.pct-badge.warning { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }

.bd-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
    color: rgba(255,255,255,0.7); /* Cinza claro para não poluir */
}

/* =========================================
   COMPARATIVO DE INVESTIMENTOS (NOVO)
   ========================================= */

.comparison-container {
    margin-top: 30px;
}

.comparison-container h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Card de Produto (CDB vs LCI) */
.comp-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.comp-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

/* Cabeçalho do Card (Nome + Taxa) */
.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cores das Tags */
.product-tag.cdb { background-color: #ff9f43; color: #5e3002; } /* Laranja */
.product-tag.lci { background-color: #1dd1a1; color: #0b4936; } /* Verde */

.tax-info {
    font-size: 0.8rem;
    color: #ccc;
}
.tax-info.success { color: #1dd1a1; }

/* Valores Internos */
.comp-values {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cv-item {
    display: flex;
    flex-direction: column;
}

.cv-item small {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 2px;
}

.cv-item strong {
    font-size: 0.95rem;
}

.cv-item.main strong {
    font-size: 1.2rem;
    color: var(--white);
}

/* Responsividade para o Comparativo */
@media (max-width: 400px) {
    .comp-values {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =========================================
   COMPARADOR PRO (CSS ATUALIZADO)
   ========================================= */

/* Ajuste nos cards de comparação */
.comp-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-title {
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tax-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}
.tax-badge.neutral { background: #555; color: #fff; }
.tax-badge.warning { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }
.tax-badge.success { background: rgba(29, 209, 161, 0.2); color: #1dd1a1; }

/* Corpo do Card */
.comp-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.comp-input-area {
    display: flex;
    flex-direction: column;
}

.comp-input-area label, .comp-input-area small {
    font-size: 0.75rem;
    color: #ccc;
    margin-bottom: 4px;
}

/* Input pequeno de % dentro do card */
.pct-input {
    width: 70px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    text-align: center;
}

.pct-input:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
    border-color: var(--white);
}

.comp-result {
    text-align: right;
}

.comp-result small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 2px;
}

.comp-result strong {
    font-size: 1.1rem;
    color: var(--white); /* Padrão, mas sobrescrito pelo ID inline */
}

/* Responsividade */
@media (max-width: 480px) {
    .comp-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .comp-result { text-align: left; }
}

/* =========================================
   SIMULADOR INDEPENDÊNCIA (FIRE)
   ========================================= */

/* Box de Veredito (Topo do Resultado) */
.verdict-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.verdict-box i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
}

.verdict-text {
    display: flex;
    flex-direction: column;
}

.verdict-text span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.verdict-text small {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
}

/* Cores de Status */
.verdict-box.success {
    background: rgba(29, 209, 161, 0.15);
    border-color: #1dd1a1;
}
.verdict-box.success i { color: #1dd1a1; }

.verdict-box.warning {
    background: rgba(255, 159, 67, 0.15);
    border-color: #ff9f43;
}
.verdict-box.warning i { color: #ff9f43; }

/* Cards Escuros de Resultado */
.res-card-dark {
    background: rgba(0,0,0,0.2); /* Mais escuro que o fundo azul */
    padding: 15px;
    border-radius: 4px;
    flex: 1; /* Divide espaço igual */
    text-align: center;
    position: relative;
}

.res-card-dark small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.res-card-dark span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

/* Tag pequena dentro do card */
.mini-tag {
    font-size: 0.65rem;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    color: #ccc;
}

.mini-tag.success { color: #1dd1a1; background: rgba(29, 209, 161, 0.1); }
.mini-tag.warning { color: #ff9f43; background: rgba(255, 159, 67, 0.1); }

/* =========================================
   TOOLTIP (BALÃOZINHO DE AJUDA)
   ========================================= */

/* Container para alinhar label e ícone na mesma linha */
.label-with-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* O wrapper do ícone e do texto escondido */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

/* O ícone de interrogação */
.help-icon {
    font-size: 0.9rem;
    color: var(--primary); /* Azul da marca */
    cursor: help;
    transition: 0.2s;
}

.help-icon:hover {
    color: var(--darkest);
}

/* O conteúdo do balãozinho (Escondido por padrão) */
.tooltip-content {
    visibility: hidden;
    width: 250px;
    background-color: #333; /* Fundo escuro */
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    
    /* Posicionamento */
    position: absolute;
    z-index: 100;
    bottom: 140%; /* Fica acima do ícone */
    left: 50%;
    margin-left: -125px; /* Centraliza (metade da largura) */
    
    /* Efeitos */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Setinha do balão */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%; /* Embaixo do balão */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Mostrar ao passar o mouse */
.tooltip-wrapper:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}