/* Form Style */

/* Colors */
:root {
  --helper: #626363;
  --label: #000000;
}

.formgen-field-group {
  padding: 22px 0px;
  display: flex;
/*   flex-wrap: wrap;  */
}

.formgen-label {
  color: var(--label);
  width: 195px;
  font-weight: 600;
  padding-right: 30px;
  line-height: 1.2em;
}
.formgen-field-wrap {
  flex: 1;
/*   max-width: 70%; */
}
.formgen-field {
  width: 100%;
  max-width: 500px;
  max-height: 50px;
}
.helper {
  color: var(--helper);
  width: 100%;
  max-width: 500px;
  line-height: 1.3em;
}

/* Field Types */
.formgen-field[type=submit] {
  width: inherit;
}
select.formgen-field,
input[type=date].formgen-field {
  width: inherit;
}
textarea.formgen-field {
  line-height: 1.3em;
  height: 100px;
  max-height: 100px;
}
input[type=date].formgen-field {
  max-height: 40px;
}
div[data-type=submit] {
  display: block;
/*   text-align: right; */
}

/* Response */

.response {
  font-size: 15px;
  padding: 15px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.response svg {
  height: 15px;
  margin-left: 12px;
}

/*
 * Mobile
 *
 */

 @media (max-width: 800px) {

  .formgen-field-group {
    display: block;
    padding: 15px 0px;
  }
  .formgen-field-wrap {
    width: 100%;
  }
  .formgen-label {
    width: 100%;
    padding-right: 0px;
    margin-bottom: 1em;
  }
  .formgen-field,
  .helper {
    max-width: 800px;
  }
  select.formgen-field,
  input[type=date].formgen-field {
    width: auto;
  }
  p.helper {
      margin-bottom: 0;
  }
  input[type=submit].formgen-field {
      max-width: 100%;
  }
}

/* Remove spinner from number input */

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}