
/* MOBILE LAP SPECIFIC FIXES - Target only Loan Against Property page */

@media (max-width: 768px) {
    /* TARGET ONLY LAP PAGES */
    body:has([src*="Loan Against Property"]),
    body:has(.nav-logo img[src*="favicon.png"]) .mobile-header-text:has(h2:contains("Loan Against Property")),
    .loan-against-property-page,
    [class*="lap-"],
    [data-page*="lap"] {
        
        /* HIDE ALL STEP TEXT AND INDICATORS */
        .step-text,
        .step-label,
        .step-description,
        .step-info,
        .step-details,
        .step-content .step-text,
        .nav-steps .step-text,
        .journey-steps .step-text,
        .mobile-step-bar .step-text,
        .progress-step .step-text {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
            line-height: 0 !important;
            font-size: 0 !important;
        }
        
        /* HIDE FEATURE LIST ITEMS CAUSING WHITESPACE */
        .feature-list,
        .features-list,
        .product-features,
        .loan-features,
        .benefit-features,
        .feature-item,
        .feature-list .feature-item,
        .features-list li,
        .product-header .feature-list,
        .left-section .feature-list,
        .feature-list ul,
        .feature-list ul li {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        /* REDUCE LEFT SECTION WHITESPACE */
        .left-section {
            padding: 0.5rem !important;
            margin: 0 !important;
            min-height: auto !important;
        }
        
        /* REDUCE PRODUCT HEADER SPACING */
        .product-header {
            padding: 0.5rem !important;
            margin: 0 !important;
        }
        
        .product-header h1 {
            display: none !important;
        }
        
        .product-description {
            display: none !important;
        }
        
        /* COMPACT CONTENT WRAPPER */
        .content-wrapper {
            gap: 0.5rem !important;
            padding: 0.5rem !important;
            margin: 0 !important;
        }
        
        /* ENSURE FORM VISIBILITY */
        .right-section {
            width: 100% !important;
            padding: 0.5rem !important;
            margin: 0 !important;
        }
        
        .application-form {
            padding: 1rem !important;
            margin: 0 !important;
        }
        
        /* REMOVE EXCESS SPACING FROM FORM GROUPS */
        .form-group {
            margin-bottom: 1rem !important;
        }
        
        /* HIDE BACK BUTTON EXCESS SPACING */
        .back-btn {
            margin-bottom: 0.5rem !important;
            padding: 0.5rem 0 !important;
        }
    }
    
    /* SPECIFIC LAP PAGE TARGETING BY URL OR TITLE */
    body:has(title:contains("Loan Against Property")) {
        .step-text,
        .feature-list,
        .features-list,
        .product-features {
            display: none !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }
    }
    
    /* TARGET BY IMAGE SOURCE */
    body:has(img[src*="Loan Against Property"]) {
        .step-text,
        .step-label,
        .feature-list,
        .feature-item {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            overflow: hidden !important;
        }
        
        .left-section,
        .product-header {
            padding: 0.25rem !important;
            margin: 0 !important;
        }
    }
    
    /* ENSURE STEP CONTENT IS COMPACT */
    .step-content {
        padding: 0.5rem 0 !important;
        margin: 0 !important;
    }
    
    /* HIDE LOAN INFO CARD EXCESS SPACING */
    .loan-info-card {
        margin: 0.5rem 0 !important;
        padding: 0.5rem !important;
    }
    
    /* BENEFITS GRID COMPACT */
    .benefits-grid {
        gap: 0.5rem !important;
        margin: 0.5rem 0 !important;
        padding: 0.5rem !important;
    }
    
    .benefit-card {
        padding: 0.5rem !important;
        margin: 0 !important;
    }
}

/* DESKTOP PROTECTION - ENSURE NO CHANGES ON DESKTOP */
@media (min-width: 769px) {
    .step-text,
    .feature-list,
    .features-list,
    .product-features,
    .feature-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
}
