.page-hero-section {
    background-image: url('../img/contact-hero-bg.webp');
    margin-bottom: 48px;
}

.form-section {
    margin-bottom: 124px;
    position: relative;
}

.form-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(253, 248, 243, 1);
    border-radius: 12px 0 0 12px;
    z-index: -1;
}

.form-section .container {
    display: flex;
    justify-content: space-between;
}

.form-section .section-title {
    font-size: 40px;
}

.form-section .section-p {
    margin: 10px 0 32px;
}

.form-section .email-parent {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-section .social-icons {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.form-section .text-col {
    position: relative;
}

.form-section .text-col::before {
    position: absolute;
    content: '';
    right: 0;
    bottom: 0;
    width: 100%;
    height: 55%;
    background-image: url('../img/contact-form-section-bg.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    z-index: -1;
}

.form-section .form-col {
    padding-inline-start: 36px;
    padding-block: 66px;
}

.form-section form {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 40px;
}

.form-section form p {
    width: 100%;
}

.form-section form p:nth-of-type(1),
.form-section form p:nth-of-type(2) {
    width: calc(50% - 40px / 2);
}

.form-section form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    max-width: 100%;
    padding: 14px 14px 16px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    border: 1px solid var(--black);
    border-radius: 2px;
    background: transparent;
}

.form-section form p:last-of-type {
    display: flex;
    justify-content: center;
}

.form-section form .wpcf7-spinner {
    display: none;
}

.form-section form input[type="submit"] {
    font-size: 18px;
}

@media (max-width: 992px) {
    .form-section .section-title {
        font-size: 32px;
    }

    .form-section form {
        gap: 20px;
    }

    .form-section form p:nth-of-type(1),
    .form-section form p:nth-of-type(2) {
        width: calc(50% - 20px / 2);
    }
}

@media (max-width: 768px) {
    .form-section .container {
        flex-direction: column;
        gap: 42px;
    }

    .form-section .form-col {
        padding: 42px 24px;
        background: rgba(253, 248, 243, 1);
        border-radius: 12px;
    }

    .form-section::after {
        display: none;
    }

    .form-section .email-parent {
        gap: 6px;
    }

    .form-section .email-parent img,
    .form-section .social-icons li img {
        width: 30px;
    }

    .form-section .social-icons {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .form-section .section-title {
        font-size: 26px;
    }

    .form-section .email-parent span {
        word-break: break-word;
    }
}

@media (max-width: 475px) {
    .form-section form p:nth-of-type(1),
    .form-section form p:nth-of-type(2) {
        width: 100%;
    }

    .form-section form .wpcf7-form-control:not(.wpcf7-submit) {
        padding: 10px 12px 12px;
    }
}