﻿.calculator-wrap {
    background: #f7f7f7;
    padding: 2rem 2rem;
}

.calculator-wrap h4 {
    margin-bottom: 2rem;
}

.calculator-wrap .input-text label,
.calculator-wrap .input-text input {
    width: 100%;
    display: block;
}

.calculator-wrap .input-text {
    position: relative;
    height: 4rem;
    margin-bottom: 2rem;
}

.calculator-wrap .input-text label {
    position: absolute;
    top: 0;
    left: 0;
    height: 1rem;
    line-height: 1rem;
    font-size: 1rem;
    color: #777;
    transition: all 0.1s ease-in-out;
}

.calculator-wrap .input-text input {
    position: relative;
    z-index: 2;
    border: none;
    height: 4rem;
    padding: 1rem 0 0 0;        
    background: none;
    color: #222;

    -webkit-box-shadow: 0px 1px 0px 0px #ccc;
    -moz-box-shadow: 0px 1px 0px 0px #ccc;
    box-shadow: 0px 1px 0px 0px #ccc;
}

.calculator-wrap .input-text input:focus {
    -webkit-box-shadow: 0px 2px 0px 0px #777;
    -moz-box-shadow: 0px 2px 0px 0px #777;
    box-shadow: 0px 2px 0px 0px #777;
    color: #777;
    outline: none;
}

.calculator-wrap .input-text input:focus + label {
    color: #222;
}
    
.calculate {
    width: 100%;
    display: block;
    background: #222;
    color: #fff;
    padding: 1rem;
    border: 0;
}

.calculate:hover {
    opacity: 0.8;
}

.results {
    display: none;
    border: 3px solid #f7f7f7;
    padding: 2rem;
}

.result {
    color: #000;
    font-weight: 600;
}

.results h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}      

.results table th {
    color: #222;
    font-weight: 600;
}

.results table tbody th {
    text-align: left;
}

.results table td,
.results table th:not(:empty) {
    padding:  0.5rem 1rem;
    background: #f7f7f7;
    border: 2px solid #fff;
}

.results table .result {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

.results .bar {
    width: 100%;
    height: 2rem;
    position: relative;
    background: #ddd;
    margin-top: 1rem;
}

.results .bar .bar-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #222;
}

.results .bar-label {
    padding-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.results .bar-label.bar-progress-label {
    color: #777;
}
    
.results .without-shortfall {
    color: green;
    font-size: 1.2rem;
}