/* assets/css/cartao-credito-debito.css */
/* CSS ISOLADO - Apenas para Calculadora de Cartão de Crédito vs Débito */
/* 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 CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-calculator-section {
    margin-bottom: 3rem;
}

.cartao-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cartao-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.cartao-header p {
    color: #424242;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.cartao-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;
}

/* ===================================
   INPUTS CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.cartao-input-group {
    margin-bottom: 1.5rem;
}

.cartao-input-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cartao-money-input {
    position: relative;
    display: flex;
    align-items: center;
}

.cartao-money-input span {
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-weight: bold;
    z-index: 2;
}

.cartao-money-input input {
    width: 100%;
    padding: 12px 15px;
    padding-left: 35px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.cartao-input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.cartao-money-input input:focus,
.cartao-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ===================================
   BOTÃO CALCULAR CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.cartao-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    min-width: 250px;
}

.cartao-calculate-btn:hover {
    background: linear-gradient(135deg, var(--secondary), #0d4811);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* ===================================
   RESULTADO CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-resultado {
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.cartao-resultado h3 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cartao-resultado-grid {
    display: grid;
    gap: 1.5rem;
}

/* Recomendação Principal - CORES BANCÁRIAS */
.cartao-recomendacao {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary);
}

.cartao-status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cartao-recomendacao h4 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cartao-motivo {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cartao-confianca {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Análise do Perfil */
.cartao-analise-perfil {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.cartao-analise-perfil h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.cartao-perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.cartao-perfil-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cartao-perfil-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cartao-perfil-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Vantagens e Cuidados */
.cartao-vantagens-cuidados {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cartao-vantagens, .cartao-cuidados {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.cartao-vantagens h4 {
    color: var(--success);
    margin-bottom: 1rem;
}

.cartao-cuidados h4 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

.cartao-vantagens-list p,
.cartao-cuidados-list p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Próximos Passos */
.cartao-proximos-passos {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-top: 5%;
}

.cartao-proximos-passos h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.cartao-passos-content p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* ===================================
   EXPLICAÇÃO CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border: 2px solid #9c27b0;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.cartao-explanation h3 {
    color: #6a1b9a;
    margin-bottom: 1rem;
    text-align: center;
}

.cartao-step {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cartao-step h4 {
    color: #6a1b9a;
    margin-bottom: 0.5rem;
}

/* ===================================
   EXEMPLOS E AJUDA CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-examples {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 10px;
    border: 2px solid var(--primary);
    text-align: center;
}

.cartao-example-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cartao-example-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.cartao-help {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f3e5f5, #e8eaf6);
    border-radius: 10px;
    border: 2px solid #9c27b0;
    text-align: center;
}

/* ===================================
   CONTEÚDO EDUCACIONAL CARTÃO - CORES BANCÁRIAS
   ================================== */
.cartao-educational-content {
    margin-top: 3rem;
}

.cartao-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;
}

.cartao-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 0.5rem;
}

.cartao-content-block p {
    color: #424242;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Grid de Comparação - CORES BANCÁRIAS */
.cartao-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cartao-comparison-item {
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.cartao-comparison-item.credito {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #1976d2;
}

.cartao-comparison-item.debito {
    background: linear-gradient(135deg, var(--light), rgba(30, 64, 175, 0.05));
    border: 2px solid var(--primary);
}

.cartao-comparison-item h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cartao-comparison-item.credito h4 {
    color: #1976d2;
}

.cartao-comparison-item.debito h4 {
    color: var(--primary);
}

.cartao-pros-cons {
    display: grid;
    gap: 1rem;
}

.cartao-pros h5, .cartao-cons h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cartao-pros h5 {
    color: var(--success);
}

.cartao-cons h5 {
    color: #d32f2f;
}

.cartao-pros p, .cartao-cons p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Análise de Exemplo - CORES BANCÁRIAS */
.cartao-example-analysis {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 6px solid var(--primary);
    margin: 1.5rem 0;
}

.cartao-analysis-result {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cartao-recommendation-box,
.cartao-strategy-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cartao-recommendation-box {
    border-left: 4px solid var(--success);
}

.cartao-strategy-box {
    border-left: 4px solid #2196f3;
}

.cartao-recommendation-box h5,
.cartao-strategy-box h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Grid de Fatores - CORES BANCÁRIAS */
.cartao-factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cartao-factor-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.cartao-factor-item:hover {
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.cartao-factor-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.cartao-factor-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   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;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 1024px) {
    .credibilidade-badges {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .cartao-header h1 {
        font-size: 2rem;
    }
    
    .cartao-container {
        padding: 1.5rem;
    }
    
    .cartao-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .cartao-vantagens-cuidados {
        grid-template-columns: 1fr;
    }
    
    .cartao-perfil-grid {
        grid-template-columns: 1fr;
    }
    
    .cartao-factors-grid {
        grid-template-columns: 1fr;
    }
    
    .cartao-analysis-result {
        grid-template-columns: 1fr;
    }
    
    .content-block {
        padding: 1.5rem;
    }

    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .content-block {
        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;
    }
}

/* ===================================
   HIDDEN CLASS
   ================================== */
.hidden {
    display: none !important;
}