.form-error,
.form-error legend,
.field-validation-error {
    color: #900;
}

    .form-error input,
    .form-error textarea {
        border: 3px solid #900;
    }

.form-divider {
    border-color: rgba(3,60,90,.5);
    max-width: 600px;
    margin-left: 0;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

textarea.adjustable-height {
    width: 600px;
    max-width: 100%;
}
.form-summary {
    max-width: 600px;
}
.defn-list-inline {
    margin-bottom: 1rem;
}
    .defn-list-inline dt,
    .defn-list-inline dd {
        padding: 0.25rem 1rem;
        background-color: #f8f9fa;
    }
.defn-list-inline dd {
    border-bottom: 1px solid #d4d4d4;
}
.defn-list-inline dt:nth-child(4n+1),
.defn-list-inline dd:nth-child(4n+2) {
    background-color: #e2e3e5;
}

label {
    font-weight: bold;
    margin-bottom: .5rem;
}

/*https://github.com/twbs/bootstrap/issues/28162*/
@media screen and (max-width: 575px) {
    .sr-sm-only {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
}

@media screen and (min-width: 576px) {
    .sr-sm-up {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    #wrap-AddressV2 {
        display: grid;
        grid-gap: 0 1rem;
        grid-auto-columns: 1fr;
    }

    #wrap-AddressLowStNum {
        grid-row: 1;
        grid-column: 1;
    }

    #wrap-AddressDirection {
        grid-row: 1;
        grid-column: 2;
    }

    #wrap-AddressStreetName {
        grid-row: 2;
        grid-column: 1 / span 2;
    }

    #wrap-AddressStreetType {
        grid-row: 3;
        grid-column: 1;
    }

    #wrap-AddressSuite {
        grid-row: 3;
        grid-column: 2;
    }

    #wrap-AddressCity {
        grid-row: 4;
        grid-column: 1 / span 2;
    }
}

@media screen and (min-width: 768px) {
    fieldset {
        max-width: 600px;
    }
}

/*
Wizard progress bar code adapted from Carlos Ballena via CodePen:
https://codepen.io/cballenar/pen/vxpZxE
MIT Licensed: https://blog.codepen.io/legal/licensing/
*/
ol.steps {
    display: flex;
    list-style: none;
    text-align: center;
    counter-reset: milestones;
    width: 100%;
    margin: 0;
    padding: 0;
}

    ol.steps li {
        flex-grow: 1;
        flex-basis: 0;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    ol.steps .step-text {
        display: block;
        text-decoration: none;
    }

        ol.steps .step-text::before,
        ol.steps .step-text::after {
            display: block;
            /*font-size: 1.25em;*/
            box-sizing: border-box;
        }

        ol.steps .step-text::before {
            border-radius: 50%;
            text-decoration: none;
            content: counter(milestones);
            counter-increment: milestones;
            width: 3em;
            height: 3em;
            line-height: 3em;
            margin: 0 auto 0.5em;
        }

        ol.steps .step-text::after {
            content: "";
            position: absolute;
            z-index: -1;
            width: 100%;
            height: 0;
            border: 0;
            left: 50%;
            top: 1.5em;
            border-bottom-width: 0.275em;
            margin-top: -0.15em;
        }

    ol.steps li:last-child .step-text::after {
        display: none;
    }

    ol.steps .step-text {
        color: #000;
    }

        ol.steps .step-text::before {
            color: #fdfefe;
            background-color: #033c5a;
            box-shadow: inset 0 0 0 0.275em #033c5a;
        }

        ol.steps .step-text::after {
            border-bottom-style: solid;
            border-color: #033c5a;
        }

    ol.steps li.current .step-text {
        font-weight: 600;
        color: #033c5a;
    }

        ol.steps li.current .step-text::before {
            color: #033c5a;
            background-color: #fcfcfa;
            box-shadow: inset 0 0 0 0.275em #033c5a;
        }

        ol.steps li.current .step-text::after {
            /*border-style: dashed;*/
            border-color: #033c5a;
        }

    ol.steps li.current ~ li .step-text::before,
    ol.steps li.skipped .step-text::before {
        color: #000;
        background-color: #e2e3e5;
        box-shadow: inset 0 0 0 0.275em #d4d4d4;
    }

    ol.steps li.current ~ li .step-text::after {
        /*border-bottom-style: none;*/
    }

/* Collapse progress bar on mobile */
@media (max-width: 600px) {
    ol.steps {
        display: block;
    }

        ol.steps .step-text {
            text-align: left;
            height: 3em;
            padding-left: 4em;
            display: flex;
            align-items: center;
            margin-bottom: 1em;
        }

            ol.steps .step-text::before {
                margin-left: -3.5em;
                text-align: center;
                position: absolute;
                top: 0;
            }

            ol.steps .step-text::after {
                border-bottom: none;
                border-left: 0.275em solid #033c5a;
                height: 4em;
                left: 1.875em;
            }
}

@media (min-width: 600px) {
    .defn-list-inline {
        display: grid;
        grid-template: auto / 180px 1fr;
        margin-bottom: 1rem;
        max-width: 600px;
    }

        .defn-list-inline dt,
        .defn-list-inline dd {
            border-bottom: 1px solid #d4d4d4;
        }

        .defn-list-inline dt {
            padding-right: 0.5rem;
        }

        .defn-list-inline dd {
            padding-left: 0.5rem;
        }

}

