.margin-cont {
    width: 100%;
    height: 800px;
}

.calculator h4 {
    position: static;
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 2em;
    width: 80%;
}

.calculator__wrapper {
    padding: 3%;
}

.sin {
    color: #4eacb3;
}

.calculator__form {
    padding: 5%;
    border: 1px solid #cccccc;
    border-radius: 10px;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: #4eacb3;
}

.calculator__choose-material-item,
.calculator__choose-add-item,
.calculator__square-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 15px;
}

.calculator__choose-material-item label,
.calculator__choose-add-item {
    width: 90%;
    padding-top: 10px;
    font-size: 1.2em;
    color: #ffffff;
    font-family: inherit;
}

.calculator__square-container {
    -ms-flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 10%;

}

.length-cont,
.width-cont {
display: -webkit-box;
display: -ms-flexbox;
display: flex;}

.calculator__square-container label {
    width: 50%;
    padding-top: 14px;
    font-size: 1.2em;
    color: #ffffff;
    font-family: inherit;
    padding-bottom: 20px
}

.calculator h5 {
    margin: 0;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 10px;
    font-size: 1.4em;
    color: #ffffff;
    font-family: inherit;
    text-decoration: underline;
}


.calculator__square-container input {
    width: 25%;
}

.calculator__total-price-container {
    padding-top: 10px;
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: #ffffff;
    font-family: inherit;
}

.calculator__total-price__article {
    padding-top: 5px;
    color: #cccccc;
    font-style: italic;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 0px;
    font-family: inherit;
}

.calculator__button {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;

    display: block;

    width: 80%;
    margin: 0 auto;
    margin-top: 3%;
    margin-bottom: 3%;
    padding-top: 15px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-left: 20px;

    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;

    color: #959595;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    background-color: #eb5833;
}

.calculator__button:hover {
    -webkit-transition: .5s;
    transition: .5s;

    color: #000;
    background-color: #ed6f50;
}

.calculator__button:active {
    -webkit-transition: .3s;
    transition: .3s;

    color: rgba(255, 255, 255, .3);
}

.calculator__field {
    font-size: 20px;
    font-weight: 700;
    line-height: 21px;

    width: 100%;
    height: 50px;

    text-align: center;

    border: 1px solid #858888;
    border-radius: 5px;
    outline: none;
}

.calculator__tel-container {
    width: 100%;
}

.calculator__tel-field {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 21px;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;

    width: 80%;
    height: 50px;


    text-align: center;

    border: 1px solid #858888;
    border-radius: 5px;
    outline: none;
}



.calculator__choose-material-item input[type="radio"] {
    display: none;
}

.calculator__choose-material-item input[type="radio"] + label {
    display: block;
    line-height: 21px;
    padding-left: 43px;
    position: relative;
    cursor: pointer;
}

.calculator__choose-material-item input[type="radio"] + label::before {
    content: "";
    display: block;
    width: 23px;
    height: 22px;
    background: url("../img/check-empty.png") no-repeat;
    position: absolute;
    top: 8px;
    left: 0;
}

.calculator__choose-material-item input[type="radio"]:checked + label::before {
    content: "";
    display: block;
    width: 25px;
    height: 22px;
    background: url("../img/check.png") no-repeat;
    position: absolute;
    top: 8px;
    left: 0;
}

.calculator__choose-add-item input[type="checkbox"] {
    display: none;
}

.calculator__choose-add-item input[type="checkbox"] + label {
    display: block;
    line-height: 21px;
    padding-left: 43px;
    position: relative;
    cursor: pointer;

}

.calculator__choose-add-item input[type="checkbox"] + label::before {
    content: "";
    display: block;
    width: 23px;
    height: 22px;
    background: url("../img/check-empty.png") no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

.calculator__choose-add-item input[type="checkbox"]:checked + label::before {
    content: "";
    display: block;
    width: 25px;
    height: 22px;
    background: url("../img/check.png") no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 700px) {
    .calculator__form {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .calculator__choose-material {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        border-bottom: 2px solid #cccccc;
    }

    .calculator__choose-material-item,
    .calculator__choose-add-item {
        width: 33.3%;
    }

    .calculator__square-container {
        width: 100%;
        margin: 0 auto;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .length-cont,
    .width-cont {
        width: 50%;
    }

    .calculator__square-container label {
        padding-top: 15px;
        width: 30%;
    }

    .calculator__square-container input {
        width: 30%;
        padding-bottom: 0;
        margin-bottom: 0;
        margin-left: 15px;
    }

    .calculator__tel-container {
        width: 40%;
    }

    .calculator__total-price-container {
        width: 40%;
        margin: 0 auto;
    }

    .calculator__choose-add {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;

    }

    .calculator__result-container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .calculator__button {
        width: 35%;
        height: 60px;
    }

    .calculator__total-price-container {
        font-size: 2em;
    }
}
