/* =======================================================
   1. ESTILOS GERAIS E VARIÁVEIS
   ======================================================= */
:root {
    --gold: #D4AF37;
    --dark-gold: #c0952d;
    --black: #121212;
    --dark-gray: #1a1a1a;
    --text-gray: #cccccc;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --red-close: #dc3545;
    --green-valid: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--black);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { 
    padding: 100px 0; 
}

p { 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    line-height: 1.8; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-header h2 { 
    font-family: 'Merriweather', serif; 
    font-size: 2.5rem; 
    color: var(--gold); 
    margin-bottom: 15px; 
}

/* =======================================================
   2. CABEÇALHO E NAVEGAÇÃO
   ======================================================= */
   /* Botão "Recusar" do banner de cookies — menos destaque, sem esconder */
.btn-cookie-reject {
    padding: 1px 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.btn-cookie-reject:hover {
    opacity: 0.9;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.main-name {
    font-family: 'Merriweather', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.sub-name {
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    color: #fff;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
}

/* =======================================================
   3. BOTÕES E ELEMENTOS GERAIS
   ======================================================= */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    text-decoration: none;
}

.btn-outline {
    border-color: var(--gold);
    color: var(--gold);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    text-decoration: none;
}

/* =======================================================
   4. ESTILOS DAS SEÇÕES (HERO, SOBRE, SERVIÇOS, ETC)
   ======================================================= */

/* --- Seção Hero --- */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1519904252196-90f1a6ea05a2?q=80&w=2071&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.2rem;
    margin-bottom: 25px;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Seção Sobre --- */
.about-content { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
}
.about-text, .about-image { 
    flex: 1; 
}
.about-image img { 
    width: 100%; 
    border-radius: 10px; 
    box-shadow: var(--shadow); 
}

/* --- Seção Serviços --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}
.service-card { 
    background: var(--dark-gray); 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}
.service-card:hover { 
    transform: translateY(-10px); 
}
.service-icon { 
    background: var(--gold); 
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    color: var(--black); 
}
.service-content { 
    padding: 30px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.service-content h3 { 
    font-size: 1.5rem; 
    color: var(--gold); 
    margin-bottom: 15px; 
}
.service-content p { 
    flex-grow: 1; 
    margin-bottom: 20px; 
}
.service-content .service-link { 
    color: var(--gold); 
    font-weight: bold; 
    margin-top: auto; 
}

/* --- Seção CTA Simulador --- */
#cta-simulador {
    background-color: var(--gold);
    color: var(--black);
    padding: 80px 0;
    text-align: center;
}
#cta-simulador h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--black);
}
#cta-simulador p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #333;
}
#cta-simulador .btn-primary {
    background-color: var(--black);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- Seção Depoimentos (Carrossel) --- */
#depoimentos { 
    background-color: var(--dark-gray); 
}
.testimonial-carousel {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-card-container {
    width: 100%;
}
.testimonial-card {
    background: var(--black);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border-left: 5px solid var(--gold);
    box-shadow: var(--shadow);
    display: none;
}
.testimonial-card.active {
    display: block;
    animation: fadeIn 0.6s ease;
}
.testimonial-card .fa-quote-left { font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.testimonial-card p { font-style: italic; font-size: 1.1rem; margin-bottom: 25px; }
.testimonial-card .author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.testimonial-card .author-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.testimonial-card .author-details { font-size: 0.9rem; color: var(--gold); }
.testimonial-card .author-date { font-size: 0.8rem; color: #888; margin-top: 5px; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    z-index: 10;
}
.carousel-btn:hover { background: var(--gold); color: var(--black); }
.prev-btn { left: -60px; }
.next-btn { right: -60px; }


/* --- Seção FAQ (Accordion) --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}
.faq-item {
    border-bottom: 1px solid #333;
}
.faq-question {
    width: 100%;
    background: var(--dark-gray);
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.faq-question:hover { background-color: #2a2a2a; }
.faq-question::after {
    content: '\f078'; /* Ícone de seta para baixo */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--gold);
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: var(--black);
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 20px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    padding: 25px 20px;
    max-height: 300px;
}
.susep-ref {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}


/* --- Seção de Contato e Formulário --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; align-items: center; gap: 15px; }
.contact-icon { font-size: 1.5rem; color: var(--gold); }
.contact-item h3 a { color: var(--text-gray); }
.contact-form { background: var(--dark-gray); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; position: relative; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #333; background: #1a1a1a; border-radius: 8px; color: var(--text-gray); font-size: 1rem; }
.form-group input[readonly] { background-color: #222; cursor: not-allowed; }

/* =======================================================
   5. ESTILOS DAS PÁGINAS (SIMULADOR, AGRADECIMENTO)
   ======================================================= */

/* --- Página do Simulador Interativo --- */
.interactive-simulator {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 80vh;
}
.simulator-steps-container {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: var(--dark-gray);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.step-content.active {
    display: block;
}
.step-content .form-group {
    text-align: left;
}
.step-content .form-group label,
.step-content .form-group .group-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.insurance-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.sim-type-card {
    background-color: var(--black);
    border: 2px solid #333;
    border-radius: 10px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sim-type-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    background-color: #1f1f1f;
}
.sim-type-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}
.sim-type-card span {
    font-weight: 600;
    color: #fff;
}
.progress-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.progress-container.visible {
    opacity: 1;
}
.progress-bar-track {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
}
.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 5px;
    transition: width 0.5s ease;
}
.progress-icon, .progress-goal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--gold);
    transition: left 0.5s ease;
}
.progress-icon {
    left: 0%;
}
.progress-goal {
    right: -15px;
}
.progress-text {
    text-align: center;
    font-weight: bold;
    color: var(--gold);
    margin-top: 15px;
    font-size: 1.2rem;
}
.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}
.btn-back {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    padding: 10px;
}
.btn-back:hover {
    color: #fff;
}

.radio-group label {
    font-weight: normal;
    margin-left: 5px;
    margin-right: 20px;
}

.helper-text {
    display: block;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    width: 100%;
    text-align: left;
}

/* --- NOVO: Estilos para Toggle Switch --- */
.toggle-switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 28px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--gold);
}
input:checked + .slider:before {
    transform: translateX(22px);
}

/* --- NOVO: Estilos para Validação de CPF --- */
.form-group input.cpf-valid {
    border-color: var(--green-valid);
}
.form-group input.cpf-invalid {
    border-color: var(--red-close);
}
.form-group .cpf-feedback-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}
.cpf-feedback-icon.valid { color: var(--green-valid); }
.cpf-feedback-icon.invalid { color: var(--red-close); }


/* --- Página de Agradecimento --- */
.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}
.thank-you-content {
    max-width: 600px;
}
.thank-you-icon {
    font-size: 5rem;
    color: #25d366;
    margin-bottom: 25px;
}
.thank-you-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.thank-you-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* =======================================================
   6. RODAPÉ E ELEMENTOS FLUTUANTES
   ======================================================= */
footer { 
    background: var(--dark-gray); 
    color: #777; 
    padding: 40px 0; 
    text-align: center; 
}
footer p { 
    font-size: 0.9rem; 
}
.social-icons { 
    margin-bottom: 15px; 
}
.social-icons a { 
    font-size: 1.5rem; 
    margin: 0 10px; 
    color: var(--text-gray);
}
.social-icons a:hover { 
    color: var(--gold); 
    text-decoration: none; 
}

.floating-whatsapp { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; 
    height: 60px; 
    background-color: #25d366; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 2rem; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    z-index: 1000; 
    animation: pulse 2s infinite; 
    transition: all 0.3s ease; 
}
.floating-whatsapp:hover { 
    transform: scale(1.1); 
}

/* =======================================================
   7. ANIMAÇÕES E MODAL
   ======================================================= */
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } 
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

[data-anime] { 
    opacity: 0; 
    transform: translate3d(0, 50px, 0); 
    transition: opacity 0.8s ease, transform 0.8s ease; 
}
[data-anime].animate { 
    opacity: 1; 
    transform: translate3d(0, 0, 0); 
}

.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}
.modal-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}
.modal-content { 
    background-color: var(--dark-gray); 
    padding: 30px; 
    border-radius: 10px; 
    width: 90%; 
    max-width: 700px; 
    max-height: 80vh; 
    overflow-y: auto; 
    position: relative; 
    box-shadow: var(--shadow); 
    transform: scale(0.9); 
    transition: transform 0.3s ease; 
}
.modal-overlay.active .modal-content { 
    transform: scale(1); 
}
.modal-close { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: none; 
    border: none; 
    font-size: 1.8rem; 
    color: var(--red-close); 
    cursor: pointer; 
    transition: color 0.3s ease; 
}
.modal-close:hover { 
    color: #fff; 
}
.modal-content h1, .modal-content h2 { 
    font-family: 'Merriweather', serif; 
    color: var(--gold); 
}
.modal-content ul { 
    list-style-type: disc; 
    padding-left: 25px; 
}

/* =======================================================
   8. MEDIA QUERIES (RESPONSIVIDADE)
   ======================================================= */
@media (max-width: 900px) {
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}

@media (max-width: 768px) {
    .main-name { font-size: 1.5rem; }
    .sub-name { font-size: 0.6rem; }
    nav { 
        position: fixed; 
        top: 80px; 
        right: -100%; 
        background: var(--dark-gray); 
        flex-direction: column; 
        width: 100%; 
        height: calc(100vh - 80px); 
        padding: 40px; 
        transition: right 0.4s ease; 
        align-items: center; 
        justify-content: center; 
    }
    nav.active { 
        right: 0; 
    }
    .menu-toggle { 
        display: block; 
        z-index: 1001; 
    }
    .hero h1 { 
        font-size: 2.3rem; 
    }
    .btn-container { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
        align-items: center; 
    }
    .btn-outline { 
        margin-left: 0; 
    }
    .about-content, .contact-container { 
        flex-direction: column; 
        grid-template-columns: 1fr; 
    }
}