/* Multi-Step Form with OTP Verification Styles */

.form-step {
    display: none;
    border: 1px solid #0000001A;
    background: #fff;
    width: 100%;
    margin: 0 auto;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0px 4px 44px 0px #DAE5F4B5;
    border-radius: 20px;
}

.form-step.active {
    display: block;
}

/* Step 1 (.mobile-wrapper): widen only while GF records table block is shown */
.form-step.mobile-wrapper.multistep-mobile-records-visible {
    max-width: 100%;
}

/* Records table visible: only the footnote Submit is shown (not OTP Submit). */
.form-step.mobile-wrapper.multistep-mobile-records-visible #multistep-step1-otp-actions {
    display: none !important;
}

.form-step .doc-section {
    width: 100%;
}

.form-step h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    text-align: left;
    text-transform: capitalize;
    color: #000;
    margin-bottom: 24px;
}

.form-step label {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    border: 0;
    margin: 0;
    margin-bottom: 16px;
}

.form-step input[name="mobile"],
.form-step input[type="text"] {
    font-weight: 400;
    font-size: 13px;
    line-height: 22px;
    border: 1px solid #00000033;
    height: 54px;
    border-radius: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.form-step input[name="mobile"]:focus,
.form-step input[type="text"]:focus {
    outline: none;
    border-color: #060530;
    box-shadow: 0 0 0 2px rgba(6, 5, 48, 0.1);
}

.form-step.mobile-wrapper button,
.form-step button {
    opacity: 1;
    border-radius: 100px;
    background: #060530;
    font-size: 14px;
    line-height: 100%;
    vertical-align: middle;
    padding: 12px 32px;
    color: #fff;
    border: none;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobileverificaion .otp-verify-btn {
    margin-top: 32px;
}

/* Confirmation Checkbox Styles */
.confirmation-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.confirmation-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.confirmation-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.2);
}

.confirmation-checkbox span {
    color: #333;
}

/* Disabled submit button styles */
.nextBtn:disabled {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Submission success styles */
.submission-success {
    text-align: center;
    padding: 30px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-top: 20px;
}

.submission-success .success-title {
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.submission-success .success-message {
    color: #28a745;
    font-size: 14px;
}

/* Final Thank You screen (list of verified GF entry / ticket IDs) */
.multistep-thankyou-card {
    text-align: center;
    max-width: 640px;
    margin: 20px auto 0;
    padding: 24px 28px 28px;
    background-color: #e8f6ec;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.multistep-thankyou-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.multistep-thankyou-check {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #14A874;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.form-step h3.multistep-thankyou-title {
    margin: 12px 0 0;
    color: #155724;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.multistep-thankyou-body .fas.fa-check-circle {
    margin-right: 0px;
    color: #28a745;
}

.multistep-thankyou-ticket-block {
    margin: 14px 0 0;
}

.multistep-thankyou-ticket-label {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
}

.multistep-thankyou-ids-host {
    margin: 0;
    min-height: 0;
}

.multistep-thankyou-ids-line {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #14A874;
    line-height: 1.4;
    word-break: break-word;
}

.multistep-thankyou-body {
    margin: 0;
    font-size: 18px;
}

.multistep-thankyou-body,
.multistep-thankyou-footnote {
    color: #155724;
    line-height: 1.5;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.multistep-thankyou-footnote {
    color: #444;
    font-size: 0.875rem;
}

.multistep-thankyou-actions {
    margin-top: 18px;
    text-align: center;
}

.multistep-thankyou-home-btn {
    display: inline-block;
    background-color: #2271b1 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border: none !important;
    font-size: 12px;
}

.multistep-thankyou-home-btn:hover {
    background-color: #135e96 !important;
    color: #fff !important;
}

.multistep-thankyou-no-ids {
    margin: 0;
    color: #28a745;
    font-weight: 600;
}

.detail-item {
    font-size: 14px;
}

.review-details h4 {
    font-size: 16px;
}

.form-step.mobile-wrapper button:hover,
.form-step.mobile-wrapper button:hover {
    background: #040428;
}

.form-step button:disabled,
.form-step.mobile-wrapper button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-step .action_button {
    text-align: right;
    margin-top: 32px;
}

.mobileverificaion {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 445px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 999;
    background: #fff;
    flex-direction: column;
    margin: auto;
    padding: 43px;
    height: 450px;
}

.mobileverificaion h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    text-align: left;
    text-transform: capitalize;
    color: #000;
    margin-bottom: 24px;
}

.otp_action {
    font-size: 18px;
    line-height: 30px;
    text-transform: capitalize;
}

.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.mobileverificaion p {
    margin: 0 !important;
    color: #000;
    font-size: 16px;
    font-weight: normal;
    text-transform: lowercase;
}

.first-cap {
    text-transform: uppercase;
}


.mobileverificaion .confirmbtn {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #001A341A;
    text-align: center;
    font-weight: 400;
    color: #000;
    width: 72px;
    height: 65px;
    font-size: 16px;
    margin: 0;
    box-sizing: border-box;
}

.mobileverificaion .confirmbtn:focus {
    outline: none;
    border-color: #060530;
    box-shadow: 0 0 0 2px rgba(6, 5, 48, 0.1);
}

.mobileverificaion .countdown-timer {
    display: block;
    font-size: 14px;
    color: #000;
    margin: 0;
}

.mobileverificaion.success-verification {
    max-width: 945px;
}

/* Popup submit/verify button - same look as form-step buttons */
.popup-overlay .mobileverificaion button,
.mobileverificaion .otp-verify-btn {
    opacity: 1;
    border-radius: 100px;
    background: #060530;
    font-size: 14px;
    line-height: 100%;
    color: #fff;
    border: none;
    padding: 16px 40px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0px;
}

.popup-overlay .mobileverificaion button:hover,
.mobileverificaion .otp-verify-btn:hover {
    background: #040428;
}

.popup-overlay .mobileverificaion button:disabled,
.mobileverificaion .otp-verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.number_validation_error {
    justify-content: center;
}

.verify-container {
    position: relative;
}

.verify-btn {
    font-size: 13px;
    color: #02006D;
    position: absolute;
    right: 16px;
    top: 16px;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.verify-btn:hover {
    color: #040428;
}

.verify-text {
    font-size: 14px;
    color: #B16C00;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

/* Popup overlay styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hide {
    display: none !important;
}

.number_validation_error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.success {
    background: #d4edda;
    color: #28a745;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

/* Mobile number → GF records preview (step 1) */
.multistep-mobile-records-wrap {
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.multistep-mobile-records-loading {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.multistep-mobile-records-msg {
    font-size: 14px;
    color: #721c24;
    margin: 8px 0 0;
}

.multistep-kyc-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.multistep-kyc-records-table th,
.multistep-kyc-records-table td {
    border: 1px solid #c5c5c5;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.multistep-kyc-records-table thead tr {
    background: #1a3a5c;
    color: #fff;
}

.multistep-kyc-records-table thead th {
    font-weight: 700;
    border-color: #1a3a5c;
}

.multistep-kyc-records-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.multistep-kyc-records-empty {
    text-align: center;
    color: #555;
    padding: 16px !important;
}

.multistep-mobile-records-footnote-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0 0;
    font-size: 13px;
    color: #333;
    line-height: 1.45;
}

.multistep-no-change-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    flex: 1;
    min-width: 200px;
    font-weight: 400;
    color: #333;
}

/* Toggle switch (replaces checkbox) */
.multistep-no-change-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.multistep-no-change-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    margin: 0;
}

.multistep-no-change-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #c5c5c5;
    border-radius: 24px;
    transition: background-color 0.2s ease;
}

.multistep-no-change-switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.multistep-no-change-switch-input:checked+.multistep-no-change-switch-slider {
    background-color: #060530;
}

.multistep-no-change-switch-input:checked+.multistep-no-change-switch-slider::before {
    transform: translateX(20px);
}

.multistep-no-change-switch-input:focus-visible+.multistep-no-change-switch-slider {
    outline: 2px solid #060530;
    outline-offset: 2px;
}

.multistep-no-change-switch-input:disabled+.multistep-no-change-switch-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.multistep-no-change-text {
    flex: 1;
    line-height: 1.45;
}

.multistep-no-change-submit-wrap {
    flex-shrink: 0;
    text-align: right;
}

.multistep-no-change-submit-btn {
    opacity: 1;
    border-radius: 100px;
    background: #060530;
    font-size: 14px;
    line-height: 100%;
    color: #fff;
    border: none;
    padding: 16px 40px;
    cursor: pointer;
    font-weight: 600;
    min-width: 120px;
}

.multistep-no-change-submit-btn:hover:not(:disabled) {
    background: #040428;
}

.multistep-no-change-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* PAN + Review blocks live inside step 1 (steps 2–6 removed from template) */
.multistep-inline-panel {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #0000001A;
    width: 100%;
}

.multistep-inline-panel-foot {
    margin: 16px 0 0;
    text-align: right;
}

.multistep-close-inline-panel {
    background: transparent;
    color: #060530;
    border: 1px solid #060530;
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
}

.multistep-close-inline-panel:hover {
    background: #f5f5f8;
}

.multistep-verify-kyc-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #060530;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.multistep-verify-kyc-btn:hover {
    background: #040428;
}

.multistep-kyc-verified-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0d5c2f;
    background: #d4edda;
    border-radius: 100px;
    border: 1px solid #c3e6cb;
}

.multistep-kyc-actions-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.multistep-kyc-action-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
}

.multistep-kyc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.multistep-kyc-icon-btn i {
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.multistep-kyc-icon-btn:hover,
.multistep-kyc-icon-btn:focus {
    color: #fff !important;
    filter: brightness(1.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.multistep-kyc-icon-btn:focus-visible {
    outline: 2px solid #14A874;
    outline-offset: 2px;
}

.multistep-kyc-icon-btn--aadhaar {
    background: #0d6e7a;
}

.multistep-kyc-icon-btn--pan {
    background: #1a3a5c;
}

.multistep-kyc-icon-btn.multistep-kyc-btn--disabled,
.multistep-kyc-icon-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: none;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-step {
        max-width: 100%;
        /* margin: 0 15px;
        padding: 20px; */
    }

    .mobileverificaion {
        padding: 20px;
        height: auto;
        min-height: 300px;
    }

    .otp-input-container {
        gap: 5px;
    }

    .mobileverificaion .confirmbtn {
        width: 60px;
        height: 55px;
        font-size: 14px;
    }

    .form-step h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    /*    .form-step {
        margin: 0 10px;
        padding: 15px;
    } */

    .mobileverificaion .confirmbtn {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }

    .form-step h3 {
        font-size: 20px;
    }

    .form-step .action_button {
        text-align: center;
    }

    .form-step button {
        width: 100%;
        padding: 15px;
    }
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #666;
}

.loading-spinner::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #060530;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

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

/* Success icon animation */
.success-icon {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -10px, 0);
    }

    70% {
        transform: translate3d(0, -5px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Form validation states */
.form-step input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-step input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Resend OTP link styling */
.resendotp {
    color: #02006D;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

.resendotp:hover {
    color: #040428;
}

.resendotp:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

/* ---------------------------------------------------------------
   Developer Test Mode (plugin v1.3.1)
   Banner on the form + OTP "flash" inside the existing OTP popup.
   Kept intentionally subtle so the live UI / design is unchanged.
   --------------------------------------------------------------- */
.multistep-test-mode-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #f5c518;
    border-left: 4px solid #f5c518;
    border-radius: 6px;
    color: #5b4500;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.multistep-test-mode-banner__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

.multistep-test-mode-banner__label {
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #7a5b00;
}

.multistep-test-mode-banner__hint {
    color: #6b5500;
    font-weight: 400;
}

.multistep-test-mode-otp-flash {
    margin: 0px auto -1px;
    padding: 8px 10px;
    background: #fff8e1;
    border: 1px dashed #f5c518;
    border-radius: 6px;
    text-align: center;
    color: #5b4500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.multistep-test-mode-otp-flash__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #7a5b00;
    margin-bottom: 0px;
}

.multistep-test-mode-otp-flash__code {
    font-family: "Courier New", Consolas, monospace;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #02006D;
    margin: 0px 0 0px;
}

.multistep-test-mode-otp-flash__fill {
    background: #02006D;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.multistep-test-mode-otp-flash__fill:hover {
    background: #040428;
}

/* ---------------------------------------------------------------
   OTP popup actions row (plugin v1.3.1)
   Adds an explicit Cancel button alongside the existing Submit so
   the user can dismiss the OTP step without clicking the overlay.
   --------------------------------------------------------------- */
.otp-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* The existing `.popup-overlay .mobileverificaion button` rule paints all
   popup buttons with the dark pill style. We override the Cancel variant
   here so it reads as a secondary / ghost action. */
.popup-overlay .mobileverificaion .otp-cancel-btn,
.mobileverificaion .otp-cancel-btn {
    background: transparent;
    color: #060530;
    border: 1px solid #060530;
    border-radius: 100px;
    padding: 15px 32px;
    font-size: 14px;
    font-weight: 600;
    line-height: 100%;
    cursor: pointer;
    margin-top: 0px;
}

.popup-overlay .mobileverificaion .otp-cancel-btn:hover,
.mobileverificaion .otp-cancel-btn:hover {
    background: #060530;
    color: #fff;
}

.popup-overlay .mobileverificaion .otp-cancel-btn:disabled,
.mobileverificaion .otp-cancel-btn:disabled {
    background: transparent;
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Keep the actions row tidy on narrow screens. */
@media (max-width: 480px) {
    .otp-actions-row {
        gap: 8px;
    }

    .popup-overlay .mobileverificaion .otp-cancel-btn,
    .mobileverificaion .otp-cancel-btn {
        padding: 14px 24px;
    }
}