﻿.ng-calculator .footnote {
    font-size: 12px;
    font-weight: 400;
    margin-top: 50px;
    text-align: center;
    padding: 0 20%;
}

.ng-calculator .prehead {
    color: #b55b3b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-align: center;
    font-size: 1.25rem;
}

.ng-calculator p {
    margin-bottom: 5px;
}

.ng-calculator h1 {
    text-align: center;
    font-weight: 700;
    font-size: 36px;
}

.ng-calculator .value-display {
    color: var(--ng-color-blue08);
    text-align: right;
}

.ng-calculator .range-container {
    display: flex;
    flex-direction: column;
    padding: 60px 80px;
    border-radius: 12px 0 0 12px;
    background: var(--ng-color-light-blue01);
}

    .ng-calculator .range-container .mb-5:last-child {
        margin-bottom: 0 !important;
    }

.ng-calculator .cta-links {
    display: flex;
    justify-content: space-evenly;
    margin-top: 30px;
}

.ng-calculator .max-range-display {
    text-align: right;
}

.ng-calculator .results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    border-radius: 0 12px 12px 0;
    color: white;
    background: var(--ng-color-blue08);
}

.ng-calculator label {
    display: block;
}

.ng-calculator div.form-field {
    position: relative;
    width: 400px;
    margin-top: 30px
}

    .ng-calculator div.form-field label.form-label {
        position: absolute;
        top: -8px;
        left: 10px;
        background-color: #fff;
        padding: 0 5px;
        font-weight: 500;
        font-size: 14px
    }

.ng-calculator .sub-head {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 20px;
}

.ng-calculator select {
    padding: 10px;
    border: 1px solid;
    border-image: linear-gradient(90deg, #d34209 -.19%, #891129 100.19%) 1;
    border-image-width: 2px;
    width: 100%;
    height: 55px;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    box-sizing: border-box;
    background-color: #fff
}

.ng-calculator p.total-minutes {
    font-size: 90px;
    font-weight: 800;
}

.ng-calculator .output-hr {
    opacity: 0.15;
    background: white;
    margin-top: var(--ng-size-24px);
    margin-bottom: var(--ng-size-24px);
}

.ng-calculator .result-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/*ranges*/
.ng-calculator input[type=range].styled-slider {
    height: 2px;
    -webkit-appearance: none;
    /*added this property to generated CSS to match the surrounding background color*/
    background: transparent;
    /*specify desired width*/
    width: 100%;
}

    /*range*/
    .ng-calculator input[type=range].styled-slider.slider-progress {
        --range: calc(var(--max) - var(--min));
        --ratio: calc((var(--value) - var(--min)) / var(--range));
        --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em));
    }

    .ng-calculator input[type=range].styled-slider:focus {
        outline: none;
    }

    /*webkit*/
    .ng-calculator input[type=range].styled-slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
        border-radius: 1em;
        background: white;
        border: 4px var(--ng-color-aqua06) solid;
        margin-top: calc(max((1em - 10px) * 0.5, 0px) - 2em * 0.5);
        -webkit-appearance: none;
    }

    .ng-calculator input[type=range].styled-slider::-webkit-slider-runnable-track {
        height: 4px;
        border-radius: 100px;
        background: var(--ng-color-light-blue04);
        box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.80), 0 1px 1px 0 rgba(0, 0, 0, 0.10) inset;
    }

    .ng-calculator input[type=range].styled-slider::-webkit-slider-thumb:hover {
        background: var(--ng-color-aqua06);
    }

    .ng-calculator input[type=range].styled-slider:hover::-webkit-slider-runnable-track {
        background: var(--ng-color-blue04);
        border-color: #9a9a9a;
    }

    .ng-calculator input[type=range].styled-slider::-webkit-slider-thumb:active {
        background: var(--ng-color-aqua06);
    }

    .ng-calculator input[type=range].styled-slider:active::-webkit-slider-runnable-track {
        background: #f5f5f5;
        border-color: #c1c1c1;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress::-webkit-slider-runnable-track {
        background: linear-gradient(var(--ng-color-aqua06), var(--ng-color-aqua06)) 0/var(--sx) 100% no-repeat, #DDDDDD;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress:hover::-webkit-slider-runnable-track {
        background: linear-gradient(var(--ng-color-aqua06), var(--ng-color-aqua06)) 0/var(--sx) 100% no-repeat, #e5e5e5;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress:active::-webkit-slider-runnable-track {
        background: linear-gradient(var(--ng-color-aqua06), var(--ng-color-aqua06)) 0/var(--sx) 100% no-repeat, #f5f5f5;
    }

    /*mozilla*/
    .ng-calculator input[type=range].styled-slider::-moz-range-thumb {
        width: 32px;
        height: 32px;
        border-radius: 2em;
        background: white;
        border: 4px var(--ng-color-aqua06) solid;
        margin-top: calc(max((1em - 10px) * 0.5, 0px) - 2em * 0.5);
    }

    .ng-calculator input[type=range].styled-slider::-moz-range-track {
        height: 4px;
        border-radius: 100px;
        background: var(--ng-color-light-blue04);
        box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.80), 0 1px 1px 0 rgba(0, 0, 0, 0.10) inset;
    }

    .ng-calculator input[type=range].styled-slider::-moz-range-thumb:hover {
        background: var(--ng-color-aqua06);
    }

    .ng-calculator input[type=range].styled-slider:hover::-moz-range-track {
        background: #e5e5e5;
        border-color: #9a9a9a;
    }

    .ng-calculator input[type=range].styled-slider::-moz-range-thumb:active {
        background: var(--ng-color-aqua06);
    }

    .ng-calculator input[type=range].styled-slider:active::-moz-range-track {
        background: #f5f5f5;
        border-color: #c1c1c1;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress::-moz-range-track {
        background: linear-gradient(var(--ng-color-aqua06), var(--ng-color-aqua06)) 0/var(--sx) 100% no-repeat, #efefef;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress:hover::-moz-range-track {
        background: linear-gradient(var(--ng-color-aqua06), var(--ng-color-aqua06)) 0/var(--sx) 100% no-repeat, #e5e5e5;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress:active::-moz-range-track {
        background: linear-gradient(var(--ng-color-aqua06), var(--ng-color-aqua06)) 0/var(--sx) 100% no-repeat, #f5f5f5;
    }

    /*ms*/
    .ng-calculator input[type=range].styled-slider::-ms-fill-upper {
        background: transparent;
        border-color: transparent;
    }

    .ng-calculator input[type=range].styled-slider::-ms-fill-lower {
        background: transparent;
        border-color: transparent;
    }

    .ng-calculator input[type=range].styled-slider::-ms-thumb {
        width: 18px;
        height: 18px;
        border-radius: 1em;
        background: var(--ng-color-aqua06);
        border: none;
        box-shadow: 0 0 2px black;
        margin-top: 0;
        box-sizing: border-box;
    }

    .ng-calculator input[type=range].styled-slider::-ms-track {
        height: 1em;
        border-radius: 0.5em;
        background: #efefef;
        border: 1px solid #b2b2b2;
        box-shadow: none;
        box-sizing: border-box;
    }

    .ng-calculator input[type=range].styled-slider::-ms-thumb:hover {
        background: var(--ng-color-aqua06);
    }

    .ng-calculator input[type=range].styled-slider:hover::-ms-track {
        background: #e5e5e5;
        border-color: #9a9a9a;
    }

    .ng-calculator input[type=range].styled-slider::-ms-thumb:active {
        background: var(--ng-color-aqua06);
    }

    .ng-calculator input[type=range].styled-slider:active::-ms-track {
        background: #f5f5f5;
        border-color: #c1c1c1;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress::-ms-fill-lower {
        height: max(calc(1em - 1px - 1px), 0px);
        border-radius: 0.5em 0 0 0.5em;
        margin: -1px 0 -1px -1px;
        background: var(--ng-color-aqua06);
        border: 1px solid #b2b2b2;
        border-right-width: 0;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress:hover::-ms-fill-lower {
        background: var(--ng-color-aqua06);
        border-color: #9a9a9a;
    }

    .ng-calculator input[type=range].styled-slider.slider-progress:active::-ms-fill-lower {
        background: var(--ng-color-aqua06);
        border-color: #c1c1c1;
    }

@media screen and (max-width:975px) {

    .ng-calculator .results,
    .ng-calculator .range-container {
        padding: 32px 16px;
    }

    .ng-calculator .range-container {
        border-radius: 12px 12px 0 0;
    }

    .ng-calculator .results {
        border-radius: 0 0 12px 12px;
    }

    .ng-calculator .ng-sans-medium.ng-5xl {
        font-size: var(--ng-size-24px);
        line-height: 130%;
    }

    .ng-calculator .ng-sans-semibold.ng-l,
    .ng-calculator .ng-sans-medium.ng-xl {
        font-size: var(--ng-size-14px);
        line-height: 130%;
    }

    .ng-calculator .ng-sans-regular.ng-l,
    .ng-calculator .results .ng-sans-medium.ng-xl {
        font-size: var(--ng-size-16px);
    }

    .ng-calculator .results .ng-sans-semibold.ng-4xl {
        font-size: var(--ng-size-24px);
        line-height: 140%;
    }

    .ng-calculator .mb-60px {
        margin-bottom: var(--ng-size-32px);
    }
}
