html, body {
    height: 100%;
    margin: 0;
}

/* mdbpro sets body to Roboto weight 300; loading the Roboto webfont for the heading weight this
   portal wants would otherwise thin out all body text along with it. */
body {
    font-weight: 400;
}

.proposal-review h1,
.proposal-review h2,
.proposal-review h3,
.proposal-review h4,
.proposal-review h5,
.proposal-review h6 {
    font-weight: 500;
}

    body.layout-empty {
        background-image: linear-gradient(#ffffff, #e7e7e7);
        background-size: 100%;
    }

a, .btn {
    text-transform: initial !important;
    font-size: 1rem;
}

    .btn.btn-lg {
        padding: .5rem 1rem;
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .btn.btn-md {
        padding: .375rem .75rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn.btn-sm {
        padding: .25rem .5rem;
        font-size: .875rem;
        line-height: 1.5;
    }

b, strong {
    font-weight: bold;
}

.btn-group {
    margin-top: 20px;
    margin-bottom: 10px;
}

.titletop {
    border-radius: 5px;
    font-size: 25px;
    padding: 20px;
    text-align: center;
}

.boxfield {
    background-color: rgb(248, 248, 248);
    padding: 20px;
    margin: 10px 0 20px 0px;
    box-shadow: #e5e5e5 2px 2px 5px;
}

.text-width-70ch {
    max-width: 70ch !important;
}

.topcontainer {
    background: #ffffff;
    padding: 20px 0;
    background-size: cover;
    color: #000;
}

.topcontainer img {
    max-width: 100%;
    height: auto;
}

#multiPageForm {
    padding: 10px;
}

.header.top {
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
}

.header {
    font-size: 20px;
    clear: left;
}

img {
    image-rendering: crisp-edges;
    margin: 5px 0px;
}


a {
    text-decoration: underline;
    color: #FFF;
}

    a.disabled {
        text-decoration: none;
    }

.language {
    padding: 2px 2px;
}

    .language.active {
        color: #333;
    }

/* Set width on the form input elements since they're 100% wide by default */

.formcontainer {
    margin: auto;
    text-align: left;
    background: #FFFFFF;
    border-radius: 5px;
    padding: 20px;
    padding-bottom: 0px;
}

@media (max-width: 575.98px) {
    .proposal-review.container,
    .proposal-review .formcontainer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    #multiPageForm {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .btn-firstpage {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .topcontainer .btn {
        margin-left: 0;
        margin-right: 0;
    }

    .btn-fetch-address-group {
        float: none;
        width: 100%;
    }

    .btn-fetch-address {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .btn-fetch-address + .btn-fetch-address {
        margin-top: 0.5rem;
    }
}

.proposal-review .btn {
    margin-left: 0;
    margin-right: 0;
}

body:has(.proposal-review) .topcontainer .btn {
    margin-left: 0;
    margin-right: 0;
}

.formfooter {
    margin: auto;
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    text-align: right;
    width: 100%;
}

.vcenter {
    vertical-align: middle !important;
}



.hide {
    display: none;
}


/*HACK: Fix md-form padding when using dynamic columns */
.col-md-6.col-fix > .md-form {
    margin-top: 0px;
}

.row-fix {
    padding-top: 1.5em;
}

.md-form.form-check {
    margin-top: 0px;
}

.form-check.form-check-inline {
    display: inline-block;
    margin-right: 15px;
}

.form-check-input[type="radio"]:disabled:not(:checked) + label:before,
.form-check-input[type="radio"]:disabled:checked + label:before,
label.btn input[type="radio"]:disabled:not(:checked) + label:before,
label.btn input[type="radio"]:disabled:checked + label:before {
    border-color: rgba(0, 0, 0, 0.15);
}

.selected {
    background: rgb(54, 175, 217);
}


.fullwidth {
    width: 100% !important;
}



.form-check {
    padding-left: 0px;
}

.select-wrapper + label {
    z-index: 1 !important;
}

#domicile-child-care-table .md-form,
#secondary-child-care-table .md-form {
    margin-top: -15px;
    margin-bottom: 0px;
}

#domicile-taxi-table .md-form,
#secondary-taxi-table .md-form {
    margin-top: -5px;
    margin-bottom: 10px;
}

.form-check-input[type="radio"]:not(:checked) + label,
.form-check-input[type="radio"]:checked + label,
label.btn input[type="radio"]:not(:checked) + label,
label.btn input[type="radio"]:checked + label {
    padding-left: 30px;
}

.md-label,
.mdb-main-label,
.select-wrapper + label,
.md-form label {
    color: #575757;
}

.vertical-center {
    min-height: 100%; /* Fallback for browsers do NOT support vh unit */
    min-height: 100vh; /* These two lines are counted as one :-)       */
    display: flex;
    align-items: center;
}

.form-control:focus, .custom-select:focus {
    box-shadow: 0 0 0 1px #212529 !important;
    border-color: #212529;
}

.form-check input:focus + label {
    box-shadow: 0 0 0 2px #212529 !important;
    border-radius: 0.25rem !important;
}

.btn-default:focus, .btn-default.focus, .btn-secondary:focus, .btn-secondary.focus {
    filter: brightness(100%) !important;
    box-shadow: 0 0 0 2px #212529 !important;
}

.form-check-input[type="checkbox"] + label, label.btn input[type="checkbox"] + label {
    height: initial !important;
}

.was-validated .custom-control-input:invalid ~ .custom-control-label,
.custom-control-input.is-invalid ~ .custom-control-label {
    color: #212529;
}

.was-validated .custom-control-input:valid ~ .custom-control-label,
.custom-control-input.is-valid ~ .custom-control-label {
    color: #212529;
}

.was-validated .form-check-input:invalid ~ .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
    color: #212529;
}

.was-validated .form-check-input:valid ~ .form-check-label,
.form-check-input.is-valid ~ .form-check-label {
    color: #212529;
}

.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: #b00020 !important;
    background-image: none !important;
}

.was-validated .custom-select:invalid, .custom-select.is-invalid {
    border-color: #b00020 !important;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px #fff !important;
}

.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
    box-shadow: 0 0 0 1px rgb(176, 0, 32, 1) !important;
}

.was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus {
    box-shadow: 0 0 0 1px rgb(176, 0, 32, 1) !important;
}

/* Styles for validation helpers
-----------------------------------------------------------*/

/* Old message styling. */
.validation-summary-valid {
    display: none;
}

.field-validation-error,
.validation-summary-errors {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    display: block;
    word-wrap: break-word;
    white-space: normal;
}

.invalid-feedback {
    color: #212529 !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path fill="%23b00020" d="M504 256c0 137-111 248-248 248S8 393 8 256C8 119.1 119 8 256 8s248 111.1 248 248zm-248 50c-25.4 0-46 20.6-46 46s20.6 46 46 46 46-20.6 46-46-20.6-46-46-46zm-43.7-165.3l7.4 136c.3 6.4 5.6 11.3 12 11.3h48.5c6.4 0 11.6-5 12-11.3l7.4-136c.4-6.9-5.1-12.7-12-12.7h-63.4c-6.9 0-12.4 5.8-12 12.7z"/></svg>') !important;
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 0.5rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    font-size: 87.5%;
    background-color: #F7E6E8;
    border: 1px solid #b00020 !important;
    padding: 8px 12px 8px 40px;
    border-radius: 4px;
}

.was-validated .form-control:valid, .form-control.is-valid {
    border-color: #ced4da !important;
    padding: 0.375rem 0.75rem !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    background-size: initial !important;
    box-shadow: none !important;
}

    .was-validated .form-control:valid:focus, .form-control.is-valid:focus {
        border-color: #212529 !important;
        box-shadow: 0 0 0 1px #212529 !important;
    }

.was-validated .custom-select:valid, .custom-select.is-valid {
    border-color: #ced4da !important;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem !important;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px !important;
}

    .was-validated .custom-select:valid:focus, .custom-select.is-valid:focus {
        border-color: #212529 !important;
        box-shadow: 0 0 0 1px #212529 !important;
        padding: 0.375rem 1.75rem 0.375rem 0.75rem !important;
        background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px !important;
    }

/* Styles for navbar
-----------------------------------------------------------*/
.navbar-nav {
    flex-wrap: wrap;
}

.navbar-dark {
    background-color: #2bbbad;
    margin-right: auto;
    margin-left: auto;
    padding: 10px 40px;
    box-shadow: none;
    -webkit-box-shadow: none;
}
    /* change the brand and text color */
    .navbar-dark .navbar-brand,
    .navbar-dark .navbar-text {
        color: #000 !important;
    }
    /* change the link color */
    .navbar-dark .navbar-nav .nav-link {
        color: #000 !important;
    }
    /* change the color of active or hovered links */
    .navbar-dark .nav-item.active .nav-link,
    .navbar-dark .nav-item:focus .nav-link,
    .navbar-dark .nav-item:hover .nav-link {
        color: #000 !important;
    }

li.nav-item {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-align: center;
    padding: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

    li.nav-item a {
        color: #000;
        padding: 0px;
    }

    li.nav-item:first-child:before {
        border-color: transparent;
    }

    li.nav-item.active {
        background: #FFF;
        color: #000;
    }

    li.nav-item .nav-link.disabled {
        color: rgba(0, 0, 0, 0.6) !important;
    }

    li.nav-item.active:after {
        border-left-color: #FFF;
    }

li.no-bullet {
    list-style-type: none;
}

.navbar.navbar-light .navbar-nav .nav-item.active > .nav-link {
    background-color: transparent;
}

/* Large Devices */
@media only screen and (min-width : 576px) {

    li.nav-item {
        font-size: 15px;
        height: 50px;
        line-height: 50px;
        padding: 0px;
        padding-left: 30px;
        margin-right: 5px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

        li.nav-item a {
            color: #000;
            padding: 0px;
        }

        li.nav-item:after, li.nav-item:before {
            left: 100%;
            top: 50%;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
        }

        li.nav-item:after {
            content: "";
            border-top: 25px solid transparent;
            border-bottom: 25px solid transparent;
            border-left: 25px solid rgba(255, 255, 255, 0.8);
            position: absolute;
            right: -30px;
            top: 0;
            z-index: 10;
        }

        li.nav-item:before {
            content: "";
            border-top: 25px solid transparent;
            border-bottom: 25px solid transparent;
            border-left: 25px solid #2bbbad;
            position: absolute;
            left: 0;
            top: 0;
            z-index: 0;
        }
}


/* Styles for summaries
-----------------------------------------------------------*/

.summary .boxfield {
    box-shadow: none;
}

.summary .md-form label {
    transition: transform 0s ease-out, color 0s ease-out, -webkit-transform 0s ease-out !important;
    transform: translateX(14px) translateY(-14px) scale(0.8);
    -webkit-transform: translateX(14px) translateY(-14px) scale(0.8);
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.summary .form-control {
    border-bottom: none !important;
}

.summary .avoid-break {
    page-break-inside: avoid;
}

.summary .md-form {
    margin-bottom: 0px;
}

.summary .col-4 {
    float: left;
}

.summary input.form-control {
    color: black !important;
}

.summary .form-text {
    padding: 4px 0px 6px 0px;
}


[aria-expanded="false"] > .expanded,
[aria-expanded="true"] > .collapsed {
    display: none;
}


/* Styles for Transport Priority
-----------------------------------------------------------*/

.transport-priority-row {
    padding-top: 10px;
}

.btn-priority-up,
.btn-priority-down {
    width: 28px;
    height: 28px;
    margin: 0px
}

    .btn-priority-up > span {
        display: inline-block;
        transform: rotate(-90deg);
    }

    .btn-priority-down > span {
        display: inline-block;
        transform: rotate(90deg);
    }


/* Styles for Accessibility
-----------------------------------------------------------*/
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

    .visuallyhidden.focusable:active,
    .visuallyhidden.focusable:focus {
        clip: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        position: static;
    }


.skipToContent {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    z-index: 10000;
}

    .skipToContent:focus {
        clip: auto;
        height: auto;
        overflow: auto;
        position: absolute;
        width: auto;
    }

.portal-label {
    position: absolute;
    bottom: .75rem;
    right: 1rem;
}

