// NDIS Chatbot functionality let chatbotOpen = false; let messagesContainer; let chatInput; let sendButton; let toggleButton; let notification; let chatInterface; let chatIcon; let closeIcon; // Pre-defined responses for common NDIS questions const chatbotResponses = { // Services "what services do you offer?": "We offer a comprehensive range of NDIS services including:\n\n• Daily Living Support\n• Community Participation\n• Support Coordination\n• Plan Management\n• Respite Care\n• Transport Services\n• Home Modifications\n• Assistive Technology\n\nWould you like to know more about any specific service?", "daily living support": "Our Daily Living Support helps you with everyday tasks like:\n• Personal care and hygiene\n• Meal preparation and cooking\n• Household tasks and cleaning\n• Medication management\n• Life skills development\n\nOur trained support workers assist you to maintain independence while ensuring your safety and wellbeing.", "community participation": "Community Participation services help you engage with your local community:\n• Social activities and groups\n• Recreation and sports programs\n• Educational activities\n• Volunteer opportunities\n• Cultural events\n• Building social connections\n\nWe support you to participate in activities that interest you and help build meaningful relationships.", "support coordination": "Support Coordination helps you get the most out of your NDIS plan:\n• Understanding your NDIS plan\n• Connecting with service providers\n• Building your support network\n• Problem-solving issues\n• Plan reviews and updates\n• Advocacy and representation\n\nOur coordinators work with you to achieve your goals and navigate the NDIS system.", // NDIS Application Process "how do i apply for ndis?": "To apply for the NDIS, you need to:\n\n1. **Check eligibility** - You must be under 65, have a permanent disability, and be an Australian citizen/permanent resident\n\n2. **Gather evidence** - Medical reports, assessments, and documentation of your disability\n\n3. **Submit application** - Call 1800 800 110 or apply online at myplace.ndis.gov.au\n\n4. **Planning meeting** - Work with an NDIS planner to create your support plan\n\nWe can help you through this process! Would you like assistance with your application?", "ndis eligibility": "To be eligible for the NDIS, you must meet ALL of these criteria:\n\n• **Age**: Under 65 when you first apply\n• **Residency**: Australian citizen, permanent resident, or Protected Special Category Visa holder\n• **Disability**: Have a permanent disability that significantly affects your ability to participate in everyday activities\n• **Early intervention**: Or have a developmental delay where early intervention would be beneficial\n\nIf you're unsure about eligibility, we can help assess your situation and guide you through the process.", "ndis planning meeting": "Your NDIS planning meeting is where you:\n\n• Discuss your goals and aspirations\n• Talk about your current supports\n• Identify what help you need\n• Determine your plan budget\n• Choose how you want to manage your plan\n\n**Tips for your meeting:**\n• Bring a support person\n• Prepare a list of your goals\n• Have medical reports ready\n• Think about your daily routine\n• Be honest about your needs\n\nWould you like help preparing for your planning meeting?", // Contact Information "what are your contact details?": "Here are our contact details:\n\n📞 **Phone**: +61 (02) 1234 5678\n📧 **Email**: hello@assistance2thrive.com.au\n📍 **Address**: 6 Arnhem Court, Salisbury Downs, SA 5108\n\n**Business Hours:**\n• Monday - Friday: 8:00 AM - 6:00 PM\n• Saturday: 9:00 AM - 4:00 PM\n• Sunday: Emergency only\n\n🚨 **Emergency Support**: +61 (02) 1234 5999 (24/7)\n\nYou can also fill out our contact form on this page, and we'll get back to you within 24 hours!", "business hours": "Our business hours are:\n\n• **Monday - Friday**: 8:00 AM - 6:00 PM\n• **Saturday**: 9:00 AM - 4:00 PM\n• **Sunday**: Emergency support only\n\n**Emergency Support**: Available 24/7 on +61 (02) 1234 5999\n\nFor non-urgent matters, you can contact us during business hours or send us a message anytime - we'll respond within 24 hours!", // General Information "what is ndis?": "The National Disability Insurance Scheme (NDIS) is an Australian government initiative that:\n\n• Provides funding for disability support services\n• Helps people with permanent disabilities live more independently\n• Supports families and carers\n• Connects people with their community\n• Funds reasonable and necessary supports\n\n**Key benefits:**\n• Choice and control over your supports\n• Flexible funding\n• Person-centered planning\n• Access to quality services\n\nWould you like to know more about how the NDIS works or how we can help you?", "how much does ndis cost?": "The NDIS is funded by the Australian Government, so eligible participants don't pay for:\n\n• NDIS supports and services\n• Support coordination\n• Plan management\n• Most equipment and technology\n\n**You may need to pay for:**\n• Day-to-day living costs (rent, food, utilities)\n• Health services covered by Medicare\n• Education services\n• Some mainstream services\n\nYour NDIS plan will outline exactly what's funded. We can help you understand what's covered in your plan!", // Default responses "hello": "Hello! Welcome to Assistance 2 Thrive. I'm here to help you with any questions about NDIS services. How can I assist you today?", "hi": "Hi there! Thanks for reaching out. I'm your NDIS Assistant and I'm here to help. What would you like to know about our services?", "help": "I'm here to help! I can assist you with:\n\n• Information about our NDIS services\n• NDIS application process\n• Our contact details and business hours\n• General NDIS information\n• Support coordination\n• Plan management\n\nWhat specific information would you like?", "thanks": "You're very welcome! Is there anything else I can help you with today? I'm here whenever you need assistance with NDIS-related questions.", "thank you": "You're most welcome! Feel free to ask if you have any other questions. We're always here to help you navigate your NDIS journey." }; function addMessage(message, isUser = false) { if (!messagesContainer) return; const messageDiv = document.createElement('div'); messageDiv.className = 'flex items-start space-x-3 message-animation'; if (isUser) { messageDiv.innerHTML = `
${message}
${message}