.formContact {
    background-color: rgba(255, 0, 0, .5);
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.container-form,
.container-recived {
    padding-top: 32px;

    h1, h2 {
        font-size: clamp(2.5rem, 1.9304rem + 2.8481vw, 4.75rem);
        font-weight: 800;
        line-height: 1;
        margin: 0;
        padding: 0;
    }

    article {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        min-height: 65vh;

        @media (width < 768px) {
            flex-direction: column;
        }
    }
}

.info {
    h3 {
        color: var(--neutralLighter);
        letter-spacing: 4px;
        font-weight: 400;
        text-transform: uppercase;
        margin-bottom: 16px;

        @media (width < 768px) {
            text-align: center;
        }
    }
    
    & .exit {
        font-size: clamp(2rem, 1.75rem + 1.25vw, 3rem);
        font-weight: 600;
        line-height: 1;

        @media (width < 768px) {
            text-align: center;
        }
    }
    
    & p:not(.exit) {
        margin-bottom: 48px;
        
        @media (width < 768px) {
            text-align: center;
        }
    }

    .button-cta {
        display: flex;
        gap: 32px;

        @media (width < 768px) {
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
    }
    
    @media (width < 768px) {
        order: 1;
    }
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
    
    & img {
        width: 100%;
        @media (width < 768px) {
            width: 50%;
            padding: 32px 0;
        }
    }
}

.form {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    height: auto;
    padding: 32px 0;
}

.form-ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: auto;
}

.form-group {
    width: 100%;

    & label {
        width: auto;
        font-weight: 500;
    }

    & input,
    textarea {
        margin-top: 0;
        width: 100%;
        padding: 8px;
        border: 1px solid var(--neutralLighter);
        border-radius: 0;
    }

    & textarea {
        min-width: 100%;
        max-width: 100%;
        min-height: 128px;
        field-sizing: content;

        @media (width >= 1366px) {
            resize: none;
        }
    }

    & p {
        color: var(--colorPrimary);
        font-size: 14px;
        font-style: italic;
        margin-bottom: 0;
    }
}

.form-group input[type='text']:hover,
.form-group input[type='email']:hover,
.form-group textarea:hover {
    box-shadow: 0 0 0 var(--focus);
    background-color: var(--colorLight);
    border-color: var(--colorDark);
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
    font-weight: 500;
    color: var(--neutralBlack);
}

.form-checkbox * {
    box-sizing: inherit;
}

.form-checkbox *:before,
.form-checkbox *:after {
    box-sizing: inherit;
}
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;

    @media (width < 768px) {
        align-items: flex-start;        
    }

    & label {
        order: 1;
    }

    & a {
        color: var(--colorPrimary);
        transition: color .3s ease;

        &:hover {
            color: var(--colorSecondary);
            transition: color .3s ease;
        }
    }
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .form-checkbox input[type=checkbox] {
        --sizeCheck: 20px;
        --active: var(--colorPrimary);
        --active-inner: var(--neutralWhite);
        --focus: 1px rgba(0, 61, 47, .3);
        --border: var(--neutralLighter);
        --border-hover: var(--colorSecondary);
        --background: var(--neutralWhite);
        --disabled: #F6F8FF;
        --disabled-inner: #E1E6F9;
        --invalid: rgba(206, 17, 38, 1);
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        height: var(--sizeCheck);
        outline: none;
        display: inline-block;
        vertical-align: top;
        position: relative;
        margin: 0;
        padding-right: 18px;
        cursor: pointer;
        border: 1px solid var(--bc, var(--border));
        background-color: var(--b, var(--background));
        transition: background-color 0.3s, border-color 0.3s, box-shadow 0.2s;
    }

    .form-checkbox input[type=checkbox]:after {
        content: "";
        display: block;
        left: 0;
        top: 0;
        position: absolute;
        transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    }

    .form-checkbox input[type=checkbox]:checked {
        --b: var(--active);
        --bc: var(--active);
        --d-o: .3s;
        --d-t: .6s;
        --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }

    .form-checkbox input[type=checkbox]:disabled {
        --b: var(--disabled);
        cursor: not-allowed;
        opacity: 0.9;
    }

    .form-checkbox input[type=checkbox]:disabled:checked {
        --b: var(--disabled-inner);
        --bc: var(--border);
    }

    .form-checkbox input[type=checkbox]:disabled+label {
        cursor: not-allowed;
    }

    .form-checkbox input[type=checkbox]:hover:not(:checked):not(:disabled) {
        --bc: var(--border-hover);
        background-color: var(--bc);
    }

    .form-checkbox input[type=checkbox]:focus {
        box-shadow: 0 0 0 var(--focus);
    }

    .form-checkbox input[type=checkbox]:not(.switch) {
        width: var(--sizeCheck);
    }

    .form-checkbox input[type=checkbox]:not(.switch):after {
        opacity: var(--o, 0);
    }

    .form-checkbox input[type=checkbox]:not(.switch):checked {
        --o: 1;
    }

    .form-checkbox input[type=checkbox]+label {
        display: inline-block;
        vertical-align: middle;
        cursor: pointer;
        margin-left: 4px;
    }

    .form-checkbox input[type=checkbox]:not(.switch) {
        border-radius: 0;
    }
    
    .form-checkbox input[type=checkbox].invalid {
        border: 1px solid var(--invalid);
    }

    .form-group input.invalid,
    .form-group textarea.invalid {
        border: 1px solid rgba(206, 17, 38, 1);
    }

    .form-checkbox input[type=checkbox]:not(.switch):after {
        width: 5px;
        height: 9px;
        border: 2px solid var(--active-inner);
        border-top: 0;
        border-left: 0;
        left: 7px;
        top: 4px;
        transform: rotate(var(--r, 20deg));
    }

    .form-checkbox input[type=checkbox]:not(.switch):checked {
        --r: 43deg;
    }
}

.form-submit {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-basica {
    background-color: var(--neutralLight);
    padding: 24px;
    max-width: 980px;
    margin: 0 auto;

    & h3 {
        font-size: 16px;
        padding-bottom: 4px;
    }

    & li {
        font-size: 14px;
    }

    & span {
        font-size: 14px;
        font-weight: 500;
    }
}

.alert {
    position: relative;
    padding: 24px;
    margin: 16px 0;
    border: 1px solid transparent;
    border-radius: 0;
    width: 100%
}

.alert-success {
    color: var(--colorPrimary);
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: var(--neutralWhite);
    background-color: var(--colorPrimary);
    border-color: var(--neutralBlack);
    
    & h4 {
        font-size: 14px;
    }

    & ul {
        list-style: square;
        margin: 16px;
        padding-left: 16px;
    }

    & li {
        font-size: 14px;
        font-weight: 500;
    }
}

.d-none {
    display: none;
}

.text-center {
    text-align: center;
}

/* .invalid {
    color: rgba(206, 17, 38, 1);
    font-weight: 600;
}

.invalid+label {
    color: rgba(206, 17, 38, 1);
    font-weight: 600;
} */

.invalid::placeholder {
    color: rgba(206, 17, 38, 1);
    font-weight: 400;
    opacity: 1;
}

/* .invalid:-ms-input-placeholder {
    color: var(--colorSecondary);
    font-weight: 600;
}

.invalid::-ms-input-placeholder {
    color: var(--colorSecondary);
    font-weight: 600;
} */
