/* Mobile Loan Header Cleanup - Hide Step Process Icons and Ensure Mobile Input Visibility */
@media (max-width: 768px) {
    /* Hide ALL step indicators and numbers completely on mobile for all loan journey pages */
    .nav-steps,
    .nav-steps .step-indicator,
    .step-indicator,
    .mobile-step-bar,
    .mobile-steps,
    .step-number,
    .step-text,
    .step,
    .step-circle,
    .step-icon,
    .step-progress,
    .progress-step,
    .journey-steps,
    .step-counter,
    .step-label,
    .step-breadcrumb,
    .progress-bar,
    .step-navigation-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        margin: 0 !important;
        padding: 0 !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;
        opacity: 1 !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;
        height: auto !important;
    }

    /* Ensure navigation container only shows logo on mobile - increased height */
    .nav-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
        padding: 1rem 1rem !important;
        width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }

    /* Logo section - moved to left */
    .nav-logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Logo content layout - text moved to right */
    .logo-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
        order: 2 !important;
        flex: 1 !important;
        margin-left: 0.75rem !important;
        max-width: calc(100% - 80px) !important;
        overflow: hidden !important;
    }

    .journey-title {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #666 !important;
        display: none !important; /* Hide on mobile to save space */
    }

    .mobile-header-text {
        display: block !important;
    }

    .mobile-header-text h2 {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        margin: 0 0 0.1rem 0 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-header-text p {
        font-size: 0.7rem !important;
        color: #666 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Logo image styling - smaller to fit left side */
    .loan-logo,
    .nav-logo img {
        height: 50px !important;
        width: auto !important;
        max-width: 60px !important;
        display: block !important;
        object-fit: contain !important;
        border-radius: 6px !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 1 !important;
    }

    /* Navbar styling for mobile - increased height */
    .navbar,
    nav.navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 10000 !important;
        background: white !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
        height: auto !important;
        min-height: 120px !important;
        max-height: 120px !important;
        padding: 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        margin: 0 !important;
    }

    /* Ensure body has proper top padding for fixed header - increased */
    body {
        padding-top: 120px !important;
    }

    /* Main content adjustments for better visibility */
    .main-content {
        margin-top: 0 !important;
        padding-top: 10px !important;
        min-height: calc(100vh - 120px) !important;
    }

    .container {
        padding: 0 1rem !important;
        margin: 0 !important;
    }

    .loan-application-layout {
        padding: 0 !important;
        margin: 0 !important;
    }

    .form-card {
        margin-top: 0 !important;
        padding: 1rem !important;
    }

    .mobile-form-section {
        padding-top: 0.5rem !important;
    }

    /* Hide any other step-related elements */
    .step-content .step-navigation,
    .journey-indicator,
    .progress-step,
    .form-steps,
    .loan-steps,
    .journey-steps,
    .steps-navigation {
        /* Keep these visible as they are part of the main content, not header */
    }
}

/* Desktop version - ensure step indicators remain visible */
@media (min-width: 769px) {
    /* Ensure desktop step indicators remain visible */
    .nav-steps,
    .nav-steps .step-indicator,
    .step-indicator {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hide mobile step bar on desktop */
    .mobile-step-bar,
    .mobile-steps {
        display: none !important;
    }
}