
body {
  font-family: 'Segoe UI', sans-serif;
  padding: 2em;
  max-width: 900px;
  margin: auto;
  background: #fefefe;
}

h1, h2, legend {
  text-align: center;
  margin-bottom: 0.5em;
}

form {
  margin-top: 2em;
}

input[type="text"], textarea, select {
  width: 100%;
  padding: 0.75em;
  margin-top: 4px;
  margin-bottom: 1em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

fieldset {
  border: 1px solid #ddd;
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

label {
  display: block;
  margin-top: 1em;
  font-size: 1em;
}

label.inline {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin-bottom: 1em;
}

textarea + small, .below-input-text {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-top: -0.5em;
  margin-bottom: 1em;
  text-align: left;
}

button {
  display: block;
  margin: 2em auto 0;
  padding: 12px 24px;
  font-size: 1.1em;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1.5em;
}

.button-group button {
  flex: 0 0 auto;
}


button:hover {
  background: #145a9e;
}

.error {
  color: red;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
}

/* Responsive */
@media screen and (max-width: 600px) {
  body {
    padding: 1em;
  }

  button {
    width: 40%;
  }
}
