#about{
    float: left;
    width: 100%;
    height: 100%;
}

.calculator-title{
    text-align: right;
    border-right: 2px solid #000;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    line-height: 24px;
    padding-right: 12px;
}

.calculator-title h1{
    font-size: 18px;
}

.calculator-description{
    margin: 15px 0 0 0;
    font-size: 13px;
}

.construction{
    float: left;
    width: 100%;
    min-height: 500px;
    text-align: center;
    position: relative;
}

.construction .loading-img{
    margin: 20px auto;
    display: block;
    width: 50px;
    height: 50px;
    background: url(../images/loading.gif) 50% 50% no-repeat;
}

#construction_form.c1 input[name = 'width'], #construction_form.c2 input[name = 'width']{
    top: -25px;
    left: 47%;
    width: 58px;
    background: #fff;
    padding: 0 0px 0 15px;
    text-align: center;
    border: 1px solid #d5d0cb;
    color: #999;
}
#construction_form.c1 input[name = 'height'], #construction_form.c2 input[name = 'height']{
    top: 47%;
    right: -40px;
    left: inherit;
    background: #fff;
    width: 52px;
    padding: 0 0px 0 10px;
    text-align: center;
    border: 1px solid #d5d0cb;
    color: #999;
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
#construction_form.c3 input[name = 'width'], #construction_form.c4 input[name = 'width'], #construction_form.c5 input[name = 'width']{
    top: 1px;
    left: 190px;
}
#construction_form.c3 input[name = 'height'], #construction_form.c4 input[name = 'height'], #construction_form.c5 input[name = 'height']{
    top: 201px;
    left: 420px;
}
#construction_form.c6 input[name = 'width'], #construction_form.c7 input[name = 'width'], #construction_form.c8 input[name = 'width']{
    top: 1px;
    left: 224px;
}
#construction_form.c6 input[name = 'height'], #construction_form.c7 input[name = 'height'], #construction_form.c8 input[name = 'height']{
    top: 164px;
    left: 472px;
}
#construction_form.c9 input[name = 'width']{
    top: 1px;
    left: 90px;
}
#construction_form.c9 input[name = 'height']{
    top: 290px;
    left: 220px;
}
#construction_form.c10 input[name = 'width'], #construction_form.c11 input[name = 'width']{
    top: 11px;
    left: 190px;
}
#construction_form.c10 input[name = 'height'], #construction_form.c11 input[name = 'height']{
    top: 211px;
    left: 421px;
}
#construction_form.c12 input[name = 'width'], #construction_form.c13 input[name = 'width']{
    top: 1px;
    left: 224px;
}
#construction_form.c12 input[name = 'height'], #construction_form.c13 input[name = 'height']{
    top: 283px;
    left: 472px;
}
#construction_form.c14 input[name = 'dwidth']{
    top: 1px;
    left: 54px;
}
#construction_form.c14 input[name = 'dheight']{
    top: 237px;
    left: 158px;
}
#construction_form.c15 input[name = 'dwidth']{
    top: 1px;
    left: 118px;
}
#construction_form.c15 input[name = 'dheight']{
    top: 237px;
    left: 303px;
}
#construction_form.c16 input[name = 'width']{
    top: 1px;
    left: 123px;
}
#construction_form.c16 input[name = 'height']{
    top: 153px;
    left: 7px;
}
#construction_form.c16 input[name = 'dwidth']{
    top: 1px;
    left: 259px;
}
#construction_form.c16 input[name = 'dheight']{
    top: 237px;
    left: 363px;
}
#construction_form.c17 input[name = 'width']{
    top: 1px;
    left: 182px;
}
#construction_form.c17 input[name = 'height']{
    top: 153px;
    left: 3px;
}
#construction_form.c17 input[name = 'dwidth']{
    top: 1px;
    left: 388px;
}
#construction_form.c17 input[name = 'dheight']{
    top: 237px;
    left: 493px;
}
#construction_form.c18 input[name = 'width']{
    top: 7px;
    left: 281px;
}
#construction_form.c18 input[name = 'height']{
    top: 150px;
    right: 22px;
}
#construction_form.c1 input[name = 'dwidth'],
#construction_form.c2 input[name = 'dwidth'],
#construction_form.c3 input[name = 'dwidth'],
#construction_form.c4 input[name = 'dwidth'],
#construction_form.c5 input[name = 'dwidth'],
#construction_form.c6 input[name = 'dwidth'],
#construction_form.c7 input[name = 'dwidth'],
#construction_form.c8 input[name = 'dwidth'],
#construction_form.c9 input[name = 'dwidth'],
#construction_form.c10 input[name = 'dwidth'],
#construction_form.c11 input[name = 'dwidth'],
#construction_form.c12 input[name = 'dwidth'],
#construction_form.c13 input[name = 'dwidth'],
#construction_form.c18 input[name = 'dwidth'],
#construction_form.c1 input[name = 'dheight'],
#construction_form.c2 input[name = 'dheight'],
#construction_form.c3 input[name = 'dheight'],
#construction_form.c4 input[name = 'dheight'],
#construction_form.c5 input[name = 'dheight'],
#construction_form.c6 input[name = 'dheight'],
#construction_form.c7 input[name = 'dheight'],
#construction_form.c8 input[name = 'dheight'],
#construction_form.c9 input[name = 'dheight'],
#construction_form.c10 input[name = 'dheight'],
#construction_form.c11 input[name = 'dheight'],
#construction_form.c12 input[name = 'dheight'],
#construction_form.c13 input[name = 'dheight'],
#construction_form.c18 input[name = 'dheight'],
#construction_form.c14 input[name = 'width'],
#construction_form.c14 input[name = 'height'],
#construction_form.c15 input[name = 'width'],
#construction_form.c15 input[name = 'height']{
    display: none;
}

.construction form{
    display: inline-block;
    position: relative;
}

.construction form.blinds_calculator{
    width: 100%;
}

.construction input[name = width], .construction input[name = height],
.construction input[name = dwidth], .construction input[name = dheight]{
    position: absolute;
    width: 36px;
    height: 18px;
    border: none;
    font-size: 12px;
    padding: 0;
}

#clothnamesearch{
    margin: 10px 0 20px 0;
}

#construction_form input[disabled]{
    width: inherit;
    background: transparent;
}

.construction .cloth_type{
    text-align: center;
    margin: 0;
}

.cloth_types .cloth_type{
    margin: 10px 0 20px 0;
}

.construction .cloth_type label{
    padding-left: 0;
    min-height: 230px;
    position: relative;
}



.zoom-content{
    border: 2px solid #999;
    position: absolute;
    top: 0;
    left: 110%;
    z-index: 99;
}

.construction .cloth_type.radio input[type=radio]{
    margin-left: 0;
}

.construction .cloths .cloth_type{
    /*display: none;*/
}

.construction .cloths .cloth_type .zoom-content img{
    max-width: 500px;
}

.steps{
    margin-top: 10px;
    float: left;
    min-width: 320px;
    width: 100%;
}

.steps.fixed{
    position: fixed;
    top: 0;
    width: inherit;
    padding-right: 1.66666667%;
}

.steps .step{
    display: table;
    width: 100%;
    height: 48px;
    cursor: pointer;
    margin: 5px 0;
}

.step.restep_1,
.step.restep_2,
.step.restep_3,
.step.restep_4,
.step.restep_5,
.step.restep_6,
.step.restep_7,
.step.restep_8{
    background: url(../img/back-icon.png) 100% 55% no-repeat;
}

.step.restep_1.oncemore{
    background: #337ab7 !important;
}

.step_num{
    display: table-cell;
    width: 5%;
    vertical-align: middle;
    font-size: 14px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.step_wrapper{
    display: table;
    width: 95%;
    border: 1px solid #38a7bb;
}

.step_wrapper .left_step_block{
    width: 80%;
    display: table-cell;
    vertical-align: middle;
    padding: 0 5px;
}

.left_step_block .step_title{
    width: 100%;
    font-size: 18px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    margin-top: 0px;
    display: block;
}

.left_step_block .step_title small{
    font-size: 11px;
    color: #ee7d33;
}

.left_step_block .step_details{
    font-size: 9px;
    color: #898989;
    display: block;
    margin-top: -23px;
}

.step_wrapper .right_step_block{
    width: 20%;
    text-align: center;
    padding: 2px 3px;
    height: 46px;
    vertical-align: middle;
    display: table-cell;
}

.step_wrapper .right_step_block img{
    max-width: 42px;
    max-height: 42px;
}

.steps .total{
    font-size: 20px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    margin: 30px 0 0 0;
    padding-left: 20px;
}

.steps .summary{
    display: table;
    width: 375px;
    height: 100px;
    margin: 0 0 10px -45px;
    position: relative;
    overflow: inherit !important;
}

.steps select{
    width: 90%;
    margin: 0 auto;
}

.steps select[name = 'c_qty']{
    width: auto;
}

.summary .step_num{
    display: block;
    float: left;
    width: 70px;
    text-align: right;
    padding-top: 20px;
    margin-left: -15px;
}

.summary .cost_block{
    display: block;
    float: left;
    width: 325px;
    height: 100px;
    position: absolute;
    left: 62px;
}

.step_title.orange{
    font-size: 28px;
    color: #ee7d33;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.step_title.orange strong{
    padding-right: 5px;
}

.step_title.orange small.black{
    color: #000;
    font-size: 22px;
}

.left_sum_block{
    float: left;
    width: 175px;
    padding: 15px;
}

#total-order{
    float: left;
    width: 138px;
    height: 65px;
    color: #38a7bb;
    background-color: #ffffff;
    border: 1px solid #38a7bb;
    margin-top: 15px;
    font-size: 24px;
    text-align: center;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    line-height: 24px;
    padding: 8px 0 0 0;
    cursor: pointer;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

#total-order:hover{
    color: #fff;
    background-color: #38a7bb; 
}

#total-order a{
    text-decoration: none;
    color: #fff;
}

.next_step, .next_alternative_step{
    background: #ff0000;
    border: 1px solid #ff0000;
    margin: 10px auto;
    padding: 8px 15px;
    display: table;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.next_step:hover, .next_alternative_step:hover{
    border: 1px solid #FF4D4C;
    background: #FF4D4C;
    text-decoration: none;
    color: #fff;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
}

form#construction_frame, form#construction_cells, form#furniture, form#setup, form#underflow, form#construction_sizes{
    padding-left: 20px;
}

form#construction_sizes{
    padding-right: 20px;
}

.steps .door_sizes, .steps .window_sizes{
    padding: 0 20px;
}

.steps .door_sizes input, .steps .window_sizes input{
    height: 28px;
    padding: 4px 12px;
    
}

.steps .door_sizes .form-group, .steps .window_sizes .form-group{
    margin-bottom: 10px;
}

form#construction_sizes .form-group{
    margin-bottom: 10px;
}

form#construction_sizes label{
    font-size: 13px;
}

form#construction_frame input, form#construction_cells input, form#furniture input, form#setup input, form#underflow input{
    width: auto;
    height: auto;
}

form#construction_frame .windows:before, form#construction_cells .windows:before{
    /*content: 'Окна';*/
}

form#construction_frame .doors:before, form#construction_cells .doors:before{
    /*content: 'Двери';*/
}

form#calculator_form{
    display: none;
}

.blinds_sizes{
    display: inline-block;
    position: relative;
    margin: 25px auto;
    max-width: 100%;
}

.blinds_sizes_wrapper{
    float: left;
    width: 100%;
    height: 100%;
    padding: 3.9% 2.8% 2.3% 2.8%;
    position: absolute;
    opacity: 0.8;
}

.blinds_sizes_wrapper.clothes_type-3{
    opacity: 0.99;
}

.shaft_radius_intro{
    margin-top: 20px;
}

.shaft_radius{
    position: absolute;
    right: 0px;
    top: -30px;
    font-weight: bold;
    font-size: 18px;
}

.blinds_sizes_wrapper.open{
    padding: 0% 2.8% 2.3% 2.8%;
}

.blinds_sizes_wrapper_bg{
    width: 100%;
    height: 100%;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.blinds_sizes img{
    max-width: 100%;
}

.steps .bonus{
    float: left;
    width: 100%;
    padding-left: 20px;
    margin: 0px 0px 5px 0;
}

.steps .bonus .checkbox{
    
}

.blinds_calculator fieldset legend{
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    margin-top: 10px;
    float: left;
}

.blinds_calculator .bonus label{
    font-size: 12px;
    line-height: 20px;
}

/* POP-UP */
.popup-box {
    position: absolute;
    border-radius: 5px;
    background: #fff;
    display: none;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    font-family: Arial, sans-serif;
    z-index: 9999999;
    font-size: 14px;
    border: 1px solid #d7d7d7;
}

.popup-box .close {
    position: absolute;
    top: 12px;
    right: 0px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-weight: normal;
    cursor: pointer;
    color: #fff;
    padding: 20px;
    font-size: 24px;
    opacity: 1;
}

.popup-box .close:hover {
    color: #fff;
}

.popup-box .top span {
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    color: #fff;
}
.popup-box .top {
    padding: 10px 20px;
    margin-top: 20px;
    background: #38a7bb;
}

.popup-box .bottom {
    background: #fff;
    padding: 20px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.popup-box .bottom a{
    display: inline-block;
    padding: 5px;
}

.popup-box input, .popup-box textarea{
    margin: 0;
}

#blackout {
    background: rgba(255,255,255,0.75);
    position: absolute;
    top: 0;
    overflow: hidden;
    z-index: 999999;
    left: 0;
    display: none;
}

.popup-box form{
    display: table;
    margin: 0 auto;
}

.popup-box form label.error{
    display: block;
    width: 100%;
    color: #ff0000;
    margin-bottom: -25px;
    font-size: 12px;
}

.popup-box input[type=submit]{
    padding: 10px 20px;
    border: none;
    background: #38a7bb;
    color: #fff;
    font-size: 20px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.popup-box .rolls_types .item{
    float: left;
    width: 33%;
    text-align: center;
    padding: 0 5px;
    cursor: pointer;
}

.popup-box .rolls_types .item img{
    max-width: 100%;
}

.oncemore{
    width: auto !important;
    height: inherit !important;
    margin: 0 auto !important;    
}

.bootbox-confirm .modal-footer{
    text-align: center;
}
/*
.modal {
  text-align: center;
}

@media screen and (min-width: 768px) { 
  .modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
  }
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
*/

@media (max-width: 991px) {

    .calculator-title{
        text-align: left;
        font-size: 18px;
        border-right: none;
        font-family: "Roboto", Helvetica, Arial, sans-serif;
        line-height: 24px;
        padding: 0 12px 10px 0;
    }

    .construction .cloth_type label{
        font-size: 11px;
        min-height: 200px;
    }

    .shaft_radius {
        position: absolute;
        right: 0px;
        top: -20px;
        font-weight: bold;
        font-size: 15px;
    }

}

/* === For phones =================================== */
@media (max-width: 767px) {

    
    .steps {
        max-width: 100%;
    }

    .steps.fixed{
        position: relative;
    }
    
    #total-order{
        width: 100px;
        font-size: 18px;
    }
    
    .left_sum_block {
        width: 160px;
    }

    .cloth_types > .clearfix{
        display: none;
    }

    .pull-right-xs{
        float: right;
    }

    .pull-left-xs{
        float: left;
    }

    .next_step{
        background: #38a7bb;
        color: #fff;
        position: fixed;
        bottom: 0;
        z-index: 9;
        width: 100%;
        margin: 0;
        left: 0;
    }

    .popup-box{
        width: 100% !important;
        left: 0 !important;
    }

    .popup-box .rolls_types .item img{
        height: auto;
    }


}