body {
  margin: 0;
  min-height: 100vh;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, p {
  margin: 1em auto;
  text-align: center;
  line-height: 1.4;
}

form {
  width: 60vw;
  max-width: 500px;
  min-width: 300px;
  margin: 1em auto 2em auto;
  padding: 2em;
  background-color: #2a2a40;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

fieldset {
  border: none;
  padding: 1.5rem 0;
  border-bottom: 2px solid #3b3b4f;
}

fieldset:last-of-type {
  border-bottom: none;
}

legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin: 0.75rem 0 0.25rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.25em;
  min-height: 2.2em;
  border-radius: 6px;
  border: 1px solid #0a0a23;
  background-color: #0a0a23;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
}

.inline {
  width: unset;
  margin-right: 0.5em;
  vertical-align: middle;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5em;
  transform: scale(1.1);
  accent-color: #4a90e2;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="submit"] {
  display: block;
  width: 70%;
  margin: 1.5em auto 0;
  padding: 0.8em;
  font-size: 1.1rem;
  background-color: #3b3b4f;
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #56566d;
  transform: translateY(-2px);
}

a {
  color: #00aaff;
  text-decoration: underline;
}


/* Checkbox & radio list style */
.checkbox-label,
.radio-label {
  display: flex;             /* box + text side by side */
  align-items: center;       /* vertical centering */
  gap: 0.5em;
  margin: 0.4em 0;
  cursor: pointer;
  width: 100%;               /* forces each to take full row */
}

