.crm-aviso {
    color: #ff2240;
    display: none;
}

.exibe-aviso {
    display: block;
}

.secao-cadastro {
    padding: 2rem 0;
}

.secao-cadastro .formulario-titulo {
    font-weight: bold;
}

.secao-cadastro .form-check-label a {
    font-weight: bold;
}

.secao-cadastro:not(.cadastro-header) .formulario-titulo {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

.secao-cadastro .form {
    display: grid;
    grid-gap: 1rem;
}

@media (max-width: 991.98px) {
    .secao-cadastro .form {
        margin-bottom: 1.5rem;
    }
}

.secao-cadastro .form div {
    display: flex;
    position: relative;
}

.secao-cadastro:not(.cadastro-header) .form div:last-child {
    justify-content: space-between;
}

.secao-cadastro:not(.cadastro-header) .form .form-control {
    height: 45px;
    margin: 1rem;
    border-radius: 60px;
}

.secao-cadastro:not(.cadastro-header) .form .parsley-errors-list {
    position: absolute;
    top: -1rem;
}

.secao-cadastro:not(.cadastro-header) {
    font-weight: bold;
}

.secao-cadastro .form .parsley-errors-list .parsley-type {
    border-radius: 6px;
    height: 45px;
    max-width: 36rem;
}

@media (max-width: 768px) {
    #formulario-cadastro-footer div:first-child {
        flex-direction: column;
    }
    #formulario-cadastro-footer div:last-child {
        flex-direction: column;
    }
    #formulario-cadastro-footer .btn {
        max-width: fit-content;
        margin: 0 auto;
    }
    .custom-switch .custom-control-label {
        margin-left: 2rem;
    }

    #formulario-cadastro-footer div {
        grid-gap: 0;
    }
    
    #formulario-cadastro-footer .form-control, 
    #formulario-cadastro-footer .form-select {
        min-height: 45px;
        margin: .5rem 0;
    }
}

.custom-switch .custom-control-label::before {
    left: -2.25rem;
    width: 1.75rem;
    pointer-events: all;
    border-radius: 0.5rem;
}

.custom-control-label::before,
.custom-file-label,
.custom-select {
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: '';
    border-width: 1px;
    border-style: solid;
}

.custom-switch .custom-control-label::after {
    top: calc(0.25rem + 2px);
    left: calc(-2.25rem + 2px);
    width: calc(1rem - 4px);
    height: calc(1rem - 4px);
    border-radius: 0.5rem;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-transform .15s ease-in-out;
    transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-transform .15s ease-in-out;
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: 50%/50% 50% no-repeat;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-control {
    position: relative;
    z-index: 1;
    display: block;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    display: flex;
    align-items: flex-end;
}

.cadastro-footer .custom-switch {
    padding-left: 2rem;
}

.custom-switch .custom-control-input:checked~.custom-control-label:after {
    background-color: #fff;
    -webkit-transform: translateX(0.75rem);
    transform: translateX(0.75rem);
}

.cadastro-header .form div {
    align-items: center;
    justify-content: space-between;
}

.cadastro-header.variacao-fundo-branco {
    padding: 4rem;
    border-radius: 30px;
}
.cadastro-header .form div .form-control {
    border-radius: 20px;
}

.cadastro-header .form .parsley-errors-list {
    font-weight: bold;
}

.cadastro-header .custom-switch {
    margin-left: 2rem;
}

@media (min-width: 769px) {
    .cadastro-header .form div {
        flex-direction: row;
        grid-gap: 2rem;
    }
    .cadastro-header .form div .form-control {
        max-width: 54%;
        height: 45px;
    }
    .cadastro-header .formulario-titulo {
        font-size: 1.25rem;
        grid-gap: 1rem;
    }
    .cadastro-header .form .parsley-errors-list.filled {
        margin: -4.5rem 0 0 -15em;
        text-align: right;
    }
    #parsley-id-multiple-agree-crm-header {
        margin: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .cadastro-header .form div {
        flex-direction: column;
        grid-gap: 1rem;
    }
    .cadastro-header .formulario-titulo {
        font-size: 1.1em;
        text-align: center;
        grid-gap: 0.25rem;
    }
    .cadastro-header .form .parsley-errors-list {
        text-align: center;
    }
    #cadastro-header-name-email-optin {
        padding: 1.5rem 0 !important;
    }
}

#cadastro-blog-name-email-optin {
    padding: 1rem 0;
    border-radius: 15px;
}

#cadastro-blog-name-email-optin .form {
    margin: 2rem;
}

@media (min-width: 769px) {
    #cadastro-blog-name-email-optin .form div {
        grid-gap: 2rem;
    }
}

@media (max-width: 768px) {
    #cadastro-blog-name-email-optin .form div {
        flex-direction: column;
    }
    #btn-crm-blog {
        margin: 2rem auto 0;
    }
}

#cadastro-blog-name-email-optin .formulario-titulo {
    margin-bottom: 0;
}

#cadastro-blog-name-email-optin .form-check-label {
    margin-left: 2rem;
}

#cadastro-sidebar-name-email-optin {
    border-radius: 15px;
}

@media (min-width: 769px) {
    #cadastro-sidebar-name-email-optin {
        padding: 2rem;
    }

    .cadastro-popup.show .modal-dialog {
        height: 100%
    }
}

@media (max-width: 768px) {
    #cadastro-sidebar-name-email-optin {
        padding: 1rem;
        margin: 0 1rem;
    }
}

#cadastro-sidebar-name-email-optin .formulario-titulo {
    margin-bottom: 0;
}

#cadastro-sidebar-name-email-optin .custom-switch {
    padding-left: 1rem;
}

#btn-crm-sidebar {
    margin: 1rem auto 0;
}

.cadastro-popup.show .modal-dialog {
    display: flex;
}

@media (min-width:1200px) {
    .cadastro-popup.show .modal-dialog {
        max-width: 52.5vw;
    }
}

.cadastro-popup .modal-content {
    align-self: center;
}

@media (min-width: 769px) {
    .cadastro-popup .modal-body {
        /* background: url('../images/banner-home-1-mobile.webp') right / contain no-repeat; */
    }
    .cadastro-popup .btn-close {
        filter: invert(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cadastro-popup .modal-body {
        /* background: white url('../images/banner-home-1-mobile.webp') center 140% / contain no-repeat; */
        padding-bottom: 8rem;
    }
    .cadastro-popup .col-md-6 {
        background-color: white;
        padding: 2rem;
        margin: calc(-2rem + 15px);
    }
}

.cadastro-popup .btn-close {
    border: 0;
    right: 1rem;
    top: 1rem;
    position: absolute;
    z-index: 10;
}

.cadastro-popup .form-control {
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
}

.cadastro-popup .form-control.parsley-error {
    max-width: 80%;
    margin: 0 auto;
}

.cadastro-popup .formulario-cadastro {
    display: flex;
    flex-direction: column;
    grid-gap: 1rem
}

.cadastro-popup .formulario-titulo {
    font-size: 1.5rem;
    text-align: center
}

.cadastro-popup .form-group {
    display: flex;
    grid-gap: .5rem
}

.cadastro-popup .form-group.agree-fields {
    display: inline-flex
}

.cadastro-popup .form-group:not(.agree-fields) {
    flex-direction: column
}

.cadastro-popup .form-check-label {
    font-size: .85rem
}

.cadastro-popup .btn-subscribe {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto
}

#formulario-cadastro-popup .parsley-type,
.cadastro-popup .parsley-errors-list .parsley-required,
.cadastro-popup .parsley-errors-list .parsley-type #formulario-cadastro-popup .parsley-required {
    text-align: center;
    font-weight: 700
}

.cadastro-popup .parsley-errors-list {
    margin: -.5rem 0 -1rem;
}

#btn-crm-popup {
    margin: 0 auto;
}

/* Footer crm - campo email */
@media (min-width: 769px) {
    .secao-cadastro:not(.cadastro-blog) #parsley-id-25 {
        right: 0;
    }
}

/* Blog crm */
#cadastro-blog-name-email-optin #parsley-id-16 {
    right: 0;
}

@media (max-width: 768px) {
    .secao-cadastro:not(.cadastro-header) .form .parsley-errors-list {
        position: relative;
    }
    #parsley-id-multiple-agree-crm-blog {
        margin-top: -5rem;
    }
}

#parsley-id-multiple-agree-crm-blog {
    position: relative;
}

@media (min-width: 769px) {
    #parsley-id-multiple-agree-crm-blog {
        text-align: left;
        margin-right: auto;
        margin-top: -4.5rem;
    }
}

#parsley-id-multiple-agree-crm-sidebar {
    position: relative;
    margin-right: auto;
}