.form-control,
.form-label {
  @include text-body;
}

.form-control {
  border-radius: 0.5rem;
}

select.form-control {
  padding: 0 0.5rem;
}

.radio-grid {
  > *:not(:last-child) {
    margin-bottom: $space-2;
  }
}

.radio-panel {
  display: block;
  background-color: $white;
  border-radius: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: $btn-padding-x;
  border: $input-border-width solid transparent;

  &:hover {
    box-shadow: 0px 0px 8px $primary;
  }

  &.selected {
    box-shadow: 0px 0px 8px $primary;
    border-color: $primary;
  }
}

.radio-panel-label {
  @include text-body-bold;
}

.radio-panel-description {
  display: inline;
  font-size: 17px;
}

.form-content {
  padding-bottom: 1rem;

  @include media-breakpoint-up(sm) {
    margin: 0 auto;
    max-width: calc(585px + 2rem);
    padding: 0 2rem 4rem;
  }
}

.form-section {
  > p {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  &:not(:first-child) {
    margin-top: $space-5;
  }

  > *:not(:first-child) {
    margin-top: $space-3;

    @include media-breakpoint-up(sm) {
      margin-top: $space-4;
    }
  }
}

.form-section-addon {
  margin-top: $space-4;
}

.form-group {
  margin-bottom: $space-4;

  label {
    margin-bottom: $space-1;
  }
}

.custom-radio {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("graphics/radio.svg");

  &.checked {
    background: url("graphics/radio-checked.svg");
    width: 30px;
    height: 30px;
  }
}

.radio-panel-custom-amount {
  background-color: $white;
  border: $input-border-width solid transparent;
  border-radius: 0.5rem;
  padding: $btn-padding-x;

  .form-group {
    margin-bottom: 0;
  }
}

legend {
  margin: 0;
}
