
/********************************************************************************************************************************
 * Forms
********************************************************************************************************************************/

/**
 * General form styling
 */
.form-composite .fieldset-legend,
.form-type-select label,
.form-type-textfield label,
.form-type-textarea label,
.form-type-tel label,
.form-type-email label,
.form-type-number label {
  display: block;
  font-weight: 500;
}
.form-textarea-wrapper {
  margin-top: 0.333rem;
}
.form-textarea-wrapper textarea {
  padding: 0.333rem;
}
.button:first-child,
.form-actions .button:first-child {
  margin-right: 1rem;
  margin-left: 0;
}
.form-checkboxes .form-type-checkbox,
.form-radios .form-type-radio {
  margin: 0.75rem 0;
}
.form-checkboxes input.form-checkbox,
.form-radios input.form-radio {
  margin-right: 0.25rem;
}
fieldset.form-wrapper.large-heading > legend {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

/**
 * Bold labels for groups of checkboxes/radios
 */
.bold-group-label .section-label,
.bold-group-label > legend .fieldset-legend {
  font-weight: bold;
}

/**
 * Checkbox & radio styles with descriptions attached to each element
 */
label.option .label-title.with-description {
  margin-bottom: 0.25rem;
}
.form-type-checkbox span.description,
.form-type-radio span.description {
  display: block;
  margin-left: 0;
  padding-left: 1rem;
  font-size: 0.9rem;
}
.form-type-radio span.description img.card-img {
  width: 20px;
}

/**
 * Checkbox & radio styles that have a grid layout for each element
 */
.grid-label .form-type-checkbox,
.grid-label .form-type-radio {
  display: grid;
  grid-template-columns: 20px auto;
}
.grid-label .form-type-checkbox .form-checkbox,
.grid-label .form-type-radio .form-radio {
  margin-top: 4px;
  margin-right: 0;
}
.grid-label label.option {
  line-height: 120%;
}
.grid-label label.option span.label-title,
.grid-label label.option span.description {
  display: block;
  padding-left: 0;
}

/**
 * Checkbox & radio options with labels that are 'inline-block' style
 */
.form-composite.inline-block-label .form-radios label.option,
.form-radios.inline-block-label label.option,
.form-radios input.inline-block-label + label {
  display: inline-block;
}
.form-composite.inline-block-label .form-radios label.option img.card-img,
.form-radios.inline-block-label label.option img.card-img,
.form-radios input.inline-block-label + label img.card-img {
  float: left;
}

/**
 * Styling for checkboxes/radios that get darker if hovered or clicked
 */
label.option,
.form-type-checkbox label.option,
.form-radios label.option {
  font-weight: 300;
  opacity: 0.7;
}
.form-type-checkbox label:hover,
.form-radios label:hover,
.form-type-checkbox input[type="checkbox"]:checked + label,
.form-radios input[type="radio"]:checked + label {
  opacity: 1;
}

.form-composite .fieldset-legend,
.form-item.bold-label label,
.bold-label > .form-item label,
.form-type-checkbox input[type="checkbox"]:checked + label,
.form-radios input[type="radio"]:checked + label {
  font-weight: 400;
}
.form-type-checkbox input[type="checkbox"]:checked + label strong,
.form-radios input[type="radio"]:checked + label strong {
  font-weight: 600;
}
.form-type-checkbox label.option strong,
.form-radios label.option strong {
  font-weight: 500;
}
.form-composite .fieldset-legend {
  font-weight: 500;
}

/**
 * Styles where the radio button itself is hidden (showing only a button as label)
 */
input.hide-radio.form-radio,
.hide-radio.form-radio input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

/**
 * Mailing-groups page
 */
.mailing-group-section {
  margin: 1.5rem 0;
}
.mailing-group-section .form-item.form-type-checkbox {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.form-item-mailing-groups-overall-status label,
.mailing-group-section .section-label {
  margin: 0.25rem 0;
  font-size: 1.1rem;
  font-weight: bold;
}
