/* assets/css/emprestimo-consignado.css */
/* CSS COMPLETO - Calculadora de Empréstimo Consignado - Á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 EMPRÉSTIMO CONSIGNADO
   ================================== */
.consignado-calculator-section {
    margin-bottom: 3rem;
}

.consignado-header {
    text-align: center;
    margin-bottom: 2rem;
}

.consignado-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;
}

.consignado-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.consignado-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;
}

.consignado-container:hover {
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.consignado-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.4rem;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO CONSIGNADO
   ================================== */
.consignado-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 1rem;
}

.consignado-tab-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 120px;
}

.consignado-tab-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.consignado-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS CONSIGNADO
   ================================== */
.consignado-tab-content {
    display: none;
}

.consignado-tab-content.active {
    display: block;
    animation: fadeInConsignadoTab 0.3s ease;
}

@keyframes fadeInConsignadoTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   DADOS BÁSICOS CONSIGNADO
   ================================== */
.consignado-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.consignado-dados-basicos:hover {
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.12);
}

.consignado-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.consignado-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consignado-input-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.consignado-input-group input,
.consignado-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);
}

.consignado-input-group input:focus,
.consignado-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

.consignado-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;
}

.consignado-money-input:focus-within {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

.consignado-money-input span {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.consignado-money-input input {
    border: none;
    padding: 0.8rem 1rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.consignado-money-input input:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

/* ===================================
   BOTÃO CALCULAR CONSIGNADO
   ================================== */
.consignado-calculate-section {
    text-align: center;
    margin: 2.5rem 0;
}

.consignado-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);
}

.consignado-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

.consignado-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO DO EMPRÉSTIMO CONSIGNADO
   ================================== */
.consignado-resultado {
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.consignado-resultado h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.consignado-resultado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Margem Disponível */
.consignado-margem-disponivel {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.1);
    border: 2px solid var(--border);
    grid-column: 1 / -1;
}

.consignado-margem-disponivel h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.consignado-margem-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consignado-margem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.02));
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.consignado-margem-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(30, 64, 175, 0.05));
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
}

.consignado-margem-item.destaque {
    background: var(--primary);
    color: var(--white);
    border-left-color: var(--secondary);
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.2);
}

.consignado-margem-item.destaque:hover {
    background: var(--secondary);
    transform: translateX(8px);
}

.consignado-margem-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.consignado-margem-item.destaque .consignado-margem-label {
    color: var(--white);
}

.consignado-margem-value {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.consignado-margem-item.destaque .consignado-margem-value {
    color: var(--white);
}

/* Simulação Principal */
.consignado-simulacao-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);
}

.consignado-simulacao-principal h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
}

.consignado-valor-principal {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

.consignado-prestacao-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.consignado-prestacao-label {
    font-size: 1rem;
    opacity: 0.9;
}

.consignado-prestacao-valor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consignado-currency {
    font-size: 1.3rem;
    opacity: 0.8;
}

.consignado-prestacao-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.consignado-valor-financiado,
.consignado-cet-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.consignado-valor-label,
.consignado-cet-label {
    opacity: 0.8;
}

.consignado-valor-value,
.consignado-cet-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Resumo Financeiro */
.consignado-resumo-financeiro {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.consignado-resumo-financeiro h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.consignado-resumo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.consignado-resumo-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.02));
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.consignado-resumo-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(30, 64, 175, 0.05));
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.1);
}

.consignado-resumo-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.consignado-resumo-value {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* Status da Simulação */
.consignado-status {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    grid-column: 1 / -1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.consignado-status h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.consignado-status-content p {
    margin: 0.8rem 0;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.consignado-status-content strong {
    color: var(--secondary);
    font-weight: 600;
}

/* Aviso Legal */
.consignado-aviso-legal {
    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;
}

.consignado-aviso-legal p {
    margin: 0;
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO CONSIGNADO
   ================================== */
.consignado-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    animation: slideInUp 0.5s ease;
}

.consignado-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.consignado-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;
}

.consignado-step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
}

.consignado-step h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.consignado-step p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA CONSIGNADO
   ================================== */
.consignado-examples {
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.consignado-examples.hidden {
    display: none;
}

.consignado-examples p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.consignado-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;
}

.consignado-example-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.consignado-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;
}

.consignado-help.hidden {
    display: none;
}

.consignado-help p {
    margin: 0;
    color: var(--accent);
    font-weight: 500;
}

/* ===================================
   CONTEÚDO EDUCACIONAL CONSIGNADO
   ================================== */
.consignado-educational-content {
    margin-top: 4rem;
}

.consignado-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;
}

.consignado-content-block:hover {
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.consignado-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;
}

.consignado-content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.consignado-content-block strong {
    color: var(--primary);
    font-weight: 600;
}

/* Formula Display Consignado */
.consignado-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.consignado-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.consignado-formula-display .formula p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Grids Exemplos e Dicas Consignado */
.consignado-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.consignado-example-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.consignado-example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.1);
    border-color: var(--secondary);
}

.consignado-example-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.consignado-example-item h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.consignado-example-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.consignado-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.consignado-tip-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.consignado-tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.consignado-tip-item h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.consignado-tip-item p {
    color: var(--primary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Exemplo de Solução Consignado */
.consignado-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.consignado-example-solution h4 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.consignado-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;
}

.consignado-solution-step:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.1);
}

.consignado-solution-step h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.consignado-solution-step p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.consignado-solution-final {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.consignado-solution-final h5 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.consignado-solution-final p {
    margin: 0;
    font-family: inherit;
}

/* Dicas especiais para negociação */
.consignado-dicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.consignado-dica-item {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
}

.consignado-dica-item.importante {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.05));
    border-color: var(--info);
}

.consignado-dica-item.atencao {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-color: var(--accent);
}

.consignado-dica-item.urgente {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.05));
    border-color: var(--danger);
}

.consignado-dica-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.consignado-dica-item h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.consignado-dica-item.importante h4 {
    color: var(--info);
}

.consignado-dica-item.atencao h4 {
    color: var(--accent);
}

.consignado-dica-item.urgente h4 {
    color: var(--danger);
}

/* ===================================
   EXPLICAÇÃO DETALHADA COM BASE LEGAL - EMPRÉSTIMO CONSIGNADO
   ================================== */
.consignado-detailed-explanation {
    margin-top: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--primary);
    border-radius: 20px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.1);
}

.consignado-detailed-explanation h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 1rem;
    font-weight: 600;
}

.consignado-legal-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.consignado-legal-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.consignado-legal-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.15);
    border-color: var(--primary);
}

.consignado-legal-section h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    font-weight: 600;
}

.consignado-legal-section + .consignado-legal-section {
    margin-top: 3rem;
}

.consignado-legal-section:first-child {
    margin-top: 0;
}

.consignado-legal-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.consignado-legal-item:hover {
    background: rgba(30, 64, 175, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
}

.consignado-legal-artigo {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    align-self: flex-start;
    min-width: 220px;
}

.consignado-legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.consignado-legal-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.consignado-legal-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Detalhes dos Cálculos - Empréstimo Consignado */
.consignado-calculo-detalhe {
    background: rgba(30, 64, 175, 0.08);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0.8rem;
    width: 100%;
}

.consignado-calculo-detalhe p {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.consignado-calculo-detalhe p:first-child {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.consignado-calculo-detalhe p strong {
    color: var(--secondary);
    font-weight: bold;
}

.consignado-calculo-detalhe small {
    color: var(--primary);
    font-style: italic;
    font-size: 0.8rem;
}

/* Footer da Explicação Legal - Empréstimo Consignado */
.consignado-legal-footer {
    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: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.consignado-legal-footer p {
    margin: 0.8rem 0;
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1.6;
}

.consignado-legal-footer p:first-child {
    font-weight: 600;
    color: var(--warning);
}

.consignado-legal-footer strong {
    color: var(--warning);
    font-weight: 600;
}

/* ===================================
   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 CONSIGNADO
   ================================== */
@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 CONSIGNADO
   ================================== */
@media (max-width: 1024px) {
    .consignado-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .consignado-resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .consignado-resumo-grid {
        grid-template-columns: 1fr;
    }
    
    .consignado-legal-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .consignado-legal-artigo {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }

    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .consignado-header h1 {
        font-size: 2rem;
    }
    
    .consignado-container {
        padding: 1.5rem;
    }
    
    .consignado-dados-basicos {
        padding: 1.5rem;
    }
    
    .consignado-input-group {
        min-width: auto;
    }
    
    .consignado-calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .consignado-prestacao-value {
        font-size: 2rem;
    }
    
    .consignado-examples-grid,
    .consignado-tips-grid,
    .consignado-dicas-grid {
        grid-template-columns: 1fr;
    }
    
    .consignado-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .consignado-tab-btn {
        width: 140px;
    }
    
    .consignado-margem-info {
        gap: 0.8rem;
    }
    
    .consignado-margem-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .consignado-detailed-explanation {
        padding: 1.5rem;
    }
    
    .consignado-legal-section {
        padding: 1.5rem;
    }
    
    .consignado-legal-artigo {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .consignado-calculo-detalhe {
        padding: 1.2rem;
    }
    
    .consignado-calculo-detalhe p {
        font-size: 0.85rem;
    }

    .content-block {
        padding: 1.5rem;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .consignado-header h1 {
        font-size: 1.8rem;
    }
    
    .consignado-container {
        padding: 1rem;
    }
    
    .consignado-dados-basicos {
        padding: 1rem;
    }
    
    .consignado-calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .consignado-prestacao-value {
        font-size: 1.8rem;
    }
    
    .consignado-currency {
        font-size: 1.1rem;
    }
    
    .consignado-margem-item {
        padding: 0.6rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .consignado-resumo-item {
        padding: 0.8rem;
        text-align: center;
    }
    
    .consignado-example-icon {
        font-size: 2.5rem;
    }
    
    .consignado-resultado-grid,
    .consignado-resumo-grid {
        gap: 1rem;
    }
    
    .consignado-detailed-explanation {
        padding: 1rem;
    }
    
    .consignado-detailed-explanation h3 {
        font-size: 1.3rem;
    }
    
    .consignado-legal-section {
        padding: 1rem;
    }
    
    .consignado-legal-section h4 {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .consignado-legal-item {
        padding: 1rem;
    }
    
    .consignado-legal-artigo {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        min-width: auto;
    }
    
    .consignado-legal-content p {
        font-size: 0.9rem;
    }
    
    .consignado-calculo-detalhe {
        padding: 1rem;
    }
    
    .consignado-calculo-detalhe p {
        font-size: 0.8rem;
    }
    
    .consignado-legal-footer {
        padding: 1.5rem;
    }
    
    .consignado-legal-footer p {
        font-size: 0.85rem;
    }

    .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;
    }
}