﻿@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: "Poppins", sans-serif;
    font-size:16px;
    line-height:1.5;
    color:#505050;
    background:#ffffff;
    overflow: hidden;
}

/* Disable text selection globally */
* {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge Legacy */
    user-select: none;
}

/* Allow text selection in editable elements */
input,
textarea,
select,
button,
[contenteditable="true"],
[contenteditable=""],
[contenteditable]:not([contenteditable="false"]) {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Optional: allow selection inside any child elements of editable areas */
input *,
textarea *,
select *,
button *,
[contenteditable="true"] *,
[contenteditable=""] *,
[contenteditable]:not([contenteditable="false"]) * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

div#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display:none;
}
div#loader.active{
    display:flex;
}
.loader {
    width: 100px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #ffffff 94%, #0000) top / 16px 16px no-repeat, conic-gradient(#0000 30%, #ffffff);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 16px), #000 0);
    animation: l13 1s infinite linear;
}
@keyframes l13{ 
  100%{transform: rotate(1turn)}
}


.upload-loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.upload-loader.active {
    display: flex;
}

.upload-loader-box {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 220px;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.progress-circle svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.progress-bg,
.progress-bar {
    fill: none;
    stroke-width: 8;
}

.progress-bg {
    stroke: #e5e7eb;
}

.progress-bar {
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-dasharray: 326.73; /* 2 * PI * 52 */
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.3s ease;
}

.upload-percentage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

div#uploadLoader.uploadFailed .progress-circle {
    display: none;
}

.upload-text .upload-status {
    display: block;
    padding: 50px 10px;
    background: #e7ffe8;
    color: #2c752f;
    border: 1px solid #78cb7b;
    border-radius: 10px;
    min-width: 250px;
    margin-bottom:10px;
}
.upload-text .upload-status.failed {
    background: #ffe7e7;
    color: #810000;
    border-color: #ffbaba;
}
.custom-btn.btn-icon.upload-retry-btn {
    padding: 16px;
    justify-content: center;
    margin: 10px 0;
    cursor: pointer;
}
.upload-note {
    font-size: 80%;
    color: #8d8d8d;
}

/* Session Timer Style */
.session-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    position: fixed;
    top: 20px;
    right: 0;
    z-index: 99;
    width: 100px;
}

.session-timer.expiring {
    animation: pulseTimer 1s infinite;
}

@keyframes pulseTimer {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}


/*=== Scanner ===*/

.scannerWrapper {
    background: radial-gradient(100% 100% at 0% 0%, #16172E 0%, #2E325C 100%);
    position: fixed;
    width: 100%;
    height: 100%;
    min-height:100vh;
    display:grid;
    place-items:center;
    overflow-y:auto;
    overflow: auto;
    padding:50px 20px;
}
.scannerInner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly;
    gap: 10px;
}
.logo-wrapper img {
    width: 400px;
    display: block;
    margin: auto;
}
.scannerBox img {
    width: 500px;
}
.scannerWrapper footer {
    color: #fff;
}
.footerArrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footerArrow svg {
    width: 54px;
    height: 54px;
}
.footerContent {
    font-size: 20px;
    font-weight: 200;
    text-align: center;
}

/*==== Upload ====*/

.header-container {
    background: radial-gradient(30.93% 100% at 50% 0%, #16172E 0%, #2E325C 100%);
    color: #fff;
}
.page-center{
    padding:15px;
}
.header-container .page-center {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding-right: 100px;
}
.header-logo img {
    display: block;
    width: 50px;
}
span.terminalName {
    display: block;
    font-weight: 600;
}
span.terminalId {
    display: block;
    font-size: 80%;
}
main.body-container {
    height: calc(100dvh - 155px);
    overflow: auto;
}
.formData h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.formItem label {
    color: #9699AF;
    display: block;
    margin-bottom: 10px;
}
.inputWrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.custom-dropdown > select {
    height: 48px;
}
select#countryCode {
    width: 80px;
}
.numberWrapper {
    position: relative;
    width: 100%;
}
.numberWrapper span#countryNumber {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    width: auto !important;
    border-color: transparent !important;
    background: transparent !important;
}
.numberWrapper input#mobileNumber {
    padding-left: 50px !important;
}
.custom-dropdown .custom-dd-display {
    background: #F4F5F7;
}
.custom-input {
    background: #F4F5F7 !important;
}
.custom-input[name="otp"] {
    text-align: center;
}
.login_otp {
    display: none;
}

body.otpActive .login_mobileNo {
    display: none;
}

body.otpActive .login_otp {
    display: block;
}
div#reSendNumber {
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    border-style: solid;
    padding: 15px 15px;
    border-radius: 48px;
    gap: 5px;
}
span.reSendNumberWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/*span.reSendNumberWrapper span {
    border-bottom: 1px dashed;
}*/
span.reSendPrefix {
    padding-right: 5px;
}
span.reSendNumberWrapper svg {
    margin-right: 5px;
    margin-top: -4px;
    margin-bottom: -2px;
}
.formItem:not(:last-child) {
    margin-bottom: 15px;
}
.formMsg {
    text-align: center;
}
.formMsg span#reSendOTP {
    color: #663CF6;
    border-bottom: 1px dashed;
    cursor: pointer;
}

.uploadDocumentWrapper:not(.active),
.previewDocumentWrapper:not(.active),
.loginWrapper:not(.active),
.paymentWrapper:not(.active){
    display:none;
}

body:not(.otpActive) .footer-container .login_mobileNo,
body.otpActive .footer-container .login_otp,
.proceedWrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.leftArea, .rightArea {
    width: 50%;
}

div#backToUpload,
div#printMore{
    border-width: 1px;
    border-style: solid;
    padding: 13px 10px;
    border-radius: 48px;
    gap: 5px;
    align-items: center;
    justify-content: center;
    display: flex;
}

footer.footer-container {
    box-shadow: 0px -4px 4px 0px #B5B5B540;
    position: relative;
}

.totalPage {
    display: flex;
    gap: 5px;
}
.totalAmount {
    font-weight: bold;
    display: flex;
    gap: 3px;
}

.uploadDocumentWrapper:not(.dataAdded) footer.footer-container div#proceedUpload {
    background: #dfdfdf;
    pointer-events: none;
}
.uploadDocumentWrapper main.body-container .page-center {
    height: 100%;
}
.uploadDocumentWrapper.dataAdded main.body-container .page-center {
    height: auto;
}

.loginBanner {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loginBanner img {
    width: 300px;
    height: 250px;
    object-fit: contain;
}

.paymentWrapper .footer-container .payment_failed, 
.paymentWrapper .footer-container .payment_success {
    display: none;
}
.paymentWrapper .body-container .body_paymentFailed, 
.paymentWrapper .body-container .body_paymentSuccess {
    display: none;
}

.paymentBanner {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.paymentBanner img {
    width: 300px;
    display: block;
    margin: auto;
    height: 250px;
    object-fit: contain;
}
.paymentMessage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 90%;
}
.paymentTitle {
    font-size: 27px;
    font-weight: 600;
}
.paymentContent p:not(:last-child) {
    margin-bottom: 10px;
}

/* Payment Loader Container */
.paymentLoader {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner */
.paymentLoader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 60, 246, 0.15);
    border-top: 4px solid #663CF6;
    border-right: 4px solid #7B57FF;
    border-radius: 50%;
    animation: paymentSpinner 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(102, 60, 246, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Optional inner dot */
.paymentLoader .spinner::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #663CF6;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(102, 60, 246, 0.35);
}

/* Rotation Animation */
@keyframes paymentSpinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.paymentLink a {
    color: #663CF6;
    border-bottom: 1px dashed;
}

.paymentAmount {
    color: #663CF6;
    background: #f2efff;
    border: 1px solid #dcd2ff;
    padding: 10px;
    border-radius: 46px;
}

.temp {
    position: fixed;
    bottom: 100px;
    z-index: 99;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}
.temp > div {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 10px 20px;
    background: #f1f1f1;
    border-radius: 6px;
    cursor: pointer;
}
.temp > div.temp_ifFailed {
    background: #ffe3e3;
    color: #a70000;
    border-color: #a70000;
}
.temp > div.temp_ifSuccess {
    background: #dbffdc;
    color: #278f2b;
    border-color: #278f2b;
}

body.p_failed .paymentWrapper .body_paymentInprogress, 
body.p_failed .paymentWrapper .body_paymentSuccess,
body.p_failed .paymentWrapper .footer-container .payment_inprogress, 
body.p_failed .paymentWrapper .footer-container .payment_success{
    display: none;
}
body.p_failed .paymentWrapper .body_paymentFailed,
body.p_failed .paymentWrapper .footer-container .payment_failed{
    display:flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

body.p_success .paymentWrapper .body_paymentInprogress, 
body.p_success .paymentWrapper .body_paymentFailed,
body.p_success .paymentWrapper .footer-container .payment_inprogress, 
body.p_success .paymentWrapper .footer-container .payment_failed{
    display: none;
}
body.p_success .paymentWrapper .body_paymentSuccess,
body.p_success .paymentWrapper .footer-container .payment_success{
    display:flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}
.body_paymentFailed .paymentTitle {
    color: #FF0000;
}
.body_paymentSuccess .paymentTitle {
    color: #A7CF2E;
}
.paymentContent img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
}

@media (min-width:768px){
    .scannerWrapper {
        padding: 2.604vw 1.042vw;
    }

    .logo-wrapper img {
        width: 26.042vw;
    }

    .scannerBox img {
        width: 26.042vw;
    }

    .footerArrow svg {
        width: 3.333vw;
        height: 3.333vw;
    }

    .footerContent {
        font-size: 1.25vw;
    }
}

@media (max-width:450px){
    body {
        font-size: 12px;
    }
    .custom-btn {
        font-size: 12px;
    }
    .uploadDocumentWrapper.dataAdded .textContent_title {
        font-size: 12px;
    }
    .session-timer {
        font-size: 12px;
    }
    .formData h3 {
        font-size: 16px;
    }
    body:not(.otpActive) .footer-container .login_mobileNo, body.otpActive .footer-container .login_otp, .proceedWrapper {
        gap: 5px;
    }
    div#payment_success svg {
        width: 24px;
    }
    div#payment_success {
        gap: 4px;
        padding: 9px 9px 9px 9px;
    }
}
