body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
}

form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

fieldset {
  border: 2px solid black;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 10px 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

fieldset.show {
  opacity: 1;
}

legend {
  background-color: black;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

label {
  display: block;
  margin: 10px 0 5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="month"],
input[type="tel"],
input[type="url"] {
  width: calc(100% - 22px);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea{
  width: calc(100% - 22px);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input:invalid {
  background-color:  rgba(255,0,0,0.1);
}

textarea:invalid {
  background-color:  rgba(255,0,0,0.1);
}

button {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  
  &.secondary {
    background-color: silver;
    color: black;
  }
  
  &.submit {
    width: 100%;
  }
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

  ul {
  padding-inline-end: 20px;
  padding-inline-start: 20px;
}

li {
  width: calc(50% - 18px);
  display: inline-block;
  margin: 5px;
}

@media only screen and (max-width: 640px) {
  li {
    width: calc(100% - 18px);
    display: inline-block;
    margin: 5px;
  }
  
  ul {
  padding-inline-end: 10px;
  padding-inline-start: 10px;
}
}

.checkboxes label {
  display: inline-block;
  padding-right: 10px;
  white-space: nowrap;
}

.checkboxes input {
  vertical-align: middle;
}

.checkboxes label span {
  vertical-align: middle;
}

.other {
  width: calc(100% - 18px);
  text-align: left;
  margin: 0px 9px 0px 9px;
}
