/* 
 * Custom CSS for Gravity Forms - Compatible with Legacy and Modern Markup
 * This file ensures styles work both with and without legacy markup enabled
 */

/* Support for both .gform_body and direct .gform_fields structures */
.page-content div.gform_wrapper .gform_body .gform_fields,
.page-content div.gform_wrapper .gform_body ul.gform_fields,
.page-content div.gform_wrapper > .gform_fields {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields,
    .page-content div.gform_wrapper .gform_body ul.gform_fields,
    .page-content div.gform_wrapper > .gform_fields {
        margin: 0 -20px;
    }
}

/* Field containers - support both .gfield (modern) and li.gfield (legacy) */
.page-content div.gform_wrapper .gform_body .gform_fields .gfield,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield,
.page-content div.gform_wrapper > .gform_fields .gfield,
.page-content div.gform_wrapper > .gform_fields li.gfield {
    margin-bottom: 31px;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .gfield,
    .page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield,
    .page-content div.gform_wrapper > .gform_fields .gfield,
    .page-content div.gform_wrapper > .gform_fields li.gfield {
        margin-bottom: 24px;
    }
}

/* Input styles - the main fix for legacy vs modern markup */
.page-content div.gform_wrapper .gform_body .gform_fields .gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper .gform_body .gform_fields .gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields .gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields .gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields li.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields li.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']) {
    height: 56px;
    padding: 1px 21px 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    color: #0068b3;
    text-overflow: ellipsis;
    border-width: 0 0 1px;
    border-color: #0068b3;
    border-radius: 0;
    background-color: rgba(0, 104, 179, 0.1);
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper .gform_body .gform_fields .gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper > .gform_fields .gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper > .gform_fields .gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper > .gform_fields li.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
    .page-content div.gform_wrapper > .gform_fields li.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']) {
        height: 48px;
        padding: 2px 16px;
        font-size: 16px;
        line-height: 16px;
    }
}

/* Focus state */
.page-content div.gform_wrapper .gform_body .gform_fields .gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper .gform_body .gform_fields .gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper > .gform_fields .gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper > .gform_fields .gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper > .gform_fields li.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus,
.page-content div.gform_wrapper > .gform_fields li.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']):focus {
    color: #ffffff;
    background-color: #0068b3;
}

/* Error state */
.page-content div.gform_wrapper .gform_body .gform_fields .gfield_error.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper .gform_body .gform_fields .gfield_error.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield_error.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield_error.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields .gfield_error.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields .gfield_error.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields li.gfield_error.gfield div.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']),
.page-content div.gform_wrapper > .gform_fields li.gfield_error.gfield div.ginput_complex.ginput_container input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='image']):not([type='file']) {
    color: #0068b3;
    border-color: #ea001f;
    background-color: rgba(234, 0, 31, 0.1);
}

/* Field labels */
.page-content div.gform_wrapper .gform_body .gform_fields .gfield_label,
.page-content div.gform_wrapper .gform_body ul.gform_fields .gfield_label,
.page-content div.gform_wrapper > .gform_fields .gfield_label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .gfield_label,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .gfield_label,
    .page-content div.gform_wrapper > .gform_fields .gfield_label {
        font-size: 14px;
        line-height: 16px;
        letter-spacing: 0.4px;
    }
}

/* Textarea styles */
.page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea,
.page-content div.gform_wrapper > .gform_fields .gfield textarea,
.page-content div.gform_wrapper > .gform_fields li.gfield textarea {
    padding: 10px 15px 14px;
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    color: #0068b3;
    border-width: 0 0 1px;
    border-color: #0068b3;
    border-radius: 0;
    background-color: rgba(0, 104, 179, 0.1);
}

.page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea::-webkit-input-placeholder,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea::-webkit-input-placeholder,
.page-content div.gform_wrapper > .gform_fields .gfield textarea::-webkit-input-placeholder,
.page-content div.gform_wrapper > .gform_fields li.gfield textarea::-webkit-input-placeholder {
    font-style: italic;
    color: rgba(0, 104, 179, 0.5);
}

.page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea:-moz-placeholder,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea:-moz-placeholder,
.page-content div.gform_wrapper > .gform_fields .gfield textarea:-moz-placeholder,
.page-content div.gform_wrapper > .gform_fields li.gfield textarea:-moz-placeholder {
    font-style: italic;
    color: rgba(0, 104, 179, 0.5);
}

.page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea::-moz-placeholder,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea::-moz-placeholder,
.page-content div.gform_wrapper > .gform_fields .gfield textarea::-moz-placeholder,
.page-content div.gform_wrapper > .gform_fields li.gfield textarea::-moz-placeholder {
    font-style: italic;
    color: rgba(0, 104, 179, 0.5);
}

.page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea:-ms-input-placeholder,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea:-ms-input-placeholder,
.page-content div.gform_wrapper > .gform_fields .gfield textarea:-ms-input-placeholder,
.page-content div.gform_wrapper > .gform_fields li.gfield textarea:-ms-input-placeholder {
    font-style: italic;
    color: rgba(0, 104, 179, 0.5);
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea,
    .page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea,
    .page-content div.gform_wrapper > .gform_fields .gfield textarea,
    .page-content div.gform_wrapper > .gform_fields li.gfield textarea {
        padding: 12px 16px;
        font-size: 16px;
        line-height: 24px;
    }
}

.page-content div.gform_wrapper .gform_body .gform_fields .gfield textarea:focus,
.page-content div.gform_wrapper .gform_body ul.gform_fields li.gfield textarea:focus,
.page-content div.gform_wrapper > .gform_fields .gfield textarea:focus,
.page-content div.gform_wrapper > .gform_fields li.gfield textarea:focus {
    color: #ffffff;
    background-color: #0068b3;
}

/* Select2 container styles */
@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .ginput_container,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .ginput_container,
    .page-content div.gform_wrapper > .gform_fields .ginput_container {
        max-width: none;
    }
}

/* Select2 container select styles */
@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .ginput_container.ginput_container_select,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .ginput_container.ginput_container_select,
    .page-content div.gform_wrapper > .gform_fields .ginput_container.ginput_container_select {
        max-width: none;
    }
}

.page-content div.gform_wrapper .gform_body .gform_fields .gfield_label + .ginput_container.ginput_container_select,
.page-content div.gform_wrapper .gform_body ul.gform_fields .gfield_label + .ginput_container.ginput_container_select,
.page-content div.gform_wrapper > .gform_fields .gfield_label + .ginput_container.ginput_container_select {
    margin-top: 16px;
}

/* Select2 container base styles */
.page-content div.gform_wrapper .gform_body .gform_fields .select2-container,
.page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container,
.page-content div.gform_wrapper > .gform_fields .select2-container {
    font-size: 18px;
    line-height: 32px;
    color: #000;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .select2-container,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container,
    .page-content div.gform_wrapper > .gform_fields .select2-container {
        font-size: 18px;
        line-height: 32px;
    }
}

/* Select2 selection styles */
.page-content div.gform_wrapper .gform_body .gform_fields .select2-selection.select2-selection--single,
.page-content div.gform_wrapper .gform_body ul.gform_fields .select2-selection.select2-selection--single,
.page-content div.gform_wrapper > .gform_fields .select2-selection.select2-selection--single {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 0 0 1px;
    border-color: #000;
    border-radius: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .select2-selection.select2-selection--single,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .select2-selection.select2-selection--single,
    .page-content div.gform_wrapper > .gform_fields .select2-selection.select2-selection--single {
        padding-bottom: 8px;
    }
}

/* Select2 rendered text styles */
.page-content div.gform_wrapper .gform_body .gform_fields .select2-container--default .select2-selection--single .select2-selection__rendered,
.page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container--default .select2-selection--single .select2-selection__rendered,
.page-content div.gform_wrapper > .gform_fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 1px;
    font-size: 18px;
    line-height: 32px;
    color: #000;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .select2-container--default .select2-selection--single .select2-selection__rendered,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container--default .select2-selection--single .select2-selection__rendered,
    .page-content div.gform_wrapper > .gform_fields .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 18px;
        line-height: 32px;
    }
}

/* Select2 arrow styles */
.page-content div.gform_wrapper .gform_body .gform_fields .select2-container--default .select2-selection--single .select2-selection__arrow b,
.page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container--default .select2-selection--single .select2-selection__arrow b,
.page-content div.gform_wrapper > .gform_fields .select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: -4px;
    margin-left: -1px;
    border-width: 6px 6px 0 6px;
    border-color: #0068b3 transparent transparent transparent;
    transition: transform 0.2s;
    top: 22px !important;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .select2-container--default .select2-selection--single .select2-selection__arrow b,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container--default .select2-selection--single .select2-selection__arrow b,
    .page-content div.gform_wrapper > .gform_fields .select2-container--default .select2-selection--single .select2-selection__arrow b {
        margin-top: -6px;
        margin-left: -2px;
    }
}

.page-content div.gform_wrapper .gform_body .gform_fields .select2-container--open .select2-selection__arrow b,
.page-content div.gform_wrapper .gform_body ul.gform_fields .select2-container--open .select2-selection__arrow b,
.page-content div.gform_wrapper > .gform_fields .select2-container--open .select2-selection__arrow b {
    transform: rotate(-180deg);
}

/* Select2 complex input styles */
.page-content div.gform_wrapper .gform_body .gform_fields .ginput_complex .select2-selection--single,
.page-content div.gform_wrapper .gform_body ul.gform_fields .ginput_complex .select2-selection--single,
.page-content div.gform_wrapper > .gform_fields .ginput_complex .select2-selection--single {
    min-height: 37px;
}

.page-content div.gform_wrapper .gform_body .gform_fields .ginput_complex .select2-container,
.page-content div.gform_wrapper .gform_body ul.gform_fields .ginput_complex .select2-container,
.page-content div.gform_wrapper > .gform_fields .ginput_complex .select2-container {
    margin-top: 20px;
}

@media (max-width: 991px) {
    .page-content div.gform_wrapper .gform_body .gform_fields .ginput_complex .select2-container,
    .page-content div.gform_wrapper .gform_body ul.gform_fields .ginput_complex .select2-container,
    .page-content div.gform_wrapper > .gform_fields .ginput_complex .select2-container {
        margin-top: 12px;
    }
}

/* Select2 in clear-multi */
.page-content div.gform_wrapper .gform_body .gform_fields .clear-multi .select2-container,
.page-content div.gform_wrapper .gform_body ul.gform_fields .clear-multi .select2-container,
.page-content div.gform_wrapper > .gform_fields .clear-multi .select2-container {
    min-width: 20px;
    margin-top: -20px;
}

/* Select2 dropdown styles */
.select2-dropdown.page-content-form {
    border: none !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .select2-dropdown.page-content-form {
        border-radius: 0;
    }
}

.select2-dropdown.page-content-form .select2-results__options {
    padding: 3px 0 5px;
}

@media (max-width: 991px) {
    .select2-dropdown.page-content-form .select2-results__options {
        padding: 7px 0 2px;
    }
}

.select2-dropdown.page-content-form .select2-results__option {
    padding: 7px 17px;
    font-size: 20px;
    font-weight: 300;
    line-height: 24px;
    color: #000;
}

@media (max-width: 991px) {
    .select2-dropdown.page-content-form .select2-results__option {
        padding: 7px 7px 7px 17px;
        font-size: 16px;
        line-height: 24px;
    }
}

.select2-dropdown.page-content-form .select2-results__option--highlighted[aria-selected='false'] {
    color: #0068b3;
    background-color: rgba(0, 104, 179, 0.1) !important;
}

.select2-dropdown.page-content-form .select2-results__option[aria-selected='true'] {
    color: #0068b3;
    background: transparent;
}

.gsection_title {
    text-transform: uppercase;
  }