body {
  background-color: #f6f8fa;
}


footer {
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #24292f;
  color: white;
  padding: 5px;
  text-align: center;
}

.content {
  width: 90%;
  max-width: 800px;
  margin: 30px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 100px;
}

h1, h2 {
  color: #000;
  text-align: center;
}

header {
  margin: 0 8%;
  margin-top: 4%;
  height: 4rem;
}

header .nav button {
  padding: 10px 30px;
  border: none;
  border-radius: 20px;
  background-color: blueviolet;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

main {
  margin: 0 8%;
}

h1{
  font-size: 50px;
}

main h2 {
  text-align: center;
  margin: 3% 0;
  font-size: 22px;
}

main .content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-list {
  list-style: none;
  padding: 0;
}

.problem-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: start;
  background: #f4f4f4;
  padding: 15px;
  margin: 10px 0;
  border-radius: 6px;
  cursor: pointer;
}

.open{
  flex-direction: column;
}

.problem-item:hover {
  background: #eaeaea;
}

.sub-options {
  margin-top: 10px;
  display: none;
  padding: 10px;
  border-radius: 6px;
  background-color: #f2f2f2;
}

span{
  font-family: "Poppins-Medium";
  font-size: 18px;
} 

li{
  font-weight: 500;
  font-family: "Poppins-Regular";
}

.sub-options li:not(:last-child){
  margin-bottom: 15px;
}

.problem-item.open .sub-options {
  display: block;
}

.arrow img {
  width: 25px;
}

.arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
  font-weight: bold;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
}

.problem-item.open .arrow {
  transform: rotate(-180deg);
}

.btn-submit {
  background-color: blueviolet;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  font-size: 15px;
  font-weight: 600;
  border-radius: 20px;
}

.btn-submit:hover {
  background-color: #7b47a2;
}

form label {
  font-family: "Poppins-Medium";
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 18px;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  background-color: #f4f4f4;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: "Poppins-Regular";
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsividade */
@media (max-width: 759px) {
  .content {
      width: 95%;
      margin: 20px auto;
      padding: 15px;
      margin-bottom: 70px;
  }

  .problem-item {
      align-items: flex-start;
  }

  .open{
    flex-direction: column;
  }

  .btn-submit {
      width: 100%;
  }

  h1{
    font-size: 40px;
  }
}

@media (max-width: 609px) {
  h1{
    font-size: 30px;

  }
}


@media (max-width: 480px) {
  header, footer {
      padding: 10px;
  }

  .content {
      width: 100%;
      margin: 15px auto;
      margin-bottom: 70px;

  }

  h1 {
      font-size: 23px;
  }

  h2 {
      font-size: 18px;
  }

  .problem-item {
      padding: 12px;
  }

  .problem-item .arrow {
      font-size: 18px;
  }

  .btn-submit {
      padding: 12px 20px;
  }

  span{
    font-size: 15px;
  } 

  li{
    font-size: 13px;

  }

  form label{
    font-size: 15px;
  }
  main h2 {

    font-size: 18px;
}
}

/* Estilo para o botão "Voltar" no canto superior esquerdo */
.btn-voltar {
  position: absolute;
  top: 40px; /* Ajustado para abaixar mais o botão */
  left: 50px; /* Ajustado para mover mais para a direita */
  background-color: #5a2d82; /* Cor de fundo */
  color: white; /* Cor do texto */
  padding: 10px 15px; /* Espaçamento interno */
  font-size: 16px; /* Tamanho da fonte */
  font-weight: 500; /* Peso da fonte */
  border: none; /* Remove borda */
  border-radius: 5px; /* Arredonda os cantos */
  cursor: pointer; /* Cursor ao passar o mouse */
  z-index: 1000; /* Mantém acima de outros elementos */
}

.btn-voltar a {
  text-decoration: none; /* Remove sublinhado do link */
  color: white; /* Cor do texto */
}

.btn-voltar:hover {
  background-color: #7b47a2; /* Cor ao passar o mouse */
}

/* Tornando o botão responsivo para telas menores */
@media (max-width: 768px) {
  .btn-voltar {
      top: 30px; /* Reduz a distância do topo para telas menores */
      left: 30px; /* Ajusta a distância da borda esquerda */
  }
}

@media (max-width: 480px) {
  .btn-voltar {
      top: 20px; /* Menor distância para telas muito pequenas */
      left: 20px; /* Alinha mais para a esquerda em dispositivos pequenos */
      padding: 8px 12px; /* Reduz o tamanho do botão em telas pequenas */
      font-size: 14px; /* Diminui o tamanho da fonte */
  }
}