.half-cta-half-form {
    position: relative;
}

.half-cta-half-form__content {
    padding: 0 22px;
    margin: 0 0 25px;
    overflow: hidden;
}

.half-cta-half-form--inner .half-cta-half-form__content {
    overflow: initial;
}

.half-cta-half-form__area {
    padding: 0 22px;
}

.half-cta-half-form__content__wrapper {
    position: relative;
    padding-top: 225px;
    z-index: 1;
}

.half-cta-half-form__image {
    position: absolute;
    left: 0;
    top: 60px;
    width: calc(100% - 44px);
    height: 200px !important;
    border-radius: 10px 10px 10px 50px;
    overflow: hidden;
    margin: 0 22px;
}

.half-cta-half-form__image:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.half-cta-half-form__heading h2 {
    color: #B6141D;
}

.half-cta-half-form__heading p,
.half-cta-half-form__heading blockquote{
    position: relative;
    z-index: 1;
}

.half-cta-half-form__heading .btn,
.half-cta-half-form__heading .btn:hover{
    background: none;
}

.half-cta-half-form__title h3 {
    font-size: 35px;
    color: #000;
}

.bg-light-gray .half-cta-half-form__heading *,
.bg-light-gray .half-cta-half-form__title * {
    color: #fff;
}

.half-cta-half-form__title {
    margin: 0 0 25px;
}

.half-cta-half-form__area .row {
    align-items: flex-end;
}

.bg-gray .half-cta-half-form-curve {
    position: absolute;
    left: 0;
    top: -30px;
    width: 100%;
    z-index: 1;

    svg {
        fill: #DCDDDE;
    }
}

.bg-gray .half-cta-half-form-curve:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.bg-light-gray .half-cta-half-form__title p a:not(.btn),
.bg-light-gray .half-cta-half-form__heading p a:not(.btn) {
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 100%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 4px 1px;
    color: #FFFFFF;
    font-weight: normal;
}

.bg-light-gray .form-col-btn .btn,
.bg-light-gray  .gform_button,
.contact-number .btn {
    color: #fff;
}

.bg-gray .half-cta-half-form-curve path {
    fill: #DCDDDE;
}

.contact-number  {
    padding-top: 5px;
}

.half-cta-half-form--inner .half-cta-half-form__content__wrapper {
    padding-top: 200px;
}

.half-cta-half-form__heading .btn + .btn{
    margin-top: 20px;
    margin-left: 0;
}

/* Ensure validation error styling works with Choices */
.gform_wrapper .gfield_error .choices__inner {
    border-color: #D2232A;
}

/* Make sure Choices container doesn't disappear during validation */
.gform_wrapper .gfield .choices {
    display: block !important;
}

.gfield.gfield_error .ginput_container{
    position: relative;
}

.gfield.gfield_error .ginput_container::after{
    content: "!";
    font-size: 19px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    color: #fff;
    background: #D2232A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 15px;
}

@media(min-width: 768px) {
    .half-cta-half-form__image {
        left: unset;
        right: -52px;
        top: 70px;
        width: 370px;
        height: 300px !important;
        border-radius: 10px 0 0 50px;
        margin: 0;
    }

    .half-cta-half-form__content {
        padding: 0 52px;
        margin: 0 0 42px;

    }

    .half-cta-half-form__area {
        padding: 0 52px;
    }

    .half-cta-half-form__content__wrapper {
        padding-top: 0;
    }

    .half-cta-half-form__heading {
        padding: 0 288px 0 0;
        min-height: 212px;
    }

    .half-cta-half-form__title h3 {
        font-size: 40px;
    }

    .half-cta-half-form__title {
        margin: 0 0 30px;
    }

    .half-cta-half-form:not(:has(.half-cta-half-form__heading)) .half-cta-half-form__title {
        padding-right: 290px;
        min-height: 145px;
    }

    .half-cta-half-form:not(:has(.half-cta-half-form__heading)) .half-cta-half-form__content {
        padding: 0;
        margin: 0;
    }

    .half-cta-half-form:not(:has(.half-cta-half-form__heading)) .half-cta-half-form__image {
        height: 270px !important;
    }

    .half-cta-half-form--inner .half-cta-half-form__content__wrapper {
        padding-top: 0;
    }

    .half-cta-half-form--inner .half-cta-half-form__image {
        left: unset;
        right: -52px;
        width: 370px;
        top: 70px;
        height: 300px !important;
        border-radius: 10px 0 0 50px;
    }

    .half-cta-half-form--inner .half-cta-half-form__title {
        padding-right: 0;
    }

    .bg-gray .half-cta-half-form-curve {
        position: absolute;
        left: 0;
        top: -20px;
        width: 100%;
        z-index: 1;
    }
}

@media(min-width: 1025px) {
    .half-cta-half-form--inner .half-cta-half-form__image {
        position: absolute;
    }
}

@media(min-width: 1200px) {
    .half-cta-half-form {
        display: flex;
        justify-content: space-between;
    }

    .half-cta-half-form__content {
        padding: 0 21px;
        margin: 0;
        width: calc(47% - 71px);
        position: relative;
    }

    .half-cta-half-form__content__wrapper {
        max-width: 507px;
        margin-left: auto;
    }

    .half-cta-half-form__area {
        padding: 0 21px;
        width: calc(53% - 71px);
    }

    .half-cta-half-form__image {
        left: 0;
        right: unset;
        bottom: 0;
        top: unset;
        width: calc(100% - 107px);
        height: 50% !important;
        border-radius: 0 10px 50px 0;

        position: relative;
        height: auto;
        min-height: 720px;
        margin-top: -100px;
        display: flex;

        img {
            display: block;
        }
    }

    .half-cta-half-form__heading {
        padding: 0;
        min-height: unset;
        margin: 0 0 40px;
    }

    .half-cta-half-form__area__wrapper {
        max-width: 616px;
    }

    .half-cta-half-form__testimonial {
        padding: 40px 35px;
        background: #F6F7F7;
        border-radius: 10px;
        position: relative;
        z-index: 1;
    }

   .bg-gray .half-cta-half-form__testimonial {
        background: #ECECEC;
    }

    .half-cta-half-form__testimonial img {
        margin: 0 0 10px;
    }

    .half-cta-half-form__testimonial p {
        color: #000000;
        line-height: 1.647em;
        margin: 0 0 5px;
    }

    .half-cta-half-form__testimonial h5 {
        color: #808285;
        font-size: 18px;
        font-style: italic;
        margin: 0;
        text-transform: uppercase;
        font-family: "Roboto Condensed", sans-serif;
    }

    .half-cta-half-form--row-reverse {
        flex-direction: row-reverse;
    }

    .half-cta-half-form--row-reverse .half-cta-half-form__area__wrapper {
        margin-left: auto;
    }

    .half-cta-half-form--row-reverse .half-cta-half-form__content__wrapper {
        margin-left: unset;
    }

    .half-cta-half-form--row-reverse .half-cta-half-form__image {
        left: unset;
        right: 0;
        width: calc(100% - 107px);
        height: calc(100% - 414px) !important;
        border-radius: 10px 0 0 50px;
    }

    .half-cta-half-form:not(:has(.half-cta-half-form__heading)) .half-cta-half-form__image {
        height: calc(100% - 246px) !important;
        margin-top: -100px;
    }

    .half-cta-half-form:not(:has(.half-cta-half-form__testimonial)) .half-cta-half-form__image {
        height: 100% !important;
        border-radius: 50px 0 0 50px;
    }

    .half-cta-half-form--row-reverse:not(:has(.half-cta-half-form__testimonial)) .half-cta-half-form__image {
        border-radius: 0 50px 50px 0;
    }

    .half-cta-half-form:not(:has(.half-cta-half-form__heading)) .half-cta-half-form__title {
        padding-right: 0;
        min-height: unset;
    }

    .bg-light-gray .half-cta-half-form__title p a:not(.btn):hover,
    .bg-light-gray .half-cta-half-form__heading p a:not(.btn):hover {
        background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 100%);
        background-position: 0 100%;
        background-repeat: repeat-x;
        background-size: 4px 50px;
        color: #000;
    }

    .half-cta-half-form--inner .half-cta-half-form__image {
        /* height: auto !important;
        margin-bottom: 0;
        top: unset;
        bottom: -90px; */

        height: auto !important;
        margin-bottom: 0;
        top: unset;
        bottom: 0;
        position: relative;
        right: -110px;
        margin-top: -150px;
    }

    .half-cta-half-form--inner .half-cta-half-form__title {
        padding-right: 0 !important;
    }

    .half-cta-half-form--inner .half-cta-half-form__title p {
        margin-bottom: 22px;
    }

    .contact-number {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media(min-width: 1367px) {
    .half-cta-half-form__content {
        padding: 0;
    }

    .half-cta-half-form__area {
        padding: 0;
    }
}


/* Gravity Forms */
.gform_heading {
    display: none;
}

.gform_submission_error {
    font-size: 14px;
}

.gform_fields {
    --bs-gutter-x: 19px;
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
    align-items: flex-end;
}

.gform_fields .col-xxs-12 {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin: 0 0 20px;
    position: relative;
}

.gfield_label .gfield_required {
    padding-left: 2px;
    font-size: 17px;
    color: #FF3B3B;
}

.gfield_error input {
    border-color: #D2232A;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
}

.gfield .validation_message {
    position: absolute;
    left: 21px;
    bottom: -21px;
    color: #D2232A;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
}

.gfield .choices__item {
    opacity: 1;
}

@media (min-width: 768px) {
    .gform_fields .col-xxs-12 {
        margin: 0 0 25px;
    }

    .gform_fields .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .gform_fields {
        --bs-gutter-x: 32px;
    }
}