input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

::-webkit-calendar-picker-indicator {
    background: transparent url('/images/calendar.png') no-repeat center;
    color: transparent;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

:focus::-webkit-calendar-picker-indicator {
    background: transparent url('/images/calendar-focused.png') no-repeat center;
}


*:focus {
    outline: none
}

a:hover, a:active, a:focus {
    text-decoration: none !important;
}

table {
    font-size: inherit;
}


/* calc layout */

.calc-form {
    display:block;
    margin-bottom: 0;
}

.calc-form-body {
    padding: 18px 14px 0;
}

.calc-frow {
    padding-bottom: 20px;
    clear: both;
}

.calc-fleft {
    width: 25%;
    padding-top: 7px;
    float: left;
}

.calc-fright {
    margin-left: 28%;
}

.calc-frow.not-input .calc-fright {
    padding-top: 7px;
}

.calc-frow.loading-row {
    display: none;
}

.calc-frow.sep {
    padding-bottom: 13px;
    border-top: 1px solid #dde5e7;
}

.calc-frow.sep-top {
    border-top: 1px solid #dde5e7;
    padding-top: 10px;
}

.calc-frow.result-sep {
    display: none;
    padding-bottom: 13px;
    border-top: 1px solid #dde5e7;
}

@media only screen and (min-width: 0px) and (max-width: 480px) {

    .calc-form-body {
        padding: 8px 8px 0;
    }

    .calc-frow {
        padding-bottom: 12px;
    }

    .calc-fleft {
        width: 100%;
        float: none;
        padding-bottom: 8px;
        font-weight: bold;
    }

    .calc-frow.result-row .calc-fleft {
        font-weight: 400;
    }

    .calc-fright {
        width: 100%;
        float: none;
        margin-left: 0;
    }
}


/* calc elements */

.calc-input {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    position: relative;
}

.calc-result-value {
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
}

.calc-result-value.not-bold {
    font-weight: normal;
}

.calc-result-value.raw {
    font-weight: normal;
    font-size: 1em;
    display: block;
}

.calc-input-desc {
    display: inline-block;
    color: #758a9a;
}

.calc-text-desc {
    color: #758a9a;
}

.calc-input-notice {
    margin-top: 4px;
    font-size: 0.9em;
    color: #999999;
}

.calc-inp, .calc-select {
    display: inline-block;
    max-width: 100%;
    padding: 0 8px;
    background-color: #fff;
    transition: all 0.3s ease;
}

textarea.calc-inp {
    line-height: 1.3em;
    padding-top: 8px;
    padding-bottom: 8px;
}

.calc-submit {
    display:inline-block;
    padding:0 20px;
    height:36px;
    line-height: 33px;
    border: none;
    cursor:pointer;
    text-decoration:none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.calc-toggle {
    text-decoration: none;
    margin-right: 15px;
    white-space: nowrap;
    padding: 2px 0;
    cursor: pointer;
    line-height: 2em;
}

.calc-toggle.current {
    border-bottom: 1px solid;
    font-weight: bold;
}

/* tables */

.calc-form-table {
    font-size: 1em;
}

.calc-form-table td {
    padding: 3px;
    vertical-align: top;
}

.calc-form-table tr:first-child td {
    padding-top: 0;
}

.calc-form-table td:first-child {
    padding-left: 0;
}

.calc-form-table td:last-child {
    padding-right: 0;
}

.calc-form-table th {
    font-size: 0.85em;
    font-weight: 400;
}

.calc-form-table img, .calc-form-table .fa-minus-square, .calc-form-table .fa-times {
    position: relative;
    top: 8px;
}


.table-offers {
    max-width: 550px;
}

.table-offers td {
    vertical-align: middle;
}

.table-offers td:first-child {
    padding-left: 0;
}

.table-offers tr:first-child td {
    padding-top: 0;
}


/* checkboxes and radio */

.calc-form label {
    margin-bottom: 0;
}

.calc-checkbox:not(checked) {
    position: absolute;
    opacity: 0;
}

.calc-checkbox:not(checked) + label {
    position: relative;
    padding: 0 0 0 30px;
    display: inline-block;
    height: 22px;
}

.calc-checkbox:not(checked) + label:before {
    content: '';
    position: absolute;
    box-sizing: content-box;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #bdc3c7;
    background: #FFF;
}

.calc-checkbox:not(checked) + label:after {
    content: '';
    position: absolute;
    box-sizing: content-box;
    top: 4px;
    left: 4px;
    width: 14px;
    height: 14px;
    background: #758a9a;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5);
    opacity: 0;
    transition: all .2s;
}

.calc-checkbox:checked + label:after {
    opacity: 1;
}

.calc-radio:not(checked) {
    position: absolute;
    opacity: 0;
}

.calc-radio:not(checked) + label {
    position: relative;
    padding: 0 0 0 30px;
    display: inline-block;
    height: 22px;
}

.calc-radio:not(checked) + label:before {
    content: '';
    position: absolute;
    box-sizing: content-box;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #bdc3c7;
    background: #FFF;
    border-radius: 50%;
}

.calc-radio:not(checked) + label:after {
    content: '';
    position: absolute;
    box-sizing: content-box;
    top: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #758a9a;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5);
    opacity: 0;
    transition: all .1s;
}

.calc-radio:checked + label:after {
    opacity: 1;
}

.calc-radio:checked:disabled + label:after {
    opacity: 0.5;
}

.radio-sep {
    font-size: 0;
    height: 8px;
}