/* assets/css/limite-ideal-cartao.css */
/* CSS ISOLADO - Apenas para Calculadora de Limite Ideal do Cartão */
/* CORES BANCÁRIAS APLICADAS - MANTENDO TODAS AS CLASSES FUNCIONAIS */

/* ===== VARIÁVEIS 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 LIMITE CARTÃO
   ================================== */
.limite-calculator-section {
    margin-bottom: 3rem;
}

.limite-header {
    text-align: center;
    margin-bottom: 2rem;
}

.limite-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.limite-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.limite-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;
}

.limite-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   DADOS FINANCEIROS LIMITE - CORES BANCÁRIAS
   ================================== */
.limite-dados-financeiros {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.limite-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.limite-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.limite-input-group label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.limite-input-group input,
.limite-input-group select {
    padding: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.limite-input-group input:focus,
.limite-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.limite-money-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.limite-money-input:focus-within {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.limite-money-input span {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.limite-money-input input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
}

.limite-money-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

/* ===================================
   BOTÃO CALCULAR LIMITE - CORES BANCÁRIAS
   ================================== */
.limite-calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.limite-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(30, 64, 175, 0.3);
}

.limite-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a8a 100%);
}

.limite-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO DO LIMITE IDEAL - CORES BANCÁRIAS
   ================================== */
.limite-resultado {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.limite-resultado h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.limite-resultado-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Resultado Principal - CORES BANCÁRIAS */
.limite-resultado-principal {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.limite-resultado-principal h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.limite-valor-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.limite-currency {
    font-size: 1.3rem;
    opacity: 0.8;
}

.limite-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.limite-percentual {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Faixas de Limite */
.limite-faixas {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.limite-faixas h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.limite-faixa-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.limite-faixa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.limite-faixa-item.conservador {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.limite-faixa-item.moderado {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.limite-faixa-item.arrojado {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.limite-faixa-item:hover {
    transform: translateX(5px);
}

.limite-faixa-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.limite-faixa-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.limite-faixa-item.conservador .limite-faixa-value {
    color: #2e7d32;
}

.limite-faixa-item.moderado .limite-faixa-value {
    color: #f57c00;
}

.limite-faixa-item.arrojado .limite-faixa-value {
    color: #d32f2f;
}

/* Análise Financeira */
.limite-analise {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2196f3;
}

.limite-analise h4 {
    color: #1976d2;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 0.5rem;
}

.limite-analise-content p {
    margin: 0.5rem 0;
    color: #1976d2;
    font-size: 0.95rem;
}

.limite-analise-content strong {
    color: #0d47a1;
}

/* Dicas */
.limite-dicas {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ffc107;
}

.limite-dicas h4 {
    color: #856404;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 0.5rem;
}

.limite-dicas-content p {
    margin: 0.5rem 0;
    color: #856404;
    font-size: 0.95rem;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO LIMITE - CORES BANCÁRIAS
   ================================== */
.limite-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.limite-explanation h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.limite-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.limite-step h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.limite-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   EXEMPLOS E AJUDA LIMITE - CORES BANCÁRIAS
   ================================== */
.limite-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.limite-examples.hidden {
    display: none;
}

.limite-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.limite-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--secondary);
    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;
}

.limite-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.limite-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.3s ease;
}

.limite-help.hidden {
    display: none;
}

/* ===================================
   CONTEÚDO EDUCACIONAL LIMITE - CORES BANCÁRIAS
   ================================== */
.limite-educational-content {
    margin-top: 3rem;
}

.limite-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;
}

.limite-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.limite-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.limite-content-block strong {
    color: var(--primary);
}

/* Formula Display Limite - CORES BANCÁRIAS */
.limite-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.limite-formula-display h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.limite-formula-display .formula p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Grids Exemplos e Dicas Limite - CORES BANCÁRIAS */
.limite-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.limite-example-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.limite-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.limite-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.limite-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.limite-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.limite-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.limite-tip-item {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.limite-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.limite-tip-item h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.limite-tip-item p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Exemplo de Solução Limite - CORES BANCÁRIAS */
.limite-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.limite-example-solution h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.limite-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.limite-solution-step h5 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.limite-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.limite-solution-final {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.limite-solution-final h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.limite-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ - PADRÃO BASE.CSS
   ================================== */
.faq-container {
    margin-top: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.faq-question {
    background: var(--light);
    color: var(--secondary);
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.faq-question:hover {
    background: #dbeafe;
    color: var(--primary);
}

.faq-question::marker {
    display: none;
}

.faq-question::before {
    content: "❓";
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.faq-item[open] .faq-question {
    background: var(--primary);
    color: white;
    border-left-color: var(--accent);
}

.faq-item[open] .faq-question::before {
    content: "✅";
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer p {
    margin: 0.8rem 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   REFERÊNCIAS - NOVO ESTILO BANCÁRIO
   ================================== */
.referencias-container {
    margin-top: 1rem;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referencia-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.referencia-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.referencia-item:last-child {
    margin-bottom: 0;
}

.referencia-item em {
    color: var(--secondary);
    font-style: italic;
    font-weight: 500;
}

/* ===================================
   CREDIBILIDADE - NOVO ESTILO BANCÁRIO
   ================================== */
.credibilidade-container {
    background: linear-gradient(135deg, var(--light) 0%, #dbeafe 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 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: var(--accent);
}

.credibilidade-title {
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.credibilidade-content {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.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(30, 64, 175, 0.2);
    transition: all 0.3s ease;
}

.credibilidade-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* ===================================
   ANIMAÇÕES LIMITE
   ================================== */
@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);
    }
}

/* ===================================
   FUNDAMENTAÇÃO LEGAL LIMITE - CORES BANCÁRIAS
   ================================== */
.limite-detailed-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #6c757d;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.limite-detailed-explanation h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.limite-legal-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.limite-legal-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.limite-legal-section h4 {
    background: #6c757d;
    color: white;
    margin: 0;
    padding: 1rem;
    font-size: 1.1rem;
}

.limite-legal-item {
    padding: 1.5rem;
}

.limite-legal-artigo {
    background: #e9ecef;
    color: #495057;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-weight: 600;
    border-left: 4px solid var(--primary);
}

.limite-legal-content p {
    margin-bottom: 0.8rem;
    color: #212529;
    line-height: 1.6;
}

.limite-calculo-detalhe {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.limite-calculo-detalhe p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #495057;
}

.limite-calculo-detalhe p strong {
    color: var(--primary);
}

.limite-legal-footer {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.limite-legal-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.limite-legal-footer strong {
    color: #495057;
}

/* ===================================
   RESPONSIVIDADE LIMITE
   ================================== */
@media (max-width: 1024px) {
    .limite-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .limite-header h1 {
        font-size: 2rem;
    }
    
    .limite-container {
        padding: 1rem;
    }
    
    .limite-dados-financeiros {
        padding: 1rem;
    }
    
    .limite-input-group {
        min-width: auto;
    }
    
    .limite-calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .limite-value {
        font-size: 2rem;
    }
    
    .limite-faixa-grid {
        gap: 0.6rem;
    }
    
    .limite-faixa-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .limite-examples-grid,
    .limite-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .limite-header h1 {
        font-size: 1.8rem;
    }
    
    .limite-container {
        padding: 0.8rem;
    }
    
    .limite-dados-financeiros {
        padding: 0.8rem;
    }
    
    .limite-calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .limite-value {
        font-size: 1.8rem;
    }
    
    .limite-currency {
        font-size: 1.1rem;
    }
    
    .limite-faixa-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .limite-example-icon {
        font-size: 2rem;
    }
    
    .credibilidade-container {
        padding: 1rem;
    }
    
    .credibilidade-icon {
        font-size: 2rem;
    }
    
    .credibilidade-title {
        font-size: 1.1rem;
    }
}