/* Gravity Forms 2.5 theme (legacy markup) overrides */

.gform_wrapper {
    color: #004081 !important;
}

.gform_wrapper .gfield_radio,
.gform_wrapper.gravity-theme .gfield_radio {
    display: flex !important;
    gap: 30px !important;
}

.gform_wrapper .gfield_radio .gchoice,
.gform_wrapper.gravity-theme .gfield_radio .gchoice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
}

.gform_wrapper .gfield_checkbox .gchoice,
.gform_wrapper.gravity-theme .gfield_checkbox .gchoice {
    display: flex !important;
    width: 100% !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 0 12px !important;
}

.gform_wrapper .gfield_checkbox,
.gform_wrapper.gravity-theme .gfield_checkbox {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

html body .gform_wrapper input[type="radio"],
html body .gform_wrapper .gfield-choice-input[type="radio"],
html body .gform_wrapper input.gfield-choice-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    border: 2px solid #004081 !important;
    border-radius: 50% !important;
    background: #fff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

html body .gform_wrapper input[type="radio"]:checked,
html body .gform_wrapper .gfield-choice-input[type="radio"]:checked,
html body .gform_wrapper input.gfield-choice-input:checked {
    background: #004081 !important;
    background-color: #004081 !important;
    border-color: #004081 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none'%3E%3Cpath d='M5 12l5 5L20 7' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

html body .gform_wrapper input[type="checkbox"],
html body .gform_wrapper .gfield-choice-input[type="checkbox"],
html body .gform_wrapper input.gfield-choice-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: 2px solid #004081 !important;
    background: #fff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

html body .gform_wrapper input[type="checkbox"]:checked,
html body .gform_wrapper .gfield-choice-input[type="checkbox"]:checked,
html body .gform_wrapper input.gfield-choice-input[type="checkbox"]:checked {
    background: #004081 !important;
    background-color: #004081 !important;
    border-color: #004081 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none'%3E%3Cpath d='M5 12l5 5L20 7' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

html body .gform_wrapper .gfield_checkbox .gfield-choice-input,
html body .gform_wrapper .gfield_checkbox input.gfield-choice-input,
html body .gform_wrapper .gfield_checkbox input[type="checkbox"],
html body .gform_wrapper .ginput_container_consent .gfield-choice-input,
html body .gform_wrapper .ginput_container_consent input.gfield-choice-input,
html body .gform_wrapper .ginput_container_consent input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 19px !important;
    border-radius: 5px !important;
}

.gform_wrapper .gfield_label,
.gform_wrapper.gravity-theme .gfield_label {
    font-family: 'Blinker', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 19px !important;
    line-height: 30px !important;
    letter-spacing: 0 !important;
    color: #004081 !important;
}


.gform_required_legend,
.gform_description {
    display: none;
}

.gform_wrapper {
    --arehbo-gf-radius: 10px;
    --arehbo-gf-border: rgba(var(--color-primary-rgb), 0.25);
    --arehbo-gf-bg: transparent;
    --arehbo-gf-color: var(--color-primary);
}

.bg-dark .gform_wrapper {
    --arehbo-gf-border: rgba(var(--color-white-rgb), 0.25);
    --arehbo-gf-color: var(--color-white);
}

.gform_wrapper .gform_title {
    margin: 0;
    padding-bottom: 24px;
    font-family: var(--font-sans);
    font-size: var(--font-size-large);
    line-height: 34px;
    font-weight: 600;
    color: var(--arehbo-gf-color);
}

.gform_wrapper .gform_fields,
.gform_wrapper .gform_body {
    display: block;
}

.gform_wrapper .gfield {
    margin: 0;
}

.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer {
    margin-top: 30px;
}

.gform_wrapper.gravity-theme .gform_footer {
    margin: 0;
    padding-bottom: 0 !important;
}

.gform_wrapper.gravity-theme .gform_footer button {
    margin-bottom: 0 !important;
}

.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label,
.gform_wrapper label.gfield_label {
    font-family: var(--font-sans) !important;
    font-size: var(--font-size-standard) !important;
    line-height: 30px !important;
    color: var(--arehbo-gf-color) !important;
    font-weight: 400 !important;
}

.gform_wrapper input[type]:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
.gform_wrapper textarea,
.gform_wrapper select {
    font-family: var(--font-sans) !important;
    font-size: var(--font-size-standard) !important;
    line-height: 30px !important;
    color: var(--arehbo-gf-color) !important;
    background-color: var(--arehbo-gf-bg) !important;
    border: 2px solid var(--arehbo-gf-border) !important;
    border-radius: var(--arehbo-gf-radius) !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
    outline: none !important;
}

.gform_wrapper input[type]:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
.gform_wrapper select {
    height: 55px !important;
}

.gform_wrapper .gf_progressbar_wrapper {
    display: none !important;
}

.gform_wrapper .gform_page_footer .gform_previous_button,
.gform_wrapper .gform_page_footer [data-submission-type="previous"] {
    display: none !important;
}

.gform_wrapper[data-current-page="2"] .gform_heading {
    display: none !important;
}

.gform_wrapper.gravity-theme .gsection {
    border-bottom: 1px solid var(--arehbo-gf-border) !important;
}

.arehbo-gf-top-actions {
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

.arehbo-gf-prev-top {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: transparent !important;
    color: var(--color-primary) !important;
    border: none !important;
    padding: 0 !important;
    font-family: var(--font-sans) !important;
    font-size: var(--font-size-standard) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-transform: none !important;
    height: auto !important;
    width: auto !important;
}

.arehbo-gf-prev-top:hover {
    opacity: 0.75;
}

.arehbo-gf-prev-top svg {
    flex-shrink: 0;
}

.gform_wrapper .ginput_container_select,
.gform_wrapper .gfield .ginput_container_select {
    position: relative;
}

.gform_wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
    padding-right: 48px !important;
}

.gform_wrapper .ginput_container_select::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%) rotate(90deg);
    background-color: var(--arehbo-gf-color);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4L17 12L9 20' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4L17 12L9 20' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    pointer-events: none;
}

.gform_wrapper textarea {
    min-height: 180px;
    resize: vertical;
}

.gform_wrapper .ginput_container_date {
    position: relative;
}

.gform_wrapper .ginput_container_date input.gform-datepicker,
.gform_wrapper .ginput_container_date input.datepicker {
    width: 100% !important;
    padding-right: 56px !important;
}

.gform_wrapper .ginput_container_date .ui-datepicker-trigger,
.gform_wrapper .ginput_container_date img.ui-datepicker-trigger {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    margin: 0;
    opacity: 1 !important;
    cursor: pointer;
}

.gform_wrapper .ginput_container_date img.ui-datepicker-trigger {
    object-fit: contain;
}

.gform_wrapper input[type]:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]):focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    border-color: rgba(var(--color-accent-rgb), 0.8) !important;
}

.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_radio label,
.gform_wrapper .ginput_container_consent label {
    font-family: var(--font-sans);
    font-size: var(--font-size-standard);
    line-height: 28px;
    color: var(--arehbo-gf-color);
    max-width: none !important;
}

.gform_wrapper .ginput_container_consent {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
}

.arehbo-gf-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 30px !important;
    padding: 10px 10px 10px 30px !important;
    background-color: var(--color-accent) !important;
    border: none !important;
    border-radius: 32px !important;
    height: 60px !important;
    font-family: var(--font-sans) !important;
    font-size: var(--font-size-standard) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: var(--color-white) !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    width: auto !important;
    text-decoration: none !important;
}

.arehbo-gf-btn:hover {
    background-color: var(--color-accent-dark) !important;
}

.arehbo-gf-btn__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 33px !important;
    height: 33px !important;
    border-radius: 17px !important;
    background-color: #F5F9F9 !important;
}

.gfield_repeater_item {
    padding: 25px;
    border-radius: 30px;
    border-bottom: none !important;
    background: #f4fafa;
    column-gap: 28px;
}

.gfield_repeater_item .gfield_repeater_buttons .remove_repeater_item {
    min-width: auto!important;
}
.ginput_container input {
    width: 100%!important;
}
.gfield_repeater_item .gfield_repeater_buttons button .arehbo-icon.arehbo-icon--delete {
    width: 45px;
    height: 45px;
    background-color: #c4dfdf!important;
}
.gfield_repeater_item .gfield_repeater_buttons button .arehbo-icon.arehbo-icon--delete path {
    color: #306499!important;
}
.gfield_repeater_item .gfield_repeater_buttons {
    margin-bottom: 0!important;
}
.gfield_repeater_buttons:has(.remove_repeater_item) {
    margin-bottom: 0;
}

.gfield_repeater_item:not(:last-of-type) .add_repeater_item {
    margin-bottom: revert;
}

.gfield_repeater_buttons .add_repeater_item {
    font: normal normal 600 19px / 28px Blinker!important;
    letter-spacing: 0px;
    color: #004081!important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-align: left;
}

.gfield_repeater_buttons .arehbo-icon {
    max-width: 58px;
    width: 100%;
    flex-shrink: 0;
    display: inline-flex;
}

@media (min-width: 460px) {
    .gfield_repeater_buttons .add_repeater_item {
        white-space: nowrap;
    }
}

#field_5_1000 {
    padding-bottom: 8px;
}
