* {
  margin: 0;
}

* + * {
  margin-top: 1rem;
}

section {
  position: relative;
}

section .datepicker {
  caret-color: transparent;
}

.the-datepicker__container {
  left: 50%;
  top: 80%;
  -webkit-transform: translate(-50%, -30%);
          transform: translate(-50%, -30%);
  z-index: 9999;
}

.the-datepicker__container * + * {
  margin-top: initial;
}

.the-datepicker__main a.the-datepicker__button {
  color: #3f3f3f;
  background-color: #f0f0f0;
  border-radius: 0;
}

.the-datepicker__main select.the-datepicker__select {
  height: 1.5rem;
  padding-left: 0.5rem;
}

form input,
form textarea, input[type="date"],
.select-css,
.the-datepicker__select {
  border-radius: 0.2rem;
  border: 1px solid #aaa;
  padding: 0.25rem 1.5rem 0.25rem 0.25rem;
  line-height: 1.3;
  font-size: 16px;
  font-family: sans-serif;
  font-weight: normal;
  color: #444;
}

form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 1rem;
  margin: 0 auto;
  max-width: 600px;
}

form .g-recaptcha {
  border: none;
}

label {
  line-height: 1.5;
  vertical-align: center;
}

.radiogroup {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  border: none;
  position: relative;
}

.radiogroup.radio {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.radiogroup.radio > * {
  margin-top: 0;
  margin-right: 0.5rem;
}

.radiogroup.radio input[type="radio"] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 1rem;
  height: 1rem;
  padding: 0.5rem;
  outline: none;
  border: 1px solid #d5d5d5;
  background-color: white;
  border-radius: 0.3rem;
}

.radiogroup.radio input[type="radio"]:checked {
  -webkit-box-shadow: inset 0 0 0 3px white;
          box-shadow: inset 0 0 0 3px white;
  background-color: black;
}

.radiogroup.box {
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
}

.radiogroup.box input[type="radio"] {
  display: none;
}

.radiogroup.box input[type="radio"]:checked + label {
  background-color: bisque;
}

.radiogroup.box label {
  border: 1px solid #aaa;
  border-radius: 0.2rem;
  padding: 0.5rem;
  text-align: center;
}

.flexfit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.flexfit h2,
.flexfit textarea {
  min-width: 80%;
}

.flexfit > * {
  min-width: var(--min-width, 200px);
  -ms-flex-preferred-size: calc(calc(600px - 100%) * 999);
      flex-basis: calc(calc(600px - 100%) * 999);
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin: 0.5rem;
}

input[type="date"] {
  margin-left: 1rem;
  height: 1.27rem;
}

input[type="date"],
.select-css,
.the-datepicker__select {
  display: block;
  width: 100%;
  max-width: 100%;
  -webkit-box-shadow: none;
          box-shadow: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#ffffff));
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
  background-repeat: no-repeat, repeat;
  background-position: right 0.7em top 50%, 0 0;
  background-size: 0.65em auto, 100%;
}

input[type="date"]::-ms-expand,
.select-css::-ms-expand,
.the-datepicker__select::-ms-expand {
  display: none;
}

input[type="date"]:hover,
.select-css:hover,
.the-datepicker__select:hover {
  border-color: #888;
}

input[type="date"]:focus,
.select-css:focus,
.the-datepicker__select:focus {
  border-color: #aaa;
  -webkit-box-shadow: none;
          box-shadow: none;
  box-shadow: none;
  color: #222;
  outline: none;
}

input[type="date"] option,
.select-css option,
.the-datepicker__select option {
  font-weight: normal;
}

input[type="date"]:disabled, input[type="date"][aria-disabled="true"],
.select-css:disabled,
.select-css[aria-disabled="true"],
.the-datepicker__select:disabled,
.the-datepicker__select[aria-disabled="true"] {
  color: #b6b6b6;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#ffffff));
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
}

input[type="date"]:disabled:hover, input[type="date"][aria-disabled="true"],
.select-css:disabled:hover,
.select-css[aria-disabled="true"],
.the-datepicker__select:disabled:hover,
.the-datepicker__select[aria-disabled="true"] {
  border-color: #aaa;
}

.birthday {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.birthday input[type="date"] {
  margin: 0;
  margin-left: 1rem;
}

.error {
  border: 1px solid red;
}

.error-msg {
  margin-top: 0;
  color: red;
}

.radiogroup > .error-msg {
  position: absolute;
  bottom: 0;
  right: 0;
}
