/* assets/css/cet-real-emprestimo.css */
/* CSS COMPLETO - Calculadora de CET Real de Empréstimo - ÁREA BANCÁRIA */

/* ===================================
   VARIÁVEIS DE CORES BANCÁRIAS
   ================================== */
:root {
    --primary: #1e40af;
    /* Azul bancário confiança */
    --secondary: #1e3a8a;
    /* Azul escuro institucional */
    --accent: #f59e0b;
    /* Dourado prosperidade */
    --light: #eff6ff;
    /* Fundo azul bem claro */
    --gradient: linear-gradient(135deg, #1e40af, #1e3a8a);

    /* Cores complementares */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0ea5e9;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #d1d5db;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

/* ===================================
   SEÇÃO DA CALCULADORA CET
   ================================== */
.cet-calculator-section {
    margin-bottom: 3rem;
}

.cet-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cet-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;
}

.cet-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.cet-container {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.1);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.cet-container:hover {
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.cet-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.4rem;
}

/* ===================================
   DADOS BÁSICOS CET
   ================================== */
.cet-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.cet-dados-basicos:hover {
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.12);
}

.cet-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cet-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cet-input-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.cet-input-group input,
.cet-input-group select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.cet-input-group input:focus,
.cet-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

/* Input de dinheiro */
.cet-money-input {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cet-money-input:focus-within {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

.cet-money-input span {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.cet-money-input input {
    border: none;
    padding: 0.8rem 1rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.cet-money-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

/* Input de prazo */
.cet-prazo-input {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cet-prazo-input:focus-within {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

.cet-prazo-input input {
    border: none;
    padding: 0.8rem 1rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.cet-prazo-input span {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

/* Input de porcentagem */
.cet-percent-input {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cet-percent-input:focus-within {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

.cet-percent-input input {
    border: none;
    padding: 0.8rem 1rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.cet-percent-input span {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Input IOF */
.cet-iof-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cet-iof-input label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cet-iof-input label:hover {
    color: var(--secondary);
}

.cet-iof-input input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ===================================
   COMPARADOR DE PROPOSTAS
   ================================== */
.cet-comparador {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.cet-comparador:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.cet-comparador h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.cet-tabs-comparador {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cet-tab-comparador {
    background: var(--white);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.cet-tab-comparador:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.cet-tab-comparador.active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.cet-proposta-ativa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cet-copy-btn {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cet-copy-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

/* ===================================
   BOTÃO CALCULAR CET
   ================================== */
.cet-calculate-section {
    text-align: center;
    margin: 2.5rem 0;
}

.cet-calculate-btn {
    background: var(--gradient);
    color: var(--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 6px 20px rgba(30, 64, 175, 0.3);
}

.cet-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

.cet-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO DO CET
   ================================== */
.cet-resultado {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--success);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.cet-resultado h3 {
    color: var(--success);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.cet-resultado-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Resultado Principal - CET */
.cet-resultado-principal {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cet-resultado-principal h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cet-valor-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.cet-percent {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.cet-unit {
    font-size: 1.3rem;
    opacity: 0.8;
}

.cet-valor-mensal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.cet-mensal {
    font-size: 1.6rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.cet-unit-small {
    font-size: 1rem;
    opacity: 0.8;
}

.cet-diferenca {
    opacity: 0.9;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Detalhamento de Custos */
.cet-detalhamento {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cet-detalhamento h4 {
    color: var(--success);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--success);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.cet-item-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(30, 64, 175, 0.02));
    border-radius: 10px;
    border-left: 4px solid var(--success);
    transition: all 0.3s ease;
}

.cet-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(30, 64, 175, 0.05));
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}

.cet-item.destaque {
    background: var(--success);
    color: var(--white);
    border-left-color: #047857;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(5, 150, 105, 0.2);
}

.cet-item.destaque:hover {
    background: #047857;
    transform: translateX(8px);
}

.cet-item-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cet-item.destaque .cet-item-label {
    color: var(--white);
}

.cet-item-value {
    font-weight: bold;
    color: var(--success);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.cet-item.destaque .cet-item-value {
    color: var(--white);
}

/* Detalhes das Parcelas */
.cet-parcelas {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(30, 64, 175, 0.03));
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--accent);
}

.cet-parcelas h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.cet-parcela-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.cet-parcela-valor {
    text-align: center;
    background: var(--accent);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 160px;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
}

.cet-parcela-number {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    display: block;
}

.cet-parcela-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.cet-parcela-detalhes {
    flex: 1;
    min-width: 220px;
}

.cet-parcela-detalhes p {
    margin: 0.8rem 0;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.cet-parcela-detalhes strong {
    color: #d97706;
    font-weight: 600;
}

/* Comparação de Propostas */
.cet-comparacao {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.cet-comparacao h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.cet-comparacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cet-proposta-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.cet-proposta-item.melhor {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(30, 64, 175, 0.02));
}

.cet-proposta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cet-melhor-proposta {
    background: var(--success);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.cet-melhor-proposta h5 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Aviso Importante */
.cet-aviso-importante {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.cet-aviso-importante p {
    margin: 0;
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO CET
   ================================== */
.cet-explanation {
    margin-top: 2rem;
    padding: 0.8rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    animation: slideInUp 0.5s ease;
}

.cet-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.cet-step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cet-step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
}

.cet-step h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.cet-step p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA CET
   ================================== */
.cet-examples {
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.cet-examples.hidden {
    display: none;
}

.cet-examples p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cet-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    margin: 0.4rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.cet-example-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.cet-help {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-radius: 12px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.cet-help.hidden {
    display: none;
}

.cet-help p {
    margin: 0;
    color: var(--accent);
    font-weight: 500;
}

/* ===================================
   CONTEÚDO EDUCACIONAL CET
   ================================== */
.cet-educational-content {
    margin-top: 4rem;
}

.cet-content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.cet-content-block:hover {
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.cet-content-block h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.cet-content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.cet-content-block strong {
    color: var(--primary);
    font-weight: 600;
}

/* Formula Display CET */
.cet-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cet-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.cet-formula-display .formula p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Grids Exemplos CET */
.cet-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cet-example-item {
    background: var(--gray-50);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.cet-example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.1);
    border-color: var(--primary);
}

.cet-example-item.destacado {
    background: var(--success);
    color: var(--white);
    border-color: #047857;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.2);
}

.cet-example-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.cet-example-item.destacado .cet-example-icon {
    color: var(--white);
}

.cet-example-item h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.cet-example-item.destacado h4 {
    color: var(--white);
}

.cet-example-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.cet-example-item.destacado p {
    color: var(--white);
}

.cet-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cet-tip-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.cet-tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.cet-tip-item h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cet-tip-item p {
    color: var(--primary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Modalidades de Empréstimo */
.cet-modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cet-modalidade-item {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
}

.cet-modalidade-item.muito-baixo {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.05));
    border-color: var(--success);
}

.cet-modalidade-item.baixo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-color: var(--accent);
}

.cet-modalidade-item.medio {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.1), rgba(190, 24, 93, 0.05));
    border-color: #e91e63;
}

.cet-modalidade-item.alto {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.05));
    border-color: var(--danger);
}

.cet-modalidade-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.cet-modalidade-item h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.cet-modalidade-item.muito-baixo h4 {
    color: var(--success);
}

.cet-modalidade-item.baixo h4 {
    color: var(--accent);
}

.cet-modalidade-item.medio h4 {
    color: #e91e63;
}

.cet-modalidade-item.alto h4 {
    color: var(--danger);
}

/* Exemplo de Solução CET */
.cet-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.cet-example-solution h4 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.cet-solution-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cet-solution-step:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.1);
}

.cet-solution-step h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cet-solution-step p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cet-solution-final {
    background: var(--success);
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.cet-solution-final h5 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.cet-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ, CREDIBILIDADE E REFERÊNCIAS
   ================================== */
.content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.faq-question {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Credibilidade Styles */
.credibilidade-container {
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.credibilidade-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.2);
}

/* Referências Styles */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referencia-item {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.5rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.referencia-item:hover {
    background: rgba(30, 64, 175, 0.08);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
}

.referencia-item::before {
    content: "📖";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===== SUPORTE PARA CARDS DINÂMICOS DO JAVASCRIPT ===== */
.calc-explanation,
.calc-legal {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    animation: slideInUp 0.5s ease;
}

.calc-explanation h3,
.calc-legal h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.calc-explanation h4,
.calc-legal h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.calc-explanation p,
.calc-legal p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.calc-explanation strong,
.calc-legal strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   ANIMAÇÕES CET
   ================================== */
@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 CET
   ================================== */
@media (max-width: 1024px) {
    .cet-input-row {
        flex-direction: column;
        gap: 1rem;
    }

    .cet-tabs-comparador {
        flex-direction: column;
        align-items: center;
    }

    .cet-proposta-ativa {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cet-parcela-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
    }

    .cet-parcela-valor {
        width: 100%;
        max-width: 200px;
    }

    .cet-parcela-detalhes {
        width: 100%;
    }

    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .cet-header h1 {
        font-size: 2rem;
    }

    .cet-container {
        padding: 1.5rem;
    }

    .cet-dados-basicos {
        padding: 1.5rem;
    }

    .cet-input-group {
        min-width: auto;
    }

    .cet-calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .cet-percent {
        font-size: 2.5rem;
    }

    .cet-mensal {
        font-size: 1.4rem;
    }

    .cet-examples-grid,
    .cet-tips-grid,
    .cet-modalidades-grid {
        grid-template-columns: 1fr;
    }

    .content-block {
        padding: 1.5rem;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cet-resultado {
        padding: 1.5rem;
    }

    .cet-resultado h3 {
        font-size: 1.3rem;
    }

    .cet-resultado-grid {
        gap: 1.5rem;
    }

    .cet-resultado-principal {
        padding: 1.5rem;
    }

    .cet-valor-principal {
        flex-direction: column;
        gap: 0.3rem;
    }

    .cet-diferenca {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }

    .cet-detalhamento,
    .cet-parcelas {
        padding: 1.5rem;
    }

    .cet-detalhamento h4,
    .cet-parcelas h4 {
        font-size: 1.1rem;
    }

    .cet-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.8rem;
    }

    .cet-item-label,
    .cet-item-value {
        font-size: 0.9rem;
    }

    .cet-parcela-valor {
        min-width: 140px;
        padding: 1.2rem;
    }

    .cet-parcela-number {
        font-size: 1.6rem;
    }

    .cet-parcela-detalhes p {
        font-size: 0.9rem;
    }

    .cet-comparacao {
        padding: 1.5rem;
    }

    .cet-comparacao h4 {
        font-size: 1.1rem;
    }

    .cet-aviso-importante {
        padding: 1.2rem;
    }

    .cet-aviso-importante p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cet-parcelas {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding-left: 0;
        /* ← GARANTE sem padding esquerdo extra */
        padding-right: 0;
        /* ← GARANTE sem padding direito extra */
    }

    .cet-parcela-number,
    .cet-parcela-label {
        text-align: left;
    }

    .cet-parcela-detalhes strong {
        display: inline;
        margin-right: 0.5rem;
    }

    .cet-parcela-detalhes span {
        display: inline;
        font-size: 0.9rem;
        color: var(--accent);
        flex: 1;    }

    .cet-header h1 {
        font-size: 1.8rem;
    }

    .cet-resultado {
        padding: 1rem;
        border-radius: 12px;
    }

    .cet-resultado h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cet-resultado-grid {
        gap: 1rem;
    }

    .cet-resultado-principal {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .cet-resultado-principal h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .cet-percent {
        font-size: 2rem;
    }

    .cet-unit {
        font-size: 1rem;
    }

    .cet-mensal {
        font-size: 1.2rem;
    }

    .cet-unit-small {
        font-size: 0.85rem;
    }

    .cet-diferenca {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    .cet-detalhamento,
    .cet-parcelas,
    .cet-comparacao {
        padding: 1rem;
        border-radius: 12px;
    }

    .cet-detalhamento h4,
    .cet-parcelas h4,
    .cet-comparacao h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cet-item-grid {
        gap: 0.8rem;
    }

    .cet-item {
        padding: 0.7rem;
        border-radius: 8px;
    }

    .cet-item-label {
        font-size: 0.85rem;
    }

    .cet-item-value {
        font-size: 0.9rem;
    }

    .cet-item.destaque {
        padding: 1rem;
    }

    .cet-parcela-valor {
        min-width: 120px;
        padding: 1rem;
        border-radius: 10px;
    }

    .cet-parcela-number {
        font-size: 1.4rem;
    }

    .cet-parcela-label {
        font-size: 0.8rem;
    }

    .cet-parcela-detalhes {
        width: 100%;
    }

    .cet-parcela-detalhes p {
        font-size: 0.85rem;
        margin: 0.6rem 0;
    }

    .cet-comparacao-grid {
        gap: 1rem;
    }

    .cet-proposta-item {
        padding: 1rem;
    }

    .cet-melhor-proposta {
        padding: 1rem;
        border-radius: 10px;
    }

    .cet-melhor-proposta h5 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .cet-melhor-proposta p {
        font-size: 0.9rem;
    }

    .cet-aviso-importante {
        padding: 1rem;
        border-radius: 10px;
    }

    .cet-aviso-importante p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .cet-container {
        padding: 1rem;
    }

    .cet-dados-basicos {
        padding: 1rem;
    }

    .cet-calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .cet-percent {
        font-size: 2.2rem;
    }

    .cet-mensal {
        font-size: 1.3rem;
    }

    .cet-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .cet-example-icon {
        font-size: 2.2rem;
    }

    .content-block {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .credibilidade-container {
        padding: 1.5rem;
    }

    .credibilidade-badges {
        gap: 0.5rem;
    }

    .credibilidade-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .cet-parcelas {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .cet-parcela-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* ← MUDOU: de center para flex-start */
        justify-content: flex-start;
        /* ← MUDOU: de center para flex-start */
        width: 100%;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }

    .cet-parcela-valor {
        width: 100%;
        max-width: 160px;
        margin: 0;
        /* ← REMOVEU o 'auto' que centraliza */
    }

    .cet-parcela-detalhes {
        width: 100%;
        text-align: left;
        /* ← MUDOU: de center para left */
    }

    .cet-parcela-detalhes p {
        display: flex;
        flex-direction: row;
        /* ← MUDOU: de column para row */
        align-items: center;
        justify-content: space-between;
        /* ← ADICIONOU */
        gap: 0.5rem;
        margin: 0.6rem 0;
        flex-wrap: wrap;
    }

    .cet-parcela-detalhes strong {
        display: block;
    }

    .cet-parcela-detalhes span {
        display: block;
        font-size: 1rem;
        color: var(--accent);
    }
}