        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            background: white;
            max-width: 1000px;
            width: 100%;
            min-height: 600px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            overflow: hidden;
            position: relative;
        }

        .header {
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
        }

        .ai-badge {
            position: absolute;
            top: 10px;
            left: 20px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.9; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.05); }
        }

        .trust-badges {
            position: absolute;
            top: 10px;
            left: 180px;
            display: flex;
            gap: 10px;
        }

        .badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 11px;
        }

        .live-counter {
            position: absolute;
            top: 10px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
        }

        .clear-form-btn {
            position: absolute;
            top: 50px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: none;
        }

        .clear-form-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .header h1 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 14px;
            opacity: 0.9;
        }

        .progress-bar {
            background: rgba(255, 255, 255, 0.2);
            height: 8px;
            border-radius: 4px;
            margin-top: 20px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            padding: 15px 30px;
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
        }

        .step {
            text-align: center;
            cursor: pointer;
            position: relative;
            flex: 1;
            padding: 10px;
        }

        .step-number {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: #e0e0e0;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .step.active .step-number {
            background: #4a90e2;
            color: white;
            transform: scale(1.1);
        }

        .step.completed .step-number {
            background: #28a745;
            color: white;
        }

        .step-label {
            font-size: 12px;
            color: #666;
        }

        .content {
            padding: 40px;
            min-height: 400px;
        }

        .page {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .cover-page {
            text-align: center;
            padding: 40px 20px;
        }

        .logo-container {
            display: flex;
            justify-content: space-around;
            margin: 30px 0;
            align-items: center;
        }

        .logo {
            max-width: 180px;
            height: auto;
        }

        .cover-title {
            font-size: 36px;
            color: #333;
            margin: 30px 0 20px;
            font-weight: 700;
        }

        .cover-subtitle {
            font-size: 18px;
            color: #666;
            margin-bottom: 30px;
        }

        .value-proposition {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 30px;
            border-radius: 15px;
            margin: 20px 0;
        }

        .value-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .value-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .value-card:hover {
            transform: translateY(-5px);
        }

        .value-number {
            font-size: 36px;
            font-weight: bold;
            color: #4a90e2;
            margin-bottom: 10px;
        }

        .value-label {
            color: #666;
            font-size: 14px;
        }

        .testimonial-slider {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .urgency-banner {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            padding: 15px;
            text-align: center;
            border-radius: 10px;
            margin: 20px 0;
        }

        .countdown-timer {
            font-size: 24px;
            font-weight: bold;
            margin-top: 10px;
        }

        .social-proof {
            background: #e8f5e9;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .start-button {
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 16px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
        }

        .start-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 500;
        }

        .required::after {
            content: " *";
            color: #dc3545;
        }

        .form-control {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
        }

        /* Searchable Dropdown Styles */
        .searchable-select-wrapper {
            position: relative;
            width: 100%;
        }

        .searchable-select-input {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            cursor: text;
        }

        .searchable-select-input:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
        }

        .searchable-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 2px solid #4a90e2;
            border-top: none;
            border-radius: 0 0 8px 8px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            margin-top: -2px;
        }

        .dropdown-option {
            padding: 10px 15px;
            cursor: pointer;
            transition: background 0.2s ease;
            font-size: 14px;
            border-bottom: 1px solid #f0f0f0;
        }

        .dropdown-option:last-child {
            border-bottom: none;
        }

        .dropdown-option:hover {
            background: #e3f2fd;
            color: #1976d2;
        }

        .dropdown-option.no-results {
            cursor: default;
            color: #999;
            font-style: italic;
        }

        .dropdown-option.no-results:hover {
            background: white;
            color: #999;
        }

        /* Region headers in dropdown */
        .dropdown-region-header {
            padding: 8px 15px;
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            color: white;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: sticky;
            top: 0;
            z-index: 10;
            border-bottom: 2px solid #2e6da4;
        }

        .dropdown-region-header:first-child {
            border-radius: 6px 6px 0 0;
        }

        /* Custom scrollbar for dropdown */
        .searchable-dropdown::-webkit-scrollbar {
            width: 8px;
        }

        .searchable-dropdown::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 0 0 8px 0;
        }

        .searchable-dropdown::-webkit-scrollbar-thumb {
            background: #4a90e2;
            border-radius: 4px;
        }

        .searchable-dropdown::-webkit-scrollbar-thumb:hover {
            background: #357abd;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .ai-insight-card {
            background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
            border-left: 4px solid #ff9800;
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
            display: none;
        }

        .ai-insight-card.active {
            display: block;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .ai-insight-title {
            font-weight: bold;
            color: #e65100;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ai-insight-content {
            color: #5d4037;
            font-size: 14px;
            line-height: 1.6;
        }

        .table-container {
            overflow-x: auto;
            margin: 20px 0;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 700px;
        }

        th {
            background: #f8f9fa;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            border: 1px solid #dee2e6;
            font-size: 14px;
        }

        td {
            padding: 10px;
            border: 1px solid #dee2e6;
        }

        .table-input {
            width: 100%;
            padding: 6px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
        }

        .surface-option {
            border: 2px solid #dee2e6;
            padding: 15px;
            border-radius: 10px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
        }

        .surface-option:hover {
            border-color: #4a90e2;
            background: #e3f2fd;
        }

        .roi-calculator {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
            margin: 20px 0;
        }

        .roi-display {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .roi-metric {
            text-align: center;
        }

        .roi-value {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .roi-label {
            font-size: 12px;
            opacity: 0.9;
        }

        .navigation {
            display: flex;
            justify-content: space-between;
            padding: 30px;
            background: #f8f9fa;
        }

        .nav-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 15px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .prev-btn {
            background: white;
            color: #666;
            border: 2px solid #dee2e6;
        }

        .next-btn {
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            color: white;
            box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
        }

        .next-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
        }

        .ai-chat-toggle {
            position: fixed;
            bottom: 140px;
            right: 20px;
            background: white;
            color: #333;
            padding: 15px 20px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            z-index: 100;
            border: 3px solid transparent;
            background-clip: padding-box;
        }

        .ai-chat-toggle::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 50px;
            z-index: -1;
        }

        .ai-chat-toggle:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(240, 147, 251, 0.4);
        }

        .ai-chat-label {
            font-weight: 600;
            font-size: 15px;
            color: #333;
            white-space: nowrap;
        }

        .ai-chat-toggle > div > div {
            color: white !important;
        }

        #aiStatusText {
            color: white !important;
        }

        .ai-status-dot {
            width: 10px;
            height: 10px;
            background: #28a745;
            border-radius: 50%;
            animation: pulse-dot 2s infinite;
        }

        @keyframes pulse-dot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .ai-notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #dc3545;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
            border: 2px solid white;
            animation: bounce 1s infinite;
        }

        .ai-notification-badge.show {
            display: flex;
        }

        @keyframes bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .avatar-img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .ai-chat-panel {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 380px;
            height: 500px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .ai-chat-panel.active {
            display: flex;
        }

        .ai-chat-header {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ai-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: #f8f9fa;
        }

        .ai-message {
            margin: 10px 0;
            display: flex;
            animation: slideIn 0.3s ease;
        }

        .ai-message.user {
            justify-content: flex-end;
        }

        .ai-message-content {
            max-width: 70%;
            padding: 10px 15px;
            border-radius: 15px;
            background: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .ai-message.user .ai-message-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .ai-message.assistant .ai-message-content {
            background: white;
            border: 1px solid #e0e0e0;
        }

        .ai-chat-input {
            padding: 15px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 10px;
        }

        .ai-chat-input input {
            flex: 1;
            padding: 10px;
            border: 1px solid #dee2e6;
            border-radius: 20px;
            outline: none;
        }

        .ai-chat-input button {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
        }

        .lead-score {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        .lead-score-title {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
        }

        .lead-score-bar {
            width: 150px;
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 5px;
        }

        .lead-score-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
            transition: width 0.5s ease;
        }

        .lead-score-label {
            font-size: 11px;
            color: #333;
            font-weight: bold;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .modal-overlay.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal {
            background: white;
            padding: 30px;
            border-radius: 15px;
            max-width: 500px;
            width: 90%;
        }

        .modal button {
            margin: 5px;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .common-eq-btn {
            background: #f8f9fa;
            border: 2px solid #dee2e6;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
            text-align: left;
        }

        .common-eq-btn:hover {
            background: #e3f2fd;
            border-color: #4a90e2;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
        }

        @media (max-width: 768px) {
            .value-cards {
                grid-template-columns: 1fr;
            }
            .form-row {
                grid-template-columns: 1fr;
            }
            /* AI Chat mobile optimization */
            .ai-chat-panel {
                width: 100vw;
                height: 100vh;
                bottom: 0;
                right: 0;
                left: 0;
                top: 0;
                border-radius: 0;
                z-index: 9999;
            }

            .ai-chat-toggle {
                bottom: 20px;
                right: 15px;
                padding: 12px;
                gap: 0;
                border-radius: 50%;
                width: 60px;
                height: 60px;
                justify-content: center;
                z-index: 1001;
            }

            /* Hide text label on mobile, show only avatar */
            .ai-chat-label,
            .ai-chat-toggle > div {
                display: none;
            }
            .avatar-img {
                width: 40px;
                height: 40px;
            }
            .ai-chat-label {
                font-size: 13px;
            }

            /* Fix body layout for mobile */
            body {
                display: block !important;
                padding: 0 !important;
                margin: 0;
                min-height: 100vh;
            }

            /* Comprehensive mobile optimizations */
            .container {
                padding: 0;
                margin: 0;
                width: 100vw;
                max-width: none;
                min-height: 100vh;
                border-radius: 0;
                box-shadow: none;
                position: relative;
            }

            /* Header responsive */
            .header h1 {
                font-size: 24px;
                margin-bottom: 5px;
            }

            .header .subheading {
                font-size: 14px;
            }

            /* Progress steps responsive */
            .progress-steps {
                padding: 10px;
                flex-wrap: wrap;
                gap: 5px;
                justify-content: center;
            }

            .step {
                flex: 0 0 calc(25% - 4px);
                min-width: 50px;
                padding: 6px 2px;
            }

            .step-number {
                width: 25px;
                height: 25px;
                font-size: 12px;
                line-height: 25px;
                margin: 0 auto 3px;
            }

            .step-label {
                font-size: 9px;
                margin-top: 2px;
            }

            /* Cover page mobile */
            .cover-page {
                padding: 20px 10px;
            }

            .logo-container {
                flex-direction: column;
                gap: 15px;
                margin-bottom: 20px;
            }

            .logo {
                max-width: 120px;
                height: auto;
            }

            .hero-title {
                font-size: 26px;
                line-height: 1.2;
                margin-bottom: 10px;
            }

            .hero-subtitle {
                font-size: 16px;
                margin-bottom: 15px;
            }

            .cta-button {
                padding: 15px 25px;
                font-size: 16px;
                width: 90%;
                margin: 10px auto;
                display: block;
            }

            /* Trust badges mobile */
            .trust-badges {
                position: static;
                justify-content: center;
                margin: 15px 0;
                flex-wrap: wrap;
            }

            .badge {
                font-size: 10px;
                padding: 4px 8px;
                margin: 2px;
            }

            /* Live counter mobile */
            .live-counter {
                position: static;
                text-align: center;
                margin: 10px 0;
                font-size: 12px;
            }

            /* Form controls mobile */
            .form-control {
                font-size: 16px; /* Prevents iOS zoom */
                padding: 12px;
                width: 100%;
                box-sizing: border-box;
            }

            textarea.form-control {
                min-height: 80px;
            }

            select.form-control {
                padding: 12px;
                background-size: 20px;
            }

            /* Grid layouts mobile */
            [style*="grid-template-columns"] {
                display: block !important;
            }

            [style*="grid-template-columns"] > div {
                margin-bottom: 15px;
            }

            /* Equipment table mobile */
            .equipment-table {
                font-size: 12px;
                overflow-x: auto;
                display: block;
                white-space: nowrap;
            }

            .equipment-table th,
            .equipment-table td {
                padding: 6px 4px;
                font-size: 11px;
                min-width: 60px;
            }

            .equipment-input {
                width: 55px;
                font-size: 11px;
                padding: 4px 2px;
            }

            /* Navigation mobile */
            .navigation {
                padding: 20px 15px;
                gap: 15px;
                flex-wrap: wrap;
                background: #f8f9fa;
                border-top: 1px solid #dee2e6;
            }

            .nav-btn {
                padding: 15px 25px;
                font-size: 16px;
                flex: 1;
                min-width: 140px;
                min-height: 50px;
                border-radius: 8px;
                font-weight: 600;
            }

            /* Content spacing mobile */
            .content {
                padding: 20px 15px;
            }

            .page {
                padding: 20px 15px;
            }

            /* Header mobile adjustments */
            .header {
                padding: 20px 15px;
            }

            /* Progress steps mobile */
            .progress-steps {
                padding: 15px;
            }

            .page h2 {
                font-size: 22px;
                margin-bottom: 15px;
            }

            .page h3 {
                font-size: 18px;
                margin-bottom: 12px;
            }

            /* Summary content mobile */
            #summaryContent {
                padding: 20px 15px;
                border: 1px solid #e0e0e0;
            }

            /* Submit button mobile */
            #submitBtn {
                padding: 15px 30px;
                font-size: 16px;
                width: 90%;
                margin: 0 auto;
                display: block;
            }

            /* AI insight cards mobile */
            .ai-insight-card {
                margin: 15px 0;
                padding: 15px;
                font-size: 14px;
            }

            .ai-insight-title {
                font-size: 14px;
                margin-bottom: 8px;
            }

            /* Info boxes mobile */
            .info-box,
            [style*="background: #f8f9fa"] {
                padding: 15px !important;
                margin: 15px 0 !important;
                font-size: 14px;
            }

            /* Hide decorative elements on mobile */
            .floating-element {
                display: none;
            }

            /* Touch-friendly improvements */
            input[type="checkbox"] {
                width: 18px;
                height: 18px;
                margin-right: 10px;
            }

            label {
                padding: 8px;
                cursor: pointer;
                display: block;
                line-height: 1.4;
            }

            /* Better touch targets for interactive elements */
            .step {
                min-height: 50px;
                cursor: pointer;
                transition: all 0.2s ease;
            }

            .step:hover,
            .step:active {
                background: rgba(74, 144, 226, 0.1);
                transform: scale(1.02);
            }

            /* Equipment table touch improvements */
            .equipment-input {
                min-height: 40px;
                touch-action: manipulation;
            }

            /* Button improvements */
            button {
                min-height: 44px;
                touch-action: manipulation;
                -webkit-tap-highlight-color: rgba(0,0,0,0);
            }

            /* Ensure full width for small screens */
            * {
                box-sizing: border-box;
            }

            /* Final mobile optimizations */
            html {
                overflow-x: hidden;
            }

            body {
                overflow-x: hidden;
                width: 100vw;
                position: relative;
            }

            /* Ensure no elements extend beyond viewport */
            * {
                max-width: 100%;
            }

            /* Form elements full width */
            .form-control,
            input,
            select,
            textarea {
                max-width: 100%;
                width: 100%;
            }

            /* Equipment table responsive wrapper */
            .table-wrapper {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 480px) {
            .hero-title {
                font-size: 22px;
            }

            .hero-subtitle {
                font-size: 14px;
            }

            .step {
                flex: 0 0 calc(50% - 3px);
            }

            .step-label {
                font-size: 8px;
            }

            .cta-button {
                width: 95%;
                padding: 12px 20px;
                font-size: 15px;
            }

            .equipment-input {
                width: 45px;
                font-size: 10px;
            }

            .nav-btn {
                padding: 10px 15px;
                font-size: 13px;
                min-width: 100px;
            }

            #submitBtn {
                width: 95%;
                padding: 12px 25px;
                font-size: 15px;
            }

            .logo {
                max-width: 100px;
            }
        }

        /* Tablet adjustments */
        @media (min-width: 769px) and (max-width: 1024px) {
            body {
                display: block !important;
                padding: 10px !important;
            }

            .container {
                padding: 0;
                margin: 0 auto;
                max-width: 95vw;
                width: 95vw;
                min-height: calc(100vh - 20px);
                border-radius: 15px;
            }

            .content {
                padding: 25px 20px;
            }

            .page {
                padding: 25px 20px;
            }

            .step {
                padding: 10px 8px;
            }

            .ai-chat-panel {
                width: 400px;
                height: 500px;
                max-width: 90vw;
                max-height: 80vh;
            }

            .ai-chat-toggle {
                bottom: 30px;
                right: 20px;
                padding: 15px 20px;
                border-radius: 50px;
                width: auto;
                height: auto;
                gap: 12px;
            }

            /* Show text label on tablet */
            .ai-chat-label,
            .ai-chat-toggle > div {
                display: block;
            }
        }

        /* Landscape phone adjustments */
        @media (max-height: 500px) and (orientation: landscape) {
            .ai-chat-panel {
                height: 85vh;
                width: 280px;
            }

            .hero-title {
                font-size: 20px;
                margin-bottom: 8px;
            }

            .hero-subtitle {
                font-size: 12px;
                margin-bottom: 10px;
            }

            .progress-steps {
                padding: 6px;
            }

            .step-number {
                width: 20px;
                height: 20px;
                font-size: 10px;
                line-height: 20px;
            }

            .step-label {
                font-size: 7px;
            }

            .cta-button {
                padding: 10px 20px;
                font-size: 14px;
            }
        }
