/*
orange = e36d28
dark orange = c66024
blue = 004986
darkblue = 003866
*/
.storage-calculator {
    background: rgba(0, 83, 158, .1);
    color: #fff;
    font-family: "etica", Arial, sans-serif;
    width: 75%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
    .storage-calculator {
        width: 100%;
    }
}

.acf-opslagman-module--locationBlocks {
    display: none;
}

body.storage-calculator-results .acf-opslagman-module--locationBlocks {
    display: block;
}

/**
 * Tabs
 */
.storage-calculator-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

.storage-calculator-tabs .tabs--tab {
    flex: 1 0 33%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: rgba(0, 83, 158, .4);
}

@media screen and (max-width: 768px) {
    .storage-calculator-tabs .tabs--tab {
        display: none;
    }

    .storage-calculator-tabs .tabs--tab.active {
        display: flex;
    }

    .storage-calculator-tabs .tabs--tab.active a,
    .storage-calculator-tabs .tabs--tab.active span {
        font-size: 24px;
    }
}

.storage-calculator-tabs .tabs--tab:first-child {
    border-left-color: transparent;
}

.storage-calculator-tabs .tabs--tab a,
.storage-calculator-tabs .tabs--tab span {
    display: block;
    padding: 20px;
    color: inherit;
    font-size: 18px;
    font-family: lft-etica-bold, sans-serif;
}

.storage-calculator-tabs .tabs--tab span {
    position: relative;
    padding: 20px 10px 20px 50px;
}

.storage-calculator-tabs .tabs--tab:not(:first-child) span {
    padding-left: 60px;
}

.storage-calculator-tabs .tabs--tab count {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(239, 124, 0, 1);
    line-height: 36px;
    color: #fff;
    text-align: center;
    border-radius: 5px;
}

.storage-calculator-tabs .tabs--tab:not(:first-child) count {
    left: 10px;
}

@media screen and (max-width: 768px) {
    .storage-calculator-tabs .tabs--tab:not(:first-child) count {
        left: 20px;
    }

    .storage-calculator-tabs .tabs--tab:not(:first-child) span {
        padding-left: 70px;
    }
}

.storage-calculator-tabs .tabs--tab.active {
    background: rgba(0, 83, 158, 1);
    border-bottom-color: rgba(0, 83, 158, 1);
    color: white;
    border-radius: 15px 15px 0 0;
}

/**
 * Content
 */
.storage-calculator-content {
    padding: 20px;
    background: rgba(0, 83, 158, 1);
}

/**
 * Step 1
 */
.storage-calculator-content .steps {
    margin: 0;
    list-style: none;
}

.storage-calculator-content .steps li {
    background: #fff;
    padding: 20px;
    line-height: 1.5;
    transition: opacity 200ms ease-in-out;
    padding-left: 130px;
    position: relative;
    border-radius: 15px;
    margin-top: 25px;
    overflow: hidden;
}

.storage-calculator-content .steps li:before {
    content: ' ';
    height: 100%;
    width: 100px;
    background: rgba(231, 124, 6, 1);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 15px 0 0 15px;
}

@media screen and (max-width: 320px) {
    .storage-calculator-content .steps li:before, .storage-calculator-content .steps li:after {
        display: none;
    }

    .storage-calculator-content .steps li {
        padding-left: 20px;
    }
}

.storage-calculator-content .steps li:after {
    color: #fff;
    font-size: 50px;
    font-family: FontAwesome, monospace;
    line-height: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100px;
}


.storage-calculator-content .steps li:first-child {
    margin-top: 0;
}

.storage-calculator-content .steps li:nth-child(1):after {
    content: ' ';
    left: 21px;
    height: 54px;
    width: 59px;
    background: url('../../images/icon-home.svg') no-repeat;
    background-size: cover;
}

.storage-calculator-content .steps li:nth-child(2):after {
    content: ' ';
    left: 21px;
    height: 54px;
    width: 59px;
    background: url('../../images/icon-huisraad.svg') no-repeat;
    background-size: cover;
}

.storage-calculator-content .steps li:nth-child(3):after {
    content: ' ';
    left: 21px;
    height: 54px;
    width: 59px;
    background: url('../../images/icon-cubes.svg') no-repeat;
    background-size: cover;
}

.storage-calculator-content .steps li:hover {
    opacity: .75;
    cursor: pointer;
}

.storage-calculator-content .steps li h3 {
    margin-top: 9px;
    font-size: 22px;
}

/**
 * Step 2 - Rooms (and storage-boxes)
 */

.storage-calculator-content .rooms {
    margin: 0 0 10px;
    list-style: none;
    background: #fff;
    padding: 20px;
}

.storage-calculator-content .rooms h3 {
    line-height: 1;
    margin-top: 0;
    margin-bottom: 15px;
}

.storage-calculator-content .rooms li {
    margin-bottom: 15px;
}

.storage-calculator-content .rooms li:last-child {
    margin-bottom: 0;
}

.storage-calculator-content .rooms li label {
    color: rgba(0, 83, 158, 1);
    font-size: 14px;
    font-weight: bold;
    font-family: "etica", Arial, sans-serif;
}

.storage-calculator-content .rooms li input[type=radio] {
    margin-right: 10px;
    margin-bottom: 0;
}

.storage-calculator-content .form_buttons {
    text-align: right;
}

.storage-calculator-content .form_buttons button {
    margin-bottom: 0;
    background: rgba(239, 124, 0, 1);
    font-family: "lft-etica-bold", Arial, sans-serif;
}

/**
 * Step 2 - Detail
 */

.storage-calculator-content .storage-items {
    margin: 0 0 10px;
    list-style: none;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.storage-calculator-content .storage-items:not(.opened):hover {
    opacity: .75;
    cursor: pointer;
}

.storage-calculator-content .storage-items h3 {
    line-height: 1;
    margin: 0;
    position: relative;
    cursor: pointer;
    flex: 1 0 100%;
}

.storage-calculator-content .storage-items h3 i.fa {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.storage-calculator-content .storage-items h4 {
    flex: 1 0 100%;
}

.storage-calculator-content .storage-items li {
    flex: 1 0 33%;
    max-width: 33%;
    margin-bottom: 15px;
    padding-right: 15px;
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    .storage-calculator-content .storage-items li {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .storage-calculator-content .storage-items li {
        flex-basis: 100%;
        max-width: none;
    }
}

.storage-calculator-content .miscellaneous.storage-items li {
    flex: 1 0 100%;
    max-width: none;
}

.storage-calculator-content .storage-items li,
.storage-calculator-content .storage-items h4,
.storage-calculator-content .storage-items span {
    display: none;
}

.storage-calculator-content .storage-items.opened h3 {
    margin-bottom: 15px;
}

.storage-calculator-content .storage-items.opened h3 i.fa {
    transform: translateY(-50%) rotate(180deg);
}

.storage-calculator-content .storage-items.opened li,
.storage-calculator-content .storage-items.opened h4,
.storage-calculator-content .storage-items.opened span {
    display: block;
}

.storage-calculator-content .storage-items label {
    color: rgba(0, 83, 158, 1);
    font-size: 14px;
    font-weight: bold;
    font-family: "etica", Arial, sans-serif;
}

.storage-calculator-content .storage-items input[type=number] {
    display: inline-block;
    width: 50px;
    margin-right: 10px;
    margin-bottom: 0;
}

.storage-calculator-content .result {
    background: #fff;
    color: #004986;
    padding: 15px;
    border-radius: 15px;
}

/**
* Additional css
*/
.page-template-page-calculator .storage-calculator {
    width: 100%;
}

.page-template-page-calculator .storage-calculator-content .form_buttons button {
    color: #fff;
    border: none;
    padding: 12px 30px;
    background-color: #ef7b00;
    border: 1px solid #da7101
}

.page-template-page-calculator .storage-calculator-content .form_buttons button:hover {
    background-color: #da7101;
    border: 1px solid #da7101;
}

.page-template-page-calculator .storage-calculator-tabs .tabs--tab span {
    font-size: 20px;
    line-height: 24px;
}

.page-template-page-calculator .storage-calculator-content .storage-items h3 {
    color: #02529e;
}

.page-template-page-calculator input[readonly] {
    background-color: #ddd;
    cursor: default;
    border: 1px solid #ddd;
}

.page-template-page-calculator .storage-items .fa-chevron-down {
    float: right;
}

.page-template-page-calculator .storage-items.opened .fa-chevron-down {
    transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.calculation-result-block-float {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #02529e;
    z-index: 1000;
    border-top: 1px solid #fff;
}

.fadeInOpacity {
    opacity: 0;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    animation-duration: 1s;
}

.opacityVisible {
    opacity: 1;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
