/* ============================================
   Formulário LOTTO APP - estilos clone da tela
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: #333333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.conteiner-principal {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- Logo ----- */
.cabecalho {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* Logo mais pequeno, alinhado ao conteúdo */
.logo {
  display: block;
  max-width: 130px;
  height: auto;
  object-fit: contain;
}

/* Etapas do formulário: só a ativa é exibida */
.etapa {
  display: none;
  width: 100%;
}
.etapa.ativa {
  display: block;
}

/* Na tela de carregamento, esconde a barra de progresso do topo */
.conteiner-principal.carregando .barra-progresso {
  display: none;
}

/* Barra de progresso com a mesma largura que pergunta e opções */
.barra-progresso {
  width: 100%;
  margin-bottom: 48px;
}

.barra-progresso-trilha {
  width: 100%;
  height: 6px;
  background-color: rgb(220, 220, 220);
  border-radius: 3px;
  overflow: hidden;
}

.barra-progresso-preenchimento {
  height: 100%;
  background-color: #000000;
  border-radius: 3px;
  transition: width 0.2s ease;
}

/* Pergunta em Poppins com grossura bem visível (bold forte) */
.pergunta {
  width: 100%;
  margin: 0 0 28px;
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
  color: #000000;
  text-align: left;
}

/* ----- Opções (botões) ----- */
.opcoes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background-color: rgb(230, 230, 230);
  border: 1px solid rgb(150, 150, 150);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.2s ease, border-width 0.2s ease;
}

.opcao:hover {
  background-color: rgb(220, 220, 220);
  border-color: rgb(130, 130, 130);
  transform: scale(1.02);
  border-width: 2px;
}

.opcao:active {
  background-color: rgb(210, 210, 210);
}

.opcao-texto {
  flex: 1;
  margin-right: 12px;
}

/* Emojis das opções em tamanho maior */
.opcao-emoji {
  font-size: 1.5em;
  line-height: 1;
  vertical-align: middle;
}

/* Círculo redondo em volta da seta à direita */
.opcao-seta-circulo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
}

.opcao-seta {
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
}

/* Texto livre: grifo só no texto marcado (cor amarela), não no bloco inteiro */
.texto-livre {
  width: 100%;
  margin: 12px 0 0;
  padding: 16px 20px;
  text-align: center;
  border: none;
}

.grifo {
  background-color: #ffeb3b;
  padding: 0 4px;
  border-radius: 2px;
}

.texto-livre-paragrafo {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333333;
  text-align: center;
}

.texto-livre-paragrafo:last-child {
  margin-bottom: 0;
}

.texto-livre-destaque {
  font-weight: 700;
  color: #000000;
}

/* ----- Tela de carregamento (etapa 7) - distribuição como no print ----- */
/* Só exibe e usa flex quando esta etapa estiver ativa (evita mostrar em todas as páginas) */
.etapa-carregamento {
  width: 100%;
}
.etapa.ativa.etapa-carregamento {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Linha preta separadora abaixo do logo (60–70% largura, centralizada) */
.carregamento-separador {
  width: 65%;
  max-width: 320px;
  height: 4px;
  background-color: #000000;
  margin: 20px 0 32px;
}

/* Lista dos 4 passos: alinhamento centro-esquerda, espaçamento vertical moderado */
.carregamento-lista {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
  max-width: 90%;
}

.carregamento-item {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #333333;
  line-height: 1.5;
  padding: 10px 0;
}

.carregamento-item:not(:last-child) {
  border-bottom: 1px solid rgb(240, 240, 240);
}

/* Linha: "Carregando..." | barra | "X%" */
/* Texto em cima; barra em baixo ocupando a horizontal */
.carregamento-barra-bloco {
  width: 100%;
  max-width: 85%;
  margin-bottom: 36px;
}

.carregamento-texto {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #333333;
  margin: 0 0 10px;
}

.carregamento-barra-linha {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carregamento-barra {
  flex: 1;
  min-width: 0;
}

.carregamento-barra-trilha {
  width: 100%;
  height: 10px;
  background-color: rgb(220, 220, 220);
  border-radius: 5px;
  overflow: hidden;
}

.carregamento-barra-preenchimento {
  height: 100%;
  background-color: #000000;
  border-radius: 5px;
  transition: width 0.15s ease;
}

.carregamento-porcentagem {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #333333;
  flex-shrink: 0;
  align-self: center;
}

/* Texto informativo embaixo: centralizado, maior, bom espaçamento em cima */
.carregamento-mensagem {
  margin: 0;
  padding: 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
  text-align: center;
  max-width: 95%;
}
