.image-text-form {
    position: relative;
    background: #1A5086;
    color: #fff;
    z-index: 1;
}

.image-text-form__image {
    margin: 0 -22px;
    height: 720px;
    position: relative;
}

.image-text-form__image:after {
    content: "";
    position: absolute;
    left: 0;
    top: -370px;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(173, 205, 238, 0) 13.23%, #1A5086 37.74%);
}

.image-text-form__contact {
    padding: 41px 30px;
    background: #AEBFCF;
    box-shadow: 0px 4px 18.4px rgba(15, 48, 80, 0.4);
    border-radius: 5px;
    position: relative;
    z-index: 1;
    margin: 0 -8px -200px;
}

/* Gravity Forms Styles */
.image-text-form__contact .gform_wrapper {
    margin: 0;
}

.image-text-form__contact .gform_wrapper form {
    margin: 0;
}

/* Form Submission Error Message */
.image-text-form__contact .gform_submission_error {
    margin: 0 0 20px;
    padding: 15px 20px;
    background: rgba(129, 0, 0, 0.1);
    border-left: 4px solid #810000;
    border-radius: 4px;
    color: #810000;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-text-form__contact .gform_submission_error.hide_summary {
    display: none;
}

.image-text-form__contact .gform_submission_error .gform-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.image-text-form__contact .gform_submission_error .gform-icon--circle-error::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z' fill='%23810000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.image-text-form__contact .gform_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.image-text-form__contact .gfield {
    margin: 0;
    padding: 0;
}

.image-text-form__contact .gfield--width-full {
    width: 100%;
}

.image-text-form__contact .gfield--width-half {
    width: 100%;
}

.image-text-form__contact .gfield_label {
    display: block;
    margin: 0 0 10px;
    font-weight: 600;
    color: #0F3050;
    font-size: 17px;
    font-family: 'Inter', sans-serif;
}

.image-text-form__contact .gfield_required {
    color: #0F3050;
    margin-left: 2px;
}

.image-text-form__contact .ginput_container input[type="text"],
.image-text-form__contact .ginput_container input[type="email"],
.image-text-form__contact .ginput_container input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    color: #565656;
    transition: all 0.3s ease;
    position: relative;
}

.image-text-form__contact .ginput_container input[type="text"]:focus,
.image-text-form__contact .ginput_container input[type="email"]:focus,
.image-text-form__contact .ginput_container input[type="tel"]:focus {
    outline: none;
    border-color: #0F3050;
    box-shadow: inset 4px 0 0 0 #0F3050;
}

.image-text-form__contact .ginput_container textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    color: #565656;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.image-text-form__contact .ginput_container textarea:focus {
    outline: none;
    border-color: #0F3050;
    box-shadow: inset 4px 0 0 0 #0F3050;
}

/* Error State */
.image-text-form__contact .gfield_error .ginput_container {
    position: relative;
}

.image-text-form__contact .gfield_error .ginput_container input[type="text"],
.image-text-form__contact .gfield_error .ginput_container input[type="email"],
.image-text-form__contact .gfield_error .ginput_container input[type="tel"],
.image-text-form__contact .gfield_error .ginput_container textarea {
    border: 1px solid #810000;
    box-shadow: inset 4px 0 0 0 #810000;
    padding-right: 50px;
}

.image-text-form__contact .gfield_error .ginput_container::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2zm1.5 21h-3v-3h3v3zm0-5h-3V9h3v9z' fill='%23810000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.image-text-form__contact .gfield_error .validation_message {
    margin: 5px 0 0 5px;
    padding: 0;
    background: transparent;
    border: none;
    color: #0F3050;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.image-text-form__contact .gfield_html {
    width: 100%;
}

.image-text-form__contact .gfield_html p {
    margin: 0 !important;
    font-size: 16px;
    color: #0F3050;
    text-align: center;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.image-text-form__contact .gfield_html a {
    color: #0F3050;
    text-decoration: none;
    font-weight: 600;
}

.image-text-form__contact .gfield_html a:hover {
    text-decoration: underline;
}

.image-text-form__contact .gform_footer {
    margin: 20px 0 0;
    padding: 0;
    text-align: center;
}

.image-text-form__contact .gform_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 31px;
    background: #0F3050;
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 1.195;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
    text-transform: capitalize;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.image-text-form__contact .gform_button::after {
    content: '\e905';
    font-family: var(--font-family-icon, 'perritt-icon');
    font-weight: normal;
    font-size: 12px;
    flex-shrink: 0;
}

.image-text-form__contact .gform_button:hover {
    background: #1B5186;
    color: #FFFFFF;
}

.image-text-form__content {
    position: relative;
    padding: 87px 0 55px 69px;
}

.image-text-form__content h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.image-text-form__content h2 {
    color: #E4EFFA;
    margin: 0;
}

.image-text-form-arrow {
    position: absolute;
    left: 18px;
    top: 82px;
}

@media(min-width: 768px) {
    .image-text-form__image {
        margin: 0 -52px;
        height: 685px;
    }

    .image-text-form__contact {
        padding: 41px 49px;
        margin: 0 -20px -200px;
    }

    .image-text-form__content {
        padding: 99px 0 65px 69px;
        max-width: 450px;
    }

    .image-text-form__content h4 {
        font-size: 25px;
        margin: 0 0 5px;
    }

    .image-text-form-arrow {
        left: 5px;
        top: 63px;
    }

    .image-text-form__contact .row {
        --bs-gutter-x: 42px;
    }

    .image-text-form__contact .gfield--width-half {
        width: calc(50% - 10px);
    }

    .image-text-form__contact .gform_fields {
        gap: 10px 20px;
    }
}

@media(min-width: 1200px) {
    .image-text-form-arrow {
        left: 0;
        top: unset;
        position: relative;
    }

    .image-text-form__content h4 {
        margin: 0 0 10px;
    }

    .image-text-form__content h2 {
        font-size: 44px;
        text-transform: capitalize;
        margin: 0 0 15px;
        letter-spacing: 0.03em;
    }

    .image-text-form__content {
        padding: 0;
        max-width: 240px;
        min-height: 593px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        position: relative;
        z-index: 1;
    }

    .image-text-form__contact {
        padding: 35px 39px;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 550px;
    }

    .image-text-form__image {
        margin: 0 -52px;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
    }

    .image-text-form {
        margin: 0 0 56px;
    }

    .image-text-form:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(270deg, rgba(173, 205, 238, 0) 13.23%, #1A5086 37.74%);
    }

    .image-text-form__image:after {
        display: none;
    }
}

@media(min-width: 1400px) {
    .image-text-form__contact {
        max-width: 690px;
    }
}