/* Mobile-specific fixes for Income Tax Filing page */
/* Hide specified sections on mobile devices only */

@media (max-width: 768px) {
    /* 1. Hide the blue hero section at the top */
    .tax-hero {
        display: none !important;
    }

    /* 2. Hide the statistics section with user numbers */
    .stats-section {
        display: none !important;
    }

    /* 3. Hide the "Still confused? Talk to our expert!" section */
    .contact-section {
        display: none !important;
    }

    /* 4. Hide the "Our Expertise" section completely on mobile */
    .expertise-section {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 5. Show simplified footer on mobile with CreditExchange logo */
    .footer {
        display: block !important;
        padding: 3rem 0 !important;
        background: #1f2937 !important;
        color: white !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        margin-top: 6rem !important;
        width: 100% !important;
        clear: both !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

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

    .footer-content {
        display: block !important;
    }

    .footer-section {
        text-align: center !important;
        max-width: 100% !important;
    }

    .footer-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        margin-bottom: 1rem !important;
    }

    .footer-logo img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 12px !important;
    }

    .footer-logo span {
        font-size: 1.8rem !important;
        font-weight: bold !important;
        color: white !important;
    }

    /* Hide all footer sections except logo and apply button on mobile */
    .footer-section:not(:first-child) {
        display: none !important;
    }

    /* Hide all content within first footer section except logo and apply button */
    .footer-section:first-child p,
    .footer-contact,
    .footer-section h3,
    .footer-section h4,
    .footer-section ul,
    .footer-section li,
    .footer-links,
    .footer-about,
    .footer-services,
    .footer-company,
    .footer-bottom,
    .social-links,
    .footer-copyright {
        display: none !important;
    }

    /* Keep only the logo and Apply Now button visible */
    .footer-section:first-child {
        display: block !important;
        text-align: center !important;
    }

    /* Show only the Apply Now button */
    .footer-section .btn-primary {
        display: inline-block !important;
        background: #16a34a !important;
        color: white !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        margin-top: 1rem !important;
    }

    /* Increase mobile header logo size and reduce spacing */
    .header .logo img {
        width: 150px !important;
        height: 150px !important;
        border-radius: 12px !important;
    }

    .header .logo span {
        font-size: 2.5rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
    }

    /* Reduce header spacing and ensure it doesn't block scrolling */
    .header {
        position: relative !important;
        z-index: 100 !important;
        background: white !important;
        padding: 0.5rem 0 !important;
        width: 100% !important;
        overflow: visible !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 160px !important;
        margin-top: 0 !important;
    }

    /* Fix main page container to allow proper scrolling */
    body {
        position: relative !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 100vh !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Adjust main content area to account for hidden sections */
    body {
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    /* Remove any extra spacing from header container */
    .header .container {
        padding: 0 1rem !important;
        margin: 0 auto !important;
    }

    /* Reduce packages section spacing */
    .packages-section {
        padding: 2rem 0 3rem 0 !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem !important;
        background: #f8fafc;
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
        z-index: 10 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        -webkit-touch-callout: default !important;
        -webkit-user-select: text !important;
        -khtml-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }

    /* Add padding around packages section */
    .packages-section .container {
        padding: 0 1rem !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Vertical product display - stack all cards with reduced spacing */
    .package-category {
        display: none !important;
        overflow: visible !important;
        width: 100% !important;
        position: relative !important;
        min-height: auto !important;
        gap: 0rem !important;
        padding: 0rem 0 !important;
        flex-wrap: nowrap !important;
        flex-direction: column !important;
        margin-bottom: 0rem !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        -webkit-touch-callout: default !important;
        -webkit-user-select: text !important;
        -khtml-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }

    /* Show only the active category */
    .package-category#individuals-category {
        display: none !important;
        min-height: auto !important;
    }

    .package-category#individuals-category.active {
        display: flex !important;
        min-height: auto !important;
    }

    .package-category#business-category {
        display: none !important;
        min-height: auto !important;
    }

    .package-category#business-category.active {
        display: flex !important;
        min-height: auto !important;
    }

    /* Each product card stacked vertically with reduced spacing */
    .package-card {
        width: calc(100vw - 3rem) !important;
        min-width: calc(100vw - 3rem) !important;
        max-width: calc(100vw - 3rem) !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 1.5rem !important;
        margin: 1rem 1.5rem !important;
        background: white !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
        border: 1px solid #e5e7eb !important;
        box-sizing: border-box !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 5 !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        transform: none !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        pointer-events: auto !important;
        scroll-behavior: smooth !important;
        -webkit-touch-callout: default !important;
        -webkit-user-select: text !important;
        -khtml-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }

    /* Force business cards to be visible when category is active */
    .package-category#business-category.active .package-card {
        display: block !important;
        width: calc(100vw - 3rem) !important;
        min-width: calc(100vw - 3rem) !important;
        max-width: calc(100vw - 3rem) !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        transform: none !important;
    }

    /* Prevent any horizontal overflow */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .packages-section,
    .packages-carousel,
    .packages-track,
    .package-category {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Container for vertical layout with reduced padding */
    .packages-carousel {
        position: relative !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 0rem !important;
        margin: 0rem auto !important;
        min-height: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }

    .packages-track {
        width: 100% !important;
        overflow: visible !important;
        position: relative !important;
        min-height: auto !important;
        padding: 0.5rem 0 !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }

    /* Ensure proper container wrapping */
    .packages-section .container {
        overflow: visible !important;
        position: relative !important;
        min-height: auto !important;
    }

    /* Hide carousel navigation on mobile */
    .carousel-nav {
        display: none !important;
    }

    .nav-btn {
        display: none !important;
    }

    /* Tax Appointment Modal Styles */
    .appointment-modal {
        display: none !important;
        position: fixed !important;
        z-index: 9999 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: auto !important;
        background-color: rgba(0,0,0,0.5) !important;
        backdrop-filter: blur(5px) !important;
    }

    .appointment-modal-content {
        background-color: #fefefe !important;
        margin: 5% auto !important;
        padding: 0 !important;
        border: none !important;
        width: 95% !important;
        max-width: 800px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .appointment-close {
        color: #aaa !important;
        float: right !important;
        font-size: 28px !important;
        font-weight: bold !important;
        position: absolute !important;
        right: 15px !important;
        top: 10px !important;
        z-index: 10000 !important;
        background: white !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }

    .appointment-close:hover,
    .appointment-close:focus {
        color: black !important;
        text-decoration: none !important;
        cursor: pointer !important;
        background: #f3f4f6 !important;
    }

    /* Create extensive breathing room around packages section for scrolling */
    .packages-section::before,
    .packages-section::after {
        content: '';
        display: block;
        height: 6rem;
        background: transparent;
        pointer-events: auto;
        touch-action: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Add extra padding around the entire packages area */
    .packages-section {
        margin: 2rem 0 !important;
        position: relative !important;
    }

    /* Create clickable areas above and below packages */
    .packages-section::before {
        position: absolute;
        top: -3rem;
        left: 0;
        right: 0;
        height: 3rem;
        z-index: 1;
    }

    .packages-section::after {
        position: absolute;
        bottom: -3rem;
        left: 0;
        right: 0;
        height: 3rem;
        z-index: 1;
    }

    /* Fix packages carousel container */
    .packages-carousel {
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .packages-track {
        display: flex !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    /* Make sure the header is still visible and functional */
    header {
        position: relative !important;
        z-index: 1000 !important;
    }

    /* Optimize remaining sections for mobile */

    .testimonials {
        padding: 3rem 0 !important;
        margin: 3rem 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Ensure smooth scrolling without removed sections */
    html {
        scroll-behavior: smooth;
    }

    /* Order Summary Page Mobile Fixes - Using Income Tax Filing header styles */
    .order-summary-page, .order-summary {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 100vh !important;
        position: relative !important;
    }

    /* Increase mobile header logo size and reduce spacing - copied from Income Tax Filing */
    .order-summary-page .header .logo img, .order-summary .header .logo img {
        width: 150px !important;
        height: 150px !important;
        border-radius: 12px !important;
    }

    .order-summary-page .header .logo span, .order-summary .header .logo span {
        font-size: 2.5rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
    }

    /* Reduce header spacing and ensure it doesn't block scrolling - copied from Income Tax Filing */
    .order-summary-page .header, .order-summary .header {
        position: relative !important;
        z-index: 100 !important;
        background: white !important;
        padding: 0.5rem 0 !important;
        width: 100% !important;
        overflow: visible !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 160px !important;
        margin-top: 0 !important;
    }

    /* Remove any extra spacing from header container - copied from Income Tax Filing */
    .order-summary-page .header .container, .order-summary .header .container {
        padding: 0 1rem !important;
        margin: 0 auto !important;
    }

    .order-summary-page .nav-brand, .order-summary .nav-brand {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        margin-right: auto !important;
    }

    .order-summary-page .nav-actions, .order-summary .nav-actions {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .order-summary-page .nav-actions .btn-primary, .order-summary .nav-actions .btn-primary {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: #16a34a !important;
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        transition: background 0.2s !important;
        white-space: nowrap !important;
    }

    .order-summary-page .nav-actions .btn-primary:hover {
        background: #15803d !important;
    }

    .order-summary-page .nav-actions .btn-secondary {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: #3b82f6 !important;
        border: 1px solid #3b82f6 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        transition: all 0.2s !important;
        white-space: nowrap !important;
    }

    .order-summary-page .nav-actions .btn-secondary:hover {
        background: #3b82f6 !important;
        color: white !important;
    }

    /* Fixed Order Details Section - Always visible like header */
    .order-summary-page .order-details, .order-summary .order-details {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: white !important;
        padding: 1rem !important;
        border-top: 2px solid #e5e7eb !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        width: 100vw !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Fixed Payment Button Container - Always visible like header */
    .order-summary-page .payment-btn-container,
    .order-summary-page .sidebar .payment-btn-container,
    .order-summary-page .sidebar .order-details .payment-btn-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: white !important;
        padding: 1rem !important;
        border-top: 2px solid #e5e7eb !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        width: 100vw !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .order-summary-page .payment-btn-container .payment-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
        color: white !important;
        border: none !important;
        transition: transform 0.2s !important;
        cursor: pointer !important;
    }

    .order-summary-page .payment-btn-container .payment-btn:hover {
        transform: translateY(-2px) !important;
    }

    .order-summary-page .payment-btn-container .payment-btn:active {
        transform: translateY(0) !important;
    }

    .order-summary-page .summary-container, .order-summary .summary-container {
        margin-top: 440px !important; /* Space for fixed header */
        margin-bottom: 0 !important;
        padding-bottom: 200px !important; /* Space for fixed order details */
    }

    /* Sidebar positioning - let payment button handle fixed positioning */
    .order-summary-page .sidebar {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1 !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        border-top: none !important;
        max-height: none !important;
        overflow-y: visible !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 140px !important; /* Space for fixed payment button */
        padding-bottom: 0 !important;
    }

    .order-summary-page .order-details {
        padding: 1rem !important;
    }

    .order-summary-page .security-badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .order-summary-page .plan-summary {
        padding: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .order-summary-page .plan-name {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .order-summary-page .plan-price {
        font-size: 1.3rem !important;
    }

    .order-summary-page .price-breakdown {
        margin: 0.8rem 0 !important;
    }

    .order-summary-page .price-row {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
        margin-bottom: 0.3rem !important;
    }

    .order-summary-page .price-row.total {
        font-size: 1rem !important;
        margin-top: 0.8rem !important;
    }

    .order-summary-page .payment-btn {
        padding: 0.8rem !important;
        font-size: 1rem !important;
        margin-top: 0.8rem !important;
    }

    .order-summary-page .security-info {
        font-size: 0.8rem !important;
        margin-top: 0.4rem !important;
    }

    .order-summary-page .timer-info {
        font-size: 0.8rem !important;
        padding: 0.4rem !important;
        margin-top: 0.4rem !important;
    }

    .order-summary-page .terms-checkbox {
        font-size: 0.8rem !important;
        margin: 0.8rem 0 !important;
    }

    /* reCAPTCHA section mobile */
    .order-summary-page .recaptcha-section {
        margin: 0.8rem 0 !important;
    }

    .order-summary-page .recaptcha-box {
        min-width: 280px !important;
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    .order-summary-page .checkbox-container {
        width: 20px !important;
        height: 20px !important;
    }

    /* Significantly increase logo size for Order Summary page mobile */
    .order-summary-page .header .logo,
    .order-summary .header .logo,
    .order-summary-page .nav-brand .logo,
    .order-summary .nav-brand .logo,
    .order-summary-page .brand-link img,
    .order-summary .brand-link img {
        height: 80px !important;
        width: auto !important;
        max-width: 200px !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Adjust header height to accommodate larger logo */
    .order-summary-page .header,
    .order-summary .header {
        min-height: 100px !important;
        padding: 1rem 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .order-summary-page .header .container,
    .order-summary .header .container {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 1rem !important;
    }

    .order-summary-page .nav-brand,
    .order-summary .nav-brand {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    /* Ensure proper spacing for content below header */
    .order-summary-page .summary-container,
    .order-summary .summary-container {
        margin-top: 180px !important;
        margin-bottom: 0 !important;
        padding-bottom: 200px !important;
    }

    /* Fixed Footer for Order Summary Page Mobile - Continue and Pay Button */
    .order-summary-page .order-summary-footer,
    .order-summary .order-summary-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: white !important;
        padding: 1rem !important;
        border-top: 2px solid #e5e7eb !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        width: 100vw !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .order-summary-page .order-summary-footer .footer-payment-btn,
    .order-summary .order-summary-footer .footer-payment-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
        color: white !important;
        border: none !important;
        transition: transform 0.2s !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    .order-summary-page .order-summary-footer .footer-payment-btn:hover,
    .order-summary .order-summary-footer .footer-payment-btn:hover {
        transform: translateY(-2px) !important;
    }

    .order-summary-page .order-summary-footer .footer-payment-btn:active,
    .order-summary .order-summary-footer .footer-payment-btn:active {
        transform: translateY(0) !important;
    }

    /* Hide original payment button in sidebar when footer is present */
    .order-summary-page .sidebar .payment-btn-container .payment-btn,
    .order-summary .sidebar .payment-btn-container .payment-btn {
        display: none !important;
    }

    /* Add bottom padding to content to avoid overlap with footer */
    .order-summary-page .summary-container,
    .order-summary .summary-container {
        padding-bottom: 100px !important;
    }

    /* Main content spacing */
    .order-summary-page .main-content {
        margin-bottom: 0 !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .order-summary-page .contact-form {
        padding: 1.5rem !important;
    }

    .order-summary-page .form-section h3 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .order-summary-page .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .order-summary-page .form-group {
        margin-bottom: 0.8rem !important;
    }

    .order-summary-page .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
    }

    .order-summary-page .form-group input,
    .order-summary-page .form-group select {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }

    .order-summary-page .page-header {
        padding: 1rem !important;
    }

    .order-summary-page .page-title {
        font-size: 1.1rem !important;
    }

    /* Hide desktop sidebar on mobile */
    .order-summary-page .summary-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Adjust spacing between visible sections */
    .packages-section + .testimonials {
        margin-top: 1rem !important;
    }

    /* Ensure footer is at bottom and visible */
    .testimonials + .footer {
        margin-top: -5rem !important;
    }

    /* Enable proper touch scrolling - simplified */
    .packages-section {
        overflow: visible !important;
        position: relative !important;
        padding-bottom: 2rem !important;
    }

    .package-category {
        overflow: visible !important;
        position: relative !important;
    }

    /* Ensure body scrolling works properly */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 100vh !important;
        position: relative !important;
    }

    html {
        overflow-y: auto !important;
    }

    .packages-carousel,
    .packages-track {
        overflow: visible !important;
        position: relative !important;
    }

    .footer {
        position: relative !important;
        bottom: 0 !important;
        width: 100% !important;
        clear: both !important;
        margin-top: 2rem !important;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Ensure all specified sections remain hidden on very small screens except footer */
    .tax-hero,
    .stats-section,
    .contact-section {
        display: none !important;
    }

    /* Make sure footer is visible on extra small screens */
    .footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Optimize header for very small screens */
    .header {
        padding: 0.5rem 0 !important;
    }

    .nav-actions {
        gap: 0.5rem !important;
    }

    .btn-primary {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
}