/**
 * Loan Application Widget — Styles
 *
 * Extracted from the Banca HTML template (_loan.scss & _buttons.scss).
 * Only selectors matching the widget markup are included.
 *
 * @package BancaCore
 * @since   2.0.0
 */


/* ═══════════════════════════════════════════════
   Stepper Sidebar
   ═══════════════════════════════════════════════ */
.stepper-widget ul {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stepper-widget ul::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 15px;
    bottom: 10px;
    z-index: -1;
    border-left: 2px solid #dcdee0;
}

.stepper-widget ul li {
    margin: 60px 0;
    position: relative;
}

.stepper-widget ul li:last-child::before {
    display: none;
}

.stepper-widget ul li::before {
    content: "";
    position: absolute;
    left: 12px;
    bottom: -35px;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: #dcdee0;
    transition: border-radius 0.25s ease;
}


/* — Default Link & Number Badge — */
.stepper-widget ul li a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #9199a1;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s ease;
}

.stepper-widget ul li a .number {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
    background-color: var(--black_100, #f0f1f3);
    border: 1.5px solid var(--black_100, #f0f1f3);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.stepper-widget ul li a .number span {
    color: var(--p_color, #6a737c);
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.stepper-widget ul li a .number i {
    display: none;
    font-size: 14px;
}


/* — Active Step — */
.stepper-widget ul li.active a {
    color: var(--brand_color);
    font-weight: 500;
}

.stepper-widget ul li.active a .number {
    background-color: var(--brand_color);
    border-color: var(--brand_color);
    color: #fff;
}

.stepper-widget ul li.active a .number span {
    color: #fff;
}


/* — Completed Step — */
.stepper-widget ul li.complete a {
    color: var(--p_color, #6a737c);
}

.stepper-widget ul li.complete a .number {
    background-color: var(--black_100, #f0f1f3);
    border-color: var(--black_100, #f0f1f3);
}

.stepper-widget ul li.complete a .number span {
    display: none;
}

.stepper-widget ul li.complete a .number i {
    color: var(--secondary_color);
    display: block;
}


/*=== Shape Variants === */

/* Circle (default) */
.stepper-widget.stepper-shape-circle ul li a .number {
    border-radius: 50%;
}

.stepper-widget.stepper-shape-circle ul li::before {
    border-radius: 50%;
}

/* Square */
.stepper-widget.stepper-shape-square ul li a .number {
    border-radius: 4px;
}

.stepper-widget.stepper-shape-square ul li::before {
    border-radius: 2px;
}

/* Rounded */
.stepper-widget.stepper-shape-rounded ul li a .number {
    border-radius: 8px;
}

.stepper-widget.stepper-shape-rounded ul li::before {
    border-radius: 4px;
}

/* Text Only (no badge, no connector) */
.stepper-widget.stepper-text-only ul::after {
    display: none;
}

.stepper-widget.stepper-text-only ul li::before {
    display: none;
}

.stepper-widget.stepper-text-only ul li {
    margin: 24px 0;
}

.stepper-widget.stepper-text-only ul li a {
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.stepper-widget.stepper-text-only ul li.active a {
    background-color: color-mix(in srgb, var(--brand_color) 10%, transparent);
}


/* ═══════════════════════════════════════════════
   Progress Bar Stepper
   ═══════════════════════════════════════════════ */
.stepper-progress {
    background-color: var(--black_100, #f0f1f3);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.stepper-progress-bar {
    height: 100%;
    background-color: var(--brand_color);
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ═══════════════════════════════════════════════
   Loan Details Form Container
   ═══════════════════════════════════════════════ */
.loan-details-widget {
    padding: 50px 53px;
    box-shadow: var(--theme-dropshadow);
    border-radius: 10px;
    padding-bottom: 100px;
    background: var(--bs-white);
}


/*=== Step Visibility (active-class based) === */
.banca-loan-step {
    display: none;
}

.banca-loan-step.active {
    display: block;
}


/*=== Radio Card (Loan Type) === */
.loan-details-widget .select-loan-type-radio {
    display: none;
}

.loan-details-widget .select-loan-type-radio:checked~.loan-type {
    background-color: var(--brand_color);
    cursor: pointer;
}

.loan-details-widget .select-loan-type-radio:checked~.loan-type span {
    color: #fff;
}

.loan-details-widget .select-loan-type-radio:checked~.loan-type img {
    filter: brightness(0) invert(1);
}

.loan-details-widget .loan-type {
    background-color: color-mix(in srgb, #0050b2 5%, transparent);
    border-radius: 5px;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease-out;
    display: block;
}

.loan-details-widget .loan-type:hover {
    background-color: var(--brand_color);
    cursor: pointer;
}

.loan-details-widget .loan-type:hover span {
    color: #fff;
}

.loan-details-widget .loan-type:hover img {
    filter: brightness(0) invert(1);
}

.loan-details-widget .loan-type img {
    transition: filter 0.3s ease-out;
    display: inline;
}

.loan-details-widget .loan-type span {
    display: block;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    color: var(--secondary_color);
    font-size: 16px;
    margin-top: 14px;
    text-transform: capitalize;
}


/*=== Labels === */
.loan-details-widget .label {
    font-size: 16px;
    color: var(--secondary_color);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.banca-loan-step .form-check input {
    width: 16px;
    height: 16px;
    margin-top: 8px;
}

.banca-loan-step ol {
    padding-left: 1rem;
}

.banca-loan-step ol li {
    font-size: 16px;
}

.banca-loan-step ol li+li {
    margin-top: 1rem;
}



/*=== Form Controls === */
.loan-details-widget .form-control {
    border-color: #dcdee0;
    height: 45px;
    color: #9199a1;
    font-size: 14px;
}

.loan-details-widget .form-control::placeholder {
    color: #9199a1;
}

.loan-details-widget .form-control:focus {
    border-color: var(--brand_color);
    box-shadow: none;
}


/*=== Number Input with Currency Prefix === */
.loan-details-widget .input-field {
    position: relative;
}

.loan-details-widget .input-field span {
    position: absolute;
    display: inline-block;
    top: 10px;
    left: 15px;
    font-size: 14px;
    color: #a8a8b2;
}

.loan-details-widget .input-field .form-control {
    padding-left: 30px;
}


/*=== intlTelInput Full Width === */
.loan-details-widget .iti {
    width: 100%;
}


/*=== NiceSelect === */
.loan-details-widget .nice-select {
    height: 45px;
    border-color: #dcdee0;
    display: block;
    float: inherit;
}

.loan-details-widget .nice-select:focus {
    border-color: var(--brand_color);
}

.loan-details-widget .nice-select .current {
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #9199a1;
}

.loan-details-widget .nice-select .list {
    width: 100%;
}


/*=== Radio & Checkbox === */
.loan-details-widget .form-check .form-check-label {
    color: #9199a1;
}

.loan-details-widget .form-check .form-check-input:checked[type="radio"]~.form-check-label {
    color: #6a737c;
}

.loan-details-widget .form-check .form-check-input:checked[type="radio"] {
    background-color: #fff;
    border-color: var(--brand_color, #0050B2);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.5' fill='%230050B2'/%3e%3c/svg%3e");
}


/*=== Date Select (DOB) === */
.loan-details-widget .dob .nice-select {
    margin-right: 15px;
    width: 100%;
}

.loan-details-widget .dob .nice-select .list {
    max-height: 350px;
    overflow-y: scroll;
    scrollbar-color: #dededee7 #f1f1f1da;
    scrollbar-width: thin;
}

.loan-details-widget .dob .nice-select .list::-webkit-scrollbar {
    width: 4px;
}

.loan-details-widget .dob .nice-select .list::-webkit-scrollbar-track {
    background: #f1f1f1da;
}

.loan-details-widget .dob .nice-select .list::-webkit-scrollbar-thumb {
    background: #dededee7;
    border-radius: 5px;
}


/*=== Navigation Buttons === */
.loan-details-widget .nav-btn a,
.loan-details-widget .nav-btn button {
    border-radius: 5px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: var(--p_color);
}

.loan-details-widget .nav-btn a i,
.loan-details-widget .nav-btn button i {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    margin-bottom: 2px;
}

.loan-details-widget .nav-btn a.prev-btn i,
.loan-details-widget .nav-btn button.prev-btn i {
    margin-right: 5px;
    margin-left: 0;
}


/* ═══════════════════════════════════════════════
   Theme Button (Base + primary_alt Variant)
   ═══════════════════════════════════════════════ */
.theme-btn {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    height: 50px;
    line-height: 50px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    background-color: var(--brand_color);
    padding: 0 35px;
    overflow: hidden;
    text-align: center;
    text-transform: capitalize;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.theme-btn::before {
    background-color: #171d24;
    position: absolute;
    left: -1px;
    top: -1px;
    z-index: -1;
    height: 103%;
    width: 102%;
    border-radius: 4px;
    content: "";
    transform: scale(0, 1);
    transform-origin: top right;
    transition: transform 500ms cubic-bezier(0.86, 0, 0.07, 1);
}

.theme-btn:hover {
    color: #ffffff;
    transition: all 0.5s ease-in-out;
}

.theme-btn:hover::before {
    transform: scale(1, 1);
    transform-origin: top left;
}

.theme-btn:hover i {
    transform: translateY(-1px) translateX(8px);
}

.theme-btn:hover i.arrow_left {
    transform: translateY(-1px) translateX(-8px);
}

.theme-btn i {
    transition: transform 500ms cubic-bezier(0.86, 0, 0.07, 1);
    font-size: 18px;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-1px) translateX(0px);
}

.theme-btn i.arrow_left {
    padding-right: 5px;
}


/* — Primary Alt Variant (Used for Prev / Next / Submit) — */
.theme-btn.theme-btn-primary_alt {
    color: var(--brand_color);
    background-color: color-mix(in srgb, #0050b2 20%, transparent);
    transition: all 0.3s ease-out;
    overflow: inherit;
}

.theme-btn.theme-btn-primary_alt i {
    transform: translate(0);
}

.theme-btn.theme-btn-primary_alt::before {
    display: none;
}

.theme-btn.theme-btn-primary_alt:hover {
    background-color: #0050b2;
    color: #fff;
}

.theme-btn.theme-btn-primary_alt:hover i {
    transform: translate(0);
}


/* ═══════════════════════════════════════════════
   Form Message (Success / Error)
   ═══════════════════════════════════════════════ */
.loan-form-message {
    border-radius: 6px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.loan-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.loan-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loan-form-message p {
    margin: 0;
}


/* ═══════════════════════════════════════════════
   Field Validation Error
   ═══════════════════════════════════════════════ */
.banca-field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    font-family: "Roboto", sans-serif;
}

.form-control.is-invalid {
    border-color: #dc3545;
}


/* ═══════════════════════════════════════════════
   Dropzone Upload
   ═══════════════════════════════════════════════ */
.loan-details-widget .dropzone {
    border: 2px dashed #dcdee0;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s ease;
    min-height: 150px;
}

.loan-details-widget .dropzone:hover,
.loan-details-widget .dropzone.dz-drag-hover {
    border-color: var(--brand_color);
}

.loan-details-widget .dropzone .dz-message h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--secondary_color);
    margin-bottom: 8px;
}

.loan-details-widget .dropzone .dz-message .dz-custom-upload-text {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: #9199a1;
    margin-bottom: 0;
}

.loan-details-widget .dropzone .dz-preview {
	position: relative;
	margin: 12px;
}

.loan-details-widget .dropzone .dz-preview .dz-remove {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #dc3545;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

.loan-details-widget .dropzone .dz-preview .dz-remove:hover {
	text-decoration: underline;
}

.loan-details-widget .dropzone .dz-preview .dz-error-message {
	top: auto;
	bottom: 100%;
	margin-bottom: 4px;
}

.loan-details-widget .dropzone .dz-preview.dz-error .dz-error-message {
	opacity: 1;
	pointer-events: auto;
}


/* ═══════════════════════════════════════════════
   RTL Support
   ═══════════════════════════════════════════════ */
[dir="rtl"] .stepper-widget ul::after {
    left: auto;
    right: 15px;
}

[dir="rtl"] .stepper-widget ul li::before {
    left: auto;
    right: 12px;
}

[dir="rtl"] .loan-details-widget .input-field span {
    left: auto;
    right: 15px;
}

[dir="rtl"] .loan-details-widget .input-field .form-control {
    padding-left: 12px;
    padding-right: 30px;
}

[dir="rtl"] .loan-details-widget .nav-btn a i,
[dir="rtl"] .loan-details-widget .nav-btn button i {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .loan-details-widget .nav-btn a.prev-btn i,
[dir="rtl"] .loan-details-widget .nav-btn button.prev-btn i {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .loan-details-widget .dob .nice-select {
    margin-right: 0;
    margin-left: 15px;
}



/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 991px) {
    .stepper-widget ul li {
        margin: 40px 0;
    }

    .loan-details-widget {
        padding: 30px 25px;
        padding-bottom: 60px;
    }

    .stepper-widget {
        margin-bottom: 30px;
    }

    .stepper-progress {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .stepper-widget {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .stepper-widget::-webkit-scrollbar {
        display: none;
    }

    .stepper-widget ul {
        display: flex;
        gap: 10px;
        white-space: nowrap;
    }

    .stepper-widget ul::after {
        display: none;
    }

    .stepper-widget ul li {
        margin: 0;
    }

    .stepper-widget ul li::before {
        display: none;
    }

    .loan-details-widget {
        padding: 20px 16px;
        padding-bottom: 40px;
    }

    .loan-details-widget .nav-btn {
        gap: 10px;
    }

    .theme-btn {
        height: 44px;
        line-height: 44px;
        padding: 0 24px;
        font-size: 16px;
    }
}