Modal - Copy this React, Tailwind Component to your project
Create a mobile responsive modal component using HTML, CSS, and JavaScript. The modal should cover the entire viewport with a semi transparent background when activated and be centered on the screen, adjusting seamlessly to various screen sizes. The modal should include a header section with a title like "Submit Your Information" and a close button for dismissal. Inside the modal body, incorporate two text fields—one for "Name" and one for "Email"—each with labels and placeholder text. At the bottom, add a submit button. The design should be modern with rounded corners, ensuring readability and accessibility on both mobile and desktop devices. The modal must be hidden initially and displayed when triggered, such as by clicking a button. It should also close when clicking outside the modal content or using the close button. Ensure input validation upon submission and provide appropriate feedback or handle form submission. The component should be accessible, including keyboard navigation and screen reader support, with necessary aria labels and roles for better accessibility.
