* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

form {
  margin: 0 auto;
  width: 80%;
  padding: 30px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f5;
  box-shadow: 0 0 25px 24px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 28px;
  text-align: center;
  margin: 20px 0 50px;
}

.form-fieldsets-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.form-fieldsets-wrapper > fieldset {
  width: calc((100% - 2 * 10px) / 3);
  padding: 20px 10px;
}

fieldset > legend {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

.sub-fieldset-wrapper,
.radio-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 10px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-legend {
  font-size: 18px;
}

.input-wrapper {
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-input,
.select-input,
.input-range {
  width: 70%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

textarea {
  resize: none;
}

.select-input {
  width: 55%;
  background-color: #fff;
}

.radio-wrapper {
  margin-bottom: 30px;
}

.checkbox {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 35px;
}

.range-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 100%;
}

.input-range {
  width: 100%;
  margin: 0;
  padding: 0;
}

datalist {
  font-size: 14px;
  display: flex;
  gap: 35px;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 0;
}

button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: box-shadow 0.2s ease-in-out;
}

button[type="reset"] {
  background-color: #f44336;
}

button:hover,
button:focus,
button:active {
  outline: none;
  box-shadow: inset 0 0 25px 26px rgba(0, 0, 0, 0.3);
}
