* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

i.pr-1{
    padding-right: 5px;
}

i.pl-1{
    padding-left: 5px;
}

.back-to-page a{
     text-align: center;
    align-items: center;
    background: #5a58d4;
    color: #fff;
    border-radius: 50px;
    margin-bottom: 20px;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    width: max-content;
    transition: all 0.4s ease;
}

.back-to-page a:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

button:focus {
    outline: none !important;
}

.form-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 20px;
    position: relative;
    /* background: linear-gradient(to bottom left, #c7e1f8, #f5f5f5); */
    background: url("../images/wave.jpg") repeat-x center center/cover;
}

.form-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.left-section {
    color: #fff;
    padding: 40px;
    /* background: linear-gradient(180deg, #6765e8 0%, #6765e8 50%, #252484 100%); */
    position: relative;
    width: 50%;
    background: url("../images/background.png") no-repeat bottom/cover;
}

.left-section .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.left-section img {
    margin-bottom: 20px;
}

.left-section h2{
    font-size: 36px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 20px;
}

.left-section h3 {
    font-size: 24px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: 600;
    line-height: normal;
}

.left-section i {
    font-size: 54px;
    margin-bottom: 10px;
}

.left-section .info {
    background: #6765d3;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #8e8cdc;
}

.left-section .info h4 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 34px;
}

.left-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.left-section .info p {
    margin-bottom: 0px;
    font-size: 16px;
}

.left-section ul {
    list-style: none;
    padding: 0;
}

.left-section ul li {
    font-size: 16px;
    margin: 10px 0;
}

.form-card {
    padding: 40px;
    background-color: #ffffff;
    width: 50%;
}

.form-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #111827;
    font-weight: 600;
}

.form-card .form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-card .form-group label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.form-card .form-group .optional {
    color: #9ca3af;
    font-weight: 400;
}

.form-card .form-group .form-control {
    border: 1px solid #e5e7eb;
    height: 50px;
    color: #374151;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-card .form-group .form-control:focus {
    border-color: #6765e8;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 101, 232, 0.15);
}

.form-card .form-group .form-control:focus-visible {
    outline: none !important;
    border-color: #6765e8;
    box-shadow: 0 4px 12px rgba(103, 101, 232, 0.15);
}

/* Fix for Bootstrap validation state being overridden by custom styles */
.form-card .form-group .form-control.is-invalid,
.was-validated .form-card .form-group .form-control:invalid {
    border-color: #dc3545 !important;
}

::placeholder {
    color: #adaebc !important;
    text-transform: capitalize;
}

.form-card .btn-submit {
    width: 100%;
    padding: 15px 20px;
    background-color: #252484;
    color: #ffffff;
    border: 1px solid #252484;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-card .btn-submit:hover,
.form-card .btn-cancel:hover {
    background-color: #6765e8;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.form-card a.btn-submit,
.form-card a.btn-cancel {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.form-card .btn-cancel:hover {
    color: #fff;
}

.form-card .signin-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 0;
}

.form-card .signin-text a,
.bottom-text a,
.MPIN-link {
    color: #252484;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.MPIN-link:hover {
    text-decoration: underline !important;
}

.bottom-text {
    text-align: center;
    margin: 20px 0 0;
    font-size: 14px;
}

.form-card .form-group i.toggle-mpin {
    position: absolute;
    bottom: 18px;
    right: 10px;
    color: #adaebc;
    font-size: 12px;
    cursor: pointer;
    z-index: 9;
}

.form-card .icon-circle {
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.form-card .icon-circle i {
    color: #4f46e5;
    font-size: 20px;
}

.form-card .mpin-box,
.form-card .otp-inputs .otp-digit,
.otp-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    border: 1.5px solid #ccc;
}

.form-card .mpin-box:focus-visible,
.form-card .otp-inputs .otp-digit:focus-visible,
.otp-box:focus-visible {
    border-color: #6765e8;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 101, 232, 0.15);
    outline: none !important;
}

.form-card .btn-cancel {
    margin-top: 20px;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    color: #252484;
    border: 1px solid #252484;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-card .mpin-req-box {
    padding: 20px;
    background: #eef2ff;
    border-radius: 10px;
    margin: 20px 0;
}

.form-card .timer-section p {
    font-size: 16px;
    margin-top: 15px;
}

.form-card #timer {
    color: #ff3b3b;
    font-weight: 700;
    font-size: 20px;
}

.form-card #resend {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.form-card .change-number {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
}

.form-card .security-note {
    margin-top: 25px;
    background-color: #f6f9ff;
    border: 1px solid #d8e2ff;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 12px;
    color: #555;
}

.form-card .extra-links {
    margin-top: 20px;
}

.text-danger {
    font-size: 14px;
}

.aadhaar-input-container {
    position: relative;
}

.aadhaar-toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.aadhaar-toggle-visibility:hover {
    color: #374151;
}

.aadhaar-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(107, 114, 128, 1);
    padding-top: 1px;
    margin-bottom: 24px;
}

.resend-link {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
    pointer-events: none;
    opacity: 0.5;
    text-decoration: none;
}

.verification-label {
    background-color: #f1fff4;
    color: #38b47a;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verification-label .bi-question-circle-fill {
    font-size: 1rem;
    margin-right: 8px;
    color: #38b47a;
}

.security-info {
    margin-bottom: 30px;
}

.security-info-content {
    text-align: left;
    padding: 0;
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.security-info .bi-lock-fill {
    color: #8c8c8c;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-top: 1px;
    min-width: 0.9rem;
}

.btn-download-receipt {
    background-color: #f9f9f9;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    width: 100%;
    font-size: 0.95rem;
    margin-top: 10px;
    text-decoration: none;
}

.btn-download-receipt i {
    margin-right: 5px;
    font-size: 1rem;
}

.help-footer {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #999;
}

.help-footer a {
    color: #6a82fb;
    text-decoration: none;
    font-weight: 500;
}

.input-help-text {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 1px;
}

.verifications-input-container .input-info-tooltip {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.pan-check-icon-wrapper .pan-check-badge {
    background-color: #dcfce7;
    color: #16a34a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 1rem;
    margin-bottom: 15px;
    position: absolute;
    bottom: -5px;
    right: 0px;
}

.credit-score-list .list-unstyled li {
    font-size: 16px;
    color: #334155;
    font-weight: 400;
    margin-bottom: 10px;
    padding-left: 0px;
}

.credit-score-list .list-unstyled li:last-child {
    margin-bottom: 0;
}

.credit-score-list .list-unstyled li i {
    background: #f0fdf4;
    color: #16a34a;
    height: 40px;
    width: 40px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    margin-right: 8px;
}

.form-card .credit-score {
    margin: 30px 0px;
}

.form-card .credit-score h4 {
    font-weight: 700;
    color: #4f46e5;
    font-size: 72px;
}
.form-card .credit-score span {
    font-size: 26px;
    color: #94a3b8;
    font-weight: 500;
}

.form-card .credit-details-row {
    margin: 30px 0 20px;
}

.form-card .credit-details-row > div {
    display: flex;
    gap: 30px;
}

.form-card .credit-details-row i {
    color: #6366f1;
    font-size: 16px;
    margin-right: 8px;
}

.form-card .credit-details-row h6 {
    font-size: 16px;
    color: #475569;
    font-weight: 400;
}

.form-card .credit-details-row p {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
}

.form-card .aadhar-otp-box {
    display: flex;
    gap: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.upload-buttons {
    display: flex;
    gap: 10px;
}

.form-card .btn-take-photo {
    padding: 10px 15px;
    background-color: #252484;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: -webkit-fill-available;
}

.form-card .btn-gallery {
    padding: 10px 15px;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: -webkit-fill-available;
}

.form-card .icon-circle.warning {
    background: #fef2f2;
}

.form-card .icon-circle.warning i {
    color: #ef4444;
}

.form-card .loan-input-select {
    margin-bottom: 30px;
}

.form-card .loan-input-select i {
    font-size: 14px;
    padding-right: 5px;
    color: #374151;
}

.form-card .loan-input-select .btn-select {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    width: -webkit-fill-available;
    text-align: center;
}

.form-card .loan-input-select .btn-select:hover,
.form-card .loan-input-select .btn-select.selected  {
    border-color: #6765e8;
    background: white;
    box-shadow: 0 4px 12px rgba(103, 101, 232, 0.15);
    color: #374151;
}

.form-card .loan-input-select,
.form-card .loan-input-btn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-card .loan-input-select .btn-cancel,
.form-card .loan-input-btn .btn-cancel {
    margin-top: 0px;
}

.swal2-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #111827;
    font-weight: 600;
}

.swal2-html-container {
    font-size: 16px;
    color: #000;
    padding: 0;
}

.swal2-cancel {
    margin-top: 20px;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    color: #252484;
    border: 1px solid #252484;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.swal2-cancel:hover {
    background-color: #6765e8;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #fff;
}

.swal2-confirm {
    padding: 15px 20px;
    background-color: #252484;
    color: #ffffff;
    border: 1px solid #252484;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.swal2-confirm:hover {
    background-color: #6765e8;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

@media (max-width: 450px) {
    .upload-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .form-card .loan-input-select,
    .form-card .loan-input-btn {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .form-container-wrapper .fix-height {
        height: calc(100vh - 100px);
        overflow-y: scroll;
    }

    .form-container-wrapper .fix-height {
        scrollbar-width: thin;
        scrollbar-color: #e2e2e2 transparent;
    }
}

@media (max-width: 767px) {
    .left-section h3,
    .form-card h3,
    .left-section .info h4,
    .left-section h2 {
        font-size: 20px !important;
    }
    .left-section img {
        height: 40px;
    }
    .left-section p,
    .form-card p,
    .form-card .credit-details-row h6,
    .form-card .credit-details-row p {
        font-size: 14px;
    }
    .form-card .mpin-box,
    .form-card .otp-inputs .otp-digit,
    .aadhar-otp-box .otp-box {
        width: 35px;
        height: 35px;
    }
    .form-card .credit-score h4 {
        font-size: 34px;
    }
    .form-card .credit-score p {
        font-size: 20px;
    }
    .form-card .form-group label,
    .pin-box label {
        font-size: 14px;
    }
    .form-card .btn-submit,
    .form-card .btn-cancel {
        font-size: 14px;
    }
    .form-container {
        flex-direction: column;
        min-height: auto;
        border-radius: 16px;
    }
    .form-container-wrapper {
        padding: 30px 10px;
    }
}

@media (max-width: 991px) {

/* Global Validation Error Style */
.form-control.is-invalid,
.form-control.input-error,
.mpin-box.input-error,
.otp-box.input-error,
input.error,
input.is-invalid {
    border: 1px solid #dc3545 !important;
    border-radius: 8px !important;
}

/* Ensure error messages are red */
.error-message, .text-danger {
    color: #dc3545 !important;
    font-size: 14px;
    margin-top: 5px;
}

    .left-section {
        padding: 30px;
    }

    .form-card {
        padding: 20px;
    }
    .form-card h3 {
        font-size: 24px;
    }
    .left-section::before,
    .left-section::after {
        display: none;
    }
    .left-section,
    .form-card {
        width: 100%;
    }
}

@media (min-width: 1360px) {
    .form-container,
    .back-to-page {
        max-width: 990px !important;
        margin: 0 auto;
    }
    .login-page-wrapper .container {
        max-width: 990px !important;
    }
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}
