/* Mobile-specific fixes for loan journeys */
/* This file contains mobile-only fixes to resolve specific issues mentioned */

@media (max-width: 768px) {
    /* HIDE ALL STEP INDICATORS ACROSS ALL LOAN PRODUCTS */
    .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 TITLES ARE VISIBLE */
    .step-content h2,
    .form-header h2,
    .phone-input-title,
    .mobile-number-title,
    .otp-verification-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;
    }

    /* Fix OTP input padding issues on mobile - Business Loan Style */
    .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;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    
    .otp-digit:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    }
    
    /* Specific fix for micro loan OTP input */
    .micro-loan .otp-digit,
    .micro-loan-journey .otp-digit {
        padding: 0.15rem !important; /* Even more reduced padding for micro loan */
        font-size: 1.1rem !important;
    }
    
    /* OTP container adjustments */
    .otp-input-container {
        gap: 0.5rem !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        margin: 1rem 0 !important;
    }
    
    /* Continue button fixes for personal loan */
    .continue-btn {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        background: #16a34a !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        margin-top: 1rem !important;
        touch-action: manipulation !important;
    }
    
    .continue-btn:hover,
    .continue-btn:active {
        background: #15803d !important;
        transform: none !important;
    }
    
    /* Ensure buttons are properly sized for touch */
    .verify-btn,
    .continue-btn,
    .proceed-btn {
        min-height: 48px !important;
        touch-action: manipulation !important;
    }
    
    /* Form input improvements */
    .form-group input,
    .form-group select {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        transition: border-color 0.3s ease !important;
        box-sizing: border-box !important;
    }
    
    /* Fix for credit card journey specific issues */
    .credit-card-journey .spinner-captcha {
        display: none !important;
    }
    
    /* Ensure proper spacing */
    .verification-section {
        padding: 1.5rem 1rem !important;
    }
    
    .form-card {
        padding: 1.5rem 1rem !important;
        margin: 1rem !important;
    }
}

/* Desktop override to ensure these fixes don't affect desktop */
@media (min-width: 769px) {
    .mobile-otp-override {
        display: none !important;
    }
}