.fixed-element {
    position: fixed;
    bottom: 57px;
    z-index: 999;
}

.whatsapp_float {
    @extend .fixed-element;
    right: 20px;
}

.rbi_logo {
    @extend .fixed-element;
    left: 20px;
}

@media (max-width: 768px) {
    .fixed-element {
        bottom: 45px;
    }

    .whatsapp_float {
        right: 15px;

        .whatsapp_float_button {
            width: 55px;
        }
    }

    .rbi_logo {
        left: 15px;

        .rbi_img {
            width: 65%;
        }
    }
}

@media (max-width: 480px) {
    .fixed-element {
        bottom: 35px;
    }

    .whatsapp_float {
        right: 10px;

        .whatsapp_float_button {
            width: 45px;
        }
    }

    .rbi_logo {
        left: 10px;

        .rbi_img {
            width: 50%;
        }
    }
}

/* Borrower Registration UI */

.borrower-reg-section {
    background: linear-gradient(180deg, var(--logo-clr-100, #FFF6F1) 0%, #f8fafc 240px, #f1f5f9 100%);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    position: relative;
}

.borrower-card {
    background: #ffffff;
    border-radius: var(--border-radius-20, 20px);
    border: 1px solid rgba(230, 101, 38, 0.14);
    box-shadow: 0 16px 40px -10px rgba(31, 41, 55, 0.08);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.borrower-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-clr, #E66526), var(--logo-clr-800, #EA743B), var(--logo-clr-400, #F5B292));
}

.borrower-card-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.borrower-card-title {
    font-family: var(--heading-font, "Prompt", sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.borrower-card-title .title-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--logo-clr, #E66526), var(--logo-clr-800, #EA743B));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(230, 101, 38, 0.25);
}

.borrower-card-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 0;
}

/* Section Title inside Form */
.borrower-section-title {
    font-family: var(--heading-font, "Prompt", sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.borrower-section-title i {
    color: var(--logo-clr, #E66526);
    font-size: 16px;
}

/* Form Controls & Floating-feel Inputs */
.borrower-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.borrower-form-label .required-star {
    color: #ef4444;
    font-weight: 700;
}

.borrower-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.borrower-input-group .input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 4;
    top: 17px;
}

.borrower-input-group .form-control {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0;
    padding: 11px 16px 11px 42px;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 48px;
    font-weight: 500;
    width: 100%;
}

.borrower-input-group .form-control:focus {
    border-color: var(--logo-clr, #E66526);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(230, 101, 38, 0.12);
    outline: none;
}

.borrower-input-group .form-control:focus ~ .input-icon {
    color: var(--logo-clr, #E66526);
}

.borrower-input-group .form-control.is-invalid {
    border-color: #ef4444;
    background-image: none;
}

.borrower-input-group .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.borrower-field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.borrower-field-error.show {
    display: block;
}

/* Document Upload Tile */
.upload-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.document-upload-box {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #fafbfd;
    padding: 10px 12px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 96px;
    height: 100%;
    user-select: none;
}

.document-upload-box:hover {
    border-color: var(--logo-clr, #E66526);
    background-color: var(--logo-clr-100, #FFF6F1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(230, 101, 38, 0.12);
}

.document-upload-box.dragover {
    border-color: var(--logo-clr, #E66526);
    background-color: #ffede2;
    transform: scale(1.01);
}

.document-upload-box.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.document-upload-box.has-file {
    border-style: solid;
    border-color: #10b981;
    background-color: #f0fdf4;
}

.upload-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.upload-doc-name {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-doc-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-required {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-optional {
    background-color: #e2e8f0;
    color: #475569;
}

.badge-uploaded {
    background-color: #d1fae5;
    color: #059669;
    display: none;
}

.document-upload-box.has-file .badge-required,
.document-upload-box.has-file .badge-optional {
    display: none;
}

.document-upload-box.has-file .badge-uploaded {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Idle State in Box */
.upload-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2px 0;
}

.upload-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--logo-clr, #E66526);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 3px;
    transition: all 0.25s ease;
}

.document-upload-box:hover .upload-icon-circle {
    background: var(--logo-clr, #E66526);
    color: #ffffff;
    transform: scale(1.06);
}

.upload-prompt-text {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1px;
}

.upload-hint-text {
    font-size: 10px;
    color: #94a3b8;
}

.upload-file-details {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid #d1fae5;
    width: 100%;
}

.document-upload-box.has-file .upload-box-content {
    display: none;
}

.document-upload-box.has-file .upload-file-details {
    display: flex;
}

.file-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.file-info-left i {
    font-size: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.file-name-meta {
    min-width: 0;
}
.file-name-display {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 140px;
}

.file-size-display {
    font-size: 11px;
    color: #64748b;
}

.remove-file-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.borrower-submit-btn {
    background: linear-gradient(135deg, var(--logo-clr, #E66526) 0%, var(--logo-clr-800, #EA743B) 100%);
    color: #ffffff !important;
    font-family: var(--heading-font, "Prompt", sans-serif);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 44px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px -2px rgba(230, 101, 38, 0.38);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    min-width: 170px;
    text-decoration: none;
}

.borrower-submit-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -2px rgba(230, 101, 38, 0.45);
}

.borrower-submit-btn:active {
    transform: translateY(0);
}

.borrower-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Success Modal Overrides */
#thankyouModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

#thankyouModal .congrats {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#thankyouModal .congrats_inner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: 440px !important;
    width: 100%;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    animation: zoomInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .borrower-card {
        border-radius: 16px;
    }

    .borrower-card-title {
        font-size: 22px;
    }

    .file-name-display {
        max-width: 180px;
    }
}
@media (max-width: 575.98px) {
    .borrower-reg-section {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    .borrower-card {
        border-radius: 14px;
        padding: 20px 16px !important;
    }

    .borrower-card-title {
        font-size: 20px;
    }

    .borrower-card-title .title-icon-badge {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .borrower-input-group .form-control {
        height: 46px;
        font-size: 14px;
    }

    .borrower-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .document-upload-box {
        min-height: 88px;
        padding: 8px 10px;
    }

    .file-name-display {
        max-width: 130px;
    }

    #thankyouModal .congrats_inner {
        padding: 24px 20px;
    }
}
