﻿/* Tabs */
#solarTab .tab-content {
    padding-top: 3rem;
}

#solarTab .nav-link {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1.2rem 1rem;
    border: 1px solid var(--qld-default-border);
    background-color: var(--qld-default-background-shade);
    color: var(--qld-light-text-lighter);
}

#solarTab .nav-link:hover {
    text-decoration: underline;
}

#solarTab .nav-link.active,
#solarTab .nav-link.active:hover {
    text-decoration: none;
    border: 1px solid var(--qld-light-action-primary);
    background-color: var(--qld-light-action-primary);
    color: var(--qld-dark-text-text);
}

/* Slider control */
.range-container {
    display: flex;
     align-items: center; 
}

.range-container .error {
    width: 100%;
    display: block;
}

.rent-increase-container {
    margin-left: 20px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--qld-brand-primary);
    color: #fff;
    font-weight: bold;
}

.rent-increase-container::before {
    content: '$';
    display: inline;
}

.rent-increase-container::after {
    right: 100%;
    top: 50%;
    border: solid transparent;
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: transparent;
    border-right-color: var(--qld-brand-primary);
    border-width: 15px;
    margin-top: -15px;
}

input#rent-increase {
    background: var(--qld-brand-primary);
    color: #fff;
    font-weight: bold;
    border: 0;
    padding: 3px 4px 3px 10px;
    width: 80px;
    height: 30px;
}

input[type=range] {
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    animation-duration: 0.2s;
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
    background: #dcdcdc;
    border-radius: 25px;
    border: 0 solid #000101;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
    border: 0 solid #000;
    height: 20px;
    width: 40px;
    border-radius: 7px;
    background: var(--qld-brand-primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #dcdcdc;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    animation-duration: 0.2s;
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
    background: #dcdcdc;
    border-radius: 25px;
    border: 0 solid #000101;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
    border: 0 solid #000;
    height: 20px;
    width: 40px;
    border-radius: 7px;
    background: var(--qld-brand-primary);
    cursor: pointer;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    animation-duration: 0.2s;
    background: transparent;
    border-color: transparent;
    border-width: 5px 0;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #dcdcdc;
    border: 0 solid #000101;
    border-radius: 50px;
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
}

input[type=range]::-ms-fill-upper {
    background: #dcdcdc;
    border: 0 solid #000101;
    border-radius: 50px;
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
}

input[type=range]::-ms-thumb {
    box-shadow: 0 0 0 #000, 0 0 0 #0d0d0d;
    border: 0 solid #000;
    height: 20px;
    width: 40px;
    border-radius: 7px;
    background: var(--qld-brand-primary);
    cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
    background: #dcdcdc;
}

input[type=range]:focus::-ms-fill-upper {
    background: #dcdcdc;
}

/* Result */
.results {
    display: flex;
    align-items: center;
    background-color: var(--qld-light-action-primary);
    color: #fff;
}

.results h3,
.results .icon,
.results .results-content {
    padding: 10px;
}

.results .primary,
.results .secondary {
    width: 50%;
    padding: 10px;
}

.results .primary > div,
.results .secondary > div {
    display: flex;
    align-items: center;
}

.results h3 {
    color: #fff;
    margin-bottom: 0;
}

.results p {
    margin: 0;
}

.results .icon svg {
    width: 100%;
    max-width: 60px;
}

.results .primary .amount {
    font-size: 50px;
    line-height: 50px;
    font-weight: bold;
}

.results .secondary {
    background-color: var(--qld-dark-blue);
}

.results .secondary .amount {
    font-size: 24px;
    line-height: 24px;
    font-weight: bold;
}

.results .secondary div {
    max-height: 140px;
    overflow: hidden;
}

.fade-in {
    animation: fadein 2s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 768px) {
    .results {
        flex-direction: column;
    }

    .results .primary {
        width: 100%;
    }

    .results .primary h3 {
        padding-bottom: 0;
    }

    .results .primary .icon {
        display: none;
    }

    .results .secondary {
        width: 100%;
    }

    .results .secondary .savings-type {
        padding-bottom: 5px;
    }

    .results .secondary > div .icon {
        display: none;
    }
}

/* Prepend $ to currency controls */
.form-control-prefix {
    position: relative;
}

.form-control-prefix > i {
    position: absolute;
    display: block;
    transform: translate(0, -50%);
    top: 50%;
    pointer-events: none;
    width: 25px;
    text-align: center;
    font-style: normal;
}

.form-control-prefix > input {
    padding-left: 25px;
    padding-right: 0;
}
