/* Form 4 only. Keep Gravity Forms' layout, hidden fields and conditional logic intact. */
body #gform_wrapper_4 {
    --vlf-form-accent: #1b9446;
    --vlf-form-hover: #126b32;
    --gf-color-primary: var(--vlf-form-accent);
    --gf-color-primary-rgb: 27, 148, 70;
    --gf-color-in-ctrl: #fff;
    --gf-color-in-ctrl-contrast: #222;
    --gf-color-out-ctrl: #fff;
    --gf-color-out-ctrl-contrast: #222;
    --gf-radius: 0;
    --gf-ctrl-radius: 0;
    --gf-ctrl-font-size: 16px;
    --gf-ctrl-size: 48px;
    --gf-form-gap-y: 12px;
    --gf-form-gap-x: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 5px solid #fff;
    background: var(--vlf-form-accent);
    color: #fff;
    text-align: left;
    scroll-margin-top: 140px;
}
body .bottom-form #gform_wrapper_4,
body .contact-form-container #gform_wrapper_4,
body .bg-green-gradient #gform_wrapper_4 {
    padding: 0;
    border: 0;
    background: transparent;
}
body #gform_wrapper_4 form {
    margin: 0;
    text-align: left;
}
body #gform_wrapper_4 .gform_fields {
    column-gap: 20px !important;
    row-gap: 12px !important;
}
body #gform_wrapper_4 .gfield {
    min-width: 0;
    margin-block: 0;
}
body #gform_wrapper_4 :is(.gfield_label, .gform-field-label, .ginput_complex label, .gfield_required) {
    color: #fff !important;
    font-size: 15px;
    line-height: 1.5;
}
/* GF 3.x gives nested label/required spans their own colors. Override them directly. */
body #gform_wrapper_4 :is(
    .gform-field-label__text,
    .gfield_label *,
    .gform-field-label *,
    .ginput_complex label *,
    .gfield_required,
    .gfield_required *,
    .gfield_required_text,
    .gfield_required_asterisk,
    .gform_required_legend,
    .gform_required_legend *
),
body #gform_wrapper_4 .gfield_required::before,
body #gform_wrapper_4 .gfield_required::after {
    color: #fff !important;
}
body #gform_wrapper_4 :is(.gfield_label, legend.gform-field-label) {
    margin-bottom: 6px;
    font-weight: 700;
}
body #gform_wrapper_4 :is(.gfield_description, .gform_description, .gform_required_legend) {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}
body #gform_wrapper_4 .gform_required_legend {
    display: block;
    margin: 0 0 12px;
}
body #gform_wrapper_4 .gfield_description:not(.gfield_validation_message):not(.validation_message) {
    margin: 0 0 6px;
    padding-block: 0;
    color: #fff;
}
body #gform_wrapper_4 .ginput_counter.gfield_description {
    margin: 4px 0 0;
}
/* Explicit input types prevent accidentally styling honeypots or choice controls. */
body #gform_wrapper_4 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], select, textarea) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d4ddd7 !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    color: #222;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}
body #gform_wrapper_4 select {
    padding-right: 36px;
}
body #gform_wrapper_4 textarea {
    min-height: 150px;
    resize: vertical;
}
body #gform_wrapper_4 ::placeholder {
    color: #626b65;
    opacity: 1;
}
body #gform_wrapper_4 :is(input, select, textarea, button, a):focus-visible {
    outline: 1px solid #033114 !important;
    outline-offset: 1px;
    box-shadow: none !important;
}
body #gform_wrapper_4 :is(input[type="checkbox"], input[type="radio"]) {
    min-height: 0;
    accent-color: var(--vlf-form-accent);
}
body #gform_wrapper_4 :is(.gfield_checkbox, .gfield_radio) label,
body #gform_wrapper_4 .ginput_container_consent label {
    cursor: pointer;
    line-height: 1.6;
}
body #gform_wrapper_4 :is(.gfield_description, .gform_description, .ginput_container_consent) a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body #gform_wrapper_4 :is(.gform_footer, .gform-footer, .gform_page_footer) {
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
}
body #gform_wrapper_4 :is(.gform_button, .gform_next_button, .gform_previous_button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px !important;
    max-width: 100%;
    min-width: 200px;
    min-height: 52px;
    height: auto;
    padding: 20px 40px !important;
    border: 2px solid #fff !important;
    border-radius: 0 !important;
    background: var(--vlf-form-accent) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .15s ease, color .15s ease;
}
body #gform_wrapper_4 :is(.gform_button, .gform_next_button, .gform_previous_button):hover {
    background: #fff !important;
    color: var(--vlf-form-hover) !important;
}
body #gform_wrapper_4 :is(button, input[type="submit"]):disabled {
    opacity: .65;
    cursor: wait;
}
body #gform_wrapper_4 .gform_validation_errors,
body #gform_wrapper_4 .gfield_validation_message {
    padding: 12px 16px;
    border: 1px solid #b42318;
    border-radius: 6px;
    background: #fff4f2;
    color: #8b1e16;
    font-size: 14px;
    line-height: 1.5;
}
body #gform_wrapper_4 .gform_validation_errors {
    margin: 0 0 24px;
}
body #gform_wrapper_4 .gform_validation_errors :is(h2, a, li),
body #gform_wrapper_4 .gfield_validation_message :is(a, p) {
    color: #8b1e16 !important;
    font-size: inherit !important;
    line-height: inherit;
}
body #gform_wrapper_4 [aria-invalid="true"] {
    border-color: #b42318 !important;
}
body #gform_confirmation_wrapper_4 {
    padding: 24px;
    border-radius: 6px;
    background: #fff;
    color: #174c2b;
    line-height: 1.6;
}
/* Preserve the campaign palette without changing the form's data or behavior. */
body:is(.page-id-27623, .page-id-27696, .page-template-page-punishers) #gform_wrapper_4 {
    --vlf-form-accent: #0541bd;
    --vlf-form-hover: #002d89;
    --gf-color-primary-rgb: 5, 65, 189;
    background: #363636;
}
body.page-id-3527 #gform_wrapper_4 {
    --vlf-form-accent: #ee0000;
    --vlf-form-hover: #902020;
    --gf-color-primary-rgb: 238, 0, 0;
}
@media (max-width: 767px) {
    body .container .bottom-form:has(#gform_wrapper_4) {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    body #gform_wrapper_4 {
        padding: 20px 16px;
        border-width: 2px;
    }
    body .bottom-form #gform_wrapper_4,
    body .contact-form-container #gform_wrapper_4,
    body .bg-green-gradient #gform_wrapper_4 {
        padding: 0;
        border: 0;
    }
    body #gform_wrapper_4 .gform_fields > .gfield {
        grid-column: 1 / -1;
    }
    body #gform_wrapper_4 :is(.gform_button, .gform_next_button, .gform_previous_button) {
        width: 100% !important;
        min-width: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    body #gform_wrapper_4 :is(.gform_button, .gform_next_button, .gform_previous_button) {
        transition: none;
    }
}
