/* =========================================================
   CONTACT US BLOCK
   ========================================================= */

.contact_us_block {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    background-color: #000;
    background-image: var(--contact-us-bg-image, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--white);
}

.contact_us_block .contact_us_inner {
    width: min(100%, 960px);
    margin: 0 auto;
    /* padding: 92px 0 88px; */
    padding: 120px 0;
}

.contact_us_block .contact_us_title {
    margin: 0 0 34px;
    color: var(--color-orange);
    font-family: var(--font-MDBoldReg);
    font-size: 38px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    text-transform: none;
}

/* Keep the block independent of the older split contact block's
   broad .form_wrap form rules. */
.contact_us_block .contact_us_form,
.contact_us_block .wpcf7,
.contact_us_block .wpcf7-form {
    width: 100%;
}

.contact_us_block .wpcf7-form {
    margin: 0;
}

.contact_us_block .contact-us-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 55px;
    row-gap: 28px;
    width: 100%;
}

.contact_us_block .contact-us-field {
    min-width: 0;
}

.contact_us_block .contact-us-field--message,
.contact_us_block .contact-us-actions,
.contact_us_block .wpcf7-response-output {
    grid-column: 1 / -1;
}

.contact_us_block .contact-us-field label {
    display: block;
    margin: 0 0 10px;
    color: var(--white);
    font-family: var(--font-MDBoldReg);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: none;
}

.contact_us_block .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact_us_block .contact-us-field input:not([type="submit"]),
.contact_us_block .contact-us-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid #b9aed0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: #f8f6fb;
    color: var(--black) !important;
    font-family: var(--font-Figtree);
    font-size: 17px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact_us_block .contact-us-field input:not([type="submit"]) {
    height: 52px;
    padding: 10px 14px;
}

.contact_us_block .contact-us-field textarea {
    height: 116px;
    min-height: 116px;
    padding: 12px 14px;
    resize: vertical;
}

.contact_us_block .contact-us-field input:not([type="submit"]):focus,
.contact_us_block .contact-us-field textarea:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px rgba(217, 92, 0, 0.18);
}

.contact_us_block .contact-us-actions {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    align-items: center;
    margin-top: -10px;
}

.contact_us_block .contact-us-required {
    margin: 0;
    color: var(--white);
    font-family: var(--font-MDBoldReg);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.contact_us_block .contact-us-submit {
    justify-self: end;
}

.contact_us_block .contact-us-submit p,
.contact_us_block .contact-us-field p,
.contact_us_block .contact-us-actions p {
    margin: 0;
}

.contact_us_block .contact-us-submit .wpcf7-submit {
    min-width: 210px;
    height: 46px;
    margin: 0;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: var(--color-orange);
    color: var(--white);
    font-family: var(--font-MDExtBold);
    font-size: 16px;
    font-weight: 400;
    line-height: 46px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact_us_block .contact-us-submit .wpcf7-submit:hover,
.contact_us_block .contact-us-submit .wpcf7-submit:focus-visible {
    background: var(--color-deepBlue);
}

.contact_us_block .contact-us-submit .wpcf7-submit:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.contact_us_block .contact-us-submit .wpcf7-submit:active {
    transform: translateY(1px);
}

.contact_us_block .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
    position: fixed;
}

.contact_us_block .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #ff7373 !important;
    font-family: var(--font-Figtree);
    font-size: 14px;
    line-height: 1.25;
}

.contact_us_block .wpcf7-response-output {
    margin: 8px 0 0 !important;
    color: var(--white);
    font-family: var(--font-Figtree);
    font-size: 15px;
    line-height: 1.4;
}

.contact_us_block .wpcf7 form.invalid .wpcf7-response-output,
.contact_us_block .wpcf7 form.unaccepted .wpcf7-response-output,
.contact_us_block .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: var(--color-orange);
}

.contact_us_block .contact_us_empty {
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.45);
    color: var(--white);
    text-align: center;
}

.contact_us_block .wpcf7-turnstile{
    text-align: right;
    padding-bottom: 25px;
}

@media (max-width: 1500px) {
    .contact_us_block .contact_us_inner {
        padding: 75px 0;
    }
}


@media (min-width: 1400px) {
    .contact_us_block{
        background-repeat: round;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {
    .contact_us_block .contact_us_inner {
        width: min(100%, 900px);
        /* padding-top: 75px;
        padding-bottom: 75px; */
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .contact_us_block {
        background-image: var(--contact-us-bg-image-mobile, var(--contact-us-bg-image, none));
        background-position: center center;
    }

    .contact_us_block .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .contact_us_block .contact_us_inner {
        width: 100%;
        /* padding: 60px 0 72px; */
    }

    .contact_us_block .contact_us_title {
        max-width: 270px;
        margin: 0 auto 44px;
        font-size: 32px;
        line-height: 1.2;
        text-align: center;
    }

    .contact_us_block .contact-us-fields {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .contact_us_block .contact-us-field--message,
    .contact_us_block .contact-us-actions,
    .contact_us_block .wpcf7-response-output {
        grid-column: auto;
    }

    .contact_us_block .contact-us-field label,
    .contact_us_block .contact-us-required {
        font-size: 15px;
    }

    .contact_us_block .contact-us-field label {
        margin-bottom: 12px;
    }

    .contact_us_block .contact-us-field input:not([type="submit"]) {
        height: 52px;
    }

    .contact_us_block .contact-us-field textarea {
        height: 226px;
        min-height: 226px;
    }

    .contact_us_block .contact-us-actions {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-top: -4px;
    }

    .contact_us_block .contact-us-required {
        justify-self: start;
    }

    .contact_us_block .contact-us-submit {
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .contact_us_block .contact-us-submit .wpcf7-submit {
        min-width: 170px;
        width: min(74%, 210px);
        height: 46px;
        line-height: 46px;
    }
}

@media (max-width: 430px) {
    .contact_us_block .contact_us_title {
        max-width: 245px;
        font-size: 30px;
    }
}
