
:root{
  --form-base-color: #fff;
  --submit-color: #000;
  --attention-red: #ad3612;
  --grad-green: linear-gradient(90deg, #43ea80, #39f8d3);
}

input[type=checkbox] {
  transform: scale(2);
  margin: 0 0.8rem 0 0;
  accent-color: #008563;
}
table {
  width: 100%;
}
.form-title{
    text-align: center;
    display: block;
    width: auto;
    background: var(--form-base-color);
    margin-bottom: 1rem;
    padding: 0 2rem;
  }
  
  .formarea {
    text-align: left;
    background-color:#fff;
    padding: 2rem 1rem;
    margin: 2rem;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
  }
  .form-item,
  .form-body {
    display: block;
    background-color: var(--form-base-color);
    width: auto;
  }
  .form-item {
    padding: 0 1rem;
  }
  .form-body {
    padding: 0 1rem 1rem 1rem;
  }
  .form-text {
    font-size:1rem;
    width:100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 2rem;
    padding: 0 1rem;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 0 1px #000 inset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  .form-text:focus {
      outline: 0;
      box-shadow: 0 0 0 2px var(--submit-color) inset;
  }
  .form-textarea {
    font-size:1rem;
    resize:vertical;
    width:100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 0 1px #000 inset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  .form-textarea:focus {
    outline: 0;
    box-shadow: 0 0 0 2px var(--submit-color) inset;
  }
  @media screen and (max-width: 750px) {
    .form-item {
      font-size: 1.5rem;
    }
    .form-text {
      font-size:2rem;
      width:100%;
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      height: 4rem;
      padding: 0 1rem;
      border-radius: 4px;
      border: none;
      box-shadow: 0 0 0 1px #000 inset;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
    }
    .form-textarea {
      font-size:2rem;
      resize:vertical;
      width:100%;
      height: 10rem;
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      padding: 1rem;
      border-radius: 4px;
      border: none;
      box-shadow: 0 0 0 1px #000 inset;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
    }
  }
  .form-radio{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-radio input {
    position: absolute;
    white-space: nowrap;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    margin: -1px;
  }
  .form-radio-name {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: #666;
  }
  .form-radio-name:before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
  }
  .form-radio input:checked + .form-radio-name {
    color:#008563;
  }
  .form-radio input:checked + .form-radio-name:before {
    border: 0.35em solid  #008563;
  }
  .form-radio input:focus-visible + .form-radio-name .form-radio-text {
    background: linear-gradient(transparent 90%,  #D57472);
  }
  .form-submit {
    width: 100%;
    background: var(--submit-color);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 100vh;
    border: solid var(--submit-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: .3s;
  }
  @media screen and (max-width: 750px) {
    .form-submit{
      font-size: 2rem;
    }
  }
  .form-submit:hover, .form-submit:focus{
    background:#fff;
    color:var(--submit-color);
  }
  .submitted{
    background: #ddd;
    border: #ddd;
  }
  .markrequired{
    background-color: var(--attention-red);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    min-width: 10px;
    padding: 3px 7px;
    margin: 0px 5px;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
  }
  .markelective{
    background-color: #868c80;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    min-width: 10px;
    padding: 3px 7px;
    margin: 0px 5px;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
  }