.tx-powermail .container-fluid {
    padding: 0;
}

.powermail_field {
    position: relative;
}

.radio,
.checkbox {
    position: relative;
}

.radio input[type="radio"],
.checkbox input[type="checkbox"] {
    visibility: hidden;
    position: absolute;
    z-index: -1;
}

.radio input[type="radio"] + label,
.checkbox input[type="checkbox"] + label {
    position: relative;
    padding: 0 0 0 33px;
    cursor: pointer;
}


.radio input[type="radio"] + label {
    margin-right: 24px;
}

.radio input[type="radio"] + label::before,
.checkbox input[type="checkbox"] + label::before {
    content: ' ';
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid;
    position: absolute;
    left: 0;
    top: 0;
}

.radio input[type="radio"] + label::before {
    border-radius: 100%;
}

.checkbox input[type="checkbox"] + label::before {
    border-color: #A9A9A9;
}


.checkbox input[type="checkbox"]:checked + label::after {
    content: ' ';
    display: block;
    width: 11px;
    height: 5px;
    border-left: 1px solid #4A4A4A;
    border-bottom: 1px solid #4A4A4A;
    position: absolute;
    left: 7px;
    top: 8px;
    transform: rotate(-45deg);
}

.radio input[type="radio"] + label:hover::after,
.radio input[type="radio"]:checked + label::after {
    content: ' ';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    left: 6px;
    top: 6px;
    border-radius: 100%;
}

.radio input[type="radio"] + label:hover::after {
    background-color: #DFDFDF;
}

.radio input[type="radio"]:checked + label::after {
    background-color: #4A4A4A;
}

.form input[type="text"],
.form input[type="email"],
.form textarea,
.form select {
    width: 100%;
    border: 1px solid #C0C0C0;
    padding: 13px 22px 0;
}

.form select {
    padding-top: 0;
    padding-right: 50px;
}

.form input[type="text"],
.form input[type="email"],
.form select {
    height: 50px;
    line-height: 1.2;
}

.form input.invalid {
    border-color: #FF0000;
}

.has-validation-error {
    position: relative;
    display: flex;
    flex-direction: column;
}

.has-validation-error::after {
    content: ' ';
    display: block;
    width: 40px;
    height: 40px;
    background: transparent url(../../Images/Icons/exclamation-triangle.svg) no-repeat top right;
    background-size: 20px;
    position: absolute;
    right: 22px;
    top: 14px;
}

.has-validation-error input.invalid {
    padding-right: 40px;
}

.powermail_fieldwrap,
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.powermail_fieldwrap_type_check,
.form-checkbox {
    margin-top: 40px;
    margin-bottom: 40px;
}

.form-group.-floating-label label,
.powermail_fieldwrap_type_input label,
.powermail_fieldwrap_type_date label,
.powermail_fieldwrap_type_textarea label {
    position: absolute;
    top: 13px;
    left: 17px;
    transition: 300ms ease-in-out;
    z-index: 1;
}

.form-group.-floating-label label.focus,
.powermail_fieldwrap_type_input label.focus,
.powermail_fieldwrap_type_date label.focus,
.powermail_fieldwrap_type_textarea label.focus {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 10px;
    line-height: 1;
}

.powermail_fieldwrap_type_submit .powermail_field {
    align-items: flex-end;
}

/*.powermail_field,*/
/*.form-group,*/
/*.checkbox,*/
/*.radio {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

.powermail_fieldwrap .validation-error,
.form-group .validation-error {
    order: 9;
    color: #FF0000;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    margin-top: 8px;
    letter-spacing: 0.11px;
}

.radio.has-validation-error,
.checkbox.has-validation-error {
    display: flex;
    flex-direction: column;
}

.radio.has-validation-error > * {
    order: 1;
}


.radio.has-validation-error > label,
.checkbox.has-validation-error > label {
    padding-right: 45px !important;
}

.radio.has-validation-error .validation-error {
    order: 0;
    margin: 15px 0;
}

.radio.has-validation-error ~ .radio .validation-error,
.radio.has-validation-error ~ .radio.has-validation-error::after {
    display: none;
}

.powermail_fieldwrap_type_radio {
    margin-bottom: 48px;
}

.powermail_fieldwrap_type_radio .powermail_field {
    flex-direction: row;
}

.powermail_fieldwrap_type_submit {
    margin-top: 23px;
    margin-bottom: 30px;
}

.powermail_fieldset.twoColumn-4-8 legend {
    display: none;
}

.powermail_fieldset.twoColumn-4-8 {
    display: flex;
    justify-content: space-between;
}

.powermail_fieldset.twoColumn-4-8 > div:nth-child(odd) {
    width: calc(36.9877% - 15px);
}

.powermail_fieldset.twoColumn-4-8 > div:nth-child(even) {
    width: calc(63.0123% - 15px);
}

.powermail_fieldwrap_type_select label {
    margin: 15px 0 6px;
}

@media (max-width: 991px) {

    label {
        font-size: inherit;
        line-height: inherit;
    }

    .powermail_fieldset.twoColumn-4-8 {
        display: block;
    }

    .powermail_fieldset.twoColumn-4-8 > div:nth-child(odd),
    .powermail_fieldset.twoColumn-4-8 > div:nth-child(even) {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .powermail_fieldwrap, .form-group {
        margin-bottom: 8px;
    }

    .powermail_fieldwrap_type_radio {
        margin-bottom: 35px;
    }

    .powermail_fieldwrap_type_check, .form-checkbox {
        margin-top: 33px;
        margin-bottom: 33px;
    }

    .powermail_fieldwrap_type_submit {
        margin-bottom: 30px;
    }

    .form input[type="text"], .form input[type="email"], .form select {
        height: 56px;
    }

    .form-group.-floating-label label,
    .powermail_fieldwrap_type_input label,
    .powermail_fieldwrap_type_date label,
    .powermail_fieldwrap_type_textarea label {
        top: 16px;
        left: 16px;
    }

    .form input[type="text"], .form input[type="email"], .form textarea, .form select {
        padding-left: 17px;
        padding-right: 17px;
    }

    .powermail_submit,
    .form button[type="submit"],
    .form input[type="submit"] {
        width: 100%;
    }
}
