
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Music Artist Track Submission</title>

    <!-- Tailwind CSS for styling -->
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
        body { font-family: 'Inter', sans-serif; }
        .service-box {
            border: 2px solid #fff;
            color: #fff;
            background-color: #000;
        }
        .service-box:hover {
            border-color: var(--random-color); /* Dynamically set by JS */
            background-color: #1a1a1a;
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
        }
        .modal-left {
            justify-content: flex-start;
        }
    </style>

    <!-- Font Awesome for social media icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" xintegrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    
    <!-- Google reCAPTCHA v3 -->
    <script src="https://www.google.com/recaptcha/api.js?render=6LeogqQrAAAAAJMac5YOK0u038ercMwY9N2eH4WC"></script>

    <!-- PayPal SDK with your client ID -->
    <script src="https://www.paypal.com/sdk/js?client-id=AcuLgximecPpFQFwymNbABldwSLt9Uc3vHmO4vHeU_nEXVEUowWRrqkhIa09aBCMmAoYx3YlBAL20Ay8&currency=USD"></script>
</head>
<body class="bg-gray-900 text-gray-100 flex flex-col min-h-screen">

    <!-- Confirmation Modal (Pop-up) -->
    <div id="confirmation-modal" class="fixed inset-0 bg-gray-900 bg-opacity-75 flex items-center justify-start modal-left hidden">
        <div class="bg-gray-800 p-8 rounded-lg shadow-xl max-w-lg mx-4 text-center">
            <h2 class="text-3xl font-bold text-teal-400 mb-4" id="modal-title"></h2>
            <p class="text-lg mb-6" id="modal-message"></p>
            <div class="flex justify-center space-x-6 mb-8">
                <a href="https://www.instagram.com/digital_solutions75/" target="_blank" class="text-4xl text-gray-400 hover:text-teal-400 hover:scale-110 transition-transform">
                    <i class="fab fa-instagram"></i>
                </a>
                <a href="https://x.com/eastcoastmp3" target="_blank" class="text-4xl text-gray-400 hover:text-teal-400 hover:scale-110 transition-transform">
                    <i class="fab fa-x-twitter"></i>
                </a>
                <a href="https://www.facebook.com/eastcoastmp3s/" target="_blank" class="text-4xl text-blue-500 hover:text-teal-400 hover:scale-110 transition-transform">
                    <i class="fab fa-facebook-f"></i>
                </a>
            </div>
            <button onclick="closeModal()" class="px-6 py-3 bg-teal-500 text-white font-bold rounded-full hover:bg-teal-600 transition-colors">Close</button>
        </div>
    </div>

    <!-- Header -->
    <header class="bg-gray-800 shadow-lg py-4">
        <nav class="container mx-auto flex flex-col md:flex-row items-center justify-between px-4">
            <div class="flex flex-col md:flex-row space-y-2 md:space-y-0 md:space-x-8 text-lg font-semibold">
                <a href="#intro" class="hover:text-teal-400 transition-colors">Intro</a>
                <a href="#services" class="hover:text-teal-400 transition-colors">Services</a>
                <a href="#contact" class="hover:text-teal-400 transition-colors">Contact</a>
                <a href="#submit" class="text-teal-400 hover:text-teal-500 transition-colors">Submit Tracks</a>
                <a href="dj_signup.php" class="hover:text-teal-400 transition-colors">DJ Sign Up</a>
            </div>
        </nav>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto mt-8 flex-grow px-4">
        <!-- Logo Section -->
        <section class="text-center py-16 bg-gray-800 rounded-lg shadow-xl mb-12">
            <div class="flex justify-center mb-6">
                <img src="https://eastcoastdigitalradio.com/theeastcoastdigitalradio.png" alt="East Coast Digital Radio Logo" class="w-64 md:w-80 lg:w-96 p-4 border-4 border-white rounded-lg">
            </div>
            <h1 class="text-4xl md:text-5xl font-extrabold text-white leading-tight">Amplify Your Sound with East Coast Digital Radio</h1>
            <p class="mt-4 text-xl md:text-2xl text-gray-400 font-light">We fuse Hip-Hop culture with cutting-edge technology to promote your music.</p>
        </section>

        <!-- Services Section -->
        <section id="services" class="py-12">
            <h2 class="text-4xl font-bold text-center text-teal-400 mb-8">Our Services</h2>
            <p class="text-center text-lg text-gray-400 mb-8">
                We don't believe in one-size-fits-all. Our customized packages are meticulously crafted to meet the specific needs and goals of Hip-Hop, Rap, and RnB artists, as well as mixtape and club DJs. Whether you're launching a single, dropping an album, or building your brand, we have a solution.
            </p>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Radio Promo Runs</h3>
                    <p class="text-gray-200">Get your tracks heard. We leverage our extensive network of college, commercial, satellite, and internet radio stations, targeting specific demographics and tracking airplay to maximize reach and impact.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Digital Promotion & Social Media</h3>
                    <p class="text-gray-200">Navigate the digital world effectively. We utilize cutting-edge tech and data-driven strategies for DSP playlist pitching (Spotify, Apple Music, etc.), influencer outreach, targeted ad campaigns, and comprehensive social media presence.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">AI-Powered Insights & Targeting</h3>
                    <p class="text-gray-200">Leverage artificial intelligence for data-driven audience insights, predictive analytics, and hyper-targeted promotional campaigns to maximize visibility, engagement, and ROI.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Grassroots Hand-to-Hand Promo</h3>
                    <p class="text-gray-200">Build local buzz from the ground up. Our dedicated street teams take your music and brand directly to high-traffic areas, key events, retail locations, and influential DJs for maximum real-world impact.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Music Video Production</h3>
                    <p class="text-gray-200">Bring your vision to life visually. Collaborate with our experienced creative team through concept development, directing, shooting, editing, and post-production for high-quality, captivating music videos.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Album Artwork Design</h3>
                    <p class="text-gray-200">Make a stunning first impression. We elevate your brand identity with visually striking, professional album covers, single art, and promotional graphics optimized for both digital and physical formats.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Radio and TV Advertising</h3>
                    <p class="text-gray-200">Reach broader audiences through traditional media. We manage scriptwriting, production, and strategic media buying for targeted radio and TV advertising campaigns designed for maximum ROI.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Social Media Marketing</h3>
                    <p class="text-gray-200">Engage fans and grow your following authentically. We develop content calendars, manage communities, run targeted ads, and provide detailed analytics across platforms like Instagram, TikTok, Twitter, Facebook, etc.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Public Relations</h3>
                    <p class="text-gray-200">Build credibility and media presence. Our PR services include crafting press kits, targeted media outreach (blogs, magazines, podcasts), securing interviews/reviews, and managing your public image.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Tour Management</h3>
                    <p class="text-gray-200">Hit the road successfully. We handle tour logistics including routing, budgeting, advancing shows with venues, travel coordination, and day-of-show management to ensure smooth performances.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Merchandise Design & Production</h3>
                    <p class="text-gray-200">Connect with fans and create revenue. We design unique, high-quality merchandise that resonates with your fanbase and can assist with e-commerce setup and fulfillment options.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Digital Marketing</h3>
                    <p class="text-gray-200">Optimize your entire online footprint. We implement comprehensive strategies including artist website SEO, email list building and marketing, SEM (paid search), and conversion tracking analytics.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Content Creation</h3>
                    <p class="text-gray-200">Tell your story consistently. We develop engaging content tailored to your brand voice, including EPKs (Electronic Press Kits), artist bios, social media snippets, blog posts, and behind-the-scenes material.</p>
                </div>
                <div class="p-6 rounded-lg shadow-md transition-all duration-300 transform service-box">
                    <h3 class="text-2xl font-semibold text-white mb-2">Live Event Promotion</h3>
                    <p class="text-gray-200">Pack the house for your shows. We create buzz and drive ticket sales for live performances using targeted digital ads, local partnerships, ticketing integration, and pre/post-event hype campaigns.</p>
                </div>
            </div>
        </section>

        <!-- Benefits Section -->
        <section id="benefits" class="py-12">
            <h2 class="text-4xl font-bold text-center text-teal-400 mb-8">Benefits of Choosing ECDR</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-gray-800 p-6 rounded-lg shadow-md hover:shadow-xl transition-shadow text-center">
                    <h3 class="text-2xl font-semibold text-white mb-2">Diverse Reach</h3>
                    <p class="text-gray-400">Tap into our established global network. We ensure your music transcends borders and connects with a diverse, engaged audience worldwide through radio, digital platforms, and grassroots efforts.</p>
                </div>
                <div class="bg-gray-800 p-6 rounded-lg shadow-md hover:shadow-xl transition-shadow text-center">
                    <h3 class="text-2xl font-semibold text-white mb-2">Proven Success</h3>
                    <p class="text-gray-400">Our results speak for themselves. We have a strong track record of helping artists achieve significant growth, recognition, chart positions, and career milestones. We focus on measurable outcomes.</p>
                </div>
                <div class="bg-gray-800 p-6 rounded-lg shadow-md hover:shadow-xl transition-shadow text-center">
                    <h3 class="text-2xl font-semibold text-white mb-2">Artist Support</h3>
                    <p class="text-gray-400">We're more than just a service; we're partners in your journey. We provide ongoing guidance, transparent communication, detailed reporting, and dedicated support every step of the way.</p>
                </div>
            </div>
        </section>
        
        <!-- Submit Track Section -->
        <section id="submit" class="py-12">
            <div class="bg-gray-800 p-8 rounded-lg shadow-xl max-w-4xl mx-auto">
                <div id="payment-section" class="text-center">
                    <h2 class="text-4xl font-bold text-white mb-4">Pay Your Submission Fee</h2>
                    <p class="text-lg text-gray-400 mb-8">Your music is valuable. Our dedicated team will listen to your track and create a custom promotion plan for a one-time fee of $25.</p>
                    <div id="paypal-button-container" class="mt-8"></div>
                </div>

                <div id="submission-form-container" class="hidden mt-8">
                    <h2 class="text-4xl font-bold text-teal-400 mb-8 text-center">Submit Your Music</h2>
                    <form action="index.php" method="POST" id="submission-form" class="space-y-6">
                        <!-- Hidden input to identify form submission -->
                        <input type="hidden" name="submitMusicForm" value="1">
                        
                        <!-- Artist Info Fields -->
                        <div>
                            <label for="artistName" class="block text-gray-300">Artist Name*</label>
                            <input type="text" id="artistName" name="artistName" required class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                        <div>
                            <label for="website" class="block text-gray-300">Website</label>
                            <input type="url" id="website" name="website" class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div>
                                <label for="city-submit" class="block text-gray-300">City*</label>
                                <input type="text" id="city-submit" name="city" required class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                            </div>
                            <div>
                                <label for="state-submit" class="block text-gray-300">State*</label>
                                <select id="state-submit" name="state" required class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                    <option value="">Select State</option>
                                    <option value="AL">Alabama</option>
                                    <option value="AK">Alaska</option>
                                    <option value="AZ">Arizona</option>
                                    <option value="AR">Arkansas</option>
                                    <option value="CA">California</option>
                                    <option value="CO">Colorado</option>
                                    <option value="CT">Connecticut</option>
                                    <option value="DE">Delaware</option>
                                    <option value="FL">Florida</option>
                                    <option value="GA">Georgia</option>
                                    <option value="HI">Hawaii</option>
                                    <option value="ID">Idaho</option>
                                    <option value="IL">Illinois</option>
                                    <option value="IN">Indiana</option>
                                    <option value="IA">Iowa</option>
                                    <option value="KS">Kansas</option>
                                    <option value="KY">Kentucky</option>
                                    <option value="LA">Louisiana</option>
                                    <option value="ME">Maine</option>
                                    <option value="MD">Maryland</soption>
                                    <option value="MA">Massachusetts</soption>
                                    <option value="MI">Michigan</soption>
                                    <option value="MN">Minnesota</soption>
                                    <option value="MS">Mississippi</soption>
                                    <option value="MO">Missouri</soption>
                                    <option value="MT">Montana</soption>
                                    <option value="NE">Nebraska</soption>
                                    <option value="NV">Nevada</soption>
                                    <option value="NH">New Hampshire</soption>
                                    <option value="NJ">New Jersey</soption>
                                    <option value="NM">New Mexico</soption>
                                    <option value="NY">New York</soption>
                                    <option value="NC">North Carolina</soption>
                                    <option value="ND">North Dakota</soption>
                                    <option value="OH">Ohio</soption>
                                    <option value="OK">Oklahoma</soption>
                                    <option value="OR">Oregon</soption>
                                    <option value="PA">Pennsylvania</soption>
                                    <option value="RI">Rhode Island</soption>
                                    <option value="SC">South Carolina</soption>
                                    <option value="SD">South Dakota</soption>
                                    <option value="TN">Tennessee</soption>
                                    <option value="TX">Texas</soption>
                                    <option value="UT">Utah</soption>
                                    <option value="VT">Vermont</soption>
                                    <option value="VA">Virginia</soption>
                                    <option value="WA">Washington</soption>
                                    <option value="WV">West Virginia</soption>
                                    <option value="WI">Wisconsin</soption>
                                    <option value="WY">Wyoming</soption>
                                </select>
                            </div>
                        </div>
                        <div>
                            <label for="phone-submit" class="block text-gray-300">Phone Number*</label>
                            <input type="tel" id="phone-submit" name="phone" pattern="^\+\d{1,3}\d{10}$" placeholder="+12121231234" required class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>

                        <!-- Social Links -->
                        <div class="bg-gray-700 p-6 rounded-lg">
                            <h3 class="text-xl font-semibold text-white mb-4">Social Network Links (optional)</h3>
                            <div class="space-y-4">
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">Instagram</span>
                                    <input type="url" name="instagram" placeholder="https://instagram.com/yourprofile" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">TikTok</span>
                                    <input type="url" name="tiktok" placeholder="https://tiktok.com/@yourprofile" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">YouTube</span>
                                    <input type="url" name="youtube" placeholder="https://youtube.com/yourchannel" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">X (Twitter)</span>
                                    <input type="url" name="twitter" placeholder="https://x.com/yourprofile" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">SoundCloud</span>
                                    <input type="url" name="soundcloud" placeholder="https://soundcloud.com/yourprofile" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">Bandcamp</span>
                                    <input type="url" name="bandcamp" placeholder="https://yourband.bandcamp.com" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">Discord</span>
                                    <input type="url" name="discord" placeholder="https://discord.gg/yourserver" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                                <div class="flex items-center space-x-4">
                                    <span class="w-24 text-gray-300">Patreon</span>
                                    <input type="url" name="patreon" placeholder="https://patreon.com/yourpage" class="flex-grow p-2 rounded-md bg-gray-800 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                </div>
                            </div>
                        </div>
                        
                        <!-- Short Bio Section -->
                        <div>
                            <label for="submission_bio" class="block text-gray-300">Tell us about yourself (Short Bio):</label>
                            <textarea id="submission_bio" name="submission_bio" rows="5" class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500"></textarea>
                        </div>

                        <!-- Music Link Field -->
                        <div>
                            <label for="musicLink" class="block text-gray-300">Music Link (file sharing site)*</label>
                            <input type="url" id="musicLink" name="musicLink" required class="w-full mt-1 p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                            <small class="block mt-2 text-gray-500">Accepted sites: Dropbox, Google Drive, Box, SoundCloud, etc.</small>
                        </div>
                        
                        <!-- GDPR Notice -->
                        <div class="mt-6 bg-gray-700 p-6 rounded-lg text-sm text-gray-300">
                            <h3 class="font-bold text-white mb-2">Privacy & GDPR Notice</h3>
                            <p>By submitting this form, you consent to East Coast Digital Radio collecting and processing your personal data for the purpose of reviewing your music submission and contacting you regarding your submission. Your data will be handled lawfully, fairly, and transparently, and will not be used for any other purpose.</p>
                            <label class="block mt-4">
                                <input type="checkbox" id="gdprConsent" name="gdprConsent" required class="rounded text-teal-500">
                                <span class="ml-2">I consent to the collection and processing of my personal data as described above.*</span>
                            </label>
                        </div>
                        
                        <div class="text-center">
                            <button type="submit" class="w-full md:w-auto px-8 py-4 bg-teal-500 text-white font-bold rounded-full hover:bg-teal-600 transition-colors shadow-lg">Submit Track</button>
                        </div>
                    </form>
                </div>
            </div>
        </section>

        <!-- Get In Touch Section (Contact) -->
        <section id="contact" class="py-12">
            <h2 class="text-4xl font-bold text-center text-teal-400 mb-8">Get In Touch</h2>
            <p class="text-center text-lg text-gray-400 mb-8">Ready to discuss your project or have questions about our services? Fill out the form below with your details, and let's start the conversation about amplifying your sound.</p>
            <div class="bg-gray-800 p-8 rounded-lg shadow-xl max-w-4xl mx-auto">
                <form action="index.php" method="POST" id="contact-form" class="space-y-6">
                    <input type="hidden" name="submitContactForm" value="1">
                    <h3 class="text-xl font-semibold text-white border-b border-gray-600 pb-2">Contact Information</h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label for="name" class="block text-gray-300 mb-1">Full Name:*</label>
                            <input type="text" id="name" name="name" placeholder="e.g., Jane Doe" required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                        <div>
                            <label for="email" class="block text-gray-300 mb-1">Email Address:*</label>
                            <input type="email" id="email" name="email" placeholder="e.g., jane.doe@example.com" required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                    </div>
                    <div>
                        <label for="phone" class="block text-gray-300 mb-1">Phone Number (Optional):</label>
                        <input type="tel" id="phone" name="phone" pattern="^\+\d{1,3}\d{10}$" placeholder="+12121231234" class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                    </div>

                    <h3 class="text-xl font-semibold text-white border-b border-gray-600 pb-2 mt-6">Location (Optional)</h3>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div>
                            <label for="city" class="block text-gray-300 mb-1">City:</label>
                            <input type="text" id="city" name="city" placeholder="e.g., New York" class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                        <div>
                            <label for="state" class="block text-gray-300 mb-1">State / Province:</label>
                            <select id="state" name="state" class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                                <option value="">Select State</option>
                                <option value="AL">Alabama</option>
                                <option value="AK">Alaska</option>
                                <option value="AZ">Arizona</option>
                                <option value="AR">Arkansas</option>
                                <option value="CA">California</option>
                                <option value="CO">Colorado</option>
                                <option value="CT">Connecticut</option>
                                <option value="DE">Delaware</option>
                                <option value="FL">Florida</option>
                                <option value="GA">Georgia</option>
                                <option value="HI">Hawaii</option>
                                <option value="ID">Idaho</soption>
                                <option value="IL">Illinois</soption>
                                <option value="IN">Indiana</soption>
                                <option value="IA">Iowa</soption>
                                <option value="KS">Kansas</soption>
                                <option value="KY">Kentucky</soption>
                                <option value="LA">Louisiana</soption>
                                <option value="ME">Maine</soption>
                                <option value="MD">Maryland</soption>
                                <option value="MA">Massachusetts</soption>
                                <option value="MI">Michigan</soption>
                                <option value="MN">Minnesota</soption>
                                <option value="MS">Mississippi</soption>
                                <option value="MO">Missouri</soption>
                                <option value="MT">Montana</soption>
                                <option value="NE">Nebraska</soption>
                                <option value="NV">Nevada</soption>
                                <option value="NH">New Hampshire</soption>
                                <option value="NJ">New Jersey</soption>
                                <option value="NM">New Mexico</soption>
                                <option value="NY">New York</soption>
                                <option value="NC">North Carolina</soption>
                                <option value="ND">North Dakota</soption>
                                <option value="OH">Ohio</soption>
                                <option value="OK">Oklahoma</soption>
                                <option value="OR">Oregon</soption>
                                <option value="PA">Pennsylvania</soption>
                                <option value="RI">Rhode Island</soption>
                                <option value="SC">South Carolina</soption>
                                <option value="SD">South Dakota</soption>
                                <option value="TN">Tennessee</soption>
                                <option value="TX">Texas</soption>
                                <option value="UT">Utah</soption>
                                <option value="VT">Vermont</soption>
                                <option value="VA">Virginia</soption>
                                <option value="WA">Washington</soption>
                                <option value="WV">West Virginia</soption>
                                <option value="WI">Wisconsin</soption>
                                <option value="WY">Wyoming</soption>
                            </select>
                        </div>
                        <div>
                            <label for="country" class="block text-gray-300 mb-1">Country:</label>
                            <input type="text" id="country" name="country" placeholder="e.g., USA" class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                    </div>
                    
                    <h3 class="text-xl font-semibold text-white border-b border-gray-600 pb-2 mt-6">Music Information</h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label for="artist_name" class="block text-gray-300 mb-1">Artist / Band Name:*</label>
                            <input type="text" id="artist_name" name="artist_name" placeholder="Your Stage Name" required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                        <div>
                            <label for="music_genre" class="block text-gray-300 mb-1">Music Type / Genre:*</label>
                            <input type="text" id="music_genre" name="music_genre" placeholder="e.g., Hip-Hop, RnB, Rap" required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                        </div>
                    </div>
                    <div>
                        <label for="social_links" class="block text-gray-300 mb-1">Social Network Links (Optional):</label>
                        <textarea id="social_links" name="social_links" rows="4" placeholder="e.g., Spotify, Instagram, Soundcloud links (one per line)" class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500"></textarea>
                    </div>
                    <div>
                        <label for="bio" class="block text-gray-300 mb-1">Short Bio (Optional):</label>
                        <textarea id="bio" name="bio" rows="5" placeholder="Tell us a little about yourself or your group..." class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500"></textarea>
                    </div>

                    <h3 class="text-xl font-semibold text-white border-b border-gray-600 pb-2 mt-6">Inquiry Details</h3>
                    <div>
                        <label for="subject" class="block text-gray-300 mb-1">Subject:*</label>
                        <input type="text" id="subject" name="subject" placeholder="e.g., Music Promotion Inquiry" required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                    </div>

                    <fieldset class="space-y-2">
                        <legend class="text-gray-300 font-semibold">Services Needed (Select all that apply):</legend>
                        <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
                            <div>
                                <input type="checkbox" id="radio_promo" name="services[]" value="Radio Promo Runs" class="rounded text-teal-500">
                                <label for="radio_promo" class="text-gray-400">Radio Promo Runs</label>
                            </div>
                            <div>
                                <input type="checkbox" id="digital_promo" name="services[]" value="Digital Promotion & Social Media" class="rounded text-teal-500">
                                <label for="digital_promo" class="text-gray-400">Digital Promotion & Social Media</label>
                            </div>
                            <div>
                                <input type="checkbox" id="ai_targeting" name="services[]" value="AI-Powered Insights & Targeting" class="rounded text-teal-500">
                                <label for="ai_targeting" class="text-gray-400">AI-Powered Insights & Targeting</label>
                            </div>
                            <div>
                                <input type="checkbox" id="grassroots_promo" name="services[]" value="Grassroots Hand-to-Hand Promo" class="rounded text-teal-500">
                                <label for="grassroots_promo" class="text-gray-400">Grassroots Hand-to-Hand Promo</label>
                            </div>
                            <div>
                                <input type="checkbox" id="music_video" name="services[]" value="Music Video Production" class="rounded text-teal-500">
                                <label for="music_video" class="text-gray-400">Music Video Production</label>
                            </div>
                            <div>
                                <input type="checkbox" id="album_artwork" name="services[]" value="Album Artwork Design" class="rounded text-teal-500">
                                <label for="album_artwork" class="text-gray-400">Album Artwork Design</label>
                            </div>
                            <div>
                                <input type="checkbox" id="radio_tv_ad" name="services[]" value="Radio and TV Advertising" class="rounded text-teal-500">
                                <label for="radio_tv_ad" class="text-gray-400">Radio and TV Advertising</label>
                            </div>
                            <div>
                                <input type="checkbox" id="social_media_marketing" name="services[]" value="Social Media Marketing" class="rounded text-teal-500">
                                <label for="social_media_marketing" class="text-gray-400">Social Media Marketing</label>
                            </div>
                            <div>
                                <input type="checkbox" id="public_relations" name="services[]" value="Public Relations" class="rounded text-teal-500">
                                <label for="public_relations" class="text-gray-400">Public Relations</label>
                            </div>
                            <div>
                                <input type="checkbox" id="tour_management" name="services[]" value="Tour Management" class="rounded text-teal-500">
                                <label for="tour_management" class="text-gray-400">Tour Management</label>
                            </div>
                            <div>
                                <input type="checkbox" id="merchandise" name="services[]" value="Merchandise Design & Production" class="rounded text-teal-500">
                                <label for="merchandise" class="text-gray-400">Merchandise Design & Production</label>
                            </div>
                            <div>
                                <input type="checkbox" id="digital_marketing" name="services[]" value="Digital Marketing" class="rounded text-teal-500">
                                <label for="digital_marketing" class="text-gray-400">Digital Marketing</label>
                            </div>
                            <div>
                                <input type="checkbox" id="content_creation" name="services[]" value="Content Creation" class="rounded text-teal-500">
                                <label for="content_creation" class="text-gray-400">Content Creation</label>
                            </div>
                            <div>
                                <input type="checkbox" id="live_event_promo" name="services[]" value="Live Event Promotion" class="rounded text-teal-500">
                                <label for="live_event_promo" class="text-gray-400">Live Event Promotion</label>
                            </div>
                            <div>
                                <input type="checkbox" id="other_not_sure" name="services[]" value="Other / Not Sure" class="rounded text-teal-500">
                                <label for="other_not_sure" class="text-gray-400">Other / Not Sure</label>
                            </div>
                        </div>
                    </fieldset>

                    <div>
                        <label for="budget" class="block text-gray-300 mb-1">Budget Range (Approx.):*</label>
                        <select id="budget" name="budget" required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500">
                            <option value="" disabled selected>Select your budget...</option>
                            <option value="$500 - $1000">$500 - $1000</option>
                            <option value="$1000 - $2500">$1000 - $2500</option>
                            <option value="$2500 - $5000">$2500 - $5000</option>
                            <option value="$5000 - $10000">$5000 - $10000</option>
                            <option value="$10000+">$10000+</option>
                        </select>
                    </div>

                    <div>
                        <label for="message" class="block text-gray-300 mb-1">Your Message:*</label>
                        <textarea id="message" name="message" rows="6" placeholder="Tell us about your project, goals, or specific questions..." required class="w-full p-3 rounded-md bg-gray-700 border border-gray-600 focus:outline-none focus:ring-2 focus:ring-teal-500"></textarea>
                    </div>
                    
                    <input type="hidden" id="g-recaptcha-response-contact" name="g-recaptcha-response">

                    <div class="text-center">
                        <button type="submit" class="w-full md:w-auto px-8 py-4 bg-teal-500 text-white font-bold rounded-full hover:bg-teal-600 transition-colors shadow-lg">Send Message</button>
                    </div>
                </form>
            </div>
        </section>

    </main>

    <!-- Footer -->
    <footer class="bg-gray-800 py-6">
        <div class="container mx-auto px-4 text-center">
            <div class="social-links mb-4">
                <a href="https://www.instagram.com/digital_solutions75/" target="_blank" rel="noopener noreferrer" class="text-2xl text-gray-400 hover:text-teal-400 mx-2 transition-colors">
                    <i class="fab fa-instagram"></i>
                </a>
                <a href="https://x.com/eastcoastmp3" target="_blank" rel="noopener noreferrer" class="text-2xl text-gray-400 hover:text-teal-400 mx-2 transition-colors">
                    <i class="fab fa-x-twitter"></i>
                </a>
                <a href="https://www.facebook.com/eastcoastmp3s/" target="_blank" rel="noopener noreferrer" class="text-2xl text-gray-400 hover:text-teal-400 mx-2 transition-colors">
                    <i class="fab fa-facebook-f"></i>
                </a>
            </div>
            <p class="text-gray-500 text-sm">&copy; <span class="current-year"></span> East Coast Digital Radio. All Rights Reserved.</p>
            <div class="text-xs text-gray-500 mt-1">
                <p>By submitting this form, you consent to East Coast Digital Radio collecting and processing your personal data for the purpose of reviewing your music submission and contacting you regarding your submission. Your data will be handled lawfully, fairly, and transparently, and will not be used for any other purpose.</p>
                <p class="mt-1">You have the right to access, rectify, erase, and port your data. You may withdraw consent at any time by contacting us.</p>
            </div>
            <p class="creator-credit text-gray-500 text-sm mt-1">Website by <a href="https://thedigitalsolutions.net/" target="_blank" rel="noopener noreferrer" class="hover:text-teal-400 transition-colors">THE DIGITAL SOLUTIONS</a></p>
        </div>
    </footer>

    <!-- JavaScript for page logic -->
    <script>
        const paymentSection = document.getElementById('payment-section');
        const submissionFormContainer = document.getElementById('submission-form-container');
        const submissionForm = document.getElementById('submission-form');
        const contactForm = document.getElementById('contact-form');
        const confirmationModal = document.getElementById('confirmation-modal');
        const modalTitle = document.getElementById('modal-title');
        const modalMessage = document.getElementById('modal-message');
        const currentYearSpan = document.querySelector('.current-year');
        const serviceBoxes = document.querySelectorAll('.service-box');
        const colors = ['#f87171', '#fb923c', '#fcd34d', '#4ade80', '#22d3ee', '#818cf8', '#e879f9'];

        // Assign a random color to each service box on load
        serviceBoxes.forEach(box => {
            const randomColor = colors[Math.floor(Math.random() * colors.length)];
            box.style.setProperty('--random-color', randomColor);
        });

        // Set the current year in the footer
        currentYearSpan.textContent = new Date().getFullYear();

        // PayPal button rendering
        if (window.paypal) {
            paypal.Buttons({
                style: {
                    layout: 'vertical',
                    color: 'blue',
                    shape: 'rect',
                    label: 'paypal'
                },
                createOrder: function(data, actions) {
                    return actions.order.create({
                        purchase_units: [{
                            amount: { value: '25.00' },
                            description: 'Music Track Submission Fee'
                        }]
                    });
                },
                onApprove: function(data, actions) {
                    return actions.order.capture().then(function(details) {
                        // On successful payment, hide payment section and show form
                        paymentSection.classList.add('hidden');
                        submissionFormContainer.classList.remove('hidden');
                        window.location.hash = 'submit'; // Auto-scroll to the form
                        // Display a success message
                        const successMessage = document.createElement('div');
                        successMessage.innerHTML = '<p class="text-center text-teal-400 text-xl font-semibold mb-4">Payment successful! You can now submit your track below.</p>';
                        submissionFormContainer.prepend(successMessage);
                    });
                },
                onError: function(err) {
                    // Show a custom message box instead of alert()
                    const messageBox = document.createElement('div');
                    messageBox.innerHTML = `
                        <div class="fixed inset-0 bg-gray-900 bg-opacity-75 flex items-center justify-center">
                            <div class="bg-gray-800 p-8 rounded-lg shadow-xl max-w-sm mx-4 text-center">
                                <h2 class="text-2xl font-bold text-red-400 mb-4">Payment Error</h2>
                                <p class="text-lg mb-6">PayPal payment failed. Please try again.</p>
                                <button onclick="this.parentElement.parentElement.remove()" class="px-6 py-3 bg-red-500 text-white font-bold rounded-full hover:bg-red-600 transition-colors">Close</button>
                            </div>
                        </div>
                    `;
                    document.body.appendChild(messageBox);
                }
            }).render('#paypal-button-container');
        }

        // Show confirmation modal after PHP form submission
                
        
        function closeModal() {
            confirmationModal.classList.add('hidden');
        }

        // reCAPTCHA v3 script for contact form
        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            grecaptcha.ready(function() {
                grecaptcha.execute('6LeogqQrAAAAAJMac5YOK0u038ercMwY9N2eH4WC', {action: 'submit_contact'}).then(function(token) {
                    document.getElementById('g-recaptcha-response-contact').value = token;
                    contactForm.submit();
                });
            });
        });
    </script>
</body>
</html>
