.ebe-credit-application-wrap {
    max-width: 1050px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

.ebe-credit-application {
    background: #fff;
    border: 1px solid #d7d7d7;
    padding: 18px;
}

.ebe-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid #111;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.ebe-logo-block img {
    max-width: 265px;
    height: auto;
    display: block;
}

.ebe-title-block {
    text-align: right;
    flex: 1;
}

.ebe-title-block h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 500;
}

.ebe-title-block p {
    margin: 0;
    font-size: 13px;
}

.ebe-intro {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 18px 0;
}

.ebe-panel {
    border: 1px solid #111;
    margin: 18px 0;
    padding: 14px;
}

.ebe-panel h2 {
    background: #000;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    margin: -14px -14px 14px -14px;
    padding: 7px 10px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ebe-panel h3 {
    font-size: 16px;
    margin: 16px 0 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.ebe-panel h4 {
    font-size: 14px;
    margin: 0 0 8px;
}

.ebe-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
}

.ebe-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ebe-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ebe-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ebe-credit-application label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.ebe-credit-application .ebe-required-marker {
    color: #b00020;
    font-weight: 700;
    margin-left: 4px;
    margin-right: 2px;
}

.ebe-credit-application input[type="text"],
.ebe-credit-application input[type="email"],
.ebe-credit-application input[type="tel"],
.ebe-credit-application input[type="number"],
.ebe-credit-application select,
.ebe-credit-application textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    border: 1px solid #777;
    border-radius: 0;
    padding: 9px 10px;
    font-size: 15px;
    background: #fff;
    color: #111;
}

.ebe-credit-application textarea {
    resize: vertical;
}

.ebe-radio-row,
.ebe-checkboxes {
    display: grid;
    gap: 10px;
}

.ebe-radio-row label,
.ebe-checkboxes label,
.ebe-agree-label {
    font-weight: 400;
    font-size: 14px;
}

.ebe-radio-row input,
.ebe-checkboxes input,
.ebe-agree-label input {
    margin-right: 8px;
}

.ebe-conditional-section {
    display: none;
    margin-top: 16px;
}

.ebe-conditional-section.is-active {
    display: block;
}

.ebe-subpanel {
    border: 1px solid #b7b7b7;
    padding: 12px;
    margin: 12px 0;
    background: #fafafa;
}

.ebe-note {
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    margin: 8px 0 12px;
}

.ebe-payment-banner {
    border: 2px solid #111;
    background: #f4f4f4;
    padding: 10px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
}

.ebe-terms-panel {
    background: #fffdf5;
}

.ebe-download-button,
.ebe-submit-button {
    display: inline-block;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    padding: 11px 18px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.ebe-download-button:hover,
.ebe-submit-button:hover {
    background: #333;
    color: #fff !important;
}

.ebe-download-button.disabled,
.ebe-download-button[aria-disabled="true"] {
    background: #777;
    border-color: #777;
    cursor: not-allowed;
    pointer-events: none;
}

.ebe-agree-label {
    display: block;
    padding: 12px;
    border: 1px solid #111;
    background: #fff;
    margin-top: 10px;
}

.ebe-agree-label.disabled {
    color: #777;
    border-color: #aaa;
    background: #f5f5f5;
}

.ebe-download-status {
    font-size: 13px;
    color: #333;
}

.ebe-submit-row {
    text-align: right;
    margin-top: 22px;
}

.ebe-submit-button {
    font-size: 16px;
}

.ebe-form-message {
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #2e7d32;
    background: #eef8ef;
}

.ebe-form-success {
    color: #1b5e20;
}

.ebe-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 850px) {
    .ebe-form-header {
        display: block;
        text-align: left;
    }
    .ebe-title-block {
        text-align: left;
        margin-top: 12px;
    }
    .ebe-grid-2,
    .ebe-grid-3,
    .ebe-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* v1.0.1 button hit-area fix
   Some WordPress themes add pseudo-elements, transforms, or overlapping footer spacing
   that can partially cover native buttons. These scoped rules reset the submit control
   and keep the entire button area clickable/tappable. */
.ebe-credit-application {
    position: relative;
    overflow: visible;
}

.ebe-credit-application .ebe-submit-row {
    position: relative !important;
    z-index: 9999 !important;
    clear: both;
    overflow: visible !important;
    min-height: 58px;
    padding: 10px 0 46px;
    margin: 22px 0 0;
    isolation: isolate;
}

.ebe-credit-application button.ebe-submit-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 235px;
    width: auto;
    line-height: 1.25 !important;
    padding: 13px 22px !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: visible !important;
    touch-action: manipulation;
}

.ebe-credit-application button.ebe-submit-button::before,
.ebe-credit-application button.ebe-submit-button::after,
.ebe-credit-application .ebe-submit-row::before,
.ebe-credit-application .ebe-submit-row::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
}

@media (max-width: 850px) {
    .ebe-credit-application .ebe-submit-row {
        text-align: left;
        padding-bottom: 70px;
    }
    .ebe-credit-application button.ebe-submit-button {
        width: 100%;
        min-width: 0;
    }
}

/* v1.0.2 phone and date validation */
.ebe-credit-application input.ebe-field-invalid,
.ebe-credit-application select.ebe-field-invalid,
.ebe-credit-application textarea.ebe-field-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 1px #b00020;
}

.ebe-field-error {
    color: #b00020;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    margin-top: 4px;
}

/* v1.0.5 configurable field tips / v1.0.6 configurable required fields */
.ebe-field-tip-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
    z-index: 2;
}

.ebe-field-tip-button {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 1px solid #333;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    padding: 0 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ebe-field-tip-button:hover,
.ebe-field-tip-button:focus {
    background: #111;
    color: #fff;
    outline: none;
}

.ebe-field-tip-text {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 285px;
    max-width: 80vw;
    padding: 10px 12px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    z-index: 10050;
}

.ebe-field-tip-wrap:hover .ebe-field-tip-text,
.ebe-field-tip-wrap:focus-within .ebe-field-tip-text,
.ebe-field-tip-wrap.is-open .ebe-field-tip-text {
    display: block;
}

.ebe-checkboxes .ebe-field-tip-wrap,
.ebe-agree-label .ebe-field-tip-wrap,
.ebe-radio-row .ebe-field-tip-wrap {
    margin-left: 5px;
}

@media (max-width: 850px) {
    .ebe-field-tip-text {
        width: 240px;
    }
}

/* v1.0.7 date auto-formatting uses existing date input styling. */


/* v1.0.8 smaller field-tip icons and very light blue required-field highlighting */
.ebe-credit-application input[required]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.ebe-credit-application select[required],
.ebe-credit-application textarea[required] {
    background-color: #f3fbff;
    border-color: #9fcbe8;
}

.ebe-credit-application input[required]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):focus,
.ebe-credit-application select[required]:focus,
.ebe-credit-application textarea[required]:focus {
    background-color: #f3fbff;
    border-color: #6aaed6;
    box-shadow: 0 0 0 2px rgba(106, 174, 214, .18);
    outline: none;
}

.ebe-credit-application input.ebe-field-invalid,
.ebe-credit-application select.ebe-field-invalid,
.ebe-credit-application textarea.ebe-field-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 1px #b00020;
}

.ebe-credit-application label:has(input[type="checkbox"][required]:not(:disabled)),
.ebe-credit-application label:has(input[type="radio"][required]:not(:disabled)) {
    background-color: #f3fbff;
    border-left: 3px solid #b9def3;
    padding-left: 8px;
}

.ebe-credit-application .ebe-agree-label:has(input[type="checkbox"][required]:not(:disabled)) {
    background-color: #f3fbff;
}

/* v1.0.9 cache-safe/Avada-safe overrides for anonymous frontend visitors */
body .ebe-credit-application .ebe-field-tip-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
    z-index: 2;
}

body .ebe-credit-application .ebe-field-tip-button {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    border: 1px solid #333 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    text-align: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .ebe-credit-application .ebe-field-tip-button:hover,
body .ebe-credit-application .ebe-field-tip-button:focus {
    background: #111 !important;
    color: #fff !important;
    outline: none !important;
}

body .ebe-credit-application .ebe-field-tip-text {
    display: none !important;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 285px;
    max-width: 80vw;
    padding: 10px 12px;
    border: 1px solid #111;
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-align: left;
    white-space: normal;
    z-index: 10050;
}

body .ebe-credit-application .ebe-field-tip-wrap:hover .ebe-field-tip-text,
body .ebe-credit-application .ebe-field-tip-wrap:focus-within .ebe-field-tip-text,
body .ebe-credit-application .ebe-field-tip-wrap.is-open .ebe-field-tip-text {
    display: block !important;
}

body .ebe-credit-application input.ebe-required-field-highlight:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
body .ebe-credit-application input[required]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
body .ebe-credit-application select.ebe-required-field-highlight,
body .ebe-credit-application select[required],
body .ebe-credit-application textarea.ebe-required-field-highlight,
body .ebe-credit-application textarea[required] {
    background-color: #f3fbff !important;
    border-color: #9fcbe8 !important;
}

body .ebe-credit-application input.ebe-required-field-highlight:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):focus,
body .ebe-credit-application input[required]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):focus,
body .ebe-credit-application select.ebe-required-field-highlight:focus,
body .ebe-credit-application select[required]:focus,
body .ebe-credit-application textarea.ebe-required-field-highlight:focus,
body .ebe-credit-application textarea[required]:focus {
    background-color: #f3fbff !important;
    border-color: #6aaed6 !important;
    box-shadow: 0 0 0 2px rgba(106, 174, 214, .18) !important;
    outline: none !important;
}

body .ebe-credit-application label.ebe-choice-required-highlight {
    background-color: #f3fbff !important;
    border-left: 3px solid #b9def3 !important;
    padding-left: 8px !important;
}


/* v1.0.10 Business Structure section-level required highlighting and header help tip */
body .ebe-credit-application .ebe-business-structure-panel.ebe-section-required-highlight {
    background-color: #f3fbff !important;
    border-color: #9fcbe8 !important;
    box-shadow: inset 0 0 0 1px #d8effc !important;
}

body .ebe-credit-application .ebe-business-structure-panel.ebe-section-required-highlight h2,
body .ebe-credit-application .ebe-business-structure-panel h2 {
    background: #000 !important;
    color: #fff !important;
}

body .ebe-credit-application .ebe-business-structure-panel .ebe-radio-row label,
body .ebe-credit-application .ebe-business-structure-panel .ebe-radio-row label.ebe-choice-required-highlight {
    background: transparent !important;
    border-left: 0 !important;
    padding-left: 0 !important;
}

body .ebe-credit-application .ebe-business-structure-panel .ebe-required-field-highlight[type="radio"] {
    background-color: transparent !important;
}

body .ebe-credit-application h2 .ebe-field-tip-wrap {
    margin-left: 8px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body .ebe-credit-application h2 .ebe-field-tip-text {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

body .ebe-credit-application h2 .ebe-field-tip-button {
    vertical-align: middle !important;
}

body .ebe-credit-application .ebe-section-required-marker {
    color: #fff !important;
    font-weight: 700;
    margin-left: 5px;
}


/* v1.0.11 Declaration and Authority required-section highlighting */
body .ebe-credit-application .ebe-declaration-authority-panel {
    background-color: #f3fbff !important;
    border-color: #9fcbe8 !important;
    box-shadow: inset 0 0 0 1px #d8effc !important;
}

body .ebe-credit-application .ebe-declaration-authority-panel h2 {
    background: #000 !important;
    color: #fff !important;
}

body .ebe-credit-application .ebe-declaration-authority-panel .ebe-checkboxes {
    background-color: #f3fbff !important;
}

body .ebe-credit-application .ebe-declaration-authority-panel .ebe-checkboxes label.ebe-declaration-required-label,
body .ebe-credit-application .ebe-declaration-authority-panel .ebe-checkboxes label.ebe-choice-required-highlight {
    background-color: #f3fbff !important;
    border-left: 3px solid #b9def3 !important;
    padding: 8px 8px 8px 10px !important;
    margin: 0 !important;
}

body .ebe-credit-application .ebe-declaration-authority-panel .ebe-checkboxes label.ebe-marketing-consent-label {
    background-color: #fff !important;
    border-left: 0 !important;
    padding: 8px 10px !important;
    margin: 2px 0 0 !important;
    box-shadow: inset 0 0 0 1px #e5e5e5 !important;
}


/* v1.0.12 Terms and Conditions agreement validation message */
body .ebe-credit-application .ebe-agree-label.ebe-terms-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 1px #b00020 !important;
    background: #fff5f5 !important;
}

body .ebe-credit-application .ebe-agree-label.ebe-terms-invalid input {
    outline: 2px solid #b00020 !important;
    outline-offset: 2px !important;
}

body .ebe-credit-application .ebe-terms-error {
    color: #b00020 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
}

body .ebe-credit-application .ebe-terms-error[hidden] {
    display: none !important;
}
