.webFormDw form {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.webFormDw form.loading {
    pointer-events: none;
    opacity: 0.8;
}

.webFormHeading {
    font-family: "robotoMedium";
    font-weight: normal;
    font-size: 16px;
    margin: 0;
}

.webFormDescription {
    margin: 24px 0 0 0;
    max-width: 800px;
}

.webFormItem {
    margin-top: 24px;
}

.webFormItemCaption {
    font-family: "robotoMedium";
    margin-bottom: 12px;
    line-height: 21px;
}

.webFormItemImage {
    vertical-align: middle;
    display: inline-block;
    padding-right: 6px;
}

.webFormItemLabel {
    vertical-align: middle;
    display: inline-block;
    color: #555555;
}

.webFormItemRequired {
    display: inline-block;
    padding-left: 4px;
    color: #ff0000;
}

.webFormItemFieldVariant {
    display: inline-block;
    margin-left: 12px;
}

.webFormItemFieldVariant:first-child {
    margin-left: 0px;
}

.webFormItemField input[type="password"],
.webFormItemField input[type="text"],
.webFormItemField select {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "roboto_ltregular";
    border: 1px solid #e7e7e7;
    padding-left: 12px;
    line-height: 55px;
    /*max-width: 600px;*/
    max-width: 100%;
    font-size: 14px;
    color: #555555;
    outline: none;
    height: 55px;
    width: 100%;
}

.webFormItemField textarea {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "roboto_ltregular";
    border: 1px solid #e7e7e7;
    padding-left: 12px;
    line-height: 21px;
    padding-top: 12px;
    /*max-width: 600px;*/
    max-width: 100%;
    font-size: 14px;
    color: #555555;
    height: 200px;
    outline: none;
    width: 100%;
}

.webFormItemField input[id*="form_date_"] {
    margin-bottom: 6px;
}

.webFormItemField input[type="text"]:focus,
.webFormItemField input[type="password"]:focus,
.webFormItemField textarea:focus {
    border: 1px solid #aaaaaa;
}

.webFormItemField input[type="checkbox"] + label,
.webFormItemField input[type="radio"] + label {
    cursor: pointer;
}

.webFormItemField input[type="checkbox"]:not(checked),
.webFormItemField input[type="radio"]:not(checked) {
    position: absolute;
    opacity: 0;
}

.webFormItemField input[type="checkbox"]:not(checked) + label,
.webFormItemField input[type="radio"]:not(checked) + label {
    position: relative;
    padding-left: 28px;
}

.webFormItemField input[type="checkbox"].error + label:before {
    border: 1px solid #ff0000 !important;
}

.webFormItemField input[type="checkbox"] + label:before {
    background: url(images/checkBox.png) 0 0 no-repeat transparent;
}

.webFormItemField input[type="radio"] + label:before {
    background: url(images/radio.png) 0 0 no-repeat transparent;
}

.webFormItemField input[type="checkbox"]:not(checked) + label:before,
.webFormItemField input[type="radio"]:not(checked) + label:before {
    position: absolute;
    content: " ";
    height: 17px;
    width: 17px;
    left: 0;
    top: 0px;
}

.webFormItemField input[type="checkbox"]:not(checked) + label:hover:before,
.webFormItemField input[type="radio"]:not(checked) + label:hover:before {
    background-position: 0 -17px;
}

.webFormItemField input[type="checkbox"]:checked + label:before,
.webFormItemField input[type="radio"]:checked + label:before {
    background-position: 0 -34px;
}

.webFormItemField input[type="checkbox"]:checked + label:hover:before,
.webFormItemField input[type="radio"]:checked + label:hover:before {
    background-position: 0 -51px;
}

.webFormItemField input[type="checkbox"]:disabled + label,
.webFormItemField input[type="radio"]:disabled + label {
    cursor: default;
}

.webFormItemField input[type="checkbox"]:disabled + label:before,
.webFormItemField input[type="radio"]:disabled + label:before {
    background-position: 0 -68px !important;
}

.webFormItemField img.calendar-icon {
    vertical-align: middle !important;
    margin: 0 0 0 0px !important;
    border: 0 !important;
}

.webFormItemField [multiple] {
    line-height: 120px;
    height: 120px;
    padding: 12px;
}

.webFormCaptchaPicture {
    margin-top: 12px;
}

.webFormCaptchaPicture img {
    vertical-align: middle;
    max-width: 100%;
}

.webFormCaptchaLabel {
    margin-bottom: 12px;
    margin-top: 12px;
}

.webFormItemField input.captcha_word {
    max-width: 300px;
}

.webFormTools {
    margin-top: 24px;
}

.webFormTools input[type="submit"],
.webFormTools input[type="reset"] {
    -webkit-transition: background-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "roboto_ltregular";
    border: 1px solid #e7e7e7;
    text-align: center;
    line-height: 55px;
    max-width: 200px;
    font-size: 14px;
    cursor: pointer;
    color: #ffffff;
    outline: none;
    height: 55px;
    width: 100%;
    padding: 0;
}

.webFormTools input[type="submit"]:active {
    position: relative;
    top: 1px;
}

.webFormTools input[type="submit"].loading {
    background-image: url(images/loading.gif);
    background-color: #000000 !important;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border: 1px solid #000000;
    pointer-events: none;
    color: #dddddd;
    opacity: 0.1;
}

.webFormTools input[type="reset"] {
    border: 1px solid #aaaaaa;
    background-color: #ffffff;
    color: #000000;
}

.webFormTools input[type="reset"]:hover {
    border: 1px solid #cccccc;
}

.webFormTools input[type="reset"]:active {
    position: relative;
    top: 1px;
}

.webFormTools input:first-child {
    margin-right: 12px;
}

.webFormItemError,
.webFormError {
    font-family: "robotoMedium";
    margin-bottom: 12px;
    font-size: 12px;
    color: #ff0000;
    display: none;
}

.webFormError {
    margin-bottom: 0px;
    margin-top: 24px;
}

.webFormItemError.visible,
.webFormError.visible {
    display: block;
}

.webFormItemField .error {
    border: 1px solid #ff0000 !important;
}

.webFormMessage {
    -webkit-transition: 0.1s all ease-in-out;
    -o-transition: 0.1s all ease-in-out;
    transition: 0.1s all ease-in-out;
    background: rgba(0, 0, 0, 0.4);
    line-height: 250px;
    position: fixed;
    overflow: auto;
    display: none;
    z-index: 1000;
    height: 100%;
    width: 100%;
    left: 0px;
    top: 0px;
}

.webFormMessageContainer {
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-left: -225px;
    position: absolute;
    text-align: center;
    margin-top: -125px;
    border-radius: 2px;
    padding: 0px 24px;
    height: 250px;
    width: 450px;
    left: 50%;
    top: 50%;
}

.webFormMessageMiddle {
    vertical-align: middle;
    display: inline-block;
    line-height: 21px;
}

.webFormMessageHeading {
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 18px;
}

.webFormMessageDescription {
    text-align: center;
}

.webFormMessageExit {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    background-color: #000000;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 2px;
    line-height: 40px;
    margin-top: 24px;
    padding: 0 24px;
    color: #ffffff;
    height: 40px;
}

.webFormMessageExit:hover {
    opacity: 0.8;
}

.webFormMessageExit:active {
    position: relative;
    top: 1px;
}

@media all and (max-width: 650px) {

    .webFormItemField input[id*="form_date_"] {
        margin-bottom: 12px;
    }


    .webFormItemField img.calendar-icon {
        margin-left: 0px !important;
    }

    .webFormTools input[type="submit"],
    .webFormTools input[type="reset"] {
        max-width: 150px;
    }

}

@media all and (max-width: 400px) {
    .webFormTools input[type="submit"],
    .webFormTools input[type="reset"] {
        margin-bottom: 24px;
        max-width: 300px;
        display: block;
        width: 100%;
    }
}

.customWebForm {
    margin: 20px 0px;
    border: 1px solid #0a41a3;
    padding: 20px;
    border-radius: 3px;
}

.customWebForm .webFormHeading {
    font-weight: bold;
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.customWebForm .webFormItemCaption {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
    font-family: inherit;
}

.customWebForm .webFormItem, .customWebForm .webFormTools {
    margin-top: 4px;
}

.customWebForm .webFormItemLabel {
    color: black;
}

.customWebForm .webFormItemRequired {
    font-size: 20px;
    line-height: 12px;
    font-weight: bold;
    padding-left: 1px;
}

.customWebForm .webFormItemField input[type="password"],
.customWebForm .webFormItemField input[type="text"],
.customWebForm .webFormItemField input[type="date"],
.customWebForm .webFormItemField select {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font: 300 14px/1.3 'Roboto', sans-serif;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 0px;
    min-width: 180px;
    padding: 0 12px;
    height: 34px;
    line-height: 34px;
    width: 100%;
    border: 1px solid #3498DB;
}

.customWebForm .webFormItemField textarea:focus,
.customWebForm .webFormItemField input[type="password"]:focus,
.customWebForm .webFormItemField input[type="text"]:focus,
.customWebForm .webFormItemField select:focus {
    background-color: #eeeeee;
}

.customWebForm .webFormItemField textarea {
    font: normal normal 13px "roboto_ltregular", arial, sans-serif;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 0px;
    padding: 12px 12px;
    min-width: 180px;
    outline: none;
    height: 86px !important;
    resize: none;
    width: 100%;
    border: 1px solid #3498DB;
    border-radius: 3px;
}

#main .customWebForm input[type="submit"], #main .customWebForm input[type="reset"] {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    text-align: center;
    margin-top: 4px;
    color: #ffffff;
    height: 48px;
    width: 212px;
    display: inline-block;
    border-radius: 5px;
    background: #3498db;
    border: none;
    font: 300 14px/48px 'Roboto', sans-serif;
    margin-bottom: 4px;
}

#main .customWebForm input[type="reset"] {
    background: #0cafe4;
}

#main .customWebForm input[type="submit"]:hover, #main .customWebForm input[type="reset"]:hover {
    background: #0a41a3;
}

.customWebForm .webFormError {
    display: block;
    margin-top: 10px;
}

.customWebForm .webFormItemField.error input[type="password"],
.customWebForm .webFormItemField.error input[type="text"],
.customWebForm .webFormItemField.error select,
.customWebForm .webFormItemField.error textarea {
    border-color: red;
}

.customWebForm .webFormItemField.error input[type="checkbox"]:not(checked) + label:before,
.customWebForm .webFormItemField.error input[type="radio"]:not(checked) + label:before {
    border: 1px solid red;
    border-radius: 5px;
}

.customWebForm .webFormItemField.error input[type="radio"]:not(checked) + label:before {
    border-radius: 50%;
}

.customWebForm .webFormDescription {
    display: none;
}



.customWebFormPopup {
    margin: 20px 0px;
    padding: 0px;
    border-radius: 3px;
    width: 100%;
    position: relative;       
    max-height: 850px;
    min-height: 100px;
    height: 100%;
}

.customWebFormPopup .webFormDw {
    padding: 0 20px 20px;
    overflow: auto; 
    min-height: 200px;
    max-height: 770px;
}

.customWebFormPopup .webFormDw .success-popup {
    text-align: center;
    padding-top: 40px;
}


#customWebFormPopup {
    position: absolute;
    top: -150px;
}

@media (max-width: 1024px) {
    .customWebFormPopup {
        width: 100%;
    }
}

.customWebFormPopup .webFormHeading {


    display: block;
    margin-bottom: 8px;
    padding: 0 50px;
    position: relative;
    text-align: center;
    line-height: 60px;
    font-size: 18px;
    color: #fff;
}

.customWebFormPopup .webFormModalHeadingExit {
    position: absolute;
    display: block;
    height: 21px;
    width: 21px;
    right: 20px;
    top: 20px;
    background: url(/local/templates/dresscode_lk/components/bitrix/form.result.new/modal/images/exit.png) 0 0 no-repeat transparent;
}

.customWebFormPopup .webFormItemCaption {
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
    font-family: inherit;
}

.customWebFormPopup .webFormItem, .customWebFormPopup .webFormTools {
    margin-top: 6px;
}

.customWebFormPopup .webFormItemLabel {
    vertical-align: middle;
    display: inline-block;
    color: #555;
}

.customWebFormPopup .webFormItemRequired {
    line-height: 12px;
    font-weight: bold;
    padding-left: 1px;
}

.customWebFormPopup .webFormItemField input[type="date"],
.customWebFormPopup .webFormItemField input[type="password"],
.customWebFormPopup .webFormItemField input[type="text"],
.customWebFormPopup .webFormItemField select {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "roboto_ltregular";
    border: 1px solid #e7e7e7;
    padding-left: 12px;
    line-height: 42px;
    /* max-width: 600px; */
    max-width: 100%;
    font-size: 14px;
    color: #555555;
    outline: none;
    height: 42px;
    width: 100%;
}

.customWebFormPopup .webFormItemField textarea {
    font: normal normal 13px "roboto_ltregular", arial, sans-serif;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 8px;
    padding: 12px 12px;
    min-width: 180px;
    outline: none;
    height: 106px !important;
    resize: none;
    width: 100%;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
}

#main .customWebFormPopup input[type="submit"], #main .customWebFormPopup input[type="reset"] {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    color: #ffffff;
    height: 48px;
    width: 212px;
    display: inline-block;
    border-radius: 5px;
    background: #3498db;
    border: none;
    font: 300 14px/48px 'Roboto', sans-serif;
    margin-bottom: 20px;
}

#main .customWebFormPopup input[type="reset"] {
    background: #0cafe4;
}

#main .customWebFormPopup input[type="submit"]:hover, #main .customWebFormPopup input[type="reset"]:hover {
    background: #0a41a3;
}

.customWebFormPopup .webFormError {
    display: block;
    margin-top: 10px;
}

.customWebFormPopup .webFormItemField.error input[type="password"],
.customWebFormPopup .webFormItemField.error input[type="text"],
.customWebFormPopup .webFormItemField.error select,
.customWebFormPopup .webFormItemField.error textarea {
    border-color: red;
}

.customWebFormPopup .webFormItemField.error input[type="checkbox"]:not(checked) + label:before,
.customWebFormPopup .webFormItemField.error input[type="radio"]:not(checked) + label:before {
    border: 1px solid red;
    border-radius: 5px;
}

.customWebFormPopup .webFormItemField.error input[type="radio"]:not(checked) + label:before {
    border-radius: 50%;
}

.customWebFormPopup .webFormDescription {
    display: none;
}

.s-body .mfp-wrap .form-popup-modal {
    position: relative;
    background: #FFF;
    width: max-content;
    margin: 20px auto;
    min-height: 100px;
    max-height: 850px;
    min-width: 200px;
    max-width: 100%;
    top: 40px;
}
.s-body .mfp-wrap .form-popup-modal .mfp-close {
    display: none;
}

.webFormTools input[type="submit"], .webFormTools input[type="reset"] {
    max-width: 175px;
}

.webFormItemField input[type="date"] {
    position: relative;
}

.webFormItemField input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
}

.webFormItemField input[type="date"]::-webkit-inner-spin-button,
.webFormItemField input[type="date"]::-webkit-clear-button {
    z-index: 1;
}
