/*------------------ 
Front End Form CSS
------------------*/

.centrex-app-container form {
    margin-bottom: 0
}

.centrex-app-container .rendered-form {
    overflow: hidden;
}

.centrex-app-container input[type=email],
.centrex-app-container input[type=date],
.centrex-app-container input[type=search],
.centrex-app-container input[type=number],
.centrex-app-container input[type=text],
.centrex-app-container input[type=tel],
.centrex-app-container input[type=url],
.centrex-app-container input[type=password],
.centrex-app-container textarea,
.centrex-app-container select.form-control {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 0 .75em;
    height: 2.507em;
    font-size: .97em;
    border-radius: 4px;
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    background-color: #fff;
    color: #333;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
    -webkit-transition: color .3s, border .3s, background .3s, opacity .3s;
    -o-transition: color .3s, border .3s, background .3s, opacity .3s;
    transition: color .3s, border .3s, background .3s, opacity .3s
}

.centrex-app-container input:hover, .centrex-app-container textarea:hover, .centrex-app-container select:hover {
    -webkit-box-shadow: inset 0 -1.8em 1em 0 rgba(0, 0, 0, 0);
    box-shadow: inset 0 -1.8em 1em 0 rgba(0, 0, 0, 0)
}

.centrex-app-container input[type=email], .centrex-app-container input[type=search], .centrex-app-container input[type=number], .centrex-app-container input[type=url], .centrex-app-container input[type=tel], .centrex-app-container input[type=text], .centrex-app-container textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

.centrex-app-container textarea {
    padding-top: .7em;
    min-height: 120px
}

.centrex-app-container input[type=email]:focus, .centrex-app-container input[type=search]:focus, .centrex-app-container input[type=number]:focus, .centrex-app-container input[type=tel]:focus, .centrex-app-container input[type=text]:focus, .centrex-app-container input[type=password]:focus, .centrex-app-container textarea:focus, .centrex-app-container select:focus {
    -webkit-box-shadow: 0 0 5px #ccc;
    box-shadow: 0 0 5px #ccc;
    opacity: 1 !important;
    outline: 0;
    color: #333;
    background-color: #fff
}

.centrex-app-container label, .centrex-app-container legend {
    display: block;
    font-size: 16px;
    margin-bottom: .4em
}

.centrex-app-container label.error {
    color: #bd0d0d;
}

.centrex-app-container input.error, .centrex-app-container select.error {
    border-color: #bd0d0d;
}

.centrex-app-container legend {
    width: 100%;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
    margin: 30px 0 15px
}

.centrex-app-container fieldset {
    border-width: 0;
    padding: 0
}

/* Select2 multi-select — match text input dimensions and neutralize project-wide textarea rules
   that bleed into Select2's internal <textarea class="select2-search__field"> */
.centrex-app-container .select2-container--default .select2-selection--multiple {
    min-height: 2.507em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
    padding: 0;
    line-height: 1.5;
}

.centrex-app-container .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #ccc;
    box-shadow: 0 0 5px #ccc;
}

.centrex-app-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0 .75em !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.centrex-app-container .select2-container .select2-search--inline .select2-search__field,
.centrex-app-container textarea.select2-search__field {
    height: 1.7em !important;
    min-height: 0 !important;
    max-height: 1.7em !important;
    padding: 0 !important;
    margin: 0 0 0 2px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1.5 !important;
    font-size: .97em;
    resize: none !important;
}

.centrex-app-container .select2-selection__choice {
    margin: 3px 4px 3px 0 !important;
    padding: 0 6px !important;
    line-height: 1.5;
}

/* Dropdown sits above other form chrome */
.select2-container--open {
    z-index: 9999;
}

.centrex-app-container input[type=checkbox], .centrex-app-container input[type=radio] {
    display: inline;
    margin-right: 10px;
    font-size: 16px
}

.centrex-app-container label > .label-body {
    display: inline-block;
    font-weight: normal;
    margin-left: .5em
}

.centrex-app-container abbr[title=required],
.centrex-app-container .formbuilder-required {
    color: #b20000;
    text-decoration: none;
}

.centrex-app-container input[type=checkbox] + label, .centrex-app-container input[type=radio] + label {
    display: inline
}

.centrex-app-container select {
    -webkit-box-shadow: inset 0 -1.4em 1em 0 rgba(0, 0, 0, .02);
    box-shadow: inset 0 -1.4em 1em 0 rgba(0, 0, 0, .02);
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right .45em top 50%;
    background-repeat: no-repeat;
    padding-right: 1.4em;
    background-size: auto 16px;
    border-radius: 0;
    display: block
}

.centrex-app-container input[type="radio"],
.centrex-app-container input[type="checkbox"] {
    accent-color: #0f4988;
}

.rendered-form .form-group {
    width: 98%;
    margin: 1% 1%;
    margin-left: 1% !important;
    margin-bottom: 1% !important;
}

@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none) {
    .centrex-app-container select::-ms-expand {
        display: none
    }

    .centrex-app-container select:focus::-ms-value {
        background: transparent;
        color: currentColor
    }
}

.centrex-app-container button {
    position: relative;
    display: block;
    float: none;
    width: 100%;
    max-width: 260px;
    background-color: #0f4988;
    text-transform: uppercase;
    font-size: .97em;
    letter-spacing: .03em;
    cursor: pointer;
    font-weight: bolder;
    text-align: center;
    color: white;
    text-decoration: none;
    border: 1px solid #0f4988;
    vertical-align: baseline;
    border-radius: 4px;
    margin: 20px auto;
    text-shadow: none;
    line-height: 2.4em;
    min-height: 2.5em;
    padding: 0 1.2em;
    -o-transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s, -webkit-transform .3s, -webkit-box-shadow .3s;
    text-rendering: optimizeLegibility;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}


.centrex-app-container .form-group.field-half-group {
    float: left;
    width: 48%;
    margin: 1% 1%;
}

.centrex-app-container .form-group.field-third-group {
    float: left;
    width: 31.33%;
    margin: 1% 1%;
}

.centrex-app-container .form-group.field-full-group {
    width: 98%;
    margin: 1% 1%;
    clear: both;
}

/* Address Composite: the element wraps its sub-fields in an extra .form-group
   layer. Because the base ".form-group" rule applies 98% width + 1% margin to
   BOTH that wrapper and each inner sub-field, the inputs get inset twice and the
   block looks padded compared to standalone address fields. Make the wrapper a
   full-bleed, transparent layout container so the sub-fields carry the standard
   width-group spacing exactly once and align flush with normal fields. */
.centrex-app-container .form-group.formbuilder-address-composite,
.rendered-form .form-group.formbuilder-address-composite {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    clear: both;
}
.centrex-app-container .formbuilder-address-composite .centrex-address-composite-wrap,
.centrex-app-container .formbuilder-address-composite .centrex-address-composite-rows {
    width: 100%;
    margin: 0;
    padding: 0;
}
/* contain the floated half-width sub-fields (city/state/zip) */
.centrex-app-container .formbuilder-address-composite .centrex-address-composite-rows::after {
    content: "";
    display: table;
    clear: both;
}
/* align the composite's top label with the other field labels (sub-fields sit
   at the 1% gutter, so the label does too) */
.centrex-app-container .formbuilder-address-composite .formbuilder-address-composite-label {
    margin-left: 1%;
}

/* Modern Google Places autocomplete — a native-looking suggestion dropdown anchored to the
   Street 1 input (no Google widget chrome / search icon). The host form-group is positioned so
   the absolutely-positioned dropdown sits flush under the input. */
.centrex-app-container .form-group.centrex-ac-host {
    position: relative;
}
.centrex-app-container .centrex-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow-y: auto;
}
.centrex-app-container .centrex-ac-dropdown li {
    padding: 9px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
}
.centrex-app-container .centrex-ac-dropdown li.centrex-ac-active,
.centrex-app-container .centrex-ac-dropdown li:hover {
    background: #f0f4f8;
}


.centrex-progress-container {
    margin: 0 10px 10px;
}

.centrex-progress-bar-background {
    box-sizing: content-box;
    height: 20px;
    position: relative;
    background: #555;
    border-radius: 20px;
    padding: 0;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}

.centrex-progress-bar-fill {
    display: block;
    height: 100%;
    border-radius: 20px;
    background-color: rgb(43, 194, 83);
    box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

@media only screen and (max-width: 800px) {
    .centrex-app-container .form-group.field-half-group {
        float: left;
        width: 100% !important;
        margin: 0;
        clear: both;
    }

    .centrex-app-container .form-group.field-third-group {
        float: left;
        width: 100% !important;
        margin: 0;
        clear: both;
    }

    .centrex-app-container .form-group.field-full-group {
        width: 100% !important;
        margin: 0;
        clear: both;
    }
}

/*Update animations*/
.ld {
    animation-play-state: paused;
    visibility: hidden;
    display: none;
}

.ld.ld-spin {
    animation: ld-spin 1s infinite linear;
}

.loading .ld {
    animation-play-state: running;
    visibility: visible;
}

.loading .ld-ring {
    width: 1em;
    height: 1em;
    position: absolute;
    color: black;
    display: inline-block;
    box-sizing: content-box;
    top: 26%;
    left: 45%;
}

.ld-ring::after {
    content: " ";
    display: block;
    width: 2em;
    height: 2em;
    box-sizing: border-box;
    transform-origin: 0 0;
    transform: translateZ(0) scale(0.5);
    backface-visibility: hidden
}

.ld-ring::after {
    border-radius: 50%;
    border: .3em solid currentColor;
    border-left-color: transparent
}

@keyframes ld-spin {
    0% {
        animation-timing-function: cubic-bezier(0.5856, 0.0703, 0.4143, 0.9297);
        transform: rotate(0)
    }
    100% {
        transform: rotate(360deg)
    }
}

.centrex-app-container button.btn.centrex-plaid-link-button {
    display: block;
    background: white;
    color: black;
    font-weight: bold;
    border: 2px solid black;
    font-size: 16px;
    margin-bottom: 15px;
}

.centrex-app-container .centrex-plaid-link-button.btn-success {
    cursor: auto;
    background: #2dc254 !important;
    color: white !important;
    border-color: #2dc254 !important;
}

.centrex-app-container .form-group.loading button.btn.centrex-plaid-link-button {
    color: white;
}

.centrex-app-container .formbuilder-plaid-label {
    text-align: center;
    font-weight: bold;
}

.centrex-app-container .formbuilder-plaid label.error {
    text-align: center;
    font-weight: bold;
}

.centrex-app-container .plaid-load-message {
    text-align: center;
    font-size: 14px;
    padding-bottom: 10px;
}

.centrex-app-container .form-group.loading {
    pointer-events: none;
    cursor: wait;
}

.centrex-app-container .plaid-logo {
    background-image: url("../img/plaid_bank_logo.png");
    background-size: cover;
    width: 88px;
    height: 48px;
    margin: 0 auto;
}

.centrex-app-container .plaid-logo.logo-success {
    background-image: url("../img/green_check_small.gif");
    background-size: cover;
    width: 75px;
    height: 75px;
    margin: 0 auto;
}

/*------------------
FilePond File Upload Styles
------------------*/

.centrex-app-container .centrex-filepond-wrapper {
    clear: both;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--root {
    font-family: inherit;
    margin-bottom: 0;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--panel-root {
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--drop-label {
    color: #666;
    font-size: 0.97em;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--drop-label label {
    display: inline;
    font-size: inherit;
    margin-bottom: 0;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--label-action {
    color: #0f4988;
    text-decoration: underline;
    cursor: pointer;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--label-action:hover {
    color: #0a2f5a;
}

/* File item styling */
.centrex-app-container .centrex-filepond-wrapper .filepond--item-panel {
    background-color: #0f4988;
}

.centrex-app-container .centrex-filepond-wrapper .filepond--file-action-button {
    cursor: pointer;
}

/* Progress indicator */
.centrex-app-container .centrex-filepond-wrapper .filepond--file-status {
    font-size: 12px;
}

/* Image preview styling */
.centrex-app-container .centrex-filepond-wrapper .filepond--image-preview-wrapper {
    border-radius: 4px;
}

/* Error state */
.centrex-app-container .centrex-filepond-wrapper .filepond--item-panel[data-status="error"] {
    background-color: #bd0d0d;
}

/* Hover state on drop zone */
.centrex-app-container .centrex-filepond-wrapper .filepond--panel-root[data-drop-hover="true"] {
    border-color: #0f4988;
    background-color: #f0f5fa;
}

/* Error label for required validation */
.centrex-app-container .centrex-filepond-wrapper label.error {
    display: block;
    margin-bottom: 0.5em;
}

/*------------------
Multi-Page Form Navigation Buttons
------------------*/

.centrex-app-container .centrex-forms-button-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    clear: both;
}

.centrex-app-container .centrex-forms-button-container button {
    display: inline-block;
    float: none;
    width: auto;
    min-width: 140px;
    max-width: 260px;
    margin: 20px 0;
    font-size: .97em;
    line-height: 2.4em;
    min-height: 2.5em;
    padding: 0 1.2em;
    box-sizing: border-box;
}

.centrex-app-container .centrex-forms-button-container button.prev-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
    order: 1;
}

.centrex-app-container .centrex-forms-button-container button.prev-btn:hover {
    background-color: #f5f5f5;
}

.centrex-app-container .centrex-forms-button-container button.next-btn {
    order: 2;
}

.centrex-app-container .centrex-forms-button-container button#centrex-submit {
    order: 2;
}

/* Allowed file types hint */
.centrex-app-container .centrex-file-types-hint {
    font-size: 0.85em;
    color: #888;
    margin: 4px 0 0;
}

/* ---- Verification Screen ---- */
.centrex-app-container .centrex-verification-screen {
    padding: 24px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.centrex-app-container .centrex-verification-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.centrex-app-container .centrex-verification-description {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.centrex-app-container .centrex-verification-field-group {
    margin-bottom: 16px;
}

.centrex-app-container .centrex-verification-field-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.centrex-app-container .centrex-verification-input {
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 0 0.75em;
    height: 2.507em;
    font-size: 0.97em;
    border-radius: 4px;
    width: 100%;
    background-color: #fff;
    color: #333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s, border 0.3s, background 0.3s;
}

.centrex-app-container .centrex-verification-input:focus {
    box-shadow: 0 0 5px #ccc;
    outline: 0;
    color: #333;
    background-color: #fff;
}

.centrex-app-container .centrex-verification-error {
    color: #bd0d0d;
    font-size: 0.93em;
    margin: 16px 0;
    padding: 10px 14px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
}

.centrex-app-container .centrex-verification-button {
    margin-top: 8px;
}

/* Currency field */
.centrex-app-container .centrex-currency-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.centrex-app-container .centrex-currency-symbol {
    position: absolute;
    left: 10px;
    color: #888;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.centrex-app-container .centrex-currency-wrap input {
    padding-left: 1.5em !important;
}

/* SSN reveal toggle. A right-aligned "Show / Hide" text link BELOW the input — deliberately
   not an icon inside the field, so its position never depends on the input's width/padding and
   it can't collide with browser password-manager icons (Dashlane/1Password) that sit at the
   field's right edge. The !important guards stop WordPress themes' generic <button> styles
   (width/background/border) from turning it into a full-width styled button. */
.centrex-app-container .centrex-ssn-wrap {
    display: block;
}

.centrex-app-container .centrex-ssn-toggle {
    display: block !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    margin: 4px 0 0 auto !important; /* margin-left:auto right-aligns the shrink-wrapped link */
    padding: 0 !important;
    min-width: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #2271b1;
    font-size: 0.85em;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: underline;
}

.centrex-app-container .centrex-ssn-toggle:hover {
    color: #135e96;
}

.centrex-app-container .centrex-ssn-toggle:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 2px;
}
