/* * ==========================================================================
 * OPIS SIMULATOR - PREMIUM ENTERPRISE THEME (2026 EDITION)
 * ==========================================================================
 */

/* 1. VARIABLES & TOKENS */
:root {
    /* Brand Colors */
    --cical-blue: #0047BA;
    --cical-blue-dark: #003399;
    --cical-red: #E63312;
    --cical-red-hover: #C22000;
    --cical-navy: #04153E;
    --color-grey-bar: #E5E7EB; /* Cinza da barra de crédito */
    /* Cores de Status */
    --color-fin-red: #EF4444;   /* Vermelho Financiamento */
    --color-con-purple: #4F46E5; /* Roxo/Azul Consórcio (Brand) */
    /* Layout */
    --radius-bar: 8px; /* Cantos levemente quadrados */
    --bar-height: 55px; /* Barras grossas e robustas */

    /* Neutrals & Surfaces */
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    /* 3D Effects & Shadows */
    --shadow-card: 0 20px 40px -5px rgba(0, 0, 0, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow-blue: 0 8px 30px rgba(0, 71, 186, 0.3);
    --shadow-glow-red: 0 8px 30px rgba(230, 51, 18, 0.3);
    
    /* Typography */
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-pill: 50px;
    --radius-card: 24px;
}

.step-circle {
    width: 30px; height: 30px; border-radius: 50%; background: #e0e0e0;
    margin: 0 auto 5px auto; border: 3px solid white; box-shadow: 0 0 0 1px #ccc;
    transition: all 0.3s;
}

/* Estado Ativo */
.step-item.active .step-circle { background: var(--cical-blue-primary); box-shadow: 0 0 0 4px rgba(0, 71, 186, 0.2); }
.step-item.active .step-label { color: var(--cical-blue-primary); }

.step-label { font-size: 11px; color: #999; font-weight: 600; text-transform: uppercase; }

.opis-alert-icon { font-size: 40px; margin-bottom: 15px; }

/* 2. Stepper (Barra de Progresso) */
.opis-stepper {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 600px; margin: 0 auto 40px auto; position: relative;
}
.opis-stepper::before {
    content: ''; position: absolute; top: 14px; left: 0; width: 100%; height: 2px;
    background: #e0e0e0; z-index: 0;
}
.step-item {
    position: relative; z-index: 1; text-align: center; background: white; padding: 0 10px;
}

/* 1. Modal de Alerta Customizado */
.opis-alert-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); animation: fadeIn 0.3s;
}
.opis-alert-box {
    background: white; padding: 40px; border-radius: 16px;
    text-align: center; max-width: 400px; width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); transform: scale(1); animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.opis-alert-icon { font-size: 40px; margin-bottom: 15px; }
.summary-card {
    flex: 1; background: white; padding: 25px; border-radius: 12px;
    border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky; top: 20px;
}
.summary-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
    background: #f4f6f9; padding: 15px; border-radius: 8px;
}
.form-card {
    flex: 2; background: white; padding: 40px; border-radius: 12px;
    border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* 4. Form Grid & Radios */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col-span-2 { grid-column: span 2; }
.radio-toggle { display: flex; gap: 20px; margin-bottom: 25px; }
.radio-option {
    display: flex; align-items: center; gap: 8px; padding: 10px 20px;
    border: 1px solid #ddd; border-radius: 50px; cursor: pointer; transition: 0.2s; font-size: 14px;
}
.radio-option.selected { border-color: var(--cical-red-primary); background: #FFF0ED; color: var(--cical-red-primary); font-weight: bold; }
.radio-circle { width: 14px; height: 14px; border: 2px solid #ccc; border-radius: 50%; }
.radio-option.selected .radio-circle { border-color: var(--cical-red-primary); background: var(--cical-red-primary); }

/* Responsividade */
@media (max-width: 900px) {
    .opis-complex-layout { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }
    .opis-stepper { display: none; } /* Esconde stepper em mobile para poupar espaço */
}

/* --- [ADICIONAR] ESTILOS DA TELA DE SUCESSO --- */

/* Card Laranja Degradê */
.success-summary-card {
    background: linear-gradient(135deg, #FF9900, #FF6600);
    border-radius: 16px;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.25);
    transition: transform 0.3s;
}
.success-summary-card:hover {
    transform: translateY(-5px);
}

/* Lista de Próximos Passos */
.next-steps-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    background: #fff;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.step-row:last-child { border-bottom: none; }

.step-row .icon {
    width: 40px; height: 40px;
    background: #f9f9f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.step-row.done .icon {
    background: #e6f7ff; color: var(--cical-blue-primary);
}

.step-row .text { flex: 1; font-size: 13px; color: #555; }
.step-row .text strong { color: #333; font-size: 14px; display: block; margin-bottom: 2px; }

.step-row .btn-action {
    padding: 6px 15px;
    border: 1px solid var(--cical-blue-primary);
    color: var(--cical-blue-primary);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}
.step-row .btn-action:hover {
    background: var(--cical-blue-primary);
    color: white;
}

.step-row .status {
    font-size: 11px; color: #999; background: #f0f0f0; padding: 4px 8px; border-radius: 4px;
}

/* 2. RESET & STRUCTURE */
.opis-wrapper {
 font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
}
.opis-wrapper * { box-sizing: border-box; }

.opis-view { display: none; opacity: 0; transition: opacity 0.4s ease; }
.opis-view.active { display: block; opacity: 1; animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. HERO SECTION (SIMULADOR) */
.opis-hero-section {
    background: radial-gradient(circle at top right, #1e40af, var(--cical-navy));
    padding: 60px 20px;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opis-hero-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column; /* Mobile Stack */
    gap: 50px;
}

/* Simulator Controls */
.opis-simulator-box h2 {
    font-size: 32px; font-weight: 800; margin-bottom: 20px; line-height: 1.1;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.custom-select-wrapper select {
    width: 100%; padding: 18px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
    color: white; font-size: 16px; backdrop-filter: blur(10px); margin-bottom: 20px; cursor: pointer;
}
.custom-select-wrapper select option { background: #1E293B; }

.value-display {
    font-size: 56px; font-weight: 900; margin: 10px 0 30px 0; letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider-container {
    position: relative;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 30px;
}

/* Container dos Labels (Correção Solicitada) */
.range-labels {
    display: flex;
    justify-content: space-between; /* Força extremos opostos */
    align-items: center;
    width: 100%;
    margin-top: 8px; /* Distância da barra */
    padding: 0;      /* Remove padding interno que poderia empurrar */
}

/* Textos Individuais */
.range-min, 
.range-max {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85); /* Branco legível no fundo azul */
    line-height: 1;
}

/* Garante alinhamento específico caso o flex falhe em navegadores antigos */
.range-min {
    text-align: left;
    margin-left: 2px; /* Ajuste fino para alinhar com o centro da bolinha na posição 0 */
}

.range-max {
    text-align: right;
    margin-right: 2px; /* Ajuste fino para alinhar com o centro da bolinha na posição 100 */
}

.opis-range {
    width: 100%;
    display: block; /* Garante que ocupe a linha toda */
    margin-bottom: 5px;
    cursor: pointer;
}

.opis-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
    background: var(--cical-red); cursor: pointer; box-shadow: 0 0 0 5px rgba(230, 51, 18, 0.3);
    transition: transform 0.2s;
}
.opis-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

.btn-cta {
    background: linear-gradient(135deg, var(--cical-red) 0%, #ff5722 100%);
    color: white; border: none; width: 100%; padding: 22px; font-size: 18px; font-weight: 800;
    border-radius: 50px; cursor: pointer; box-shadow: var(--shadow-glow-red);
    transition: transform 0.2s, box-shadow 0.2s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-cta:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(230, 51, 18, 0.5); }

.hero-car-image img {
    max-width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); transform: scale(1.1);
}

/* 4. RESULTS VIEW (O NOVO GRÁFICO LIMPO) */
.opis-split-layout {
    display: flex; flex-direction: column; gap: 40px; padding: 40px 20px;
    max-width: 1200px; margin: 0 auto;
}

.white-card-graph {
background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.graph-header { text-align: center; margin-bottom: 40px; }
.graph-header h2 { font-size: 32px; font-weight: 800; margin: 10px 0; color: #111; }
.graph-header p { text-transform: uppercase; font-size: 12px; font-weight: 700; color: #999; letter-spacing: 1px; }
/* === NOVO ESTILO DO GRÁFICO (TOP-DOWN LAYOUT) === */
.graph-row {
    display: grid;
    /* COLUNA 1 (Label): 140px fixo
       COLUNA 2 (Barras): Ocupa o resto (1fr)
       COLUNA 3 (Valor): 160px fixo (Para não quebrar linha)
    */
    grid-template-columns: 140px 1fr 160px; 
    gap: 25px; /* Espaço generoso entre colunas */
    align-items: center;
    margin-bottom: 30px;
}
.graph-row:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.03); }

/* Linha de Cima: Rótulo e Valor lado a lado */
.row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alinha na base do texto */
    margin-bottom: 5px;
}

/* 1. Rótulo (Esquerda) */
.graph-label {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.graph-label span { font-size: 15px; font-weight: 700; color: var(--text-main); }
.graph-label small { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.graph-value-display {
    text-align: right;
}
.graph-value-display strong { font-size: 18px; font-weight: 800; color: var(--text-main); display: block; line-height: 1.2; }
.graph-value-display .percentage-tag { 
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; 
    display: inline-block; margin-top: 4px;
}

/* 2. Área das Barras (Centro) */
.graph-bars-wrapper {
    display: flex;
    align-items: center;
    gap: 4px; /* Espacinho branco entre a barra cinza e a colorida */
    height: var(--bar-height);
    width: 100%;
    background: transparent; /* Remove background do trilho */
}

/* Cores das Tags */
.tag-fin { background: #E0E7FF; color: var(--cical-blue); }
.tag-con { background: #FFEEEB; color: var(--cical-red); }

/* Barra 3D (Ocupa largura total agora) */
.graph-bars-container {
    width: 100%;
    height: 36px; /* Altura elegante */
    background: #E2E8F0;
    border-radius: 18px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.06);
    overflow: hidden; /* Corta o brilho interno */
}

.bar-track { width: 100%; height: 100%; }

/* Barra Cinza (Representa o Crédito - Fixo visualmente para comparação) */
.bar-base {
    background-color: var(--color-grey-bar);
    height: 100%;
    width: 50%; /* Ocupa metade visualmente para dar espaço à taxa */
    border-top-left-radius: var(--radius-bar);
    border-bottom-left-radius: var(--radius-bar);
    position: relative;
}

/* Barra Colorida (Cresce via JS) */
.bar-fill {
    height: 100%;
    width: 0%; /* JS vai mudar isso */
    border-top-right-radius: var(--radius-bar);
    border-bottom-right-radius: var(--radius-bar);
    transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}


/* Cores das Barras */
.fill-red { background-color: var(--color-fin-red); }
.fill-purple { background-color: var(--color-con-purple); }

/* 3. Valores (Direita) */
.graph-values {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha tudo à direita */
    justify-content: center;
}

.val-money {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    white-space: nowrap; /* IMPEDE QUEBRA DE LINHA */
    display: block;
}

.val-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px; /* Canto mais quadrado */
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-red { background-color: var(--color-fin-red); }
.badge-purple { background-color: var(--color-con-purple); }

.bar-color {
    height: 100%; border-radius: 18px; width: 0%; 
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

/* Gradientes */
.bar-blue { background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%); }
.bar-orange { background: linear-gradient(90deg, #F97316 0%, #EA580C 100%); }

/* Brilho Superior (Efeito Vidro) */
.bar-color::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 18px 18px 0 0;
}

/* LEGENDA E FONTE */
.graph-legend {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px; /* Alinha visualmente */
}
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #555; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-grey { background: var(--color-grey-bar); }
.dot-red { background: var(--color-fin-red); }
.dot-purple { background: var(--color-con-purple); }


/* Tooltip (Aparece ao passar o mouse) */
.opis-tooltip {
    position: absolute; top: -35px; right: 0;
    background: #0F172A; color: white; padding: 5px 10px; border-radius: 6px;
    font-size: 11px; opacity: 0; transition: 0.3s; pointer-events: none;
    white-space: nowrap; transform: translateY(5px);
}
.bar-color:hover .opis-tooltip { opacity: 1; transform: translateY(0); }

/* Legenda */
.graph-footer { margin-top: 20px; border-top: 1px solid #f1f5f9; padding-top: 15px; }
.legend { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.legend-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-blue { background: #2563EB; }
.dot-orange { background: #EA580C; }

/* 5. PLANOS (RIGHT COL) */
.plan-card {
    background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 20px;
    margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center;
    transition: 0.2s;
}
.plan-card:hover { border-color: var(--cical-blue); box-shadow: var(--shadow-glow-blue); transform: translateY(-2px); }
.plan-info h4 { margin: 0; color: var(--cical-blue); font-size: 14px; font-weight: 700; }
.plan-info .price { font-size: 20px; font-weight: 800; color: var(--text-main); margin: 4px 0; }
.btn-select-plan {
    padding: 8px 18px; border: 2px solid var(--cical-blue); background: transparent;
    color: var(--cical-blue); border-radius: 30px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.btn-select-plan:hover { background: var(--cical-blue); color: white; }

/* 6. RESPONSIVE DESKTOP */
@media (min-width: 1024px) {
    .opis-hero-container { flex-direction: row; text-align: left; }
    .opis-simulator-box { max-width: 450px; }
    .hero-car-image { flex: 1; justify-content: flex-end; }
    
    .opis-split-layout { flex-direction: row; align-items: flex-start; }
    .opis-left-col { flex: 1.4; } /* Gráfico maior */
    .opis-right-col { flex: 1; position: sticky; top: 20px; }
}


/* RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    .graph-row {
        display: flex;
        flex-direction: column; /* Empilha no celular */
        align-items: flex-start;
        gap: 10px;
        background: #f9fafb;
        padding: 15px;
        border-radius: 12px;
    }
    
    .graph-label { text-align: left; width: 100%; font-size: 16px; margin-bottom: 5px; }
    
    .graph-bars-wrapper { 
        width: 100%; 
        height: 40px; /* Barras um pouco menores no mobile */
    }
    
    .graph-values {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
    }
    .val-money { font-size: 16px; }
}


/* ==========================================================================
 * DYNAMIC TOOLTIPS (PLANOS)
 * ==========================================================================
 */

/* O Ícone de Interrogação (?) */
.opis-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #E2E8F0;
    color: #64748B;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    position: relative; /* Necessário para posicionar o tooltip filho */
    transition: all 0.2s ease;
    vertical-align: middle;
}

/* Estado Hover do Ícone */
.opis-info-icon:hover {
    background: var(--cical-blue);
    color: white;
    transform: scale(1.1);
}

/* O Balão de Texto (Tooltip) */
.opis-tooltip-content {
    position: absolute;
    bottom: 160%; /* Posiciona acima do ícone */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Começa um pouco mais baixo para animar */
    
    width: 240px; /* Largura confortável para leitura */
    background: #1E293B; /* Azul Escuro/Cinza Profundo (Padrão Moderno) */
    color: #F8FAFC;
    padding: 12px 16px;
    border-radius: 12px; /* Cantos arredondados FAANG */
    
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Sombra difusa suave */
    border: 1px solid rgba(255,255,255,0.1);
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    
    /* Animação Suave */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Seta do Balão (Arrow) */
.opis-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%; /* Logo abaixo do balão */
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1E293B transparent transparent transparent;
}

/* Ação de Hover (Mostrar) */
.opis-info-icon:hover .opis-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Sobe suavemente para o lugar final */
}



/* ==========================================================================
 * FAANG STEPPER (MODERN)
 * ==========================================================================
 */
.opis-stepper-container {
    margin-bottom: 40px;
    padding: 0 10px;
}

.opis-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 500px; /* Mais compacto */
    margin: 0 auto;
}

/* Linha de fundo (Background Track) */
.opis-stepper::before {
    content: '';
    position: absolute;
    top: 15px; /* Centralizado verticalmente com o círculo (30px/2) */
    left: 20px;
    right: 20px;
    height: 3px;
    background: #F1F5F9;
    border-radius: 4px;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

/* O Círculo (Bolinha) */
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #94A3B8;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 13px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efeito elástico (bouncy) */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* O Rótulo (Texto abaixo) */
.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

/* --- ESTADOS (Active & Completed) --- */

/* Ativo (Onde o usuário está) */
.step-item.active .step-circle {
    background: var(--cical-blue);
    border-color: var(--cical-blue);
    color: white;
    transform: scale(1.15); /* Cresce um pouco */
    box-shadow: 0 0 0 5px rgba(0, 71, 186, 0.15); /* Anel de foco suave */
}
.step-item.active .step-label {
    color: var(--cical-blue);
}

/* Concluído (Passado) */
.step-item.completed .step-circle {
    background: #10B981; /* Verde Sucesso */
    border-color: #10B981;
    color: white;
    /* Troca o número por check via CSS ou mantém número */
}
.step-item.completed .step-circle::after {
    /* Opcional: Se quiser check ao invés de número */
    /* content: '✓'; font-size: 14px; position: absolute; */
}
.step-item.completed .step-label {
    color: #10B981;
}

/* ==========================================================================
 * MODAL ARCHITECTURE (GLASSMORPHISM)
 * ==========================================================================
 */

/* 1. O Fundo Escuro e Desfocado */
.opis-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Azul escuro semi-transparente */
    backdrop-filter: blur(8px); /* O Efeito Vidro Esfumaçado */
    -webkit-backdrop-filter: blur(8px); /* Safari */
    z-index: 9999; /* Fica acima de tudo */
    display: flex;
    align-items: center; /* Centraliza Verticalmente */
    justify-content: center; /* Centraliza Horizontalmente */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Evita clique enquanto invisível */
}

.opis-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* 2. A Caixa Branca do Modal */
.opis-modal-container {
    background: #fff;
    width: 90%;
    max-width: 1100px; /* Largo para desktop */
    height: 85vh; /* Altura fixa relativa */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden; /* Mantém o scroll dentro */
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.opis-modal-overlay.open .opis-modal-container {
    transform: scale(1);
}

/* 3. Área de Scroll Interno */
.opis-modal-scroll {
    flex: 1;
    overflow-y: auto; /* Scroll vertical */
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
}

/* 4. Botão de Fechar (X) */
.opis-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.opis-close-modal:hover {
    background: #E2E8F0;
    color: #EF4444;
}

/* 5. Ajustes Mobile (Prioridade) */
@media (max-width: 768px) {
    .opis-modal-container {
        width: 100%;
        height: 100%; /* Tela cheia no mobile */
        max-width: none;
        border-radius: 0; /* Remove cantos no full screen */
    }
    .opis-modal-scroll {
        padding: 15px;
        padding-top: 50px; /* Espaço para o botão X não cobrir conteúdo */
    }
    .opis-close-modal {
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.9); /* Transparencia no mobile */
    }
}




/* ==========================================================================
 * FIX: SCROLLBAR VISÍVEL & LAYOUT DO MODAL
 * ==========================================================================
 */

/* 1. Estilização da Barra de Rolagem (Webkit/Chrome/Safari/Edge) 
   Garante que ela seja visível e elegante dentro do modal branco */
.opis-modal-scroll::-webkit-scrollbar {
    width: 8px; /* Largura fina e elegante */
}

.opis-modal-scroll::-webkit-scrollbar-track {
    background: transparent; /* Fundo do trilho transparente */
    margin-top: 20px;
    margin-bottom: 20px;
}

.opis-modal-scroll::-webkit-scrollbar-thumb {
    background-color: #CBD5E1; /* Cinza suave (Slate-300) */
    border-radius: 20px; /* Redondinha */
    border: 3px solid transparent; /* Truque para dar respiro lateral */
    background-clip: content-box;
}

.opis-modal-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #94A3B8; /* Mais escuro ao passar o mouse */
}

/* 2. Correção de Layout para Views Longas (Cadastro) */
.opis-modal-scroll {
    /* Força o comportamento de scroll */
    overflow-y: auto !important; 
    overflow-x: hidden;
    
    /* Garante que o scroll tenha espaço e não corte o conteúdo */
    padding-right: 5px; 
    
    /* Fix para Firefox */
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

/* 3. Garante que a View interna expanda a altura corretamente */
.opis-view {
    height: auto !important;
    min-height: 100%;
    overflow: visible !important; /* Deixa o pai (.opis-modal-scroll) gerenciar a rolagem */
    display: none; /* Mantém o padrão (o JS ativa com display:block) */
}

.opis-view.active {
    display: block;
    animation: fadeIn 0.4s ease-out; /* Suaviza a entrada */
}

/* 4. Ajuste Específico para o Layout Complexo (Step 3) */
.opis-complex-layout {
    height: auto;
    padding-bottom: 40px; /* Margem extra no final para o botão não colar no chão */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
 * FIX: DESBLOQUEIO DE SCROLL NO STEP 3 (CADASTRO)
 * ==========================================================================
 */

/* 1. Força a View de Cadastro a ter altura infinita (auto) */
#view-register {
    display: block; 
    height: auto !important;
    min-height: 100%; 
    overflow: visible !important;
    padding-bottom: 80px; /* Espaço extra generoso no final */
}

/* 2. Corrige o Container Flexbox para não travar a altura */
.opis-complex-layout {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha se faltar espaço */
    height: auto !important; 
    min-height: auto !important;
    overflow: visible !important;
    gap: 30px;
    align-items: flex-start; /* Impede que a sidebar estique a altura artificialmente */
}

/* 3. Destrava as colunas internas para não terem scroll próprio */
.summary-sidebar, 
.form-main-area {
    height: auto !important;
    overflow: visible !important;
    flex: 1; /* Garante distribuição de espaço */
    min-width: 300px; /* Evita esmagamento no desktop */
}

/* 4. Fix Crítico: Desativa Sticky na Sidebar dentro do Modal */
/* Sidebars 'sticky' muitas vezes bugam o scroll de modais. Vamos travar ela. */
.summary-card {
    position: relative !important; 
    top: auto !important;
    height: auto !important;
}

/* 5. Mobile: Garante pilha vertical */
@media (max-width: 900px) {
    .opis-complex-layout {
        display: block; /* Remove flexbox no mobile para garantir scroll nativo */
    }
    
    .summary-sidebar {
        margin-bottom: 30px;
    }
    
    #view-register {
        padding-bottom: 120px; /* Mais espaço para o dedo no celular */
    }
}

/* Correções Thymo */
/* ==========================================================================
 * ✅ SCROLL MOBILE FIX — OPIS v5.0.2 (Produção)
 * ========================================================================== */
body.opis-modal-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto !important;
}

#opis-modal-overlay.open {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    opacity: 1 !important;
}

.opis-modal-container {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.opis-modal-scroll {
    flex: 1 !important;
    overflow-y: scroll !important; /* não "auto" */
    -webkit-overflow-scrolling: touch !important;
    padding: 60px 15px 20px !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
}

/* Remove sticky no mobile */
@media (max-width: 768px) {
    .summary-card {
        position: relative !important;
        top: auto !important;
    }
}

/* Força o hardware a renderizar o scroll (Hack de Performance Android) */
.opis-modal-scroll {
    -webkit-overflow-scrolling: touch !important;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* Garante que as views dentro do modal estiquem o conteúdo */
.opis-view.active {
    display: block !important;
    height: auto !important;
    min-height: 101% !important; /* O 1% extra força o scroll a existir */
}

/* Ajuste para o formulário de endereço do Step 2 */
#form-address-data {
    display: block !important;
    padding-bottom: 100px !important;
}

/* Impede que os campos bloqueados 'roubem' o foco do scroll no Android */
input[readonly], .bg-locked {
    pointer-events: none !important;
    user-select: none;
}
/* Mas permite clicar no container do CEP para abrir o teclado */
#input-cep { pointer-events: auto !important; }

/* Gatekeeper Modal Styles */
.input-error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Garante que o modal fique acima do Elementor */
#opis-captcha-modal {
    backdrop-filter: blur(5px);
}