.extended-form-css,
.form-check {
  /*
      input[type=radio]:focus {
          outline: max(2px, 0.15em) solid currentColor;
          outline-offset: max(2px, 0.15em);
      }
  */
}
.extended-form-css form,
.form-check form {
  display: grid;
  place-content: center;
  min-height: 100vh;
}
.extended-form-css .form-control,
.form-check .form-control {
  font-family: system-ui, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
}
.extended-form-css .form-control + .form-control,
.form-check .form-control + .form-control {
  margin-top: 1em;
}
.extended-form-css .form-control--disabled,
.form-check .form-control--disabled {
  color: var(--form-control-disabled);
  cursor: not-allowed;
}
.extended-form-css input[type=checkbox],
.extended-form-css input[type=radio],
.form-check input[type=checkbox],
.form-check input[type=radio] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  -moz-appearance: none;
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  /* Not removed via appearance */
  margin: 0;
  font: inherit;
  color: #fff;
  width: 2em;
  height: 2em;
  /*
  border: 0.15em solid currentColor;
  border-radius: 0.15em;

   */
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  background-color: #fff;
  border: 2px solid #578094;
  cursor: pointer;
}
.extended-form-css input[type=checkbox]::before,
.extended-form-css input[type=radio]::before,
.form-check input[type=checkbox]::before,
.form-check input[type=radio]::before {
  content: "";
  width: 1.25em;
  height: 1.25em;
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  /* Windows High Contrast Mode */
  background-color: #578094;
}
.extended-form-css input[type=checkbox]:checked::before,
.extended-form-css input[type=radio]:checked::before,
.form-check input[type=checkbox]:checked::before,
.form-check input[type=radio]:checked::before {
  transform: scale(1);
}
.extended-form-css input[type=radio]:disabled,
.form-check input[type=radio]:disabled {
  --form-control-color: var(--form-control-disabled);
  color: var(--form-control-disabled);
  cursor: not-allowed;
}

.control-label {
  display: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: none;
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

form .row {
  margin-bottom: 30px;
}

.form-check .form-check-label {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  align-items: center;
}
.form-check .form-check-label input[type=checkbox] {
  transform: none;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 2px solid #578094;
  align-self: flex-start;
}
.form-check .form-check-label span {
  display: block;
  width: 100%;
  padding: 0 0.75rem;
  font-size: 1rem;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}
.form-check .form-check-label span span {
  display: inline;
  line-height: normal;
  padding: 0;
}

.btn-primary {
  background-color: #578094;
  border-color: #578094;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1.125em;
}
.btn-primary:hover {
  background-color: #fff;
  border-color: #fff;
  color: #578094;
}

.input {
  position: relative;
  transition: color 0.4s ease-in-out;
}

input[type=file] {
  width: 100%;
  background-color: white;
  /* height: 40px; */
  line-height: 1.5em;
  padding: 10px 10px;
}

div.input.has-error {
  position: relative;
}
div.input.has-error input:not([type=checkbox]), div.input.has-error select {
  border: 1px solid #BE1D33;
  color: #BE1D33;
}
div.input.has-error input:not([type=checkbox])::placeholder, div.input.has-error select::placeholder {
  color: #BE1D33;
}
div.input.has-error span.error {
  font-size: 0.8em;
  color: #BE1D33;
}

input:not([type=checkbox]):invalid, select:invalid {
  border: 1px solid #BE1D33;
  color: #BE1D33;
}
input:not([type=checkbox]):invalid::placeholder, select:invalid::placeholder {
  color: #BE1D33;
}

.help-block {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: left;
  background-color: #578094;
  color: #fff;
  padding: 0 20px;
  min-width: 290px;
  text-align: left;
}

@media (max-width: 550px) {
  .help-block {
    position: relative;
    width: 100%;
    height: 30px;
  }
}