/* assets/css/investimento-cdb.css */
/* CSS ISOLADO - Apenas para Calculadora de CDB */
/* CORES FINANCEIRO: Verde dinheiro + dourado riqueza */

/* ===================================
   SOBRESCREVER CSS BASE - TÍTULO
   ================================== */
/* Regra específica para sobrescrever o CSS base que usa !important */
/* Estratégia 1: Maior especificidade */
.main-container .content section.cdb-calculator-section .cdb-header h1 {
    color: #27ae60 !important; /* Verde dinheiro */
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(39, 174, 96, 0.2) !important;
}

/* Estratégia 2: Sobrescrever a variável CSS no contexto específico */
.cdb-calculator-section {
    --primary: #27ae60; /* Verde dinheiro */
    --primary-financeiro: #27ae60;
}

/* ===================================
   SEÇÃO DA CALCULADORA CDB
   ================================== */
.cdb-calculator-section {
    margin-bottom: 3rem;
}

.cdb-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cdb-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cdb-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.cdb-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
}

.cdb-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS CDB - FINANCEIRO
   ================================== */
.cdb-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 1rem;
}

.cdb-tab-btn {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    color: #1e8449; /* Verde escuro */
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 120px;
}

.cdb-tab-btn:hover {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    transform: translateY(-2px);
}

.cdb-tab-btn.active {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    border-color: #2ecc71; /* Verde crescimento */
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS CDB
   ================================== */
.cdb-tab-content {
    display: none;
}

.cdb-tab-content.active {
    display: block;
    animation: fadeInCdbTab 0.3s ease;
}

@keyframes fadeInCdbTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   DADOS BÁSICOS CDB - FINANCEIRO
   ================================== */
.cdb-dados-basicos {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cdb-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cdb-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cdb-input-group label {
    font-weight: 600;
    color: #27ae60; /* Verde dinheiro */
    font-size: 0.95rem;
}

.cdb-input-group input,
.cdb-input-group select {
    padding: 0.8rem;
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.cdb-input-group input:focus,
.cdb-input-group select:focus {
    outline: none;
    border-color: #2ecc71; /* Verde crescimento */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.cdb-money-input,
.cdb-percent-input,
.cdb-time-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cdb-money-input:focus-within,
.cdb-percent-input:focus-within,
.cdb-time-input:focus-within {
    border-color: #2ecc71; /* Verde crescimento */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.cdb-money-input span:first-child,
.cdb-percent-input span:last-child,
.cdb-time-input span:last-child {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.cdb-money-input input,
.cdb-percent-input input,
.cdb-time-input input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
}

.cdb-money-input input:focus,
.cdb-percent-input input:focus,
.cdb-time-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

.cdb-info-cdi {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
    text-align: center;
}

.cdb-info-cdi p {
    margin: 0;
    color: #27ae60; /* Verde dinheiro */
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===================================
   BOTÃO CALCULAR CDB - FINANCEIRO
   ================================== */
.cdb-calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.cdb-calculate-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71); /* Gradiente verde financeiro */
    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);
}

.cdb-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.cdb-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO CDB - FINANCEIRO
   ================================== */
.cdb-resultado {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.cdb-resultado h3 {
    color: #1e8449; /* Verde escuro financeiro */
    margin-bottom: 1.5rem;
    text-align: center;
}

.cdb-resultado-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Resultado Principal */
.cdb-resultado-principal {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cdb-resultado-principal h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cdb-valor-final {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.cdb-currency {
    font-size: 1.3rem;
    opacity: 0.8;
}

.cdb-value {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.cdb-rendimento-total {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.cdb-gain {
    font-size: 1.2rem;
    color: #d5f4e6; /* Verde muito claro */
}

.cdb-rendimento-total span:nth-child(2) {
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.cdb-percent {
    font-size: 1.1rem;
    color: #d5f4e6; /* Verde muito claro */
    font-weight: 600;
}

.cdb-periodo {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Tributação */
.cdb-tributacao {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.cdb-tributacao h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1rem;
    border-bottom: 2px solid #27ae60; /* Verde dinheiro */
    padding-bottom: 0.5rem;
}

.cdb-tributo-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cdb-tributo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
    background: #e8f5e8; /* Verde claro financeiro */
    transition: all 0.3s ease;
}

.cdb-tributo-item:hover {
    transform: translateX(5px);
    background: #d5f4e6; /* Verde mais claro */
}

.cdb-tributo-item.rendimento-liquido {
    background: #e8f5e8; /* Verde claro financeiro */
    border-left-color: #2ecc71; /* Verde crescimento */
    font-weight: bold;
}

.cdb-tributo-item.rendimento-liquido:hover {
    background: #d5f4e6; /* Verde mais claro */
}

.cdb-tributo-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.cdb-tributo-value {
    font-weight: bold;
    color: #27ae60; /* Verde dinheiro */
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.cdb-tributo-item.rendimento-liquido .cdb-tributo-value {
    color: #1e8449; /* Verde escuro financeiro */
}

/* Comparativo */
.cdb-comparativo {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.cdb-comparativo h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1rem;
    border-bottom: 2px solid #27ae60; /* Verde dinheiro */
    padding-bottom: 0.5rem;
}

.cdb-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.cdb-comp-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cdb-comp-item.cdb-item {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
}

.cdb-comp-item.poupanca-item {
    background: #fff8e1; /* Fundo dourado suave */
    border: 2px solid #f1c40f; /* Dourado riqueza */
}

.cdb-comp-item.tesouro-item {
    background: #f3e5f5;
    border: 2px solid #9c27b0;
}

.cdb-comp-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cdb-comp-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cdb-comp-info {
    flex: 1;
}

.cdb-comp-info h5 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.cdb-comp-valor {
    margin: 0;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #1e8449; /* Verde escuro financeiro */
}

.cdb-comp-info small {
    color: #5a6c7d;
    font-size: 0.8rem;
}

.cdb-vantagem {
    background: #e8f5e8; /* Verde claro financeiro */
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
    text-align: center;
}

.cdb-vantagem p {
    margin: 0;
    color: #1e8449; /* Verde escuro financeiro */
    font-weight: 600;
}

/* Características */
.cdb-caracteristicas {
    background: #e8f5e8; /* Verde claro financeiro */
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #27ae60; /* Verde dinheiro */
}

.cdb-caracteristicas h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1rem;
    border-bottom: 2px solid #27ae60; /* Verde dinheiro */
    padding-bottom: 0.5rem;
}

.cdb-carac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cdb-carac-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
}

.cdb-carac-icon {
    font-size: 1.2rem;
    color: #27ae60; /* Verde dinheiro */
}

.cdb-carac-text {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Aviso Legal */
.cdb-aviso-legal {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.cdb-aviso-legal p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO CDB - PRESERVAR CARDS DINÂMICOS
   ================================== */
.cdb-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.cdb-explanation h3 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1rem;
    text-align: center;
}

.cdb-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
}

.cdb-step h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 0.5rem;
}

.cdb-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   FUNDAMENTAÇÃO LEGAL CDB - PRESERVAR CARDS DINÂMICOS
   ================================== */
.cdb-detailed-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #d5f4e6 100%); /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 15px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.1);
}

.cdb-detailed-explanation h3 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 3px solid #27ae60; /* Verde dinheiro */
    padding-bottom: 0.8rem;
}

.cdb-legal-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cdb-legal-section {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.cdb-legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
    border-color: #27ae60; /* Verde dinheiro */
}

.cdb-legal-section h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #e8f5e8; /* Verde claro financeiro */
    padding-bottom: 0.8rem;
}

.cdb-legal-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #e8f5e8; /* Verde claro financeiro */
    border-radius: 10px;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
    transition: all 0.3s ease;
}

.cdb-legal-item:hover {
    background: #d5f4e6; /* Verde mais claro */
    transform: translateY(-2px);
}

.cdb-legal-artigo {
    background: #27ae60; /* Verde dinheiro */
    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;
}

.cdb-legal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.cdb-legal-content p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cdb-legal-content strong {
    color: #27ae60; /* Verde dinheiro */
    font-weight: 600;
}

.cdb-calculo-detalhe {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 1px solid #27ae60; /* Verde dinheiro */
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 0.5rem;
    width: 100%;
}

.cdb-calculo-detalhe p {
    font-family: 'Courier New', monospace;
    color: #1e8449; /* Verde escuro financeiro */
    font-size: 0.9rem;
    margin: 0.4rem 0;
    line-height: 1.5;
}

.cdb-calculo-detalhe p:first-child {
    font-weight: bold;
    color: #27ae60; /* Verde dinheiro */
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-family: inherit;
}

.cdb-calculo-detalhe p strong {
    color: #27ae60; /* Verde dinheiro */
    font-weight: bold;
}

.cdb-legal-footer {
    background: #fff8e1; /* Fundo dourado suave */
    border: 2px solid #f1c40f; /* Dourado riqueza */
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.cdb-legal-footer p {
    margin: 0.5rem 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cdb-legal-footer p:first-child {
    font-weight: 600;
    color: #854d0e;
}

.cdb-legal-footer strong {
    color: #854d0e;
}

/* ===================================
   EXEMPLOS E AJUDA CDB - FINANCEIRO
   ================================== */
.cdb-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.cdb-examples.hidden {
    display: none;
}

.cdb-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.cdb-example-btn {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    color: #1e8449; /* Verde escuro */
    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;
}

.cdb-example-btn:hover {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    transform: translateY(-2px);
}

.cdb-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff8e1; /* Fundo dourado suave */
    border-radius: 8px;
    border: 1px solid #f1c40f; /* Dourado riqueza */
    transition: all 0.3s ease;
}

.cdb-help.hidden {
    display: none;
}

/* ===================================
   CONTEÚDO EDUCACIONAL CDB - FINANCEIRO
   ================================== */
.cdb-educational-content {
    margin-top: 3rem;
}

.cdb-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 #e0e6ed;
}

.cdb-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #27ae60; /* Verde dinheiro */
    padding-bottom: 0.5rem;
}

.cdb-content-block h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 3px solid #27ae60; /* Verde dinheiro */
    padding-bottom: 0.5rem;
}

.cdb-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.cdb-content-block strong {
    color: #27ae60; /* Verde dinheiro */
}

.cdb-formula-display {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.cdb-formula-display h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cdb-formula-display .formula p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: #27ae60; /* Verde dinheiro */
    font-weight: 600;
    font-size: 0.95rem;
}

.cdb-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cdb-example-item {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid #e0e6ed;
}

.cdb-example-item.pos-fixado {
    background: #e8f5e8; /* Verde claro financeiro */
    border-color: #27ae60; /* Verde dinheiro */
}

.cdb-example-item.prefixado {
    background: #e3f2fd;
    border-color: #2196f3;
}

.cdb-example-item.hibrido {
    background: #f3e5f5;
    border-color: #9c27b0;
}

.cdb-example-item.liquidez {
    background: #fff8e1; /* Fundo dourado suave */
    border-color: #f1c40f; /* Dourado riqueza */
}

.cdb-example-item.vencimento {
    background: #fce4ec;
    border-color: #e91e63;
}

.cdb-example-item.progressivo {
    background: #fff8e1; /* Fundo dourado suave */
    border-color: #f1c40f; /* Dourado riqueza */
}

.cdb-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cdb-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cdb-example-item.pos-fixado .cdb-example-icon {
    color: #27ae60; /* Verde dinheiro */
}

.cdb-example-item.prefixado .cdb-example-icon {
    color: #2196f3;
}

.cdb-example-item.hibrido .cdb-example-icon {
    color: #9c27b0;
}

.cdb-example-item.liquidez .cdb-example-icon {
    color: #f1c40f; /* Dourado riqueza */
}

.cdb-example-item.vencimento .cdb-example-icon {
    color: #e91e63;
}

.cdb-example-item.progressivo .cdb-example-icon {
    color: #f1c40f; /* Dourado riqueza */
}

.cdb-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cdb-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.cdb-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cdb-tip-item {
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
}

.cdb-tip-item.vantagem {
    background: #e8f5e8; /* Verde claro financeiro */
    border-color: #27ae60; /* Verde dinheiro */
}

.cdb-tip-item.desvantagem {
    background: #ffebee;
    border-color: #f44336;
}

.cdb-tip-item.estrategia {
    background: #e3f2fd;
    border-color: #2196f3;
}

.cdb-tip-item.calculadora {
    background: #fff8e1; /* Fundo dourado suave */
    border-color: #f1c40f; /* Dourado riqueza */
}

.cdb-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cdb-tip-item h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cdb-tip-item.vantagem h4 {
    color: #1e8449; /* Verde escuro financeiro */
}

.cdb-tip-item.desvantagem h4 {
    color: #d32f2f;
}

.cdb-tip-item.estrategia h4 {
    color: #1976d2;
}

.cdb-tip-item.calculadora h4 {
    color: #f39c12; /* Dourado escuro */
}

.cdb-tip-item p {
    margin: 0;
    font-size: 0.95rem;
}

.cdb-tip-item.vantagem p {
    color: #1e8449; /* Verde escuro financeiro */
}

.cdb-tip-item.desvantagem p {
    color: #d32f2f;
}

.cdb-tip-item.estrategia p {
    color: #1976d2;
}

.cdb-tip-item.calculadora p {
    color: #f39c12; /* Dourado escuro */
}

.cdb-example-solution {
    background: #e8f5e8; /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.cdb-example-solution h4 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.cdb-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
}

.cdb-solution-step h5 {
    color: #27ae60; /* Verde dinheiro */
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.cdb-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.cdb-solution-final {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.cdb-solution-final h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cdb-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ - FINANCEIRO
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #27ae60; /* Verde dinheiro */
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e6ed;
}

.faq-question:hover {
    background: #e8f5e8; /* Verde claro financeiro */
    color: #1e8449; /* Verde escuro */
}

.faq-answer {
    padding: 1.5rem;
    background: white;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===================================
   REFERÊNCIAS - FINANCEIRO
   ================================== */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60; /* Verde dinheiro */
    transition: all 0.3s ease;
}

.referencia-item:hover {
    background: #e8f5e8; /* Verde claro financeiro */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.1);
}

/* ===================================
   CREDIBILIDADE - FINANCEIRO
   ================================== */
.credibilidade-container {
    background: linear-gradient(135deg, #e8f5e8, #d5f4e6); /* Verde claro financeiro */
    border: 2px solid #27ae60; /* Verde dinheiro */
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.1);
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: #f1c40f; /* Dourado riqueza */
}

.credibilidade-title {
    color: #1e8449; /* Verde escuro financeiro */
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.credibilidade-content {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.credibilidade-logo {
    color: #27ae60; /* Verde dinheiro */
    font-weight: 700;
    text-decoration: underline;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: white;
    color: #1e8449; /* Verde escuro financeiro */
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: 2px solid #27ae60; /* Verde dinheiro */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.credibilidade-badge:hover {
    background: #27ae60; /* Verde dinheiro */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}

/* ===================================
   ANIMAÇÕES CDB
   ================================== */
@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 CDB
   ================================== */
@media (max-width: 1024px) {
    .cdb-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cdb-comp-grid {
        grid-template-columns: 1fr;
    }
    
    .cdb-carac-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .cdb-header h1 {
        font-size: 2rem;
    }
    
    .cdb-container {
        padding: 1rem;
    }
    
    .cdb-dados-basicos {
        padding: 1rem;
    }
    
    .cdb-input-group {
        min-width: auto;
    }
    
    .cdb-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .cdb-tab-btn {
        width: 200px;
    }
    
    .cdb-calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .cdb-value {
        font-size: 1.8rem;
    }
    
    .cdb-examples-grid,
    .cdb-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cdb-header h1 {
        font-size: 1.8rem;
    }
    
    .cdb-container {
        padding: 0.8rem;
    }
    
    .cdb-dados-basicos {
        padding: 0.8rem;
    }
    
    .cdb-calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .cdb-value {
        font-size: 1.5rem;
    }
    
    .cdb-currency {
        font-size: 1.1rem;
    }
    
    .cdb-tributo-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .cdb-comp-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cdb-comp-icon {
        font-size: 1.5rem;
    }
    
    .cdb-example-icon {
        font-size: 2rem;
    }
    
    .credibilidade-container {
        padding: 1.5rem;
    }
    
    .credibilidade-title {
        font-size: 1.3rem;
    }
}