:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;

  --brand:#0b2a5a;
  --brand2:#0a3a7a;
  --accent:#17a2b8;
  --ok:#16a34a;
  --warn:#f59e0b;
  --err:#ef4444;

  --shadow:0 18px 50px rgba(2,6,23,.12);
  --radius:18px;
}

*{ box-sizing:border-box; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; }
*:focus{ outline: none; }

body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(11,42,90,.08), transparent 60%),
    radial-gradient(1200px 500px at 80% -10%, rgba(23,162,184,.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  min-height:100vh;
}

.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .inner{
  max-width:1440px; margin:0 auto; padding: 12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brandbox{ display:flex; align-items:center; gap:12px; }
.logo{
  width:200px;
  height:auto;
  background:transparent;
  border:none;
  display:flex;
  align-items:center;
  transform: translateY(-6px);
}
.logo img{
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}

.brandtext b{ display:block; font-size:14px; letter-spacing:.2px; color:var(--brand); }
.brandtext span{ display:block; font-size:12px; color:var(--muted); }

.tokenpill{
  font-size:13px;
  font-weight:600;
  color:var(--brand);
  border:1px solid rgba(11,42,90,.25);
  background:rgba(11,42,90,.06);
  padding:8px 12px; border-radius:999px;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.wrap{
  max-width:1440px;
  margin:0 auto;
  padding:18px;
  min-height: calc(100vh - 74px);
  display:flex;
  align-items:stretch;
}
.layout{ width:100%; display:block; }

.card{
  width:100%;
  min-height: calc(100vh - 74px - 36px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.card-hd{
  padding:18px 18px 14px;
  border-bottom:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.card-hd-left{
  flex:1 1 280px;
  min-width:0;
  overflow-wrap: break-word;
}
.title{ margin:0; font-size:16px; color:var(--brand); line-height:1.3; word-wrap: break-word; }
.subtitle{ margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.35; word-wrap: break-word; }

.progress-wrap{
  width:100%;
  height:6px;
  background:var(--line);
  border-radius:999px;
  overflow:hidden;
  margin-top:12px;
}
.progress-bar{
  height:100%;
  background:linear-gradient(90deg, var(--accent), var(--brand));
  border-radius:999px;
  width:0%;
  transition:width .3s ease;
}

.steps{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  flex-shrink:0;
  min-width:0;
  overflow-x:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
}
.steps::-webkit-scrollbar{ height:4px; }
.steps::-webkit-scrollbar-thumb{ background:var(--line); border-radius:4px; }
.step{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  user-select:none;
  cursor:pointer;
  text-align:left;
  justify-content:flex-start;
  white-space:nowrap;
  flex-shrink:0;
}
.dot{ width:10px; height:10px; border-radius:50%; background:rgba(100,116,139,.25); }
.step.active{ border-color:rgba(11,42,90,.35); color:var(--brand); }
.step.active .dot{ background:var(--accent); }
.step.done{ color:#0f172a; }
.step.done .dot{ background:rgba(22,163,74,.55); }

form{ display:flex; flex-direction:column; flex:1; min-height:0; }
.content{ flex:1; min-height:0; overflow:auto; }

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:18px;
}

.row{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;                 /* um pouco mais de respiro */
  text-align:left;
  justify-items:stretch;    /* ✅ faz radios/badge/table ocupar 100% */
  align-items:start;
}

.full{ grid-column:1 / -1; }

label{ font-size:12px; color:var(--muted); text-align:left; }

/* Inputs “normais” (não aplica em radio/checkbox) */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
  text-align:left;
}

/* Estilo correto para radio/checkbox (não virar 100% largura) */
input[type="radio"],
input[type="checkbox"]{
  width:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus{
  border-color: rgba(11,42,90,.35);
  box-shadow: 0 0 0 4px rgba(23,162,184,.14);
}

.step-panel[data-panel="7"] input[type="file"]{
  display:block;
  padding:10px 12px;
  font-size:14px;
  border:1px dashed var(--line);
  border-radius:10px;
  background:rgba(244,247,251,.5);
}
.step-panel[data-panel="7"] input[type="file"]:hover,
.step-panel[data-panel="7"] input[type="file"]:focus{
  border-color:rgba(11,42,90,.35);
  background:#fff;
}
.step-panel[data-panel="7"] .hint{ display:block; margin-top:4px; }

/* Foto 3x4 - Captura */
.foto-capture-container{ width:100%; }
.foto-preview-area{
  margin-bottom:16px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  text-align:center;
}
.foto-preview-area img{
  max-width:100%;
  max-height:300px;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  margin-bottom:12px;
}
.btn-remover-foto{
  padding:8px 14px;
  border:1px solid var(--err);
  background:#fff;
  color:var(--err);
  border-radius:8px;
  font-size:13px;
  cursor:pointer;
  transition:all .15s ease;
}
.btn-remover-foto:hover{
  background:rgba(239,68,68,.06);
}
.foto-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.foto-ou{
  color:var(--muted);
  font-size:13px;
}
.btn-upload-foto{
  display:inline-block;
  padding:10px 14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:12px;
  font-size:13px;
  cursor:pointer;
  transition:all .15s ease;
  text-align:center;
}
.btn-upload-foto:hover{
  border-color:rgba(11,42,90,.35);
  background:rgba(244,247,251,.75);
}
.foto-capture-modal{
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.85);
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.foto-capture-content{
  background:#fff;
  border-radius:16px;
  padding:24px;
  max-width:90vw;
  max-height:90vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}
.foto-capture-content h3{
  margin:0;
  font-size:18px;
  color:var(--brand);
}
.foto-capture-content video{
  max-width:100%;
  max-height:60vh;
  border-radius:12px;
  background:#000;
}
.foto-capture-aguarde{
  margin:12px 0 0;
  font-size:1.5rem;
  font-weight:600;
  color:var(--brand);
  text-align:center;
}
.foto-capture-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.foto-capture-buttons button{
  min-width:120px;
}

.ficha-aviso-esq{ grid-column:1; justify-items:start; align-items:center; }
.ficha-aviso-texto{ margin:0; font-size:1.1rem; color:var(--text); text-align:left; }

.ficha-actions{ margin-bottom:16px; }
.ficha-cadastral{
  width:100%;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  font-size:14px;
  line-height:1.55;
  overflow:hidden;
  box-shadow:0 4px 20px rgba(11,42,90,.06);
}
.ficha-cadastral .ficha-header{
  padding:28px 28px 24px;
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color:#fff;
  border-bottom:4px solid var(--accent);
}
.ficha-cadastral .ficha-header-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.ficha-cadastral .ficha-header-top > div:first-child{ flex:1; text-align:center; }
.ficha-foto-wrap{ flex-shrink:0; }
/* 3x4 proporção – tamanho legível para ficha */
.ficha-foto{
  width:90px;
  height:120px;
  object-fit:cover;
  border-radius:4px;
  border:2px solid rgba(255,255,255,.5);
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.ficha-cadastral .ficha-title{
  margin:0 0 6px;
  font-size:1.5rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.ficha-cadastral .ficha-subtitle{
  margin:0;
  font-size:12px;
  opacity:.9;
  font-weight:500;
}
.ficha-cadastral .ficha-candidato{
  margin:14px 0 0;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.25);
  font-size:1.05rem;
  font-weight:600;
}
.ficha-cadastral .ficha-sec{
  padding:20px 28px 22px;
  border-bottom:1px solid var(--line);
}
.ficha-cadastral .ficha-sec:last-of-type{ border-bottom:none; }
.ficha-cadastral .ficha-sec:nth-of-type(even){ background:rgba(244,247,251,.35); }
.ficha-cadastral .ficha-sec-title{
  margin:0 0 14px;
  padding-bottom:10px;
  font-size:15px;
  font-weight:700;
  color:var(--brand);
  border-bottom:2px solid rgba(11,42,90,.15);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.ficha-cadastral .ficha-sec-body{ margin:0; }
.ficha-cadastral .ficha-row{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:12px 20px;
  align-items:baseline;
  padding:6px 0;
  border-bottom:1px solid rgba(226,232,240,.6);
  font-size:13px;
}
.ficha-cadastral .ficha-row:last-child{ border-bottom:none; }
.ficha-cadastral .ficha-label{
  color:var(--muted);
  font-weight:500;
}
.ficha-cadastral .ficha-value{
  color:var(--text);
  font-weight:500;
}
.ficha-cadastral .ficha-value.ficha-dep-nome{
  white-space:nowrap;
}
/* Ocultar "Ver resposta do Senior" na etapa Revisão */
#respostaSeniorBox{ display:none !important; }

.json-conferencia{ margin-top:16px; border:1px solid var(--line); border-radius:10px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.json-conferencia summary{ padding:12px 16px; cursor:pointer; background:rgba(244,247,251,.6); font-size:13px; font-weight:500; color:var(--muted); }
.json-conferencia summary:hover{ background:rgba(244,247,251,.9); }
.json-conferencia pre{ padding:14px 16px; margin:0; max-height:240px; overflow:auto; font-size:12px; background:#fafbfc; border-top:1px solid var(--line); }


textarea{ min-height:96px; resize:vertical; }

.hint{ color:var(--muted); font-size:12px; }
.hint-dep{ font-size:1rem; color:var(--brand); font-weight:500; }
.dep-title{ font-size:1.25rem; color:var(--brand); }
.sep{ height:1px; background:var(--line); grid-column:1/-1; margin:6px 0; }

.lgpd-aceite:hover{ background:rgba(244,247,251,.85) !important; border-color:rgba(11,42,90,.2) !important; }
.lgpd-aceite:has(input:focus){ border-color:rgba(11,42,90,.35); box-shadow:0 0 0 4px rgba(23,162,184,.14); }

.footer{
  padding:14px 18px;
  border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(244,247,251,.75));
}

.btns{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .15s ease;
  text-align:left;
}
button:hover{ box-shadow: 0 10px 22px rgba(2,6,23,.08); transform: translateY(-1px); }
button:disabled{ opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }

button.primary{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-color: rgba(11,42,90,.35);
  color:#fff;
  font-weight:600;
}
button.primary:hover{ box-shadow: 0 14px 30px rgba(11,42,90,.18); }
button.primary.loading{ cursor:wait; opacity:.9; pointer-events:none; }

.alert{
  margin:12px 0 0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.35);
  background:rgba(239,68,68,.06);
  color:#7f1d1d;
  display:none;
  text-align:left;
}
.alert.ok{
  border-color:rgba(22,163,74,.35);
  background:rgba(22,163,74,.06);
  color:#14532d;
}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  text-align:left;
  width:100%;
  justify-content:space-between;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  font-size:12px;
  text-align:left;
  vertical-align:top;
}
.table th{ color:var(--muted); font-weight:600; background:rgba(244,247,251,.75); }
.table tr:last-child td{ border-bottom:none; }

.pillbtn{
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
}

/* ===== QUESTIONÁRIO (radios) ===== */
.radios{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}

.radios label{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin:0;
  padding:6px 8px;
  border-radius:10px;
  cursor:pointer;
  text-align:left;
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea{
  border-radius:12px;
  padding:11px 12px;
}



.radios label:hover{
  background: rgba(244,247,251,.75);
}

.radios input[type="radio"]{
  margin:0;
  flex:0 0 auto;
}


/* AUTOCOMPLETE */
.ac-wrap{ position:relative; width:100%; }
.ac-list{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 6px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  max-height:240px;
  overflow:auto;
  display:none;
  z-index:50;
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}
.ac-item{
  padding:10px 12px;
  font-size:13px;
  cursor:pointer;
  border-bottom:1px solid var(--line);
  text-align:left;
}
.ac-item:last-child{ border-bottom:none; }
.ac-item:hover{ background:rgba(23,162,184,.08); }

/* ✅ DEPENDENTES (layout profissional, 2 por linha) */
.dep-box{
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:14px;
  width:100%;
}

.dep-grid{
  width:100%;
  display:grid;
  grid-template-columns: 1fr 1fr;    /* 2 campos por linha */
  gap:16px 18px;
  align-items:end;
}

.dep-span-2{ grid-column: 1 / -1; } /* Nome ocupa linha toda */

.dep-actions{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.dep-actions button{ width:100%; }

/* Linha de dependente cadastrado: azul e negrito para indicar que foi cadastrado */
.dep-row-cadastrado td{
  color:#1565c0;
  background:rgba(21,101,192,0.08);
  font-weight:bold;
}
.dep-row-cadastrado td .pillbtn{
  color:inherit;
  font-weight:bold;
}

/* ===============================
   RESPONSIVIDADE - TABLET / DESKTOP ESTREITO
   =============================== */
@media (max-width: 1024px){
  .topbar .inner{ padding: 10px 14px; }
  .logo{ width: 160px; }
  .brandtext b{ font-size: 13px; }
  .brandtext span{ font-size: 11px; }
  .tokenpill{ font-size: 11px; padding: 6px 10px; }
  
  .grid{ gap: 12px; padding: 16px; }
  .wrap{ padding: 16px; }
}

/* Em telas estreitas: título e subtítulo em cima, steps em linha separada abaixo (evita sobreposição) */
@media (max-width: 1100px){
  .card-hd{
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }
  .card-hd-left{
    width: 100%;
    flex: none;
    min-width: 0;
  }
  .steps{
    width: 100%;
    flex: none;
    min-width: 0;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

/* ===============================
   RESPONSIVIDADE - MOBILE
   =============================== */
@media (max-width: 720px){
  /* Topbar */
  .topbar .inner{ 
    padding: 10px 12px; 
    flex-wrap: wrap;
  }
  .brandbox{ 
    flex: 1 1 auto;
    min-width: 0;
  }
  .logo{ 
    width: 140px; 
    transform: translateY(-4px);
  }
  .brandtext b{ 
    font-size: 12px; 
    line-height: 1.3;
  }
  .brandtext span{ 
    font-size: 10px; 
    line-height: 1.2;
  }
  .tokenpill{ 
    font-size: 10px; 
    padding: 6px 10px;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 8px;
    text-align: center;
  }
  
  /* Layout principal */
  .wrap{ 
    padding: 12px; 
    min-height: calc(100vh - 90px);
  }
  .card{ 
    min-height: calc(100vh - 90px - 24px);
    border-radius: 16px;
  }
  
  /* Card header: em coluna rígida para não embolar texto com steps */
  .card-hd{ 
    padding: 14px 14px 12px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }
  .card-hd-left{
    width: 100%;
    flex: none;
    order: 1;
    padding-right: 0;
  }
  .title{ font-size: 15px; line-height: 1.3; }
  .subtitle{ font-size: 12px; margin-top: 4px; line-height: 1.4; }
  .progress-wrap{ margin-top: 10px; }
  
  /* Steps: sempre em linha separada abaixo do título, com scroll horizontal */
  .steps{ 
    width: 100%;
    flex: none;
    order: 2;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 6px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    min-height: 36px;
  }
  .step{
    font-size: 11px;
    padding: 6px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .dot{ width: 8px; height: 8px; }
  
  /* Grid e formulários */
  .grid{ 
    grid-template-columns: 1fr; 
    gap: 12px;
    padding: 14px;
  }
  .row{ gap: 8px; }
  
  /* Inputs */
  input:not([type="radio"]):not([type="checkbox"]),
  select,
  textarea{
    padding: 11px 12px;
    font-size: 16px; /* Evita zoom automático no iOS */
    border-radius: 12px;
    -webkit-appearance: none;
    appearance: none;
  }
  
  /* Select com seta customizada em mobile */
  select{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }
  
  /* Botões */
  button{
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
  .btns{
    flex-direction: column;
    width: 100%;
  }
  .btns button{
    width: 100%;
  }
  
  /* Footer */
  .footer{
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Dependentes */
  .dep-grid{ grid-template-columns: 1fr; }
  .dep-span-2{ grid-column: auto; }
  
  /* Tabela de dependentes */
  .table{
    font-size: 11px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th, 
  .table td{
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .table th:first-child,
  .table td:first-child{
    padding-left: 10px;
  }
  .table th:last-child,
  .table td:last-child{
    padding-right: 10px;
  }
  
  /* Ficha cadastral */
  .ficha-cadastral .ficha-header{ 
    padding: 18px 14px 16px; 
  }
  .ficha-cadastral .ficha-header-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .ficha-cadastral .ficha-title{ 
    font-size: 1.1rem; 
    letter-spacing: .03em; 
  }
  .ficha-cadastral .ficha-subtitle{
    font-size: 0.85rem;
  }
  .ficha-foto{
    width: 70px;
    height: 93px;
  }
  .ficha-cadastral .ficha-sec{ 
    padding: 14px 14px 16px; 
  }
  .ficha-cadastral .ficha-row{ 
    grid-template-columns: 1fr; 
    gap: 2px 0; 
    padding: 6px 0; 
  }
  .ficha-cadastral .ficha-label{ 
    font-size: 11px; 
  }
  .ficha-cadastral .ficha-value{
    font-size: 13px;
  }
  
  /* Modal de foto */
  .foto-capture-modal{
    padding: 10px;
  }
  .foto-capture-content{
    padding: 20px;
    max-width: 95vw;
    max-height: 85vh;
  }
  .foto-capture-content h3{
    font-size: 16px;
  }
  .foto-capture-content video{
    max-height: 50vh;
  }
  .foto-capture-buttons{
    flex-direction: column;
    width: 100%;
  }
  .foto-capture-buttons button{
    width: 100%;
    min-width: auto;
  }
  
  /* Foto preview */
  .foto-preview-area{
    padding: 10px;
  }
  .foto-preview-area img{
    max-height: 250px;
  }
  .foto-actions{
    flex-direction: column;
    width: 100%;
  }
  .foto-actions button,
  .foto-actions .btn-upload-foto{
    width: 100%;
  }
  
  /* Badge */
  .badge{
    padding: 10px 12px;
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  /* JSON conferência */
  .json-conferencia summary{
    padding: 10px 12px;
    font-size: 12px;
  }
  .json-conferencia pre{
    padding: 12px;
    font-size: 11px;
    max-height: 200px;
  }
  
  /* Avisos */
  .ficha-aviso-texto{
    font-size: 0.95rem;
  }
}

/* ===============================
   RESPONSIVIDADE - MOBILE PEQUENO
   =============================== */
@media (max-width: 480px){
  .wrap{ padding: 10px; }
  .grid{ padding: 12px; gap: 10px; }
  .card-hd{ padding: 12px 12px 10px; }
  .title{ font-size: 14px; }
  .subtitle{ font-size: 11px; }
  
  .step{
    font-size: 10px;
    padding: 5px 7px;
  }
  
  input:not([type="radio"]):not([type="checkbox"]),
  select,
  textarea{
    padding: 10px 11px;
    font-size: 16px;
  }
  
  button{
    padding: 11px 14px;
    font-size: 13px;
  }
  
  .ficha-cadastral .ficha-header{ 
    padding: 16px 12px 14px; 
  }
  .ficha-cadastral .ficha-sec{ 
    padding: 12px 12px 14px; 
  }
}


/* ===============================
   FIX DEFINITIVO – QUESTIONÁRIO
   =============================== */

/* Garante que o container do rádio não vire grid nem space-between */
.step-panel[data-panel="5"] .radios{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
}

/* Garante alinhamento correto do radio + texto */
.step-panel[data-panel="5"] .radios label{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  text-align:left !important;
}

/* Impede o input de “empurrar” o texto */
.step-panel[data-panel="5"] .radios input[type="radio"]{
  margin:0 !important;
  flex:0 0 auto !important;
}


/* =========================
   FIX STEP 5 - QUESTIONÁRIO
   (força layout compacto)
   ========================= */
.step-panel[data-panel="5"] .radios{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  align-items:stretch;
}

.step-panel[data-panel="5"] .radios label{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin:0;
  padding:6px 8px;
  border-radius:10px;
  cursor:pointer;
  text-align:left;
}

.step-panel[data-panel="5"] .radios label:hover{
  background: rgba(244,247,251,.75);
}

.step-panel[data-panel="5"] .radios input[type="radio"]{
  margin:0;
  flex:0 0 auto;
}

