.contact-form h2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
}

.contact-form h2 span {
    width: fit-content;
}

.contact-form h2 span:not(span.main-title) {
    position: absolute;
    top: 21px;
    right: 125px;
    width: 350px;
    color: #48788c;
}

.contact-form h2 span.main-title:nth-child(2) {
    margin-left: -400px;
}

.contact-form h2 span.main-title:last-of-type {
    margin-right: -400px;
}

.contact-form-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-box .form-description {
    max-width: 366px;
    color: #B8B8B8;
}

.contact-form-box input:not([type=submit]) {
    width: 100%;
    border: none;
    border-bottom: 1px solid #F4EEE7;
    padding: 24px 0 16px;
    border-radius: 0;
    font-weight: 500;
}

.contact-form-box input::placeholder {
    color: #262525;
    font-weight: 400;
}

.contact-form-box input:not([type=submit]):focus {
    border-bottom: 1px solid #48788c;
}

.contact-form-box input.wpcf7-not-valid {
    border-bottom: 1px solid #D67676;
}

.contact-form-box .wpcf7-not-valid-tip {
    color: #D67676;
}

.contact-form-box .main-btn {
    margin-top: 40px;
    margin-left: auto;
    cursor: pointer;
}

.contact-form-box .main-btn br {
    display: none;
}

@media screen and (max-width: 1365px) {
    .contact-form h2 span:not(span.main-title) {
        right: 50px;
    }
}

@media screen and (max-width: 1199px) {
    .contact-form h2 {
        align-items: flex-start;
    }

    .contact-form h2 span:not(span.main-title) {
        position: unset;
        margin-left: auto;
        text-align: right;
    }

    .contact-form h2 span.main-title:nth-child(2),
    .contact-form h2 span.main-title:last-of-type {
        margin: 0;
    }

    .contact-form h2 span:not(span.main-title) {
        right: 0;
    }
}

@media screen and (max-width: 767px) {
    .contact-form h2 {
        margin-bottom: 24px;
    }

    .contact-form h2 span:not(span.main-title) {
        font-size: 12px;
        max-width: 269px;
    }

    .contact-form-box .form-description,
    .contact-form-box input:not([type=submit]),
    .contact-form-box input::placeholder {
        font-size: 12px;
    }

    .contact-form-box input:not([type=submit]) {
        padding: 16px 0 12px;
    }

    .contact-form-box .main-btn {
        margin-top: 24px;
    }
}