label { display: block; font-family: $heading-font; font-weight: bold; } .form-group { display: block; margin-bottom: 1.4rem; &.required { label { &::after { content: $sixpoint-star; color: $alert-text; } } } &:last-child { margin-bottom: 0; } ul { margin-left: -1rem; } ul li { display: inline-block; margin-left: 1rem; } } div.error-message { margin-bottom: -1rem; line-height: 1rem; font-size: 0.8rem; color: $alert-text; } input[type=text], input[type=tel], input[type=date], input[type=datetime], input[type=datetime-local], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=time], textarea { display: block; border-radius: 2px; border: 1px solid $primary; padding: 0.4rem 0.8rem; width: 100%; &:focus { box-shadow: 0 0 3px $primary-shadow; } &:disabled { background-color: mix($primary, white, 10%); cursor: not-allowed; } } textarea { min-height: 4rem; max-height: 20rem; resize: vertical; } select { -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: 2px; border: 1px solid $primary; padding: 0.4rem 2rem 0.3rem 0.8rem; background-image: $down-chevron; background-position: center; background-position-x: calc(100% - 0.5rem); background-repeat: no-repeat; &:focus { box-shadow: 0 0 3px $primary-shadow; } &:disabled { background-color: mix($primary, white, 5%); cursor: not-allowed; } } input[type=submit] { @include button($primary); } input[type=checkbox] { -webkit-appearance: none; -moz-appearance: none; appearance: none; line-height: 1rem; margin: 0 0.25rem 0 0; padding: 0; &:before { position: relative; top: -0.1rem; margin: 0; padding: 0; display: inline-block; content: "✓"; color: transparent; border: 1px solid $primary; font-size: 0.8rem; line-height: 1.15rem; width: 1.15rem; text-align: center; border-radius: 2px; } &:checked:before { position: relative; top: -0.1rem; margin: 0; padding: 0; display: inline-block; content: $check-mark; color: $secondary-text-light; border: 1px solid $primary; font-size: 0.8rem; line-height: 1.15rem; width: 1.15rem; text-align: center; background-color: $primary; border-radius: 2px; box-shadow: none; } } input[type=checkbox] + label { width: auto; display: inline-block; line-height: 1.15; margin: -0.25rem; padding: 0.25rem; } input[type=checkbox]:focus + label { box-shadow: 0 0 3px $primary-shadow; border-radius: 3px; } fieldset { padding: 2rem; border: 1px solid mix(#333333, white, 25%); border-radius: 2px; margin-bottom: 1rem; legend { font-family: "Montserrat", sans-serif; color: mix(#333333, white, 25%); } }