/* ════════════════════════════════════════════════════════════
   LASTROh — cliente.css (Sprint 10)
   Estilos exclusivos da jornada do cliente.
   Complementa cadastro.css, que deve ser carregado antes.
   ════════════════════════════════════════════════════════════ */

/* ── Estados de exibição gerenciados por cliente.js ─────── */
/* Padrão: visível. Estados ocultos têm display:none no HTML.
   cliente.js usa _mostrar()/_esconder() via style.display.    */

/* ── Spinner de carregamento ───────────────────────────── */
#estado-carregando {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 18px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.estado-loading-txt {
  font-size: 15px;
  color: var(--text2);
  font-weight: 500;
}

/* ── Resumo do serviço (grid de dados) ─────────────────── */
.servico-resumo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-bottom: 24px;
}
.servico-resumo > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── Protocolo em destaque ──────────────────────────────── */
.protocolo-destaque {
  display: inline-block;
  background: var(--bg2);
  border: 1.5px solid #D0D8E4;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
  font-family: 'Inter', monospace;
}

/* ── Pergunta de confirmação ────────────────────────────── */
.confirmar-pergunta {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin: 24px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg2);
}

/* ── Botões de decisão SIM / NÃO ───────────────────────── */
.confirmar-botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.btn-decisao-sim {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, opacity .2s;
  letter-spacing: .5px;
}
.btn-decisao-sim:hover:not(:disabled) { background: #178a63; }
.btn-decisao-sim:disabled { opacity: .5; cursor: not-allowed; }

.btn-decisao-nao {
  background: #fff;
  color: var(--err, #C00000);
  border: 1.5px solid var(--err, #C00000);
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, opacity .2s;
}
.btn-decisao-nao:hover:not(:disabled) { background: #fff5f5; }
.btn-decisao-nao:disabled { opacity: .5; cursor: not-allowed; }

/* ── Aviso de login necessário ──────────────────────────── */
#aviso-login-necessario {
  background: #EAF7EF;
  border: 1.5px solid #BFE7CE;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  text-align: center;
}
#aviso-login-necessario p {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.55;
}
.btn-ir-login-aviso {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.btn-ir-login-aviso:hover { background: #0a2240; }

/* ── Mensagem de erro de processamento ─────────────────── */
#msg-erro-processamento {
  background: #FFF5F5;
  border: 1.5px solid #FFBEBE;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--err, #C00000);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Estado de erro (E) ─────────────────────────────────── */
#estado-erro {
  text-align: center;
  padding: 48px 20px;
}
.estado-erro-icone {
  font-size: 48px;
  margin-bottom: 16px;
}
.estado-erro-titulo {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.estado-erro-detalhe {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.6;
}
.btn-voltar-inicio {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.btn-voltar-inicio:hover { background: var(--bg2); }

/* ── Estado já respondido (F) ───────────────────────────── */
#estado-ja-respondido {
  text-align: center;
  padding: 36px 20px;
}
.ja-respondido-icone {
  font-size: 44px;
  margin-bottom: 14px;
}

/* ── Estados de conclusão (A / B / C) ──────────────────── */
#estado-confirmado,
#estado-recusado,
#estado-sem-dados {
  text-align: center;
}

.concluido-icone {
  font-size: 52px;
  margin-bottom: 16px;
}
.concluido-titulo {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}
.concluido-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Score em destaque na conclusão */
.score-concluido-bloco {
  background: #EAF7EF;
  border: 1.5px solid #BFE7CE;
  border-radius: 14px;
  padding: 22px;
  margin: 20px 0 24px;
}
.score-concluido-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
}
.score-concluido-nivel {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}
.score-concluido-label {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 6px;
}

/* ── Botões de navegação pós-conclusão ──────────────────── */
.concluido-botoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.btn-minha-conta {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.btn-minha-conta:hover { background: #0a2240; }
.btn-inicio-link {
  background: #fff;
  color: var(--text2);
  border: 1.5px solid #D0D8E4;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.btn-inicio-link:hover { background: var(--bg2); }

/* ── Campos com erro (gerado por cliente.js) ─────────────── */
.campo-erro {
  display: block;
  font-size: 12px;
  color: var(--err, #C00000);
  margin-top: 5px;
  min-height: 16px;
}
.campo-invalido {
  border-color: var(--err, #C00000) !important;
}

/* ── Link inline de login no cadastro ──────────────────── */
#link-ir-login-inline {
  display: none;
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 6px;
}

/* ── Link "Criar conta" / "Já tenho conta" ──────────────── */
.cliente-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text2);
}
.cliente-switch-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  padding: 0;
  text-decoration: underline;
}
.cliente-switch-btn:hover { color: #178a63; }

/* ── Nota de privacidade ────────────────────────────────── */
.privacidade-nota {
  background: var(--bg2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  margin-top: 16px;
  text-align: center;
}

/* ── Responsividade ─────────────────────────────────────── */
@media (max-width: 560px) {
  .servico-resumo {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .confirmar-botoes {
    grid-template-columns: 1fr;
  }
  .score-concluido-num {
    font-size: 40px;
  }
}
