/* MOBILE PERSONAL LOAN SPECIFIC FIXES */
/* Apply Business Loan OTP styling to Personal Loan */

@media (max-width: 768px) {
    /* HIDE ALL STEP INDICATORS AND NUMBERS */
    .step-indicator,
    .step-number,
    .step-text,
    .step,
    .step-circle,
    .step-icon,
    .nav-steps,
    .mobile-step-bar,
    .step-progress,
    .progress-step,
    .journey-steps,
    .step-counter,
    .step-label {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* ENSURE MOBILE NUMBER INPUT SECTION IS VISIBLE */
    .step-content h2,
    .form-header h2,
    .phone-input-title,
    .mobile-number-title,
    .personal-loan-title {
        display: block !important;
        visibility: visible !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
    }

    /* PERSONAL LOAN SPECIFIC OTP STYLING */
    .personal-loan-page .otp-input-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 1.5rem 0 !important;
        padding: 0 1rem !important;
    }

    .personal-loan-page .otp-digit {
        width: 45px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        border: 2px solid #d1d5db !important;
        border-radius: 8px !important;
        background: white !important;
        color: #1f2937 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .personal-loan-page .otp-digit:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }
}

/* HIDE MOBILE STEP BAR ON DESKTOP BY DEFAULT */
.mobile-step-bar {
    display: none !important;
}

@media (max-width: 768px) {
    
    /* SHOW HEADER ON MOBILE FOR PERSONAL LOAN PAGE - UNIFIED FORMAT */
    body.personal-loan-page .navbar {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* ADJUST MAIN CONTENT FOR HEADER ON PERSONAL LOAN PAGE */
    body.personal-loan-page .main-content {
        margin-top: 20px !important;
        padding-top: 0rem !important;
    }
    
    /* MOBILE STEP BAR - HIDE TO MATCH OTHER LOAN PAGES */
    body.personal-loan-page .mobile-step-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* MOBILE STEPS CONTAINER */
    body.personal-loan-page .mobile-steps {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        padding: 0 1rem !important;
        gap: 0.5rem !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    body.personal-loan-page .mobile-steps::-webkit-scrollbar {
        display: none !important;
    }
    
    /* MOBILE STEP ITEMS */
    body.personal-loan-page .mobile-step {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        white-space: nowrap !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        letter-spacing: 0.3px !important;
        transition: color 0.2s ease !important;
    }
    
    /* ACTIVE MOBILE STEP */
    body.personal-loan-page .mobile-step.active {
        color: #3b82f6 !important;
        font-weight: 700 !important;
    }
    
    /* COMPLETED MOBILE STEP */
    body.personal-loan-page .mobile-step.completed {
        color: #10b981 !important;
        font-weight: 600 !important;
    }
    
    /* ADJUST MAIN CONTENT SPACING FOR HEADER */
    body.personal-loan-page .main-content {
        margin-top: 50px !important;
        padding-top: 0rem !important;
    }
    
    /* FORCE SMALL STEP INDICATORS FOR PERSONAL LOAN */
    .personal-loan-journey .step-number,
    .personal-loan-journey .step-indicator .step-number,
    .personal-loan-journey .nav-steps .step-number,
    body[class*="personal"] .step-number,
    body[data-page*="personal"] .step-number,
    /* Generic selectors for any personal loan page */
    .step-number,
    .step-indicator .step-number,
    .nav-steps .step-number {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        font-size: 0.7rem !important;
        line-height: 24px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto 0.25rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        font-weight: 600 !important;
    }
    
    /* PERSONAL LOAN STEP CONTAINERS */
    .personal-loan-journey .step-indicator,
    body[class*="personal"] .step-indicator,
    /* Generic selectors for any personal loan page */
    .step-indicator {
        min-width: 50px !important;
        max-width: 55px !important;
        padding: 0.25rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* PERSONAL LOAN STEP TEXT */
    .personal-loan-journey .step-text,
    body[class*="personal"] .step-text,
    /* Generic selectors for any personal loan page */
    .step-text {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        margin-top: 0.25rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }
    
    /* PERSONAL LOAN NAV STEPS CONTAINER */
    .personal-loan-journey .nav-steps,
    body[class*="personal"] .nav-steps,
    /* Generic selectors for any personal loan page */
    .nav-steps {
        display: flex !important;
        gap: 0.4rem !important;
        padding: 0.5rem !important;
        overflow-x: auto !important;
        justify-content: space-between !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .personal-loan-journey .nav-steps::-webkit-scrollbar,
    body[class*="personal"] .nav-steps::-webkit-scrollbar,
    /* Generic selectors for any personal loan page */
    .nav-steps::-webkit-scrollbar {
        display: none !important;
    }
}