<commit_before>@import "../../tools";

.c-form-group {
  max-width: 40em;

  [type="hidden"] + &,
  .c-form-fieldset__legend + & {
    margin-top: 0;
  }
}

.c-form-group__inner {
  position: relative;
}

.c-form-group__label {
  display: table;
  line-height: 1.1;
  margin-bottom: 10px;

  * + * {
    margin-top: $default-spacing-unit / 2;
  }
}

.c-form-group__label-text {
  font-weight: 600;
}

.c-form-group__hint {
  color: $grey-1;
  display: block;
}

.c-form-group__error-message {
  color: $error-colour;
  font-weight: 600;
  display: block;
}

// States
.c-form-group.has-error {
  border-left: 5px solid $error-colour;
  padding-left: $default-spacing-unit;
}

// Modifiers
.c-form-group--subfield {
  border-left: 5px solid $grey-2;
  margin-left: $default-spacing-unit;

  &,
  &.has-error {
    padding-left: ($default-spacing-unit * 2) - 4;
  }
}

.c-form-group--inline {
  @include media(tablet) {
    vertical-align: top;

    &,
    .c-form-group__inner {
      display: inline-block;
    }<commit_msg>Avoid inlining form-group fieldset<commit_after>@import "../../tools";

.c-form-group {
  max-width: 40em;

  [type="hidden"] + &,
  .c-form-fieldset__legend + & {
    margin-top: 0;
  }
}

.c-form-group__inner {
  position: relative;
}

.c-form-group__label {
  display: table;
  line-height: 1.1;
  margin-bottom: 10px;

  * + * {
    margin-top: $default-spacing-unit / 2;
  }
}

.c-form-group__label-text {
  font-weight: 600;
}

.c-form-group__hint {
  color: $grey-1;
  display: block;
}

.c-form-group__error-message {
  color: $error-colour;
  font-weight: 600;
  display: block;
}

// States
.c-form-group.has-error {
  border-left: 5px solid $error-colour;
  padding-left: $default-spacing-unit;
}

// Modifiers
.c-form-group--subfield {
  border-left: 5px solid $grey-2;
  margin-left: $default-spacing-unit;

  &,
  &.has-error {
    padding-left: ($default-spacing-unit * 2) - 4;
  }
}

.c-form-group--inline:not(fieldset) {
  @include media(tablet) {
    vertical-align: top;

    &,
    .c-form-group__inner {
      display: inline-block;
    }
{'fraction_non_alphanumeric': 0.1814690350456073, 'fraction_numerical': 0.019203072491598656, 'mean_word_length': 2.662565905096661, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '670712', 'n_tokens_mistral': 906, 'n_tokens_neox': 847, 'n_words': 135}