/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Valores padrão - serão sobrescritos pelo PHP */
    --primaria: #1a56db;
    --secundaria: #16a34a;
    --fundo: #f8fafc;
    --header_bg: #ffffff;
    --header_texto: #1a202c;
    --footer_bg: #1f2937;
    --footer_texto: #9ca3af;
    --footer_titulo: #ffffff;
    --botoes: #1a56db;
    --texto_botoes: #ffffff;
    --titulos_geral: #111827;
    --texto_geral: #374151;
    --hero_titulo: #ffffff;
    --hero_texto: #e2e8f0;
    --hero_botao: #1a56db;
    --hero_texto_botao: #ffffff;
    --produtos_titulo: #111827;
    --produtos_texto: #374151;
    --produtos_card_bg: #ffffff;
    --produtos_card_titulo: #111827;
    --produtos_card_texto: #374151;
    --produtos_icone: #1a56db;
    --sobre_titulo: #111827;
    --sobre_texto: #374151;
    --simulacao_titulo: #111827;
    --simulacao_texto: #374151;
    --simulacao_bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--texto_geral);
    background: var(--fundo);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Removido o position: sticky */
.header {
    background: var(--header_bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* position: sticky; removido */
    /* top: 0; removido */
    /* z-index: 1000; removido */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--header_texto);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primaria);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-color: var(--primaria);
    padding: 100px 0;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--hero_titulo);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--hero_texto);
}

.btn-primary {
    display: inline-block;
    background: var(--botoes);
    color: var(--texto_botoes);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0.9;
}

/* Seção de Produtos */
.section-produtos {
    padding: 80px 0;
    background: var(--fundo);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--titulos_geral);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--texto_geral);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.produto-card {
    background: var(--produtos_card_bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.produto-card .icon {
    font-size: 3rem;
    color: var(--produtos_icone);
    margin-bottom: 15px;
}

.produto-card h3 {
    color: var(--produtos_card_titulo);
    margin-bottom: 10px;
}

.produto-card p {
    color: var(--produtos_card_texto);
    font-size: 0.95rem;
}

/* Seção Sobre */
.section-sobre {
    padding: 80px 0;
    background: white;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sobre-text h2 {
    color: var(--sobre_titulo);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sobre-text p {
    font-size: 1.1rem;
    color: var(--sobre_texto);
    line-height: 1.8;
}

.sobre-image img {
    width: 100%;
    border-radius: 10px;
}

/* Seção Simulação */
.section-simulacao {
    padding: 80px 0;
    background: var(--fundo);
}

.simulacao-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--simulacao_bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Rodapé */
.footer {
    background: var(--footer_bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--footer_titulo);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer p, .footer a {
    color: var(--footer_texto);
    text-decoration: none;
    line-height: 2;
}

.footer a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--footer_titulo);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primaria);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--footer_texto);
}

/* ===== SIMULADOR WIZARD ===== */
.simulador-wizard {
    max-width: 800px;
    margin: 0 auto;
}

/* Header do Wizard */
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.produto-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.produto-info i {
    font-size: 2rem;
    color: var(--primaria);
}

.produto-info h3 {
    font-size: 1.2rem;
    color: var(--titulos_geral);
    margin: 0;
}

.produto-info p {
    font-size: 0.9rem;
    color: var(--texto_geral);
    margin: 0;
}

.taxa-info {
    text-align: right;
    background: white;
    padding: 8px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.taxa-info .taxa-label {
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taxa-info .taxa-valor {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primaria);
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 30px;
    padding: 0 10px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.step-indicator.active .step-number {
    background: var(--primaria);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-label {
    font-size: 0.7rem;
    color: #a0aec0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.step-indicator.active .step-label {
    color: var(--primaria);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 5px;
    transition: all 0.3s;
    position: relative;
    top: -15px;
}

.step-line.active {
    background: var(--primaria);
}

/* Conteúdo dos Passos */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    text-align: center;
    margin-bottom: 30px;
}

.step-title i {
    font-size: 2.5rem;
    color: var(--primaria);
    display: block;
    margin-bottom: 10px;
}

.step-title h4 {
    font-size: 1.5rem;
    color: var(--titulos_geral);
    margin: 0 0 5px 0;
}

.step-title p {
    color: var(--texto_geral);
    font-size: 0.95rem;
    margin: 0;
}

.step-title.resultado-title i {
    color: #16a34a;
}

/* Formulário */
.step-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.step-form .form-group {
    position: relative;
}

.step-form .form-group.full-width {
    grid-column: 1 / -1;
}

.step-form label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.step-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f7fafc;
}

.step-form input:focus {
    outline: none;
    border-color: var(--primaria);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.step-form .input-icon {
    position: absolute;
    left: 15px;
    bottom: 14px;
    color: #a0aec0;
}

.range-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Sugestões de Valores e Prazos */
.valor-sugestoes,
.prazo-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.btn-sugestao {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-sugestao:hover {
    border-color: var(--primaria);
    background: white;
    color: var(--primaria);
    transform: translateY(-2px);
}

/* Taxa Display */
.info-taxa {
    grid-column: 1 / -1;
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primaria);
}

.taxa-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #2d3748;
}

.taxa-display strong {
    font-size: 1.2rem;
    color: var(--primaria);
}

/* Ações dos Passos */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.step-actions .btn-next {
    margin-left: auto;
}

.btn-back {
    padding: 12px 25px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #cbd5e0;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Resultado */
.resultado-content {
    animation: fadeIn 0.5s ease;
}

.resultado-resumo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-item .resumo-label {
    color: #718096;
    font-size: 0.85rem;
}

.resumo-item .resumo-valor {
    font-weight: 600;
    color: #2d3748;
}

.resumo-item.destaque .resumo-valor {
    color: var(--primaria);
    font-size: 1.1rem;
}

.resultado-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366 !important;
}

.btn-whatsapp:hover {
    background: #128C7E !important;
}

/* Tabela de Parcelas */
.tabela-parcelas {
    margin-top: 20px;
}

.tabela-parcelas h4 {
    color: var(--titulos_geral);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tabela-parcelas h4 i {
    color: var(--primaria);
    margin-right: 8px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.tabela-parcelas table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tabela-parcelas table th {
    background: #f7fafc;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
}

.tabela-parcelas table td {
    padding: 10px 15px;
    border-bottom: 1px solid #edf2f7;
}

.tabela-parcelas table tr:nth-child(even) {
    background: #fafafa;
}

.tabela-parcelas table tr:hover {
    background: #f7fafc;
}

/* Responsivo */
@media (max-width: 768px) {
    .step-form {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .step-actions .btn-next {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .resultado-resumo {
        grid-template-columns: 1fr;
    }
    
    .wizard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .produto-info {
        flex-direction: column;
        text-align: center;
    }
    
    .taxa-info {
        text-align: center;
        width: 100%;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-line {
        top: -12px;
    }
    
    .valor-sugestoes,
    .prazo-sugestoes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step-title h4 {
        font-size: 1.2rem;
    }
    
    .step-title i {
        font-size: 2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .step-label {
        font-size: 0.5rem;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .simulacao-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .logo img {
        height: 40px;
        max-width: 160px;
    }
}