/* form.css */
body {
  font-size: 1.2em;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

header {
  padding: 1rem 0 0.25rem;
}

form {
  width: min(520px, 90%);
  margin: 0 auto 2rem;
}

h1, h2 {
  text-align: center;
}

label {
  display: block;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #4caf50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.errors {
  width: min(520px, 90%);
  margin: 0.5rem auto;
  white-space: pre-line; /* needed for multiple errors on separate lines */
  color: red;
  min-height: 1.5em;
}

.hide {
  display: none;
}