/* assets/css/parcelamento-fatura.css */
/* CSS COMPLETO - Calculadora de Parcelamento de Fatura - ÁREA BANCÁRIA */
/* CORES BANCÁRIAS APLICADAS - MANTENDO TODAS AS CLASSES FUNCIONAIS */

/* ===================================
   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;
}

.legal-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideIn 0.5s ease-out;
}

/* ===================================
   SEÇÃO DA CALCULADORA PARCELAMENTO
   ================================== */
.parcelamento-calculator-section {
    margin-bottom: 3rem;
}

.parcelamento-header {
    text-align: center;
    margin-bottom: 2rem;
}

.parcelamento-header h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.parcelamento-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.parcelamento-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);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.parcelamento-container:hover {
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

/* ===================================
   INPUTS PARCELAMENTO
   ================================== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-primary);
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.input-group small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===================================
   BOTÕES PARCELAMENTO
   ================================== */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-calcular {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-limpar {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.btn-limpar:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* ===================================
   RESULTADO PARCELAMENTO
   ================================== */
.parcelamento-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;
}

.parcelamento-resultado h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resultado-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.resultado-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
    border-color: var(--primary);
}

.resultado-item h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.resultado-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.resultado-item.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-color: var(--accent);
}

.resultado-item.highlight .value {
    color: var(--accent);
}

.resultado-comparison {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    margin-top: 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.resultado-comparison h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.comparison-item {
    padding: 1rem;
    border-radius: 8px;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comparison-item .amount {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.comparison-item.better .amount {
    color: var(--success);
}

.comparison-item.worse .amount {
    color: var(--danger);
}

/* ===================================
   EXPLICAÇÃO PARCELAMENTO
   ================================== */
.parcelamento-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    animation: slideInUp 0.5s ease;
}

.parcelamento-explanation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.explanation-steps {
    list-style: none;
    padding: 0;
}

.explanation-steps li {
    background: var(--white);
    margin-bottom: 1rem;
    padding: 1.5rem;
    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;
}

.explanation-steps li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
}

.explanation-steps .step-number {
    background: var(--primary);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.8rem;
}

.parcelamento-detailed-explanation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.parcelamento-legal-container {
    display: grid;
    gap: 1.5rem;
}

.legal-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.legal-section h4 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* ===================================
   CONTEÚDO EDUCACIONAL PARCELAMENTO
   ================================== */
.parcelamento-educational-content {
    margin-top: 4rem;
}

.parcelamento-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;
}

.parcelamento-content-block:hover {
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.parcelamento-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;
}

.parcelamento-content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.parcelamento-content-block strong {
    color: var(--primary);
    font-weight: 600;
}

.info-grid,
.scenarios-grid,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card,
.scenario-card,
.tip-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover,
.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.1);
    border-color: var(--primary);
}

.info-icon,
.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary);
}

.info-card h4,
.scenario-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-card p,
.scenario-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.example-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-scenario,
.example-calculation {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.example-scenario h4,
.example-calculation h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.example-scenario ul,
.example-calculation ul {
    list-style: none;
    padding: 0;
}

.example-scenario li,
.example-calculation li {
    background: var(--white);
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-weight: 500;
}

.tip-do {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(16, 185, 129, 0.02));
}

.tip-dont {
    border-left: 4px solid var(--danger);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(185, 28, 28, 0.02));
}

.tip-card h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.tip-do h4 {
    color: var(--success);
}

.tip-dont h4 {
    color: var(--danger);
}

.tip-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.tip-do li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.tip-dont li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

/* ===================================
   EXEMPLOS E AJUDA
   ================================== */
.exemplos-section,
.help-section {
    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;
}

.exemplos-section:hover,
.help-section:hover {
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.exemplos-section h2,
.help-section h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

.exemplos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.exemplo-card {
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
    text-align: center;
    transition: all 0.3s ease;
}

.exemplo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.2);
}

.exemplo-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.exemplo-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.btn-exemplo {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.3);
}

.btn-exemplo:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.help-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.help-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--primary);
}

.help-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.help-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   FAQ, CREDIBILIDADE E REFERÊNCIAS - PADRÃO BASE.CSS
   ================================== */
.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 {
    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;
}

/* Credibilidade Styles */
.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);
}

/* Referências Styles */
.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;
}

/* ===== 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;
}

/* ===================================
   UTILITÁRIOS
   ================================== */
.hidden {
    display: none !important;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE PARCELAMENTO
   ================================== */
@media (max-width: 1024px) {
    .credibilidade-badges {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .parcelamento-header h1 {
        font-size: 2rem;
    }
    
    .parcelamento-container {
        padding: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-calcular,
    .btn-limpar {
        width: 100%;
    }
    
    .resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .example-details {
        grid-template-columns: 1fr;
    }
    
    .info-grid,
    .scenarios-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .exemplos-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }

    .content-block {
        padding: 1.5rem;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .parcelamento-header h1 {
        font-size: 1.8rem;
    }
    
    .parcelamento-container {
        padding: 1rem;
    }
    
    .parcelamento-content-block {
        padding: 1.5rem;
    }

    .content-block {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .credibilidade-container {
        padding: 1.5rem;
    }

    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .credibilidade-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

