* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  line-height: 1.6;
}

/* Fundo animado dos números */
canvas.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* Fica atrás do conteúdo */
  width: 100%;
  height: 100%;
  pointer-events: none; /* Não bloqueia o cursor */
}

/* Título principal */
h1 {
  color: white;
  text-align: center;
  margin: 30px 0;
  font-size: 2.5rem;
  border-bottom: 3px solid rgb(253, 176, 1);
  padding-bottom: 10px;
  width: 80%;
  max-width: 1200px;
}

/* Formulário */
#Formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    max-width: 600px; /* ou outro valor que desejar */
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(253, 176, 1, 0.1);
    border: 1px solid rgba(253, 176, 1, 0.4);
}

.Input {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

/* Campos menores lado a lado */
.Input.small {
  grid-column: span 1;
}

/* Campos maiores */
.Input.large {
  grid-column: span 3;
}

/* Campos de tamanho médio */
.Input.medium {
  grid-column: span 2;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: rgb(253, 176, 1);
  margin-bottom: 5px;
}

input, select, textarea {
  padding: 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 2px solid #333;
  background-color: #2a2a2a;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: rgb(253, 176, 1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(253, 176, 1, 0.2);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgb(253, 176, 1) 50%),
                    linear-gradient(135deg, rgb(253, 176, 1) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
                       calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px,
                   5px 5px;
  background-repeat: no-repeat;
}

select option {
  background-color: #1e1e1e;
  color: white;
}

textarea {
  resize: vertical;
}

button {
  background-color: rgb(253, 176, 1);
  color: #121212;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

button:hover {
  background-color: #ffca28;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Botão de remover sócio */
.btn-remover {
  background-color: #e74c3c;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-remover:hover {
  background-color: #c0392b;
}

/* Contêiner de sócios */
#socios_inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.socio_input {
  display: flex;
  align-items: center;
}

.error-message {
  color: #e74c3c; /* Cor vermelha para mensagens de erro */
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

/* Responsividade */
@media (max-width: 1024px) {
  .form {
    grid-template-columns: repeat(2, 1fr);
  }

  .Input.medium {
    grid-column: span 2;
  }

  .Input.large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .form {
    grid-template-columns: 1fr;
    width: 95%;
    padding: 20px;
  }

  .Input, .Input.small, .Input.medium, .Input.large {
    grid-column: span 1;
  }

  h1 {
    width: 95%;
    font-size: 2rem;
  }

  .socio_input {
    flex-direction: column;
  }

  .btn-remover {
    margin-left: 0;
    margin-top: 10px;
    align-self: flex-start;
  }
}
@media (max-width: 480px) {
  #Formulario {
    width: 95%;
    padding: 20px;
  }

  h1 {
    font-size: 2rem; /* Reduz o tamanho do título */
  }

  input, select, textarea {
    font-size: 16px; /* Aumenta o tamanho da fonte para facilitar a leitura em dispositivos móveis */
  }

  button {
    font-size: 16px;
  }
}
