/* stylelint-disable selector-id-pattern */

/**
 * ==========================================================================
 * Gravity Forms - Site Specific Styles for RDI
 * ==========================================================================
 *
 * Table of Contents:
 * 1. Global Form Inputs
 * 2. Select Dropdowns
 * 3. Gravity Forms – Base Overrides
 * 4. Gravity Forms – Floating Labels
 * 5. Gravity Forms – Dark Background Variant (.is-style-dark-bg-white-text)
 * 6. Gravity Forms – Field-Specific Overrides
 * 7. Gravity Forms – Footer Newsletter
 * 8. Gravity Forms – Subscribe Inline Form
 */

/* ==========================================================================
   1. Global Form Inputs
   ========================================================================== */

   input[type="text"],
   input[type="email"],
   input[type="url"],
   input[type="password"],
   input[type="search"],
   input[type="number"],
   input[type="tel"],
   input[type="range"],
   input[type="date"],
   input[type="month"],
   input[type="week"],
   input[type="time"],
   input[type="datetime"],
   input[type="datetime-local"],
   input[type="color"],
   textarea,
   select {
       border-radius: 0;
       font-size: 1rem;
       font-weight: 500;
       color: var(--global-palette3);
       padding: 12px 15px;
   }

   input[type="text"],
   input[type="email"],
   input[type="url"],
   input[type="password"],
   input[type="search"],
   input[type="number"],
   input[type="tel"],
   input[type="range"],
   input[type="date"],
   input[type="month"],
   input[type="week"],
   input[type="time"],
   input[type="datetime"],
   input[type="datetime-local"],
   input[type="color"],
   textarea,
   body select,
   body .select2-container--default .select2-selection--single,
   .select2-container--default
       .select2-selection--single
       .select2-selection__rendered {
       border-color: var(--global-palette6);
       color: var(--global-palette3);
       border-radius: 0;
   }

   input[type="text"]:focus,
   input[type="email"]:focus,
   input[type="url"]:focus,
   input[type="password"]:focus,
   input[type="search"]:focus,
   input[type="number"]:focus,
   input[type="tel"]:focus,
   input[type="range"]:focus,
   input[type="date"]:focus,
   input[type="month"]:focus,
   input[type="week"]:focus,
   input[type="time"]:focus,
   input[type="datetime"]:focus,
   input[type="datetime-local"]:focus,
   input[type="color"]:focus,
   textarea:focus,
   .gform_wrapper.gravity-theme .gfield textarea:focus,
   select:focus {
       border-color: var(--global-palette3);
       outline: -webkit-focus-ring-color auto 1px !important;
   }

   .gform_wrapper.gravity-theme .gform_validation_errors {
    border-radius: 0;
    margin-bottom: 30px;
   }

   .gform_wrapper.gravity-theme .gform_validation_errors>h2,
   .gform_wrapper.gravity-theme .gfield_description {
    font-size: 1rem;
   }


   /* ==========================================================================
      2. Select Dropdowns
      ========================================================================== */

   body select,
   body select.orderby {
       background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' class='kadence-svg-icon kadence-arrow-down-svg' fill='currentColor' version='1.1' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5.293 9.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z'%3E%3C/path%3E%3C/svg%3E");
   }


   /* ==========================================================================
      3. Gravity Forms – Base Overrides
      ========================================================================== */

   .gform_wrapper.gravity-theme input[type="color"],
   .gform_wrapper.gravity-theme input[type="date"],
   .gform_wrapper.gravity-theme input[type="datetime-local"],
   .gform_wrapper.gravity-theme input[type="datetime"],
   .gform_wrapper.gravity-theme input[type="email"],
   .gform_wrapper.gravity-theme input[type="month"],
   .gform_wrapper.gravity-theme input[type="number"],
   .gform_wrapper.gravity-theme input[type="password"],
   .gform_wrapper.gravity-theme input[type="search"],
   .gform_wrapper.gravity-theme input[type="tel"],
   .gform_wrapper.gravity-theme input[type="text"],
   .gform_wrapper.gravity-theme input[type="time"],
   .gform_wrapper.gravity-theme input[type="url"],
   .gform_wrapper.gravity-theme input[type="week"],
   .gform_wrapper.gravity-theme select,
   .gform_wrapper.gravity-theme textarea {
       font-size: 1rem;
   }

   #gform_1_validation_container {
       display: none;
   }

   .gform_required_legend {
        margin-bottom: 10px !important;
        font-style: italic;
        font-size: 1rem;
    }


   /* ==========================================================================
      4. Gravity Forms – Floating Labels
      Add the .floating-label class to desired Gravity Forms fields.
      ========================================================================== */

   .floating-label {
       position: relative;
   }

   .floating-label label {
       position: absolute;
       top: 12px;
       left: 0;
       margin: 0;
       opacity: 0;
       line-height: 1.4;
       font-size: 1rem;
       transition: all ease 0.4s;
   }

   .floating-label:focus-within label,
   .floating-label input:focus ~ label,
   .floating-label textarea:focus ~ label,
   .floating-label input.valid ~ label,
   .floating-label textarea.valid ~ label,
   .floating-label input:visited ~ label,
   .floating-label textarea:visited ~ label,
   .floating-label input:-webkit-autofill ~ label,
   .floating-label textarea:-webkit-autofill ~ label,
   .floating-label.input-active label {
       top: 0;
       left: 8px;
       font-size: 1rem !important;
       color: var(--global-palette3);
       opacity: 1;
   }

   .floating-label:focus-within input::placeholder {
       opacity: 0;
   }


   .gform_wrapper.gravity-theme ::placeholder {
        opacity: 1;
        color: var(--global-palette1);
        font-size: 1rem;
   }
    .gform_wrapper.gravity-theme input,
    .gform_wrapper.gravity-theme select,
    .gform_wrapper.gravity-theme .gfield textarea {
        min-height: 50px;
        border-radius: 0;
        background-color: var(--global-palette9);
        border-color: var(--global-palette1);
        color: var(--global-palette3);
   }

   .gform_wrapper.gravity-theme input:focus:not(:focus-visible),
   .gform_wrapper.gravity-theme select:focus:not(:focus-visible),
   .gform_wrapper.gravity-theme .gfield textarea:focus:not(:focus-visible) {
        outline: 0 !important;
   }

   .gform_wrapper.gravity-theme .gform_drop_area {
        border-radius: 0;
        border-color: var(--global-palette1);
        border-style: solid;
   }

    .gform_wrapper.gravity-theme .gform_footer,
    .gform_wrapper.gravity-theme .gform_page_footer {
        padding-bottom: 0;
    }

    .gform_wrapper.gravity-theme .gform_footer button,
    .gform_wrapper.gravity-theme .gform_footer input,
    .gform_wrapper.gravity-theme .gform_page_footer button,
    .gform_wrapper.gravity-theme .gform_page_footer input,
    .gform_wrapper.gravity-theme .button {
        background-color: var(--global-palette1);
        color: var(--global-palette9);
        border-color: var(--global-palette1);
        margin-bottom: 0;
        line-height: 1 !important;
   }

   .gform_wrapper.gravity-theme .gform_footer button:hover,
   .gform_wrapper.gravity-theme .gform_footer button:focus,
   .gform_wrapper.gravity-theme .gform_footer input:hover,
   .gform_wrapper.gravity-theme .gform_footer input:focus,
   .gform_wrapper.gravity-theme .gform_page_footer button:hover,
   .gform_wrapper.gravity-theme .gform_page_footer button:focus,
   .gform_wrapper.gravity-theme .gform_page_footer input:hover,
   .gform_wrapper.gravity-theme .gform_page_footer input:focus,
   .gform_wrapper.gravity-theme .button:hover,
   .gform_wrapper.gravity-theme .button:focus {
       background-color: transparent;
       color: var(--global-palette1);
       border-color: var(--global-palette1);
   }

   .gform_wrapper.gravity-theme .gfield_required {
        color: var(--global-palette3);
   }


   /* ==========================================================================
      5. Gravity Forms – Dark Background Variant (.is-style-dark-bg-white-text)
      ========================================================================== */

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield_required,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme input::placeholder,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield select::placeholder,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .ginput_counter {
       color: var(--global-palette9);
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme input,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield select,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield textarea {
       border-color: var(--global-palette9);
       background-color: transparent;
       color: var(--global-palette9);
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme input[type="radio"],
   .is-style-dark-bg-white-text .gform_wrapper.gform_wrapper.gravity-theme input[type="checkbox"] {
       min-height: 0;
   }

   .is-style-dark-bg-white-text .gform_wrapper.gform_wrapper.gravity-theme .gfield--type-choice label {
       font-size: 1rem;
       margin-left: 4px;
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield select {
       background-image: url("data:image/svg+xml,%3Csvg viewBox='-182 0 1024 658.285714286' preserveAspectRatio='xMinYMin meet' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath d='M614.286 420.571c0 4.571-2.286 9.714-5.714 13.143l-266.286 266.286c-3.429 3.429-8.571 5.714-13.143 5.714s-9.714-2.286-13.143-5.714l-266.286-266.286c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l28.571-28.571c3.429-3.429 8-5.714 13.143-5.714 4.571 0 9.714 2.286 13.143 5.714l224.571 224.571 224.571-224.571c3.429-3.429 8.571-5.714 13.143-5.714s9.714 2.286 13.143 5.714l28.571 28.571c3.429 3.429 5.714 8.571 5.714 13.143z'%3E%3C/path%3E%3C/svg%3E");
       background-size: 24px 24px;
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gform_footer input[type="submit"] {
       background: transparent;
       border-color: var(--global-palette9);
       color: var(--global-palette9);
       border-radius: 0;
       font-weight: 600;
       text-transform: uppercase;
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:focus {
       background: var(--global-palette8);
       border-color: var(--global-palette8);
       color: var(--global-palette1);
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gf_progressbar_title {
       color: var(--global-palette9);
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield_error label,
   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield_error legend {
       color: var(--global-palette9);
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme a {
       color: var(--global-palette9);
   }

   .is-style-dark-bg-white-text .gform_wrapper.gravity-theme .gfield_error [aria-invalid="true"] {
       border-color: var(--global-palette9);
   }


   /* ==========================================================================
      6. Gravity Forms – Field-Specific Overrides
      ========================================================================== */

   .gfield_radio .gchoice:not(:last-child) {
       margin-bottom: 10px;
   }

   .gform_wrapper.gravity-theme .gfield .gfield_radio input {
       margin-right: 5px;
   }

   .gform_wrapper.gravity-theme .ginput_container_address span.address_zip {
       flex: 0 0 100%;
   }

   .gform_wrapper.gravity-theme .ginput_complex label {
       margin-bottom: var(--wp--preset--spacing--xxs);
       font-weight: 700;
   }

   /* Address form (form ID 2) */
   #gform_wrapper_2.gform_wrapper.gravity-theme .ginput_container_address span {
       flex: 0 0 100%;
       margin-bottom: 0;
   }

   #gform_wrapper_2.gform_wrapper.gravity-theme .gfield--type-address .gfield_label {
       padding-top: 6px;
   }


   /* ==========================================================================
      7. Gravity Forms – Footer Newsletter
      ========================================================================== */

   footer .gform_wrapper {
       width: 100%;
   }

   footer .gform_wrapper.gravity-theme .gform_fields {
       display: flex;
       column-gap: 10px;
   }

   footer .gform_wrapper.gravity-theme .gfield {
       width: 100%;
   }

   footer .gform_wrapper.gravity-theme #field_submit {
       min-width: 115px;
       width: 115px;
   }

   footer .gform_wrapper.gravity-theme #field_submit input {
       height: 50px;
       padding: 16px 20px;
       background: transparent;
       border: 2px solid var(--global-palette1);
       border-radius: 0;
       color: var(--global-palette1);
       font-weight: 600;
       text-transform: uppercase;
       line-height: 1;
   }

   footer .gform_wrapper.gravity-theme input[type="email"] {
       height: 50px;
       border-radius: 0;
   }

   footer .gform_wrapper.gravity-theme .gform_footer {
       padding: 0;
       margin: 0;
   }


   /* ==========================================================================
      8. Gravity Forms – Subscribe Inline Form
      ========================================================================== */

   @media screen and (min-width: 800px) {
       .form-subscribe_wrapper {
           width: 640px;
           max-width: 100%;
       }
   }

   .gform_wrapper.gravity-theme .form-subscribe .gform_fields {
       display: flex;
       column-gap: var(--wp--preset--spacing--xxs);
   }

   .form-subscribe .ginput_container_email,
   .form-subscribe .ginput_container_email input,
   .form-subscribe #field_submit input {
       height: 52px;
   }

   @media screen and (min-width: 768px) {
       .gform_wrapper.gravity-theme .form-subscribe .gform_fields {
           column-gap: var(--wp--preset--spacing--sm);
       }

       .form-subscribe .ginput_container_email,
       .form-subscribe .ginput_container_email input,
       .form-subscribe #field_submit input {
           height: 58px;
       }
   }

   .gform_wrapper.gravity-theme .form-subscribe .gform_footer {
       display: none;
   }

   .form-subscribe .ginput_container_email input {
       padding-left: 15px !important;
       padding-right: 15px !important;
   }

   .form-subscribe .gfield--type-email {
       width: 100%;
   }

   .form-subscribe .ginput_container_email {
       flex-grow: 1;
   }

   .gform_wrapper.gravity-theme .form-subscribe #field_submit {
       flex-shrink: 0;
       align-self: start;
   }

   .gform_wrapper.gravity-theme .form-subscribe #field_submit input {
       line-height: 1;
   }

   .form-subscribe--white-btn #field_submit input {
       border: 2px solid var(--global-palette1);
       background-color: var(--global-palette9);
       color: var(--global-palette1);
   }

   .form-subscribe--transparent-btn #field_submit input {
       border: 2px solid var(--global-palette9);
       background-color: transparent;
       color: var(--global-palette9);
   }

   .form-subscribe--white-btn #field_submit input:hover,
   .form-subscribe--white-btn #field_submit input:focus,
   .form-subscribe--transparent-btn #field_submit input:hover,
   .form-subscribe--transparent-btn #field_submit input:focus {
       border-color: var(--global-palette5);
       background-color: var(--global-palette5);
       color: var(--global-palette9);
   }

   /** End Gravity Forms - Subscribe Form Styles */

   /* ==========================================================================
      Multistep Forms
      ========================================================================== */

    body .gform_wrapper.gravity-theme:has(.gform_page) .gform_validation_errors {
        max-width: 1088px;
        margin: 0 auto 30px;
    }

    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield_radio {
        justify-content: center;
        gap: 30px;
    }
    
    body .gform_wrapper.gravity-theme .gf_page_steps {
        position: relative;
        display: flex;
        justify-content: space-between;
        column-gap: 20px;
        row-gap: 20px;
        max-width: 1088px;
        margin: 0 auto 30px;
    }
    
    body .gform_wrapper.gravity-theme .gf_page_steps::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
        display: block;
        width: calc(100% - 135px);
        height: 2px;
        background-color: var(--global-palette1);
        opacity: .5;
    }

    @media screen and (max-width: 767px) {
        .gform_wrapper.gravity-theme .gf_page_steps::before {
            width: 100%;
        }
    }
    
    body .gform_wrapper.gravity-theme .gf_step {
        position: relative;
        z-index: 1;
        margin: 0;
    }
    
    body .gform_wrapper.gravity-theme .gf_step_number,
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::before,
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::after {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 46px;
        height: 46px;
        border-radius: 0;
        border: 2px solid rgba(37, 71, 73, 0.50);
        background-color: var(--global-palette8);
        font-size: var(--global-kb-font-size-xl);
        color: rgba(37, 71, 73, 0.50);
        margin: 0 auto 16px;
    }
    
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::before,
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::after {
        width: 42px;
        height: 42px;
    }
    
    body .gform_wrapper.gravity-theme .gf_step_active .gf_step_number,
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number,
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::before,
    body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::after {
        background-color: var(--global-palette1);
        color: var(--global-palette9);
        border-color: var(--global-palette1);
    }

    @media screen and (max-width: 767px) {
        body .gform_wrapper.gravity-theme .gf_page_steps {
            column-gap: 10px;
        }
        
        body .gform_wrapper.gravity-theme .gf_step_number,
        body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::before,
        body .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::after {
            margin-bottom: 0;
        }
        
    
        body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield_radio {
            row-gap: 10px;
        }

        body .gform_wrapper.gravity-theme .gf_page_steps::before {
            width: 100%;
        }
    }

    body .gform_wrapper.gravity-theme .gf_page_steps::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        display: block;
        width: 100vw;
        max-width: min(calc(100vw - 2 * var(--wp--preset--spacing--lg, 50px )), 1414px );
        border-bottom: 1px solid rgba(37, 71, 73, 0.20);
    }

    @media screen and (max-width: 1024px) {
        .gform_wrapper.gravity-theme .gf_page_steps::after {
            max-width: calc(100vw - 2 * var(--global-kb-spacing-xs, 1rem));
        }
    }
    
    body .gform_wrapper.gravity-theme .gf_step_label {
        padding-left: 0;
        font-size: var(--global-kb-font-size-md);
        text-align: center;
        text-transform: uppercase;
    }
    
    @media screen and (max-width: 767px) {
        body .gform_wrapper.gravity-theme .gf_step_label {
            display: none;
        }
    }
    
    body .gform_page {
        padding-top: 30px;
    }
    
    body .gform_wrapper.gravity-theme .gform_page h2 {
        margin-bottom: 10px;
        font-size: var(--global-kb-font-size-xxl);
        text-align: center;
    }
    
    @media screen and (min-width: 768px) {
        body .gform_page {
            padding-top: 60px;
        }
    }
    
    body .gform_wrapper.gravity-theme .gform_page:first-child .gform_page_footer .gform_next_button {
        display: block;
        margin: 0 auto;
    }
    
    
    @media screen and (min-width: 768px) {
        body .gform_wrapper.gravity-theme .gform_fields {
           gap: 30px; 
        }
    }
    
    body .gform_wrapper.gravity-theme .gform_page:not(:first-child) .gform_page_fields,
    body .gform_wrapper.gravity-theme .gform_page:not(:first-child) .gform-page-footer {
        max-width: 594px;
        margin: 0 auto;
    }
    
    body .gform_wrapper.gravity-theme .gform_page:not(:first-child) .gform-page-footer {
        margin-top: 24px;
        display: flex;
        justify-content: space-between;
    }
    
    body .gform_wrapper.gravity-theme .gform_page .gform-page-footer {
        position: relative;
    }
    
    body .gform_wrapper.gravity-theme .gform_page:first-child .gform-loader {
        position: absolute;
        left: calc(50% + 70px);
        bottom: 20px;
    }
    
    body .gform_wrapper.gravity-theme .gform_page:not(:first-child) .gform-loader {
        position: absolute;
        left: calc(50% - 10px); 
    }
    
    
    body .post-type-archive-gallery-cpt .fs-dropdown {
        border: 1px solid #ddd;
    }
    
    body .gform_wrapper.gravity-theme .ginput_complex label {
        font-weight: 600;
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice {
        background-color: var(--global-palette9);
        margin: 0 0 24px;
        padding: 8% 30px;
        inline-size: auto;
        max-inline-size: unset;
        min-inline-size: unset;
        flex-basis: calc((100% - 2 * 30px) / 3);
        cursor: pointer;
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield-choice-image {
        object-fit: contain;
        block-size: auto !important;
        height: 64px !important;
        width: auto;
        margin: 0 auto;
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield-choice-image-wrapper {
        aspect-ratio: auto;
        margin-bottom: 30px;
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice label {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 100%;
        font-size: var(--global-kb-font-size-xl);
        font-weight: 500;
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield_radio input {
        display: none;
    }
    
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button {
        padding-right: 44px;
        background-position: right 16px center;
        background-repeat: no-repeat;
        background-size: 18px 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='13' viewBox='0 0 17 13' fill='none'%3E%3Cpath d='M15.7188 7.125L10.7188 12.125L10 12.8125L8.59375 11.4062C8.625 11.375 9.96875 10.0312 12.5938 7.40625H0V5.40625H12.5938C9.96875 2.78125 8.625 1.4375 8.59375 1.40625L10 0L10.7188 0.6875L15.7188 5.6875L16.4375 6.40625L15.7188 7.125Z' fill='white'/%3E%3C/svg%3E");
    
    }
    
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button:hover,
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='13' viewBox='0 0 17 13' fill='none'%3E%3Cpath d='M15.7188 7.125L10.7188 12.125L10 12.8125L8.59375 11.4062C8.625 11.375 9.96875 10.0312 12.5938 7.40625H0V5.40625H12.5938C9.96875 2.78125 8.625 1.4375 8.59375 1.40625L10 0L10.7188 0.6875L15.7188 5.6875L16.4375 6.40625L15.7188 7.125Z' fill='%23254749'/%3E%3C/svg%3E");
    }
    
    
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button {
        background-color: transparent;
        color: var(--global-palette1);
        padding-left: 44px;
        background-position: left 16px center;
        background-repeat: no-repeat;
        background-size: 18px 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='13' viewBox='0 0 17 13' fill='none'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16' fill='none'%3E%3Cpath d='M1.3125 7.28125L6.3125 2.28125L7 1.59375L8.4375 3C8.375 3.03125 7.0625 4.375 4.4375 7H17V9H4.4375C7.0625 11.625 8.375 12.9688 8.4375 13L7 14.4062L6.3125 13.7188L1.3125 8.71875L0.59375 8L1.3125 7.28125Z' fill='%23254749'/%3E%3C/svg%3E%3C/svg%3E");
    }
    
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button:hover,
    body.gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button:focus {
        color: var(--global-palette9);
        background-color: var(--global-palette1);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='13' viewBox='0 0 17 13' fill='none'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16' fill='none'%3E%3Cpath d='M1.3125 7.28125L6.3125 2.28125L7 1.59375L8.4375 3C8.375 3.03125 7.0625 4.375 4.4375 7H17V9H4.4375C7.0625 11.625 8.375 12.9688 8.4375 13L7 14.4062L6.3125 13.7188L1.3125 8.71875L0.59375 8L1.3125 7.28125Z' fill='%23ffffff'/%3E%3C/svg%3E%3C/svg%3E");
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice:where(:has(input:checked)) {
        background-color: var(--global-palette1);
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice:where(:has(input:checked)) label {
        color: var(--global-palette9);
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice:where(:has(input:checked)) .gfield-choice-image {
        filter: brightness(0) invert(1);
    }
    
    body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice:where(:has(input:checked))::after {
        display: none;
    }
    
    @media (min-width: 641px) {
        body .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) fieldset:not([style*="display:none"]):not(.ginput_full), body .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) span:not([style*="display:none"]):not(.ginput_full) {
            padding-right: 15px;
        }
        body .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) fieldset:not([style*="display:none"]):not(.ginput_full)~span:not(.ginput_full), body .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) span:not([style*="display:none"]):not(.ginput_full)~span:not(.ginput_full) {
            padding-left: 15px;
        }
    }
    
    
    @media screen and (max-width: 1024px) {
        body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice {
            flex-basis: calc((100% - 30px) / 2);
        }
    }
    
    @media screen and (max-width: 767px) {
        body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice {
            flex-basis: 100%;
            margin-bottom: 0;
        }
        
        body .gform_wrapper.gravity-theme .ginput_container_image_choice .gchoice .gfield-image-choice-wrapper-outer {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield-choice-image-wrapper {
            margin-bottom: 0;
        }
    }
    
    @media screen and (max-width: 500px) {
        body .gform_wrapper.gravity-theme .ginput_container_image_choice .gfield-choice-image {
            height: 24px !important;
        }
    }
    
    body .gform_wrapper.gravity-theme .gfield input[type="file"] {
        background-color: transparent;
    }
    
    
    body .ginput_container_fileupload {
        padding: 24px 16px;
        border: 2px dashed var(--global-palette1);
        background-color: rgba(37, 71, 73, 0.10);
    }
    
    body .ginput_container_fileupload ::-webkit-file-upload-button {
        background: var(--global-palette1);
        color: var(--global-palette9);
        border: none;
        padding: 8px 10px;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 1rem;
        font-family: var(--global-body-font-family);
        margin-right: 20px;
    }
    
    body .gform_wrapper.gravity-theme .gfield-choice-input {
        min-height: unset !important; 
        vertical-align: top;
        margin-top: 8px;
        margin-right: 10px;
    }
    
    body .gform_wrapper.gravity-theme .gfield-choice-input+label {
        font-weight: 400 !important;
    }
    
    body .ts-wrapper:not(.form-control):not(.form-select) {
        min-height: 50px;
    }
    
    body .gform_wrapper.gravity-theme .gform_delete_file:hover,
    body .gform_wrapper.gravity-theme .gform_delete_file:focus {
        color: var(--global-palette1);
        box-shadow: none;
    }
    
    body .gform_confirmation_message {
        text-align: center;
    }
