form {
  margin: 0 auto 2rem auto;
  max-width: 30rem;
  width: 100%;
}

form > label {
  display: block; /* zorgt dat label op z’n eigen lijn staat (blokelement) */
  margin-top: 0.75rem;
  font-weight: bold;
}

/* actieve invoervelden een bruine rand geven */
input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%; /* schaalbaar op kleinere schermen */
  max-width: 30rem; /* beperkte breedte op grotere schermen */
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #d2b48c; /* subtiele tan-rand */
  box-sizing: border-box; /* zodat padding de breedte niet overschrijdt */
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1); /* een zachte diepte */
  color: #2e1f04; /* diep bruin voor tekst */
  font-family: inherit; /* neemt lettertype over van ouder (body) */
  background-color: rgba(255, 255, 240, 0.8); /* lichte achtergrondkleur */
}

fieldset {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: none;
}

legend {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

fieldset label {
  display: inline-block;
  margin-left: 0.5rem;
  margin-right: 1.5rem;
  font-weight: normal;
  font-family: Georgia, serif;
  padding-bottom: 0.75rem;
}

fieldset label input {
  margin-right: 0.5rem;
}

input[type="submit"],
input[type="reset"] {
  padding: 0.5rem 1rem;
  background-color: #4c4c4c;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

input[type="submit"] {
  margin-right: 2rem;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #2b2b2b;
}

/* Responsive navigatie */
@media (max-width: 800px) {
  form {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  form label {
    padding-bottom: 0.25rem;
    margin-bottom: 0rem;
    margin-top: 0.2rem;
  }

  fieldset {
    margin-top: 0.1rem;
  }

  fieldset label {
    display: block; /* label op een nieuwe regel */
    margin-bottom: 0.5rem; /* ruimte onder elk label */
  }

  input[type="text"],
  input[type="email"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    margin-bottom: 1.25rem;
  }

  input[type="submit"],
  input[type="reset"] {
    margin-bottom: 0.5rem;
  }

  main > section {
    margin-bottom: 1rem;
  }
}
