/* LOADING SCREEN STYLES - use with content block 'Loading Screen (117345)*/
#loadingScreen {
    padding: 2em;
}

#loadingScreen .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
}

#loadingScreen .icon img {
    width: 100%;
    position: relative;
}

#loadingScreen .message {
    display: block;
    margin-left: 0;
    margin-top: 0.5em;
    font-size: 1.25em;
}

@media(min-width: 500px) {
    #loadingScreen .message {
        width: auto;
        display: inline;
        margin-left: 0.5em;
        margin-top: 0;
        font-size: 2em;
    }
}

/* other styles */
ul {
    list-style: none;
    padding-left: 0;
}

/* FORM DIV STYLES */
#form .container {
    background-color: #fff;
}

#form .form-outer-wrapper {
    padding: 3em;
}

#form .intro {
    text-align: center;
    margin-bottom: 2em;
}

form {
    width: 100%;
    margin: 0 auto;
}

form a:focus {
    outline: #5865f5 auto 1px;
}

@media (min-width: 500px) {
    form {
        max-width: 60%;
    }
}


.form-row {
    overflow: hidden;
    margin: 1.5em auto;
    padding: 0 2px;
}


.form-row.hidden {
 display: none;
}

.form-row.hr-row {
    border-top: solid 1px #ccc;
    padding-top: 2em;
}

form .button-row {
    margin: 0 auto;
    text-align: center;
}

form .checkbox-row {
    margin: 1.5em 0;
}

/* Radio buttons default label styles */ 
.radio-group .radio-option label {
    display: inline-block;
}

.radio-group.button-style .label-wrapper {
    position: relative;
}

.radio-group.button-style span {
    border: solid 2px #ccc;
    width: auto;
    display: block;
    padding: 0.5em;
    border-radius: 1em;
}

.radio-group.button-style input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.radio-group.button-style input:checked + span {
    /* border: solid 1px #5865f5; */
    background-color: #5865f5;
    color: #fff;
    font-weight: bold;
}

.radio-group.button-style input:focus + span {
    border: solid 2px #5865f5;
    background-color: #f1f5f9;
    color: #2f353d;
    font-weight: normal;
}

/* radios as prefernce style checkboxes */
.radio-group.pref-style {
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  border: none;
  position: relative;
  flex-wrap: wrap;
  /* HIDE RADIO */
  /* IMAGE STYLES */
  /* CHECKED STYLES */ }
  .radio-group.pref-style .radio-item {
    display: inline-block;
    width: 50%;
    float: left;
    min-width: 100px;
    max-width: 150px; }
    .radio-group.pref-style .radio-item label {
      display: block;
      width: 100%;
      height: 100%;
      padding: 1em;
      background-color: #fff;
      border: solid 1px #d2d2d2;
  cursor: pointer;  }
  .radio-group.pref-style .icon img {
    width: 100%; }
  .radio-group.pref-style .label-text {
    display: block;
    text-align: center;
    font-size: 12px;
    padding: 5px 0 0; }

.radio-group.pref-style .radio-item {
 position: relative;
}

  .radio-group.pref-style .radio-item [type=radio] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
 margin: 0; 
}
  .radio-group.pref-style .radio-item [type=radio] + .icon {
    cursor: pointer; }
  .radio-group.pref-style .radio-item [type=radio]:checked ~ label,
.radio-group.pref-style .radio-item [type=radio]:focus ~ label {
    background-color: #F1F5f9;
 border: solid 2px #5865f5;
}

    .radio-group.pref-style .radio-item [type=radio]:checked ~ label .selected {
      display: block; }
    .radio-group.pref-style .radio-item [type=radio]:checked ~ label .deselected {
      display: none; }
    .radio-group.pref-style .radio-item [type=radio]:checked ~ label .label-text {
      color: #5865f5; }

.radio-group.pref-style .radio-item [type=radio] + .checkmark {
display: none;
}

.radio-group.pref-style .radio-item [type=radio]:checked + .checkmark {
    background-color: #5865f5;
 display: block;
    position: absolute;
 top: 0;
    left: 0;
}

.radio-group.pref-style .radio-item [type=radio]:checked + .checkmark:after {
 display: block;
  position: absolute;
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* FORM ELEMENT STYLES */
label,
legend {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

label.req::after,
legend.req::after {
    content: "*";
    color: red;
    display: inline-block;
    margin-left: 3px;
}

label.opt::after,
legend.opt::after {
    content: "(optional)";
    font-style: italic;
    display: inline-block;
    margin-left: 3px;
}

label.error {
    color: red;
    clear: both;
}

fieldset {
    border: none;
    padding: 0;
    margin-top: 1em;
}

fieldset legend {
    padding-inline-start: 0;
    margin-bottom: 1em;
}

fieldset label.checkbox-wrap {
    font-size: 0.85em;
}

input[type="text"] {
    width: 100%;
    padding: 1em;
    background-color: #eee;
    border: none;
    font-family: 'SST-Roman', 'Arial', sans-serif;
    margin: 2px;
}

input[type="text"]:focus {
    outline: #5865f5 auto 1px;
}

/* clearfixes for short text input */
input[type="text"][size="4"],
input[type="text"][size="10"] {
    width: 30%;
    float: left;
    clear: both;
}

/* text area styles */
textarea {
    width: 100%;
    min-height: 100px;
}

/* select styles */
.form-row > select {
    width: 50%;
    padding: 1em;
    background-color: #eee;
    border: none;
    font-family: 'SST-Roman', 'Arial', sans-serif;
    float: left;
    clear: both;
    position: relative;
}

.select-wrapper {
    display: block;
    position: relative;
}

.select-wrapper.center {
    text-align: center;
    margin: 1em 0;
}

.select-wrapper.center select {
    float: none;
}

.pref-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    border: none;
    position: relative;
    flex-wrap: wrap;
}

.pref-wrapper .pref-option {
    display: inline-block;
    width: 50%;
    float: left;
    min-width: 100px;
    max-width: 150px;
}

@media (min-width: 768px) {
    .pref-wrapper .pref-option {
        width: 25%;
    }
}

.pref-wrapper .pref-option label {
    display: block;
    width: 100%;
    height: 100%;
    padding: 1em;
    background-color: #fff;
    border: solid 1px #d2d2d2;
    cursor: pointer;
}

.pref-wrapper .icon img {
    width: 100%;
}

.pref-wrapper .icon .label-text {
    display: block;
    text-align: center;
    font-size: 12px;
    padding: 5px 0 0;
}

.pref-wrapper .icon .deselected {
    display: block;
}

.pref-wrapper .icon .selected {
    display: none;
}

.pref-wrapper .pref-option {
    position: relative;
}

.pref-wrapper .pref-option [type=checkbox] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pref-wrapper .pref-option [type=checkbox] + .icon {
    cursor: pointer;
}

.pref-wrapper .pref-option [type=checkbox]:checked ~ label,
.pref-wrapper .pref-option [type=checkbox]:focus ~ label {
    background-color: #F1F5f9;
    border: solid 2px #5865f5;
}

.pref-wrapper .pref-option [type=checkbox]:checked ~ label .selected {
    display: block;
}

.pref-wrapper .pref-option [type=checkbox]:checked ~ label .deselected {
    display: none;
}

.pref-wrapper .pref-option [type=checkbox]:checked ~ label .label-text {
    color: #5865f5;
}

.pref-wrapper .pref-option [type=checkbox] + .checkmark {
    display: none;
}

.pref-wrapper .pref-option [type=checkbox]:checked + .checkmark {
    background-color: #5865f5;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.pref-wrapper .pref-option [type=checkbox]:checked + .checkmark:after {
    display: block;
    position: absolute;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-wrap {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1em;
    text-align: left;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-wrap input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Style the checkmark/indicator */
.checkbox-wrap .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Accessible version - use these classes, ignore above */
.checkbox-wrapper {
    position: relative;
    margin-top: 2px;
    /*  margin-bottom: 1rem; */
    /*  margin-top: 1rem; */
}

.checkbox-wrapper.req .req-tag {
    color: red;
    display: inline-block;
    margin-left: 3px;
}

.checkbox-wrapper.opt .opt-tag {
    font-style: italic;
    display: inline-block;
    margin-left: 3px;
}

/*style label to give some more space*/
.checkbox-wrapper label {
    display: block;
    padding: 0 0 12px 48px;
}

/*style and hide original checkbox*/
.checkbox-wrapper input {
    height: 24px;
    left: 0px;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 24px;
}

/*position new box*/
.checkbox-wrapper input + label::before {
    border: none;
    background-color: #eee;
    content: "";
    height: 24px;
    left: 5px;
    position: absolute;
    top: 0;
    width: 24px;
}

/*create check symbol with pseudo element*/
.checkbox-wrapper input + label::after {
    content: "";
    border: 4px solid #fff;
    border-left: 0;
    border-top: 0;
    height: 12px;
    width: 6px;
    left: 12px;
    top: 3px;
    opacity: 0;
    position: absolute;
    transform: rotate(45deg);
    transition: opacity 0.2s ease-in-out;
}

/*reveal check for 'on' state*/
.checkbox-wrapper input:checked + label::after {
    opacity: 1;
}

.checkbox-wrapper input:checked + label::before {
    background-color: #5865f5;
}

/* checkbox focus styles */
.checkbox-wrapper input:focus + label::before {
    box-shadow: 0 0 0 2px #5865f5;
    outline: 1px solid transparent;
}

/* default button styles */

button {
    color: #ffffff;
    background-color: #5865f5;
    display: inline-block;
    padding: 1em 1.5em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
 font-size: 1.25em;
}

label.error {
    color: red;
}
