/* RESET E CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif; /* Fonte Clássica Bancária */
}

body {
    background-color: #f4f4f4;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* --- TOPO INSTITUCIONAL (Barra Cinza) --- */
.top-bar-inst {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px 0;
    font-size: 11px;
    color: #666;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.top-link {
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-link:hover { text-decoration: underline; }

/* --- HEADER PRINCIPAL (Branco) --- */
.header-main {
    background-color: #ffffff; /* Branco */
    background: #ffffff;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    border-bottom: 2px solid #005ca9; /* Borda azul para destaque */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    /* Fallback text style if image missing */
    color: #005ca9; font-weight: bold; font-style: italic; font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #005ca9;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 25px 0;
    border-bottom: 4px solid transparent;
    transition: all 0.2s;
}

.nav-item.active, .nav-item:hover {
    border-bottom-color: #f39200; /* Laranja Caixa */
}

.search-box {
    background: #f4f4f4;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    gap: 10px;
    border: 1px solid #ddd;
}

/* --- ÁREA DE CONTEÚDO (Cinza) --- */
.content-area {
    padding: 40px 0;
    min-height: 500px;
    background: #e9e9e9;
}

/* --- CARD DE SEGURANÇA (O Módulo) --- */
.security-module {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    overflow: hidden;
    border-top: 5px solid #c62828; /* Vermelho Alerta */
}

.module-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-title {
    font-size: 22px;
    color: #005ca9;
    font-weight: normal; /* Fontes bancárias costumam ser mais 'light' em títulos grandes */
}

.protocol-badge {
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    border: 1px solid #ddd;
}

.module-body {
    padding: 30px;
}

.alert-message-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.alert-icon-big {
    color: #c62828;
}

.alert-content p {
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
}

.info-table {
    width: 100%;
    border: 1px solid #dedede;
    margin-bottom: 25px;
}

.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.info-label {
    background-color: #f9f9f9;
    color: #666;
    width: 40%;
    font-weight: bold;
}

.info-value {
    color: #333;
}

.info-value.danger {
    color: #c62828;
    font-weight: bold;
}

/* Botões Estilo Banco */
.actions-row {
    display: flex;
    justify-content: flex-end; /* Botões à direita por padrão em sistemas */
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-bank {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background-color: #f39200; /* Laranja Oficial */
    color: white;
    border: 1px solid #e08500;
}
.btn-primary:hover { background-color: #d68100; }

.btn-secondary {
    background-color: #f4f4f4;
    color: #666;
    border: 1px solid #ddd;
}
.btn-secondary:hover { background-color: #e9e9e9; }

/* --- FOOTER INSTITUCIONAL --- */
.footer-main {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.footer-link { color: #ccc; text-decoration: none; }
.footer-link:hover { color: white; }

.footer-disclaimer {
    line-height: 1.6;
}

/* Utils */
.secure-lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu, .search-box { display: none; } /* Simplifica header no mobile */
    .module-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .actions-row { flex-direction: column-reverse; }
    .btn-bank { width: 100%; justify-content: center; }
}

/* Cores específicas para checkout para manter compatibilidade, se necessário */

/* Secure Badge (Restored) */
.secure-badge {
    color: #005ca9;
    background: #e8f4f8;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #005ca9;
    font-weight: 500;
}

/* --- CHECKOUT SPECIFIC STYLES (Restored) --- */


/* Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.checkout-panel {
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.panel-header {
    background: #f4f6f8;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #005ca9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.panel-body {
    padding: 25px;
}

/* Stepper */
.checkout-stepper {
    display: flex;
    justify-content: space-between; /* Spread items */
    margin-bottom: 30px;
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px; /* Slightly thicker */
    background: #ddd;
    background: linear-gradient(to right, #f39200 0%, #f39200 50%, #ddd 50%, #ddd 100%); /* Half Orange, Half Gray */
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    position: relative;
    z-index: 2;
    background: #f4f4f4; /* Matches body bg to hide line */
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-weight: 600;
    font-size: 13px;
}

.step-item.active {
    color: #005ca9;
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.step-item.active .step-circle {
    background: #005ca9;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #005ca9;
    box-shadow: 0 0 0 2px rgba(0, 92, 169, 0.1);
    outline: none;
}

/* Order Summary */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    font-weight: bold;
    font-size: 16px;
    color: #005ca9;
    border-top: 2px solid #eee;
    margin-top: 10px;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-main {
        height: auto;
        padding: 10px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .nav-menu, .search-box { 
        display: none; 
    }
    
    .secure-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    /* Content area */
    .container {
        padding: 0 10px;
    }
    
    .content-area {
        padding: 20px 0;
    }
    
    /* Security module */
    .security-module {
        margin: 10px 0;
    }
    
    .module-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px;
        padding: 15px;
    }
    
    .module-title {
        font-size: 18px;
    }
    
    .module-body {
        padding: 15px;
    }
    
    .alert-message-box {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Info table */
    .info-table {
        font-size: 13px;
    }
    
    .info-table td {
        padding: 8px 10px;
        display: block;
        width: 100%;
    }
    
    .info-label {
        border-bottom: none;
        padding-bottom: 2px;
        font-size: 11px;
    }
    
    .info-value {
        padding-top: 0;
        margin-bottom: 10px;
    }
    
    /* Buttons */
    .actions-row { 
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .btn-bank { 
        width: 100%; 
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Checkout specific */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkout-stepper::before {
        display: none;
    }
    
    .checkout-stepper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .step-item {
        background: white;
        font-size: 12px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .step-item.active {
        background: #e8f4f8;
        border-color: #005ca9;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-disclaimer {
        font-size: 11px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-item {
        font-size: 13px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .module-title {
        font-size: 16px;
    }
    
    .alert-content p {
        font-size: 14px;
    }
    
    .btn-bank {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .top-bar-inst {
        font-size: 10px;
    }
}
