.contact_container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;


}

.content {
    flex: 1;
    width: 50%;
}

.image_contact {
    background-image: url("../assets/5124556.jpg");
    background-size: cover;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;

}


/*style rules for form section*/

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 10px;
}

.title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

form div input,
.contact-textarea {
    position: relative;
    width: 100%;
    height: 40px;
    border-radius: 4px;
    outline: none;
    border: 1px solid var(--bg-text-y);
    padding: 0 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-input {
    height: 20vh;
    width: 104%;
    padding: 0 8px !important;

}

label {
    display: block;
    /* margin-bottom: 18px; */
}

form div {
    position: relative;
    margin-bottom: 15px;
}

input:focus {
    border: 1px solid var(--text-color-y);

}


.social {
    margin-right: 30px;
}

form div i {
    position: absolute;
    padding: 6px;
}

.failure-icon,
.success-icon {
    right: 0;
    opacity: 0;
}

.failure-icon,
.error {
    color: rgb(23, 23, 23);
}

.error-form {
    font-size: 12px;
    margin-top: 3px;
}


.form_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

input+div {
    position: absolute;
    right: 40px;
    top: 30px;
    height: 30px;
}

.bi-check-lg,
.success-icon {
    color: green !important;
}


.valid {
    border: 1px solid green;
}

.invalid {
    border: 1px solid red;
}


@media (max-width: 799px) {
    .contact_container {
        display: grid;
        grid-template-rows: repeat(1, 1fr);
    }

    #form,
    .content {
        width: 90%;

    }
}


@media (max-width: 600px) {}