/** Form styling */

.frame-type-form_formframework legend {
  color: #5aa53c;
  font-size: 21px;
  line-height: 1.4;
}

.frame-type-form_formframework .form-group.radiobutton > .input .input.radio label {
  display: inline-block;
  margin-right: 15px;
}

.frame-type-form_formframework .radio label {
  margin-left: 10px;
}

.frame-type-form_formframework .radio label,
.frame-type-form_formframework .checkbox label {
  padding-left: 0;
}

.frame-type-form_formframework .checkbox label input + span {
  margin-left: 10px;
  margin-top: 5px;
}

.frame-type-form_formframework .btn-group,
.frame-type-form_formframework .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .frame-type-form_formframework fieldset.form-group {
    display: inherit;
  }

  .frame-type-form_formframework .form-group .control-label {
    width: 30%;
  }

  .frame-type-form_formframework .form-group .input {
    width: 70%;
  }

  .frame-type-form_formframework .form-group.checkbox:before {
    width: 30%;
  }

  .frame-type-form_formframework .form-group.radiobutton {
    position: relative;
  }

  .frame-type-form_formframework .form-group.radiobutton .help-block {
    position: absolute;
    right: 0;
    top: 0;
  }

  .frame-type-form_formframework .btn-group,
  .frame-type-form_formframework .btn {
    width: inherit;
  }
}

/** Styling for the "erhaltene Förderungen" which folds into a table representation on desktop devices. */

.frame-type-form_formframework [id*='organisation-sponsorship-yes'] legend {
  font-size: 16px;
  margin: 10px 0;
}

@media (min-width: 768px) {
  .frame-type-form_formframework [id*='organisation-sponsorship-yes'] fieldset,
  .frame-type-form_formframework [id*='organisation-sponsorship-yes'] fieldset > div {
    display: flex;
    margin: 0;
    width: 100%;
  }

  .frame-type-form_formframework [id*='organisation-sponsorship-yes'] fieldset + fieldset .control-label,
  .frame-type-form_formframework [id*='organisation-sponsorship-yes'] legend {
    display: none;
  }

  .frame-type-form_formframework [id*='organisation-sponsorship-yes'] fieldset .form-group {
    flex-direction: column;
  }

  .frame-type-form_formframework [id*='organisation-sponsorship-yes'] fieldset .form-group > * {
    width: 100%;
  }
}

/** Styling for privacy text. */

@media (min-width: 768px) {
  .frame-type-form_formframework [id*='confirm'] .statictext {
    display: flex;
  }

  .frame-type-form_formframework [id*='confirm'] .statictext:before {
    min-width: 30%;
  }
}
