/* Definição de Fontes */
@font-face {
  font-family: 'Ubuntu-Regular';
  src: url('../fonts/Ubuntu/Ubuntu-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu-Bold';
  src: url('../fonts/Ubuntu/Ubuntu-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Reset Básico e Estilos Globais */
*, *::before, *::after {
  box-sizing: border-box; /* Garante que padding e border sejam incluídos na largura/altura */
}

body {
  font-family: 'Ubuntu-Regular', sans-serif;
  background: linear-gradient(135deg, #b3c10a, #e7f071);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  position: relative; /* Necessário para a sobreposição de loading */
}

/* Logo Fixa */
.fixed-logo {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 6rem; /* Equivalente a h-12 no Tailwind em alguns contextos, adapte se precisar */
  height: auto; /* Mantém a proporção */
  z-index: 1000;
}

/* Container Principal do Formulário */
.form-container {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1.5rem; /* 24px - equivalente a p-6 do Tailwind */
  border-radius: 1rem; /* 16px - equivalente a rounded-2xl do Tailwind */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Sombra equivalente a shadow-xl */
  width: 100%;
  max-width: 40rem; /* Equivalente a max-w-md do Tailwind (448px) */
  position: relative; /* Necessário para a sobreposição de loading */
  margin: 3rem auto; /* Centraliza e adiciona margem superior/inferior */
}

/* Título das Perguntas */
.question-title {
  font-size: 1.25rem; /* 20px - equivalente a text-xl */
  font-weight: 600; /* font-semibold */
  margin-bottom: 1rem; /* 16px - equivalente a mb-4 */
}

/* Área de Input */
.input-area {
  margin-bottom: 1.5rem; /* Espaço entre input e botões, ajustável */
}

/* Estilo para Inputs de Texto e Textareas */
input[type="text"],
input[type="email"],
input[type="tel"], /* Adicione outros tipos de input se usar */
textarea {
  width: 100%;
  padding: 1rem; /* 16px */
  border-radius: 1rem; /* 16px */
  border: none;
  background-color: rgba(255, 255, 255, 0.5); /* Cor de fundo com transparência */
  font-size: 1.2rem; /* Ajustado para um tamanho bom */
  margin-bottom: 1rem; /* Espaçamento entre inputs, se houver múltiplos, ou com o botão */
  outline: none; /* Remove o outline padrão ao focar */
}

textarea {
  resize: vertical; /* Permite redimensionar verticalmente */
  min-height: 4rem; /* Altura mínima para textarea */
}

/* Estilo para Input de Arquivo (Logo) */
input[type="file"] {
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #ccc; /* Adiciona uma borda sutil para file input */
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Grupo de Botões (Voltar/Próximo) */
.button-group {
  display: flex;
  justify-content: space-between;
  gap: 1rem; /* Espaço entre os botões */
  margin-top: 1.5rem; /* Espaço acima do grupo de botões */
}

/* Estilo Geral para Botões */
.btn {
  padding: 0.75rem 1.5rem; /* Equivalente a px-4 py-2 do Tailwind (ajustei um pouco) */
  border-radius: 0.25rem; /* Equivalente a rounded do Tailwind */
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-grow: 1; /* Faz os botões crescerem para preencher o espaço */
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cores Específicas dos Botões */
.btn-back {
  background-color: #6b7280; /* Cor similar a bg-gray-500 */
}

.btn-back:hover:not(:disabled) {
  background-color: #4b5563; /* Tom mais escuro no hover */
}

.btn-next {
  background-color: #0058ff; /* Cor similar a bg-[#0058ff] */
}

.btn-next:hover:not(:disabled) {
  background-color: #0047cc; /* Tom mais escuro no hover */
}

/* Mensagem de Conclusão */
.finish-message {
  text-align: center;
}

.page-link {
  color: #2563eb; /* Cor azul para o link */
  text-decoration: underline;
}

/* Barra de Progresso */
.progress-bar-container {
  width: 100%;
  background-color: rgba(107, 114, 128, 0.5); /* bg-gray-600 com transp50 */
  border-radius: 9999px; /* rounded-full */
  height: 0.5rem; /* h-2 */
  margin-bottom: 1rem; /* mb-4 */
  margin-top: 1rem; /* mt-4 */
  overflow: hidden; /* Para o progresso interno */
}

.progress-bar {
  background-color: #0058ff; /* bg-[#555555] */
  height: 0.5rem; /* h-2 */
  border-radius: 9999px; /* rounded-full */
  width: 0%;
  transition: width 0.3s ease;
}

/* Overlay de Loading */
.loading-overlay {
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
  background-color: rgba(255, 255, 255, 0.75); /* bg-white bg-opacity-75 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem; /* rounded-2xl */
}

.loading-spinner {
  height: 2.5rem; /* h-10 */
  width: 2.5rem; /* w-10 */
  color: #4b5563; /* text-gray-600 */
  margin-bottom: 0.5rem; /* mb-2 */
  animation: spin 1s linear infinite; /* Animação de giro */
}

.loading-text {
  color: #4b5563; /* text-gray-600 */
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Classes utilitárias de visibilidade (usadas pelo JavaScript) */
.hidden {
  display: none !important; /* Use !important para garantir que sobrescreve outras regras */
}

/* Media Queries para Responsividade */
@media (max-width: 640px) { /* Equivalente a @media (max-width: 640px) */
  .form-container {
    width: 90%;
    margin: 2rem auto;
  }

  .fixed-logo {
    width: 5rem; /* Equivalente a w-5rem */
  }

  /* Ajustes para botões em telas pequenas */
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  width: 72px;
  height: 72px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border: 4px solid #333;
}
.largura100 {
  width: 100%;

}
.btn-final {
  font-size: 1.8em;
  text-decoration: none;
  font-weight: 400;
}
.margin-top50 {
  margin-top: 50px;
}
.titlefinal {
  font-size: 1.8em;
  padding-top: 20px;
}

#finish {
      max-width: 600px;
      margin: 50px auto;
      padding: 30px;
      background: #f9f9f9;
      border-radius: 15px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      color: #333;
    }

    #finish h2 {
      font-size: 28px;
      color: #2c7be5;
      margin-bottom: 20px;
      text-align: center;
    }

    #finish a.btn-final {
      display: inline-block;
      background-color: #2c7be5;
      color: white;
      padding: 12px 25px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    #finish a.btn-final:hover {
      background-color: #1b5fc7;
    }

    #finish h3 {
      font-size: 20px;
      margin-top: 30px;
      margin-bottom: 10px;
      color: #444;
    }

    #finish p, #finish ul {
      font-size: 16px;
      line-height: 1.6;
    }

    #finish ul {
      list-style: none;
      padding-left: 0;
    }

    #finish ul li {
      margin-bottom: 10px;
      position: relative;
      padding-left: 25px;
    }

    #finish ul li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: #28a745;
      font-weight: bold;
    }
    .error-message {
      width: 100%;
      color: #f8d7da; 
      background-color: #dc3545;
      border: 1px solid #f5c6cb;
      border-radius: 0.5rem;
      padding: 0.75rem 1rem;
      margin-top: 0.25rem; 
      font-size: 0.9rem;
      text-align: center;
      display: block; 
    }

    .error-message.hidden {
      display: none !important;
    }