input, textarea, select, button,
*:optional {
  visibility: hidden;
}

input[required]:required {
  visibility: visible;
}

/* Override the default style. */
:invalid {
  box-shadow: none;
}