/* assets/css/financiamento-vs-aluguel.css */
/* CSS ISOLADO - Apenas para Calculadora de Financiamento vs Aluguel */
/* CORES FINANCEIRAS APLICADAS: Verde dinheiro + Dourado riqueza */

/* ===================================
   VARIÁVEIS DE CORES FINANCEIRAS
   ================================== */
:root {
    --primary: #27ae60;          /* Verde dinheiro */
    --secondary: #2ecc71;        /* Verde crescimento */
    --accent: #f1c40f;           /* Dourado riqueza */
    --light: #e8f5e8;            /* Fundo verde claro */
    --gradient: linear-gradient(135deg, #27ae60, #2ecc71);
    --dark-green: #1e8449;       /* Verde escuro */
    --light-gold: #fef9e7;       /* Dourado claro */
}

/* ===================================
   SEÇÃO DA CALCULADORA FINANCIAMENTO VS ALUGUEL
   ================================== */
.financiamento-calculator-section {
    margin-bottom: 3rem;
}

.financiamento-header {
    text-align: center;
    margin-bottom: 2rem;
}

.financiamento-header h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.financiamento-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.financiamento-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.15);
    border: 1px solid var(--secondary);
}

.financiamento-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO FINANCIAMENTO
   ================================== */
.financiamento-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 1rem;
}

.financiamento-tab-btn {
    background: var(--light);
    border: 2px solid var(--secondary);
    color: var(--primary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.financiamento-tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--dark-green);
    transform: translateY(-2px);
}

.financiamento-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--dark-green);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS FINANCIAMENTO
   ================================== */
.financiamento-tab-content {
    display: none;
}

.financiamento-tab-content.active {
    display: block;
    animation: fadeInFinanciamentoTab 0.3s ease;
}

@keyframes fadeInFinanciamentoTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   INPUTS E DADOS FINANCIAMENTO
   ================================== */
.financiamento-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.financiamento-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.financiamento-input-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.financiamento-input-group input,
.financiamento-input-group select {
    padding: 0.8rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.financiamento-input-group input:focus,
.financiamento-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.financiamento-money-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.financiamento-money-input:focus-within {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.financiamento-money-input span {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.financiamento-money-input input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
}

.financiamento-money-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

/* ===================================
   CONTAINERS ESPECÍFICOS POR TIPO
   ================================== */
.financiamento-imovel-data,
.financiamento-finance-data,
.financiamento-rent-data,
.financiamento-costs-data,
.financiamento-projections-data {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.financiamento-costs-data h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.financiamento-costs-data h4:first-child {
    margin-top: 0;
}

/* ===================================
   BOTÃO CALCULAR FINANCIAMENTO
   ================================== */
.financiamento-calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.financiamento-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.financiamento-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary) 100%);
}

.financiamento-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO DA COMPARAÇÃO
   ================================== */
.financiamento-resultado {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.financiamento-resultado h3 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.financiamento-resultado-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Resultado Principal - Vencedor */
.financiamento-resultado-principal {
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.financiamento-resultado-principal h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
}

.financiamento-vencedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.financiamento-winner-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.financiamento-winner-text {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.financiamento-winner-economia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.financiamento-winner-economia span:first-child {
    font-size: 1rem;
    opacity: 0.9;
}

.financiamento-economy-value {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.financiamento-winner-period {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Detalhamento */
.financiamento-detalhamento {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--secondary);
}

.financiamento-detalhamento h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.financiamento-item-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.financiamento-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.financiamento-item:hover {
    transform: translateX(5px);
    background: #d5f4e6;
    border-left-color: var(--primary);
}

.financiamento-item.destaque {
    background: var(--primary);
    color: white;
    border-left-color: var(--dark-green);
    font-weight: bold;
}

.financiamento-item.destaque:hover {
    background: var(--dark-green);
}

.financiamento-item-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.financiamento-item.destaque .financiamento-item-label {
    color: white;
}

.financiamento-item-value {
    font-weight: bold;
    color: var(--dark-green);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.financiamento-item.destaque .financiamento-item-value {
    color: var(--accent);
}

/* Análise Detalhada */
.financiamento-analise {
    background: var(--light-gold);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent);
}

.financiamento-analise h4 {
    color: #b7950b;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.financiamento-analise-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.financiamento-analise-item {
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    color: #7d6608;
    font-size: 0.95rem;
}

/* Aviso Legal */
.financiamento-aviso-legal {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.financiamento-aviso-legal p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO FINANCIAMENTO
   ================================== */
.financiamento-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.financiamento-explanation h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.financiamento-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
}

.financiamento-step h4 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.financiamento-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   EXPLICAÇÃO DETALHADA COM BASE LEGAL - FINANCIAMENTO
   ================================== */
.financiamento-detailed-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light) 0%, #d5f4e6 100%);
    border: 2px solid var(--secondary);
    border-radius: 15px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.1);
}

.financiamento-detailed-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.financiamento-legal-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.financiamento-legal-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
}

.financiamento-legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
    border-color: var(--primary);
}

.financiamento-legal-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.financiamento-legal-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.financiamento-legal-item:hover {
    background: #d5f4e6;
    transform: translateY(-2px);
}

.financiamento-legal-artigo {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    align-self: flex-start;
    min-width: 200px;
}

.financiamento-legal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.financiamento-legal-content p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.95rem;
}

.financiamento-legal-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Detalhes dos Cálculos */
.financiamento-calculo-detalhe {
    background: var(--light-gold);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 0.5rem;
    width: 100%;
}

.financiamento-calculo-detalhe p {
    font-family: 'Courier New', monospace;
    color: #7d6608;
    font-size: 0.9rem;
    margin: 0.4rem 0;
    line-height: 1.5;
}

.financiamento-calculo-detalhe p:first-child {
    font-weight: bold;
    color: #b7950b;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-family: inherit;
}

.financiamento-calculo-detalhe p strong {
    color: #b7950b;
    font-weight: bold;
}

/* Footer da Explicação Legal */
.financiamento-legal-footer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.financiamento-legal-footer p {
    margin: 0.5rem 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.financiamento-legal-footer p:first-child {
    font-weight: 600;
    color: #854d0e;
}

.financiamento-legal-footer strong {
    color: #854d0e;
}

/* ===================================
   FÓRMULA E EXEMPLOS FINANCIAMENTO
   ================================== */
.financiamento-formula {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.financiamento-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.financiamento-examples.hidden {
    display: none;
}

.financiamento-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.financiamento-example-btn {
    background: var(--light);
    border: 2px solid var(--secondary);
    color: var(--dark-green);
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.financiamento-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--dark-green);
}

.financiamento-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.3s ease;
}

.financiamento-help.hidden {
    display: none;
}

/* ===================================
   CONTEÚDO EDUCACIONAL FINANCIAMENTO
   ================================== */
.financiamento-educational-content {
    margin-top: 3rem;
}

.financiamento-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--secondary);
}

.financiamento-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.financiamento-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.financiamento-content-block strong {
    color: var(--primary);
}

/* Formula Display */
.financiamento-formula-display {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.financiamento-formula-display h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.financiamento-formula-display .formula p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Grids Específicos */
.financiamento-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.financiamento-example-item {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    border: 2px solid;
}

.financiamento-example-item.financiamento {
    background: var(--light);
    border-color: var(--secondary);
}

.financiamento-example-item.aluguel {
    background: var(--light-gold);
    border-color: var(--accent);
}

.financiamento-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.financiamento-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.financiamento-example-item.financiamento .financiamento-example-icon {
    color: var(--primary);
}

.financiamento-example-item.aluguel .financiamento-example-icon {
    color: var(--accent);
}

.financiamento-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.pros-cons p {
    text-align: left;
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #444;
}

.pros-cons strong {
    color: #2c3e50;
    font-size: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Grids de Dicas */
.financiamento-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.financiamento-tip-item {
    background: var(--light);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.financiamento-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.financiamento-tip-item h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.financiamento-tip-item p {
    color: var(--primary);
    margin: 0;
    font-size: 0.95rem;
}

/* Grids de Dicas Financeiras */
.financiamento-dicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.financiamento-dica-item {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.financiamento-dica-item.urgente {
    background: var(--light);
    border: 2px solid var(--secondary);
}

.financiamento-dica-item.importante {
    background: var(--light-gold);
    border: 2px solid var(--accent);
}

.financiamento-dica-item.atencao {
    background: #f3e5f5;
    border: 2px solid #9c27b0;
}

.financiamento-dica-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.financiamento-dica-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.financiamento-dica-item.urgente h4 {
    color: var(--dark-green);
}

.financiamento-dica-item.importante h4 {
    color: #b7950b;
}

.financiamento-dica-item.atencao h4 {
    color: #7b1fa2;
}

.financiamento-dica-item p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Exemplo de Solução */
.financiamento-example-solution {
    background: var(--light);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.financiamento-example-solution h4 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.financiamento-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.financiamento-solution-step h5 {
    color: var(--dark-green);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.financiamento-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.financiamento-solution-final {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.financiamento-solution-final h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.financiamento-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ E REFERENCIAS ESPECÍFICAS
   ================================== */
.faq-container {
    margin-top: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
}

.faq-question {
    background: var(--light);
    color: var(--primary);
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    width: 100%;
    text-align: left;
    list-style: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #d5f4e6;
    color: var(--dark-green);
}

.faq-question::before {
    content: '+';
    float: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.faq-item[open] .faq-question::before {
    content: '−';
}

.faq-answer {
    padding: 1rem;
    background: white;
    color: #444;
    border-top: 1px solid var(--light);
}

.faq-answer p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

.references-container {
    margin-top: 1rem;
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--secondary);
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    color: #444;
    line-height: 1.6;
}

.reference-item:hover {
    transform: translateX(5px);
    border-left-color: var(--primary);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
}

.reference-item em {
    color: var(--primary);
    font-style: italic;
}

.credibilidade-container {
    background: linear-gradient(135deg, var(--light) 0%, #d5f4e6 100%);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credibilidade-icon {
    font-size: 2rem;
    color: var(--accent);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.credibilidade-content {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: bold;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* ===================================
   ANIMAÇÕES FINANCIAMENTO
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE FINANCIAMENTO
   ================================== */
@media (max-width: 1024px) {
    .financiamento-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .financiamento-tabs {
        gap: 0.3rem;
    }
    
    .financiamento-tab-btn {
        min-width: 100px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .financiamento-header h1 {
        font-size: 2rem;
    }
    
    .financiamento-container {
        padding: 1rem;
    }
    
    .financiamento-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .financiamento-tab-btn {
        width: 180px;
        font-size: 0.9rem;
    }
    
    .financiamento-input-group {
        min-width: auto;
    }
    
    .financiamento-calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .financiamento-winner-icon {
        font-size: 3rem;
    }
    
    .financiamento-winner-text {
        font-size: 1.6rem;
    }
    
    .financiamento-economy-value {
        font-size: 1.5rem;
    }
    
    .financiamento-examples-grid,
    .financiamento-tips-grid,
    .financiamento-dicas-grid {
        grid-template-columns: 1fr;
    }
    
    .financiamento-detailed-explanation {
        padding: 1.5rem;
    }
    
    .financiamento-legal-section {
        padding: 1rem;
    }
    
    .financiamento-legal-artigo {
        min-width: 180px;
        font-size: 0.85rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .financiamento-header h1 {
        font-size: 1.8rem;
    }
    
    .financiamento-container {
        padding: 0.8rem;
    }
    
    .financiamento-tab-btn {
        width: 160px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .financiamento-calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .financiamento-winner-icon {
        font-size: 2.5rem;
    }
    
    .financiamento-winner-text {
        font-size: 1.4rem;
    }
    
    .financiamento-economy-value {
        font-size: 1.3rem;
    }
    
    .financiamento-item {
        padding: 0.6rem;
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .financiamento-example-icon {
        font-size: 2rem;
    }
    
    .financiamento-detailed-explanation {
        padding: 1rem;
    }
    
    .financiamento-legal-section {
        padding: 0.8rem;
    }
    
    .financiamento-legal-artigo {
        min-width: 160px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .financiamento-legal-item {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* ===================================
   BADGES DE PROGRESSO NAS ABAS
   ADICIONAR NO financiamento-vs-aluguel.css
   ================================== */

.tab-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Ajuste para botões das abas comportarem os badges */
.financiamento-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ===================================
   BANNER EXPLICATIVO E PROGRESSO
   ================================== */

/* Banner explicativo com cores da calculadora */
.financiamento-instrucoes {
  background: var(--gradient) !important;
  color: white !important;
  padding: 1.5rem !important;
  border-radius: 12px !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}

.financiamento-instrucoes h4 {
  margin: 0 0 1rem 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.financiamento-instrucoes p {
  margin: 0 !important;
}

/* Indicador de progresso com cores da calculadora */
.financiamento-progress-indicator {
  background: var(--gradient) !important;
  border-radius: 12px !important;
  padding: 1.2rem !important;
  margin: 1.5rem 0 !important;
  text-align: center !important;
  display: block !important;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}

#progressBar {
  background: var(--accent) !important;
  height: 100% !important;
  width: 0% !important;
  transition: width 0.3s ease !important;
  display: block !important;
  border-radius: 4px;
}

/* Responsivo - esconder texto do badge em telas pequenas */
@media (max-width: 768px) {
  .tab-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  
  .financiamento-instrucoes {
    padding: 1rem !important;
  }
  
  .financiamento-progress-indicator {
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  .financiamento-tab-btn {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
  
  .tab-badge {
    margin-left: 4px;
  }
  
  .financiamento-instrucoes h4 {
    font-size: 1rem !important;
  }
  
  .financiamento-instrucoes p,
  .financiamento-instrucoes small {
    font-size: 0.85rem !important;
  }
}

/* Adicionar no financiamento-vs-aluguel.css */
.financiamento-explanation h3,
.financiamento-explanation h4 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}

.financiamento-explanation p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.financiamento-step {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}