#ex {
    width: 471px;
    height: 100%;
    max-height: 735px;
    padding: 40px 0 40px;
    box-sizing: border-box;
    background: #fafafa;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: none;
    opacity: 0;
    z-index: 100;
    text-align: center;
    background: linear-gradient(125.61deg, #192129 -0.26%, #1F2933 100.76%);
    overflow: auto;
}
#ex #ex__close {
    width: 15px; height: 15px;
    position: absolute;
    top: 18px; right: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#ex #ex__close svg {
    width: 100%;
    height: 100%;
}
#ex .ex_title {
    font-weight: 700;
    font-size: 40px;
    line-height: 54px;
    text-align: center;
    color: #FFFFFF;
    margin: 0;
}
#ex .ex_subtitle {
    font-weight: 700;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
    color: #FFFFFF;
    margin: 0 0 45px;
}
#ex .ex_checkbox_title {
    font-weight: 400;
    font-size: 20px;
    line-height: 27px;
    text-align: center;
    margin: 0 0 15px;
    color: #FFFFFF;
}
#ex .ex__checkbox_block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 340px;
    width: 100%;
    margin: 0 auto 85px;
}
#ex .ex__checkbox_block .ex__checkbox_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#ex .ex__checkbox_block .ex__checkbox_item label {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
    margin: 0;
}
#ex .ex__checkbox_block .ex__checkbox_item input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

#ex .ex__checkbox_block .ex__checkbox_item input+label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
#ex .ex__checkbox_block .ex__checkbox_item input+label::before {
    content: '';
    display: inline-block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid #FFFFFF;
    border-radius: 30px;
    background-repeat: no-repeat;
    background-size: 60%;
    cursor: pointer;
    margin-bottom: 5px;
    transition: border-color .4s ease, background .4s ease;
}

#ex .ex__checkbox_block .ex__checkbox_item input#telegramCheck+label::before {
    background-image: url("../img/popupImg/popup_telegram.svg");
    background-position: 7px 12px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#whatsAppCheck+label::before {
  background-image: url("../img/popupImg/popup_whatsapp.svg");
  background-position: 9px 8px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#viberCheck+label::before {
  background-image: url("../img/popupImg/popup_viber.svg");
  background-position: 9px 9px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#fbMessengermCheck+label::before {
  background-image: url("../img/popupImg/popup_fb.svg");
  background-position: 9px 9px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#signalCheck+label::before {
  background-image: url("../img/popupImg/popup_signal.svg");
  background-position: 9px 9px;
}

#ex .ex__checkbox_block .ex__checkbox_item input:checked+label::before {
  border-color: #2A9D66;
  background-color: #2A9D66;
}
#ex .ex__checkbox_block .ex__checkbox_item input:not(:disabled):not(:checked)+label:hover::before {
  border-color: #2A9D66;
}

#ex .ex__checkbox_block .ex__checkbox_item input+label::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid #FFFFFF;
    background-image: url("../img/popupImg/green_soc.svg");
    border-radius: 30px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: 2px 2px;
    background-size: 80%;
    cursor: pointer;
    margin-bottom: 0;
    transition: border-color .4s ease, background .4s ease;
    position: absolute;
    top: 29px;
    visibility: hidden;
    opacity: 0;
    transition: visibility .4s ease, opacity .4s ease;
}
#ex .ex__checkbox_block .ex__checkbox_item input#telegramCheck+label::after {
    left: -2px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#whatsAppCheck+label::after {
    left: 1px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#viberCheck+label::after {
    left: -6px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#fbMessengermCheck+label::after {
    left: 2px;
}
#ex .ex__checkbox_block .ex__checkbox_item input#signalCheck+label::after {
    left: -7px;
}
#ex .ex__checkbox_block .ex__checkbox_item input:checked+label::after {
    visibility: visible;
    opacity: 1;
}

#ex .ex_form_label {
    position: relative;
    display: block;
    max-width: 350px;
    width: 100%;
    margin: 0 auto 60px;
}
#ex .ex_form_label .ex_form_input {
    height: 45px;
    display: block;
    line-height: 51px;
    border: 0;
    border-bottom: 2px solid #FFFFFF;
    padding-left: 0;
    padding-right: 15px;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    background-color: transparent;
}
#ex .ex_form_label .ex_form_span {
    position: absolute;
    top: 9px;
    left: 0;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    cursor: text;
    transition: 0.2s ease;
}
#ex .ex_form_label .ex_form_input:focus+.ex_form_span, #ex .ex_form_label .ex_form_input:not(:placeholder-shown)+.ex_form_span {
    top: -25px;
}

#ex .ex_submit {
    max-width: 350px;
    height: 60px;
    margin: 0 auto 35px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2A9D66;
    border-radius: 15px;
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    color: #FFFFFF;
    outline: none;
    border: 0;
    cursor: pointer;
    transition: background .4s ease;
}
#ex .ex_submit:hover {
    background: #268d5b;
}
#ex .ex_submit:active {
    background: #217d51;
}

.checkbox-label input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.checkbox-label input+label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
    cursor: pointer;
}
.checkbox-label input+label a {
    font-weight: 700;
    color: #2A9D66;
    text-decoration: none;
    margin-left: 4px;
    transition: color .4s ease;
}
.checkbox-label input+label a:hover {
    text-decoration: underline;
}
.checkbox-label input+label a:active {
    color: rgba(5, 203, 99, 0.5);
}
.checkbox-label input+label::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    flex-grow: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 80%;
    border: 1.5px solid #FFFFFF;
    box-sizing: border-box;
    border-radius: 3px;
    margin-right: 10px;
    transition: border-color .4s ease;
}
.checkbox-label input:checked+label::before {
  border-color: #2A9D66;
  background-color: #2A9D66;
  background-image: url("../img/popupImg/arrow_policy.svg");
}
.checkbox-label input:not(:disabled):not(:checked)+label:hover::before {
  border-color: #2A9D66;
}


#overlay {
  z-index: 99;
  position: fixed;
  background: rgba(0,0,0,.7);
  width: 100%; height: 100%;
  top: 0; left: 0;
  cursor: pointer;
  display: none;
}
.input_error {
    border-bottom: 2px solid #DB4B4B!important;
}
.label_error {
    color: #DB4B4B!important;
}
@media screen and (max-width: 568px) {
    #ex {
        width: 100%;
    }
}
