.review_form {
    padding: 70px 0 210px;
}

.review_form h2 {
    font-weight: 600;
    font-size: 25px;
    line-height: 29px;
    text-transform: uppercase;
    color: #373737;
    margin: 0 0 40px;
}

.review_form .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #F5F5F5;
    border-radius: 0;
    background: unset;
}

.review_form .select2-container .select2-selection--single .select2-selection__rendered {
    color: #ADADAD;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    padding-left: 17px;
    padding-right: 30px;
}

.review_form .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 16px;
}

.review_form .jfb-progress-type--default {
    padding-bottom: 80px;
}

.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--label {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #292929;
}

.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--circle {
    border: 1px solid #292929;
}

.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__separator {
    background: #292929;
}

.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--wrapper.active-page .jet-form-builder-progress-pages__item--circle,
.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--wrapper.passed-page .jet-form-builder-progress-pages__item--circle {
    border: 2px solid #98D901;
}
.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--wrapper.active-page,
.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--wrapper.passed-page {
    color: #98D901;
}
.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--wrapper.active-page .jet-form-builder-progress-pages__item+.jet-form-builder-progress-pages__separator,
.review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--wrapper.passed-page .jet-form-builder-progress-pages__item+.jet-form-builder-progress-pages__separator {
    background-color: #98D901;
}

.review_form .jet-form-builder__heading {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 25px;
    line-height: 29px;
    text-transform: uppercase;
    color: #7BB52F;
    margin-bottom: 10px;
}

.review_form .the_project_group {
    display: none;
}

.review_form .submit_selected_company .wp-element-button {
    background: #82B440;
    border-radius: 10px;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: #FFFFFF;
    padding: 15px;
    min-width: 252px;
    text-align: center;
}

.review_form .review-selected-company {
    align-items: center;
    margin-bottom: 50px;
}

.review_form .review-selected-company .company-logo {
    max-width: 161px;
    margin-right: 20px;
}

.review_form .review-selected-company .company-logo img {
    width: 100%;
    object-fit: contain;
    height: auto;
    display: block;
}

.review_form .review-selected-company .company-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review_form .review-selected-company .company-info .company-name {
    margin-bottom: 18px;
}

.review_form .review-selected-company .company-info .company-name h4 {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
    color: #292929;
    margin: 0 0 4px;
}

.review_form .review-selected-company .company-info .company-name div {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: #82B440;
}

.review_form .review-selected-company .company-info .change-review-company {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    text-decoration-line: underline;
    color: #D9D9D9;
}

.review_form .review-selected-company .company-info .change-review-company:hover {
    color: #82B440;
}

.review_form .jet-form-builder-row:not(.field-type-heading-field):not(.field-type-submit-field) {
    padding: 0;
    margin: 0 0 40px;
}

.review_form .jet-form-builder__label {
    margin-bottom: 15px;
}

.review_form .jet-form-builder__label .jet-form-builder__label-text {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
    color: #292929;
}

.review_form .jet-form-builder__field {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #ADADAD;
    border: 1px solid #F5F5F5;
    max-width: 400px !important;
    padding: 8.25px 17px;
}

.review_form textarea.jet-form-builder__field {
    max-width: 570px !important;
    height: 150px;
}

.review_form .jet-form-builder__next-page-wrap,
.review_form .jet-form-builder__submit-wrap {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.review_form .form-submit-row {
    margin-top: 60px;
    gap: 20px;
}

.review_form .jet-form-builder__submit-wrap {
    margin-top: 0px;
}

.review_form .jet-form-builder__next-page-wrap button,
.review_form .jet-form-builder__submit-wrap button {
    background: #82B440;
    border-radius: 10px;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: #FFFFFF;
    padding: 15px;
    text-transform: uppercase;
    box-shadow: unset;
    border: unset;
    min-width: 252px;
    display: block;
}
.review_form button.jet-form-builder__prev-page {
    background: transparent;
    color: #82B440;
    border: 1px solid #82B440;
}

.review_form .raiting_stars_group .jet-form-builder__label {
    margin-bottom: 10px;
}

.review_form .raiting_stars_group .jet-form-builder-row:not(.field-type-heading-field) {
    margin-bottom: 10px;
}

.review_form .raiting_stars_group .jet-form-builder__fields-group.checkradio-wrap {
    display: flex;
}

.review_form .raiting_stars_group .radio-wrap .jet-form-builder__field-label {
    width: 51px;
    height: 51px;
    background: url('../images/star_icon.svg') no-repeat center;
    background-size: contain;
    transition: all .5s ease-in-out;
    margin: 0;
}

.review_form .raiting_stars_group .radio-wrap.hover .jet-form-builder__field-label,
.review_form .raiting_stars_group .radio-wrap.selected .jet-form-builder__field-label {
    background: url('../images/star_icon_active.svg') no-repeat center;
}

.review_form .raiting_stars_group .radio-wrap + .radio-wrap {
    margin-left: 10px;
}

.review_form .raiting_stars_group .radio-wrap .jet-form-builder__field-label span {
    display: none;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container {
    max-width: 400px !important;
    position: relative;
    width: 100%;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container input {
    padding-right: 29px;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container .clear-button {
    display: none;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    height: 24px;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container.value-exist .clear-button {
    display: block;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container .autocomplete-items {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.1);
    border-top: none;
    z-index: 99;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: #fff;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container .autocomplete-items div {
    padding: 10px;
    cursor: pointer;
}

.review_form .jet-form-builder__field-wrap.autocomplete-container .autocomplete-items div:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.review_form .jet-form-builder__field-wrap.autocomplete-container .autocomplete-items .autocomplete-active {
    background-color: rgba(0, 0, 0, 0.1);
}

.review_form .select2-container {
    width: 100% !important;
    max-width: 400px !important;
}

.review_form .after-submit-text {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #D9D9D9;
}

.review_form .after-submit-text a {
    color: #98D901;
}

@media (max-width: 767px) {
    .review_form {
        padding: 42px 0 90px;
    }

    .review_form .jfb-progress-type--default {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        width: 100%;
        padding-bottom: 42px;
    }

    .review_form .jet-form-builder-progress-pages__item--wrapper {
        position: relative;
        display: block;
        min-width: 0;
    }

    .review_form .jet-form-builder-progress-pages__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
    }

    .review_form .jet-form-builder-progress-pages__separator {
        position: absolute;
        z-index: 0;
        top: 15px;
        left: calc(50% + 17px);
        width: calc(100% - 34px);
        height: 1px;
    }

    .review_form .jet-form-builder-progress-pages__item--circle {
        position: relative;
        z-index: 1;
        width: 31px;
        min-width: 31px;
        height: 31px;
        background: #fff;
        font-size: 13px;
        line-height: 29px;
        text-align: center;
    }

    .review_form .jfb-progress-type--default .jet-form-builder-progress-pages__item--label {
        width: 100%;
        margin-top: 7px;
        padding: 0 2px;
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .review_form h2,
    .review_form .jet-form-builder__heading {
        font-size: 21px;
        line-height: 1.3;
    }

    .review_form .jet-form-builder__label .jet-form-builder__label-text {
        font-size: 18px;
        line-height: 1.4;
    }

    .review_form .jet-form-builder__field,
    .review_form .select2-container,
    .review_form textarea.jet-form-builder__field {
        width: 100% !important;
        max-width: 100% !important;
    }

    .review_form .submit_selected_company .wp-element-button,
    .review_form .jet-form-builder__next-page-wrap button,
    .review_form .jet-form-builder__submit-wrap button {
        width: 100%;
        min-width: 0;
    }

    .review_form .jet-form-builder__next-page-wrap,
    .review_form .jet-form-builder__submit-wrap,
    .review_form .form-submit-row {
        margin-top: 36px;
    }
}


.jet-form-builder__label-text i.icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    display: inline-block;
    background-size: contain;
    vertical-align: middle;
}

.email_icon {
    background: url('../images/icons/email_icon.svg')  no-repeat center;
}

.phone_icon {
    background: url('../images/icons/phone_icon.svg')  no-repeat center;
}

.url_icon {
    background: url('../images/icons/url_icon.svg')  no-repeat center;
}


/* Ecostaff v1.9.06: review-rating layout + current JetFormBuilder markup hardening. */
.review_form .raiting_stars_group .jet-form-builder__fields-group,
.review_form .raiting_stars_group .checkradio-wrap,
.review_form .raiting_stars_group .ecostaff-rating-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 360px;
}

.review_form .raiting_stars_group .radio-wrap,
.review_form .raiting_stars_group .ecostaff-rating-option {
    display: block !important;
    flex: 0 0 51px !important;
    width: 51px !important;
    max-width: 51px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.review_form .raiting_stars_group .radio-wrap + .radio-wrap {
    margin-left: 0 !important;
}

/* Keep each five-star control together instead of inheriting block/column layout. */
.review_form .raiting_stars_group .jet-form-builder-row:has(input[type="radio"][name="quality"]),
.review_form .raiting_stars_group .jet-form-builder-row:has(input[type="radio"][name="scheduling"]),
.review_form .raiting_stars_group .jet-form-builder-row:has(input[type="radio"][name="cost"]),
.review_form .raiting_stars_group .jet-form-builder-row:has(input[type="radio"][name="recommendation"]),
.review_form .raiting_stars_group .jet-form-builder-row:has(input[type="radio"][name="overall_rating"]) {
    max-width: 420px;
}

@media (max-width: 767px) {
    .review_form .raiting_stars_group .jet-form-builder__fields-group,
    .review_form .raiting_stars_group .checkradio-wrap,
    .review_form .raiting_stars_group .ecostaff-rating-options {
        gap: 7px !important;
        max-width: 100%;
    }

    .review_form .raiting_stars_group .radio-wrap,
    .review_form .raiting_stars_group .ecostaff-rating-option {
        flex-basis: 44px !important;
        width: 44px !important;
        max-width: 44px !important;
    }

    .review_form .raiting_stars_group .radio-wrap .jet-form-builder__field-label {
        width: 44px;
        height: 44px;
    }
}


.review_form .review-selected-company .company-logo .ecostaff-company-logo-initial.is-review {
    width: 88px;
    height: 88px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f4f8ee;
    color: #5d8d22;
    font-size: 34px;
    font-weight: 800;
}
