form, .form {}

form > *,
.form > * {
  margin-top: 1.25rem;
  max-width: 60rem;

  &:first-child {
    /*margin-top: 0;*/
  }
}

.form-item > * {
  margin-top: 0.25rem;
}

.form-item > *:first-child {
  /*margin-top: 0;*/
}

.webform-options-display-one-column,
.js-form-type-radio,
.js-form-type-checkbox {
  display: flex;
}

.webform-options-display-one-column {
  margin: 0 0 1rem 0;
}

.js-form-type-radio,
.js-form-type-checkbox {
  align-items: center;
  margin: 0 1rem 0.5rem 0;
}

.js-form-type-radio > * {
  display: inline-block;
  margin: 0;
}

.form-checkbox {
  margin-right: 0.5rem;
}

label {
  display: inline-flex;
  font-size: 1rem;
  line-height: 1em;
  font-weight: 800;
  cursor: pointer;
}

label + * {
  margin-top: 0.5rem;
}

.fieldset-wrapper .form-item {
  margin-top: 1.25rem
}

.fieldset-legend {
  display: inline-flex;
  font-size: 1rem;
}

fieldset,
fieldset.webform-composite-hidden-title {
  margin: 1rem 0 0 0;
}

.form-item + .form-item,
fieldset + .form-item {
  margin-top: 1.5rem;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input,
textarea,
select {
  position: relative;
  display: block;
  width: 100%;
  min-height: 2rem;
  font-size: 1rem;
  line-height: 1.5em;
  padding: 0.5rem;
  border: 1px solid var(--dark-purple-900);
  background-color: white;
  border-radius: 0.5rem;
}

input[type="text"],
input[type="email"] {
  border-radius: 0.5rem;
}

form p,
.description {
  font-size: 0.762rem; /* 16/21 */
  line-height: 1em;
}

.webform-options-display-one-column {
  margin-bottom: 0;
}

.fieldset-wrapper .form-item.js-form-type-radio {
  margin-top: 0;
}

[class*="form-type-checkbox"] label {
  margin-bottom: 0.5rem;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: 2rem;
}

input[type="checkbox"] label + &,
input[type="radio"] label + & {
  margin-top: 0;
}

input[type="checkbox"] & + *,
input[type="radio"] & + * {
  margin-top: 0;
  margin-left: 0.5rem;
  display: inline;
}

input[type="radio"] {
  margin-right: 0.5rem;
}

input[type=checkbox] {
  top: -2px;
}

.button,
input[type="submit"],
button {
  width: auto;
  display: inline-block;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1em;
  padding: 0.75rem 2rem;
  background-color: var(--brand-green);
  color: var(--white);
  border-radius: 1rem;
  position: relative;
  white-space: nowrap;
}

.required label,
.required .fieldset-legend,
.form-checkbox.required + *,
.form-required {
  &:after {
    display: inline-block;
    content: '*';
    margin-left: 0.25rem;
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: center;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    color: var(--brand-red);
  }
}

.required label.option::after {
  display: none;
}


.legible .form-markup,
.form-markup {
  margin-bottom: 0.75rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

summary[role=button] {
  margin-bottom: 0.3rem;
}

[disabled] {
  opacity: 0.7;
}

.form-group.error input {
  border-color: var(--error-color);
}

.input-error-desc {
  background-color: var(--brand-light-gray);
  color: var(--black);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

form.inline-form {
  margin-top: 0.75rem;
}

