.contact_section {
    padding-top: 15%;
    height: 100vh;
    background: linear-gradient(to bottom, black 5%, transparent 30%, transparent 60%, var(--gray) 95%), url("../media/jpg/contact_background.jpg");
    background-size: cover;
    background-position: center;
}

.contact_section .contact_contain {
    display: grid;
    grid-template-columns: 50% 50%;
}

.contact_section .info_contain p {
    width: 80%;
}

.contact_section .form_contain {
    display: flex;
    flex-direction: column;
    gap: 15px 0;
}

.contact_section .form_contain input,
.contact_section .form_contain textarea {
    padding: 10px 15px;
    border: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    background: #ffffff4b;
    border-radius: 20px 5px 20px 5px;
}

.contact_section .form_contain textarea {
    min-width: 100%;
    max-width: 100%;
    min-height: 100px;
    max-height: 200px;
}

.contact_section .form_contain ::placeholder {
    color: #ffffff78;
}

.contact_section .send_contain {
    display: flex;
    align-items: center;
}

.contact_section .button_contain {
    align-items: center;
}

.contact_section .form_contain button {
    position: relative;
    cursor: pointer;
}

.contact_section .message_contain {
    visibility: hidden;
    transition: .25s;
}

.contact_section .message_contain p {
    color: white;
    padding: 5px 30px;
    margin-left: 20px;
    border-radius: 5px;
}

.contact_section .message_contain .success {
    background: #4cff3162;
}

.contact_section .message_contain .error {
    background: #ff272762;
}

@media (max-width: 996px) {
    .contact_section {
        padding-top: 30%;
        height: inherit;
        background-size: contain;
        background-position: bottom 50% center;
        background-repeat: no-repeat;
        background-color: black;
    }
    .contact_section .contact_contain {
        grid-template-columns: 100%;
    }
    .contact_section .info_contain h1 {
        margin-top: 0;
        font-size: 30px;
    }
    .contact_section .info_contain p {
        width: 100%;
    }
    .contact_section .form_contain {
        margin-top: 10%;
        display: flex;
        flex-direction: column;
        gap: 15px 0;
    }
    .contact_section .form_contain input,
    .contact_section .form_contain textarea {
        padding: 15px;
    }
    .contact_section .send_contain {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* From uiverse.io by @G4b413l */

.ping {
    visibility: hidden;
    position: absolute !important;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    position: relative;
    height: 20px;
    width: 20px;
    transition: .25s;
}

.ping::before,
.ping::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: white;
    animation: pulse_animation 2s linear infinite;
    transform: scale(0);
    opacity: 0;
}

.ping::after {
    animation-delay: calc(2s / -2);
}

@keyframes pulse_animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}