/* Общие классы */
.j-space-between {
    display: flex;
    justify-content: space-between;
}

.w-200 {
    width: 200px;
}

.success-form {
    min-width: 300px;
    left: 25%;
    bottom: 140%;
    width: 50%;
    height: 89px;
    background: honeydew;
    border: 4px solid green;
    border-radius: 10px;
    text-align: center;
    display: grid;
    align-items: center;
    font-size: 24px;
    color: forestgreen;
    font-weight: 600;
}

.error-form {
    min-width: 300px;
    left: 25%;
    bottom: 140%;
    width: 50%;
    height: 89px;
    background: rgb(255, 240, 240);
    border: 4px solid rgb(128, 0, 0);
    border-radius: 10px;
    text-align: center;
    display: grid;
    align-items: center;
    font-size: 24px;
    color: rgb(139, 34, 34);
    font-weight: 600;
}

@media screen and (max-width: 570px) {

    .error-form,
    .success-form {
        left: 5%;
    }
}

/* --- */

.img-fluid {
  width: 100%;
}



.calculator__price {
    display: grid;
    justify-content: space-around;
    align-items: center;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;
    height: 100px;
    margin-left: auto;
    margin-bottom: 40px;
    background: rgba(255, 0, 0, 0.3);
    border: 3px solid red;
    font-size: 18px;
    font-weight: 600;
}

.form {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;


}

@media screen and (max-width: 992px) {
    .form {
        display: block;
    }
}

.form__product-image {
    position: relative;

}

.form__product-width,
.form__product-height {
    position: absolute;
}

.form__product-width input,
.form__product-height input {
    width: 120px;
    text-align: center;
    height: 50px;
}

.form__product-height {

    top: 45%;
    left: -5%;
}

.form__product-width {
    bottom: 0;
    left: 41%;
    margin-bottom: 10px;
}

.form__tech-info {
    grid-column: 2;
    grid-row: 1 / 3;
    border: 2px solid black;
    padding: 20px 15px;
}

.form__btn {
    grid-column: 1 / 3;
    text-align: center;
    position: relative;

}


.form__tech-info-edging-material,
.form__tech-info-filling,
.form__tech-info-enging-color {
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: 1fr;
    margin: 10px;
}

.form__tech-info-edging-material select,
.form__tech-info-filling select,
.form__tech-info-enging-color select {
    width: 100%;
    padding: 5px;
}


.form__tech-info-mount-block-select {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: 1fr;
    margin: 10px;
}

.form__tech-info-mount-block-select select {
    width: 100%;
    padding: 5px;
}

.calculator__output-price-block {
    margin: 50px auto;

}

.calculator__output-price-title {
    font-size: 36px;
}

.calculator__output-price-block>div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
    border: 2px solid black;
    text-align: center;
    font-size: 20px;

}

#doorPresence {
    width: 30px;
    height: 30px;
}

.form__note {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

#form-textarea {
    width: 100%;
    padding: 20px;
    height: 150px;
    resize: none;
}

.form__note-tech-info {
    display: flex;
    flex-direction: column;


}


.form__note-tech-info-mounting {
    margin-top: 10px;
    margin-bottom: 10px;
}

.form__note-tech-info-mounting #mounting,
.form__note-tech-info-delivery #delivery,
.form__note-tech-info-zamer #zamer {
    height: 20px;
    width: 20px;
}

.form__note-tech-info-mounting label,
.form__note-tech-info-delivery label,
.form__note-tech-info-zamer label {
    font-size: 21px;
}

.form__data {
    grid-column: 1/3;
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    height: 150px;
    background: rgba(120, 222, 138, 1);
    background: linear-gradient(to right, rgba(120, 222, 138, 1) 0%, rgba(120, 222, 138, 0.97) 9%, rgba(111, 229, 93, 0.78) 61%, rgba(111, 229, 93, 0.65) 96%);
    border-radius: 10px;
}


.overlay {
    /* display: block; */
    position: fixed;

    /* display: none; */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

.popup {
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 250px);
    width: 500px;
    background: #C7EEFF;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.2), 0 9px 46px 8px rgba(0, 0, 0, 0.2), 0 11px 15px -7px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    padding-top: 40px;
    z-index: 10;
    cursor: auto;
    border-radius: 2px;
}
.popup img {
    align-self: center;
    justify-self: center;
}

.close-popup {
    position: absolute;
    top: 5%;
    right: 5%;
    cursor: pointer;
}

.close-popup:hover {
    transform: rotate(180deg);
    transition: .4s ease-in transform;
}

.fa {
    cursor: pointer;
    color: #F44336;
    font-size: 22px !important;
}

#phone,
#name {
    padding: 20px 40px;
}


#phone::-webkit-input-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#phone::-moz-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#phone:-moz-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#phone:-ms-input-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#phone:focus::-webkit-input-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#phone:focus::-moz-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#phone:focus:-moz-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#phone:focus:-ms-input-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#name::-webkit-input-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#name::-moz-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#name:-moz-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#name:-ms-input-placeholder {
    text-indent: 0px;
    transition: text-indent 0.3s ease;
}

#name:focus::-webkit-input-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#name:focus::-moz-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#name:focus:-moz-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

#name:focus:-ms-input-placeholder {
    text-indent: 500px;
    transition: text-indent 0.3s ease;
}

/* Адаптивность */

@media screen and (max-width: 768px) {

    .form__product-height,
    .form__product-width {
        position: static;
    }

    .form__product-height input,
    .form__product-width input {

        width: 100%;
        margin-bottom: 20px;
    }

    .form__note {
        flex-wrap: wrap;
    }

    .form__note-tech-info {
        margin: auto;
    }

}

@media screen and (max-width: 478px) {
    .form__data {
        flex-direction: column;
    }
}

/* Конец */

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1001;
}

.cube-loading {
    align-items: center;
    display: flex;
    height: 100%;
    width: 100%;
    position: fixed;
}

.cube-loader {
    width: 73px;
    height: 73px;
    margin: 0 auto;
    margin-top: 49px;
    position: relative;
    transform: rotateZ(45deg);

}

.cube {
    position: relative;
    transform: rotateZ(45deg);
    width: 50%;
    height: 50%;
    float: left;
    transform: scale(1.1);
}

.cube:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 73, 94, 1.0);
    animation: cube-loader 2.76s infinite linear both;
    transform-origin: 100% 100%;
}

.loader-2 {
    transform: scale(1.1) rotateZ(90deg);
}

.loader-3 {
    transform: scale(1.1) rotateZ(180deg);
}

.loader-4 {
    transform: scale(1.1) rotateZ(270deg);
}

.loader-2:before {
    animation-delay: 0.35s;
}

.loader-3:before {
    animation-delay: 0.69s;
}

.loader-4:before {
    animation-delay: 1.04s;
}


.caption {
    margin: 0 auto;
}

@keyframes cube-loader {

    0%,
    10% {
        transform: perspective(136px) rotateX(-180deg);
        opacity: 0;
    }

    25%,
    75% {
        transform: perspective(136px) rotateX(0deg);
        opacity: 1;
    }

    90%,
    100% {
        transform: perspective(136px) rotateY(180deg);
        opacity: 0;
    }
}

.loaded_hiding #preloader {
    transition: 0.3s opacity;
    opacity: 0;
}

.loaded #preloader {
    display: none;
}