/* =========================================================
   ARQUIVO: simuladores.css
   VERSÃO: 3.3.0
   STATUS: EXECUTIVO INSTITUCIONAL – BLOOMBERG FINAL
   OBS: GLOBAL – NÃO QUEBRAR SIMULADORES
========================================================= */

/* =========================================================
   BASE
========================================================= */

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  margin: 0;
}

.container {
  max-width: 1400px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  margin: 30px auto;
}

h1 {
  color: #a31d22;
  text-align: center;
  margin-bottom: 25px;
}

h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

h4 {
  margin: 0 0 12px 0;
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.grid {

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:14px;

}

label {
  font-weight: bold;
  font-size: 13px;
}

input,
select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

small {
  font-size: 12px;
  color: #555;
}

/* =========================================================
   LGPD
========================================================= */

.lgpd-box {
  margin-top: 20px;
  padding: 12px;
  background: #f9f9f9;
  border-left: 4px solid #a31d22;
}

/* =========================================================
   BOTÃO
========================================================= */

button {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  font-size: 15px;
  background: #a31d22;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 6px;
}

button:hover {
  opacity: .9;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* =========================================================
   HEADER EXECUTIVO
========================================================= */

.executivo-header {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
  background: #f4f8ff;
  border-left: 5px solid #a31d22;
}

/* =========================================================
   KPI EXECUTIVO
========================================================= */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.kpi-mini {
  background: #ffffff;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 16px;
}

.kpi-mini small {
  font-size: 11px;
  color: #777;
  display: block;
  margin-bottom: 6px;
}

.kpi-mini strong {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

/* =========================================================
   GRID BLOOMBERG
========================================================= */

.exec-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.exec-main .card {
  margin-bottom: 30px;
}

.exec-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}


/* =========================================================
   FOCO DE CAMPO – PADRÃO SISTEMA FINANCEIRO
========================================================= */

input:focus,
select:focus{

outline:none;
border-color:#a31d22;
box-shadow:0 0 0 2px rgba(163,29,34,0.08);

}
/* =========================================================
   PREMISSAS EXECUTIVO
========================================================= */

.card.premissas-executivo {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 30px;
}

.premissas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.risk-badge {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  background: #eef7f0;
  color: #2e7d32;
}

.premissas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}

.premissa-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f2f6;
  padding: 10px 0;
}

.premissa-label {
  font-size: 13px;
  color: #666;
}

.premissa-valor {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

@media (max-width: 768px) {
  .premissas-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CARDS
========================================================= */

.card {

background:#ffffff;

border:1px solid #e6e9ef;
border-radius:10px;

padding:24px;

box-shadow:0 2px 10px rgba(0,0,0,0.04);

margin-bottom:22px;

transition:all .15s ease;

}
/* =========================================================
   RESULTADOS DOS SIMULADORES
========================================================= */

.resultado-amortizacao p {
  margin: 6px 0;
  font-size: 15px;
}

.resultado-amortizacao hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 18px 0;
}

.resultado-amortizacao h4 {
  color: #a31d22;
}

/* =========================================================
   CTA CONSULTORIA
========================================================= */

.cta-agendamento {
  margin-top: 20px;
}

.cta-agendamento button {
  background: #111;
}

.cta-agendamento button:hover {
  background: #333;
}

/* =========================================================
   LOADING GLOBAL
========================================================= */

.loading {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  border: 4px solid #e4e8ef;
  border-top: 4px solid #a31d22;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading small {
  display: block;
  margin-top: 8px;
  color: #666;
}

/* =========================================================
   GRÁFICOS
========================================================= */

.chart-box {
  position: relative;
  height: 260px;
  width: 100%;
}

.chart-box canvas {
  position: absolute;
  inset: 0;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1100px) {

  .exec-grid {
    grid-template-columns: 1fr;
  }

  .exec-sidebar {
    position: relative;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 20px;
  }

}

/* =========================================================
   COMPARAÇÃO DE CENÁRIOS
========================================================= */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 25px;
}

.compare-card {
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.compare-card h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f6;
  font-size: 14px;
}

.compare-card li:last-child {
  border-bottom: none;
}

.compare-destaque {
  border: 2px solid #a31d22;
  background: #fff8f8;
}

.compare-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #a31d22;
  color: #fff;
  margin-bottom: 10px;
}

@media (max-width: 800px) {

  .compare-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   COMPARAÇÃO SAC vs PRICE
========================================================= */

.sistema-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.sistema-card {
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.sistema-card h4 {
  font-size: 16px;
  margin-bottom: 14px;
}

.sistema-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sistema-card li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f6;
  font-size: 14px;
}

.sistema-card li:last-child {
  border-bottom: none;
}

.sistema-destaque {
  border: 2px solid #2e7d32;
  background: #f4fbf6;
}

.sistema-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #2e7d32;
  color: #fff;
  margin-bottom: 10px;
}

@media (max-width: 800px) {

  .sistema-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   COMPARAÇÃO FGTS
========================================================= */

.fgts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.fgts-card {
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.fgts-card h4 {
  font-size: 16px;
  margin-bottom: 14px;
}

.fgts-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fgts-card li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f6;
  font-size: 14px;
}

.fgts-card li:last-child {
  border-bottom: none;
}

.fgts-destaque {
  border: 2px solid #1976d2;
  background: #f4f8ff;
}

.fgts-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #1976d2;
  color: #fff;
  margin-bottom: 10px;
}

@media (max-width: 800px) {

  .fgts-grid {
    grid-template-columns: 1fr;
  }

}
.bancos-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(90px,1fr));
gap:14px;
margin-top:12px;

}

.banco-item{

border:1px solid #e4e8ef;
border-radius:8px;
padding:10px;
background:#fff;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:all .2s ease;

}

.banco-item img{

max-height:28px;

}

.banco-item:hover{

border-color:#a31d22;
transform:scale(1.05);

}

.banco-item.ativo{

border:2px solid #a31d22;
background:#fff6f6;

}

/* =========================================
MODAL CORRETOR
========================================= */

.modal-corretor{

position:fixed;
top:0;
left:0;
width:100%;
height:100%;

background:rgba(0,0,0,0.55);

display:flex;
align-items:center;
justify-content:center;

z-index:9999;

}

.modal-corretor-box{

background:#fff;

padding:40px;

border-radius:12px;

max-width:500px;

text-align:center;

box-shadow:0 10px 30px rgba(0,0,0,0.3);

}

.modal-corretor-box h2{

color:#a31717;

margin-bottom:10px;

}

.modal-corretor-box p{

margin-bottom:30px;

color:#444;

}

.modal-corretor-actions{

display:flex;
gap:20px;
justify-content:center;

}

.btn-corretor-sim{

background:#a31717;
color:#fff;

border:none;
padding:14px 22px;

border-radius:6px;

cursor:pointer;
font-size:16px;

}

.btn-corretor-nao{

background:#eee;
color:#333;

border:none;
padding:14px 22px;

border-radius:6px;

cursor:pointer;
font-size:16px;

}

.btn-corretor-sim:hover{

background:#8b1212;

}

.btn-corretor-nao:hover{

background:#ddd;

}

/* =========================================================
   CHECKBOX GLOBAL
========================================================= */

label input[type="checkbox"]{

margin-right:8px;
vertical-align:middle;
width:auto;

}

/* =========================================================
   FORM UX – LEITURA RÁPIDA
========================================================= */

.lgpd-consent{

display:flex !important;
align-items:flex-start;
gap:10px;
cursor:pointer;

}

.lgpd-consent input{

width:auto !important;
flex:0 0 auto;

}

.lgpd-consent span{

flex:1;

}

/* =========================================================
   TIPO PROPRIETÁRIO – BOTÕES SELECIONÁVEIS
========================================================= */

.operacao-tipo{

display:flex;
gap:10px;
flex-wrap:wrap;

}

.tipo-btn{

border:1px solid #e4e8ef;
border-radius:8px;
padding:10px 14px;
cursor:pointer;
background:#fff;
font-size:14px;
display:flex;
align-items:center;
gap:6px;

transition:all .2s ease;

}

.tipo-btn input{

display:none;

}

.tipo-btn:hover{

border-color:#a31d22;

}

.tipo-btn input:checked + span{

font-weight:600;

}

.tipo-btn:has(input:checked){

border:2px solid #a31d22;
background:#fff6f6;

}


/* =========================================
CARD ESTRUTURA DA OPERAÇÃO
========================================= */

.operacao-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:24px;

margin-top:15px;

}

.operacao-bloco{

background:#f8f8f8;

border:1px solid #e4e8ef;

border-radius:8px;

padding:14px;

display:flex;

flex-direction:column;

gap:8px;

font-size:14px;

}

.operacao-bloco strong{

color:#7a1c1c;

font-size:13px;

margin-bottom:4px;

}

.operacao-bloco label{

display:flex;

align-items:center;

gap:6px;

cursor:pointer;

font-weight:normal;

}

.operacao-bloco input{

width:auto;

}

@media (max-width:900px){

.operacao-grid{

grid-template-columns:1fr;

}
.opcao input{
pointer-events:none;
}

}
