body {
  font-family: Arial;
  background: whitesmoke;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  max-width: 600px;
  margin: 30px auto;
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  border: 2px solid grey;
}

fieldset {
  border: 2px solid blue;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 15px;
}

legend {
  font-weight: bold;
  padding: 0 8px;
  color: darkblue;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="url"],
input[type="number"],
input[type="file"],
input[type="color"],
textarea,
select {
  background: lightgray;
  border: 1px solid black;
  border-radius: 5px;
  padding: 6px;
  margin-top: 5px;
  width: 95%;
}

textarea {
  resize: vertical;
}

input[type="submit"],
input[type="reset"] {
  background: blue;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background: blue;
}