
.form-element {
    --font-size: var(--root-font-size); /* Reset, use REM */
}

.form-element.form-element-fieldset legend {
    --font-family: inherit;
    --font-size: var(--root-heading-2-size);
    --font-style: normal;
    --font-weight: var(--root-font-weight--bold);
    --line-height: inherit;
}

.form-element .form-text {
    --color-text: dimgrey;
    --font-family: inherit;
    --font-size: 1em; /* Mobile 16px / > Mobile 18px */
    --font-style: italic;
    --font-weight: var(--root-font-weight--normal);
    --line-height: inherit;
}

.form-element .required {
    --font-family: inherit;
    --font-size: 1em;
    --font-style: normal;
    --font-weight: var(--root-font-weight--bold);
    --line-height: inherit;
}

.form-element.is-invalid {
    --color-border: var(--root-color--red);
}

.form-element .invalid-feedback {
    --color-text: var(--root-color--red);
    --font-family: inherit;
    --font-size: 1em; /* Mobile 16px / > Mobile 18px */
    --font-style: normal;
    --font-weight: var(--root-font-weight--bold);
    --line-height: inherit;
}

.form-element-summary .summary-header {
    --font-family: inherit;
    --font-size: 1.3em;
    --font-style: normal;
    --font-weight: bold;
    --line-height: inherit;
}

.form-element-summary .summary-row {
    --color-border: #ccc;
}

.form-element-summary .summary-label {
    --font-family: inherit;
    --font-size: 1em;
    --font-style: normal;
    --font-weight: bold;
    --line-height: inherit;
}

.form-element-summary .summary-value {
    --font-family: inherit;
    --font-size: 1em;
    --font-style: normal;
    --font-weight: normal;
    --line-height: inherit;
}

.form-navigation {
    --font-size: var(--root-font-size); /* Reset, use REM */
}

.form-navigation .btn {
    --background-color: var(--root-color--primary);
    --border-radius: var(--root-border-radius);

    --border-top-width: var(--root-border-width);
    --border-right-width: var(--root-border-width);
    --border-bottom-width: var(--root-border-width);
    --border-left-width: var(--root-border-width);

    --border-top-style: solid;
    --border-right-style: solid;
    --border-bottom-style: solid;
    --border-left-style: solid;

    --border-top-color: var(--root-color--primary);
    --border-right-color: var(--root-color--primary);
    --border-bottom-color: var(--root-color--primary);
    --border-left-color: var(--root-color--primary);

    --color: var(--root-color--white);
    --font-family: inherit;
    --font-size: 0.937rem; /* Always 15px */
    --font-style: normal;
    --font-weight: var(--root-font-weight--bold);
    --line-height: inherit;
    --height: 3rem; /* Keep the same height as regular buttons */
}

.form-navigation .btn:active,
.form-navigation .btn:focus,
.form-navigation .btn:hover {
    --background-color: var(--root-color--primary-dark);
    --border-top-color: var(--root-color--primary-dark);
    --border-right-color: var(--root-color--primary-dark);
    --border-bottom-color: var(--root-color--primary-dark);
    --border-left-color: var(--root-color--primary-dark);
}

.form-navigation .btn:disabled {
    --background-color: #f2f2f2;
    --border-top-color: #f2f2f2;
    --border-right-color: #f2f2f2;
    --border-bottom-color: #f2f2f2;
    --border-left-color: #f2f2f2;
    --color: #c2c5c7;
}

.form-element {
    margin-top: 1rem;
}

.form-cr-field {
    margin: 0 0 0 -999em;
    position: absolute;
}

form > input.form-control[aria-hidden="true"][type="text"][tabindex="-1"] {
    position: absolute;
    margin: 0 0 0 -999em;
}

.form-element .form-check,
.form-element .form-control,
.form-element .form-text,
.form-element .invalid-feedback {
    margin-top: 0.5rem;
}

form > .form-element:not(.form-element-gridrow),
fieldset.form-element > .form-element {
    margin-top: 1.5rem;
}

form > .form-element:first-child,
form > .form-element.form-element-fieldset > .form-element:first-child,
fieldset.form-element.form-element-advancedpassword > .form-element:first-of-type {
    margin-top: 0;
}

fieldset.form-element {
    border-width: 0;
    padding: 0;
}

fieldset.form-element-radio legend {
    float: left;
    margin-bottom: 0.5rem;
}

fieldset.form-element-radio legend + * {
    clear: both;
}

.form-element .form-check-wrapping-label {
    display: flex;
    align-items: center;
}

.form-element .form-label,
.form-element .form-text,
.form-element .invalid-feedback {
    display: block;
}

.form-element.is-invalid {
    border-left-width: 0.3125rem;
    border-left-style: solid;
    padding-left: 1rem;
}

.form-element > .form-element.is-invalid {
    border-left-width: 0;
    padding-left: 0;
}

.form-element-summary .summary-header + .summary-row {
    margin-top: 1rem;
}

.form-element-summary .summary-header,
.form-element-summary .summary-row {
    margin-top: 0;
}

.form-element-summary .summary-row {
    border-width: 0 0 0.063rem 0;
    border-style: solid;
    padding: 1rem 0;
}

.form-element-summary .summary-value {
    margin-left: 0;
    overflow-x: hidden;
}

.form-element-summary .summary-value-list {
    padding: 0;
    list-style-type: none;
}

.form-element-summary + .actions .form-navigation {
    margin-top: 2rem;
}

@media (min-width: 48rem) {
    .form-element-summary .summary-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-navigation {
    margin-top: 1rem;
}

.form-navigation .btn {
    cursor: pointer;
    align-items: center;
    box-sizing: border-box;
    padding: 0 1rem;
    text-align: center;
    position: relative;
}

.form-navigation .btn:not(:first-of-type) {
    margin-left: 0.5rem;
}

.form-navigation .btn-previous {
    padding-left: 3rem;
}

.form-navigation .btn-next {
    padding-right: 3rem;
}

.form-navigation .btn-previous::after,
.form-navigation .btn-next::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.625rem;
    height: 0.625rem;
    border-style: solid;
    border-width: 0 0 0.156rem 0.156rem;
}

.form-navigation .btn-previous::after {
    left: 1.25rem;
    transform: translate(0, -50%) rotate(45deg);
}

.form-navigation .btn-next::after {
    right: 1.25rem;
    transform: translate(0, -50%) rotate(225deg);
}


.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-column-gap: 2em;
    grid-row-gap: 1em;
}

@media (max-width: 29.999rem) {
    .row {
        grid-column-gap: 1em;
    }

    .row .col-xs-2 {
        grid-column: span 2;
    }

    .row .col-xs-3 {
        grid-column: span 3;
    }

    .row .col-xs-4 {
        grid-column: span 4;
    }

    .row .col-xs-5 {
        grid-column: span 5;
    }

    .row .col-xs-6 {
        grid-column: span 6;
    }

    .row .col-xs-7 {
        grid-column: span 7;
    }

    .row .col-xs-8 {
        grid-column: span 8;
    }

    .row .col-xs-9 {
        grid-column: span 9;
    }

    .row .col-xs-10 {
        grid-column: span 10;
    }

    .row .col-xs-11 {
        grid-column: span 11;
    }

    .row .col-xs-12 {
        grid-column: span 12;
    }
}

@media (min-width: 30rem) and (max-width: 47.999rem) {
    .row .col-sm-2 {
        grid-column: span 2;
    }

    .row .col-sm-3 {
        grid-column: span 3;
    }

    .row .col-sm-4 {
        grid-column: span 4;
    }

    .row .col-sm-5 {
        grid-column: span 5;
    }

    .row .col-sm-6 {
        grid-column: span 6;
    }

    .row .col-sm-7 {
        grid-column: span 7;
    }

    .row .col-sm-8 {
        grid-column: span 8;
    }

    .row .col-sm-9 {
        grid-column: span 9;
    }

    .row .col-sm-10 {
        grid-column: span 10;
    }

    .row .col-sm-11 {
        grid-column: span 11;
    }

    .row .col-sm-12 {
        grid-column: span 12;
    }
}

@media (min-width: 48rem) and (max-width: 61.999rem) {
    .row .col-md-2 {
        grid-column: span 2;
    }

    .row .col-md-3 {
        grid-column: span 3;
    }

    .row .col-md-4 {
        grid-column: span 4;
    }

    .row .col-md-5 {
        grid-column: span 5;
    }

    .row .col-md-6 {
        grid-column: span 6;
    }

    .row .col-md-7 {
        grid-column: span 7;
    }

    .row .col-md-8 {
        grid-column: span 8;
    }

    .row .col-md-9 {
        grid-column: span 9;
    }

    .row .col-md-10 {
        grid-column: span 10;
    }

    .row .col-md-11 {
        grid-column: span 11;
    }

    .row .col-md-12 {
        grid-column: span 12;
    }
}

@media (min-width: 62rem) {
    .row .col-lg-2 {
        grid-column: span 2;
    }

    .row .col-lg-3 {
        grid-column: span 3;
    }

    .row .col-lg-4 {
        grid-column: span 4;
    }

    .row .col-lg-5 {
        grid-column: span 5;
    }

    .row .col-lg-6 {
        grid-column: span 6;
    }

    .row .col-lg-7 {
        grid-column: span 7;
    }

    .row .col-lg-8 {
        grid-column: span 8;
    }

    .row .col-lg-9 {
        grid-column: span 9;
    }

    .row .col-lg-10 {
        grid-column: span 10;
    }

    .row .col-lg-11 {
        grid-column: span 11;
    }

    .row .col-lg-12 {
        grid-column: span 12;
    }
}

.form-element {
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1rem);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, normal);
    line-height: var(--line-height, inherit);
}

.form-element.form-element-fieldset legend {
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1.777em);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, bold);
    line-height: var(--line-height, inherit);
}

.form-element .form-text {
    color: var(--color-text, dimgrey);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-style: var(--font-style, italic);
    font-weight: var(--font-weight, normal);
    line-height: var(--line-height, inherit);
}

.form-element .required {
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, bold);
    line-height: var(--line-height, inherit);
}

.form-element.is-invalid {
    border-left-color: var(--color-border, red);
}

.form-element .invalid-feedback {
    color: var(--color-text);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, bold);
    line-height: var(--line-height, inherit);
}

.form-element-summary .summary-header {
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1.3em);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, bold);
    line-height: var(--line-height, inherit);
}

.form-element-summary .summary-row {
    border-color: var(--color-border, #ccc);
}

.form-element-summary .summary-label {
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, bold);
    line-height: var(--line-height, inherit);
}

.form-element-summary .summary-value {
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, normal);
    line-height: var(--line-height, inherit);
}

.form-navigation {
    font-size: var(--font-size, 1rem);
}

.form-navigation .btn {
    min-height: var(--height, 3rem);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 0.937rem);
    font-style: var(--font-style, normal);
    font-weight: var(--font-weight, bold);
    line-height: var(--line-height, inherit);
    color: var(--color, white);

    border-top-width: var(--border-top-width, 0.125rem);
    border-right-width: var(--border-right-width, 0.125rem);
    border-bottom-width: var(--border-bottom-width, 0.125rem);
    border-left-width: var(--border-left-width, 0.125rem);

    border-top-style: var(--border-top-style, solid);
    border-right-style: var(--border-right-style, solid);
    border-bottom-style: var(--border-bottom-style, solid);
    border-left-style: var(--border-left-style, solid);

    border-top-color: var(--border-top-color, #000714);
    border-right-color: var(--border-right-color, #000714);
    border-bottom-color: var(--border-bottom-color, #000714);
    border-left-color: var(--border-left-color, #000714);

    border-radius: var(--border-radius, 0.188rem);
    background-color: var(--background-color, #0349D1);
}

.form-navigation .btn-previous::after,
.form-navigation .btn-next::after {
    border-color: currentColor;
}

.form-navigation .btn:disabled {
    cursor: not-allowed;
}

