/* Mobile-specific fixes to eliminate scrolling */
@media (max-width: 768px) {
    /* WhatsApp Modal Fixes */
    .modal-overlay {
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .whatsapp-modal {
        width: 90%;
        max-height: none;
        height: auto;
        overflow: visible;
    }
    
    .modal-body {
        overflow: visible;
        padding: 10px;
    }
    
    /* Compact form elements */
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .form-group input,
    .form-group select,
    .country-code-select,
    .phone-input,
    .assistant-select {
        height: 36px;
        padding: 5px 8px;
        font-size: 14px;
    }
    
    .form-group p {
        font-size: 9px !important;
        margin: 3px 0;
        line-height: 1.2;
    }
    
    /* Complete Chat Widget Reset - Floating Style */
    .chat-widget {
        width: 320px !important;
        height: 450px !important;
        max-width: 85% !important;
        max-height: 65vh !important;
        position: fixed !important;
        bottom: 90px !important;
        right: 20px !important;
        left: auto !important;
        border-radius: 15px !important;
        margin: 0 !important;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3) !important;
        transform: none !important;
        z-index: 1000 !important;
        display: none !important; /* Start hidden, JS will show it */
    }
    
    .chat-widget.active {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Chat toggle button styling */
    .chat-toggle {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 999 !important;
    }
    
    .chat-header {
        padding: 8px;
        height: auto;
    }
    
    .chat-header h3 {
        font-size: 16px;
    }
    
    .chat-setup {
        padding: 10px;
        overflow: visible;
    }
    
    .setup-header h4 {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .setup-header p {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .chat-messages {
        overflow: visible;
        padding: 8px;
        max-height: calc(100vh - 110px);
    }
    
    .message {
        padding: 8px 10px;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .chat-input {
        padding: 8px;
        height: auto;
    }
    
    .chat-input input {
        padding: 8px;
        height: 36px;
    }
    
    .start-demo-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* For very small screens */
    @media (max-height: 600px) {
        .chat-header {
            padding: 5px;
            min-height: 40px;
        }
        
        .chat-input {
            padding: 5px;
            min-height: 40px;
        }
        
        .form-group {
            margin-bottom: 5px;
        }
        
        .form-group label {
            font-size: 12px;
        }
        
        .form-group input,
        .form-group select {
            height: 32px;
            padding: 4px 6px;
        }
        
        .whatsapp-modal .modal-header {
            padding: 8px;
        }
    }
}
