#fto_calculator {
    margin-top: 30px;
}

.fto_calculator_heading {
    background: #15406d;
    margin-bottom: 10px;
}

.fto_calculator_separator {
    height: 5px;
    width: 100%;
    background: #ededed;
    margin: 30px 0;
}

.fto_calculator_heading h2 {
    padding: 15px !important;
    color: #fff;
    margin: 0;
}

.fto_calculator_form .form-group {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eaeaea;
}

.fto_calculator_form .form-group label {
    flex: 0 0 50%;
}

.fto_calculator_form .form-group > div {
    flex: 1 1 auto;
}

.fto_calculator_form .form-group .error {
    color: red;
    font-weight: 500;
}

.fto_actions {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.after_actions .fto_secondary {
    margin-right: 5px;
}

.fto_actions_right {
    flex: 1 1 auto;
    text-align: right;
}

.fto_actions_right span {
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    position: relative;
    top: 8px;
    color: #15406d;
    font-family: "Libre Baskerville", sans-serif;
}

.fto_primary {
    font-family: 'Open Sans';
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 25px;
    background: #2185b0;
    color: #fff;
}

.fto_secondary {
    font-family: 'Open Sans';
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 25px;
    background: #f0ad4e;
    color: #fff;
}

.fto_tertiary {
    padding: 0;
    font-size: 14px;
    color: #2185b0;
    display: inline-block;
    padding-left: 5px;
    background: none;
    border: none;
}

.popup__wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: 999999;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    background: rgba(0, 0, 0, .5)
}

.popup__wrapper .popup {
    position: relative;
    background: #fff;
    top: 30px;
    box-shadow: 0 12px 22px -15px rgba(0, 0, 0, .65), 0 8px 17px -10px rgba(0, 0, 0, .4);
    width: 600px;
    transition: all .3s ease;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    border-radius: 0;
    padding: 40px 0;
    max-width: 100%
}

.popup__wrapper .popup.wider {
    width: 1200px;
    max-width: 100%;

}

.popup__wrapper .popup.wide {
    width: 1000px;
    max-width: 100%;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding: 25px
}


.popup__wrapper .popup.lg-wider {
    width: 1600px;
    max-width: 100%;

}


.popup__wrapper .popup .close__popup {
    position: absolute;
    top: 10px;
    right: 10px;
    line-height: 1em;
    padding: 5px;
    margin: 0;
    width: 30px;
    height: 30px;
    background: none;
    border-radius: 2px;
    border: none;
    color: #767678;
    cursor: pointer;
    transition: background .3s ease;
    z-index: 9999
}

.popup__wrapper .popup .popup__content {

}

.popup__wrapper .popup .popup__content h4 {
    font-size: 26px;
    font-weight: 700;
    color: #00517f
}

.popup__wrapper .popup .popup__footer {
    padding: 0 25px;
    display: flex;
    align-items: flex-end;
    flex-flow: row nowrap;
    justify-content: space-between
}

.popup__wrapper .popup .banner {
    text-align: center;
    padding-bottom: 15px
}

.popup__wrapper .popup .banner img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 175px;
    margin: 0 auto
}

.popup__wrapper .popup .title h3 {
    font-size: 26px;
    font-weight: 700;
    color: #00517f;
    margin: 20px 0 15px;
    padding-bottom: 15px;
    border-bottom: 8px solid #eaeaea
}

.popup__wrapper .popup .actions {
    text-align: center;
    padding: 20px 0 0
}

.popup__wrapper .popup .popup__actions button {
    margin-left: 5px;
}


.popup__wrapper .popup .actions .loader {
    position: relative;
    top: 0;
    left: 0;
    margin-left: -10px
}

.popup__wrapper .popup .actions .loader .path {
    stroke: #fff
}

.popup__wrapper.active {
    visibility: visible;
    opacity: 1
}

.popup__wrapper.active .popup {
    top: 0
}

.popup .table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background: #fff;
}

.popup table td.align-right {
    text-align: right;
}

.popup table.no_border {
    border: none !important;
}

.popup table.no_border tbody tr:last-of-type td, .popup table.no_border tbody tr:last-of-type th {
    border-bottom: none !important;
}


.popup table td, .popup table th {
    padding: 0px 0px;
    font-size: 12px;
}

.popup table td h6 {
    font-size: 13px;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    color: #000;
    padding: 8px 0 8px;
    margin-top: 8px;
    text-decoration: underline;
}

fieldset {
    border: 1px dashed #E5E5E5 !important;
    padding: 0px 10px !important;
}

fieldset legend {
    border-style: none none dashed !important;
    font-size: 18px
}

.row {
    display: flex;
    flex-flow: row wrap;
}

.row .col-sm-6 {
    flex: 0 0 50%;
    padding-right: 15px;
    padding-bottom: 10px;
}

.row .col-sm-6:last-of-type {
    padding-left: 15px;
}

.popup .form-group {
    margin-bottom: 10px;
}

.popup .form-group label {
    display: flex;
    justify-content: space-between;
}


body.noscroll {
    overflow: hidden !important;
}

body.noscroll .l-footer {
    z-index: -1;
}

.popup__wrapper.active .popup {
    top: 50px;
}

.popup__wrapper .popup {
    max-height: calc(100vh - 200px);
}

@media print {
    html, body {
        height: 100%;
        overflow: hidden;
    }

    body * {
        visibility: hidden;
    }

    h2 {
        font-family: var(--font-h2);
        font-weight: 700;
        font-size: 1.5rem;
        line-height: 1.2;
        letter-spacing: 0;
        margin-bottom: 1em;
    }

    #printSection, #printSection * {
        visibility: visible;
    }

    .table {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        background: #fff;
    }

    .table td.align-right {
        text-align: right;
    }

    .table.no_border {
        border: none !important;
    }

    .table.no_border tbody tr:last-of-type td, .table.no_border tbody tr:last-of-type th {
        border-bottom: none !important;
    }

    .table td, .table th {
        line-height: 2em !important;
    }

    .table td h6 {
        font-size: 9px;
        font-weight: bold;
        font-family: 'Open Sans', sans-serif;
        color: #000;
        padding: 4px 0 4px;
        margin-top: 0px !important;
        text-decoration: underline;
    }

    .popup__wrapper {
        position: fixed;
        top: 0;
        width: 100%;
        min-height: 100%;
        left: 0;
        z-index: 999999;
        display: block !important;
        flex-flow: column;
        justify-content: flex-start;
        align-items: center;
        opacity: 1;
        visibility: visible;
        transition: all .3s ease;
        background: rgba(0, 0, 0, .5);
        background: none;
        top: 0;
        left: 0;
    }
    
    .popup__wrapper .popup {
        position: relative;
        top: 0px;
        width: 600px;
        transition: all .3s ease;
        max-height: inherit !important;
        border-radius: 0;
    }
    
    .popup__wrapper .popup {
        width: 1000px;
        max-width: 100%;
        overflow-y: visible !important;
        max-height: inherit !important;
        padding: 0 25px !important;
        top: 0px !important;
    }
}


@media screen and (max-width: 605px) {
    .row .col-sm-6 {
        flex: 0 0 100%;
        padding-right: 0px;
        padding-bottom: 10px;
    }

    .row .col-sm-6:last-of-type {
        padding-left: 0px;
    }

    .popup__actions {
        text-align: center;
    }

    .popup__actions button {
        margin-bottom: 5px;
        padding: 0px 10px;
    }

    .fto_actions .after_actions .fto_secondary {
        margin-bottom: 5px;
    }

    .fto_actions .fto_actions_right .fto_primary {
        margin-top: 5px;
    }
/*
    .popup__wrapper .popup {
        max-height: calc(100vh - 20px)
    }

    .popup__wrapper .popup .popup__content {
        max-height: calc(100vh - 120px)
    }
*/
}