<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Killa Records - License Agreement</title>
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Nunito', sans-serif;
            background: linear-gradient(135deg, #1e1e2f, #2d2d4d);
            color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .container {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            max-width: 400px;
            width: 100%;
        }

        h2 {
            text-align: center;
            color: #e63946;
            margin-bottom: 20px;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        label {
            color: #e63946;
            font-weight: bold;
        }

        input[type="text"], input[type="email"] {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            outline: none;
        }

        input[type="checkbox"] {
            margin-right: 10px;
        }

        button {
            background-color: #e63946;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #c72d3c;
        }

        a {
            color: #e63946;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>Killa Records - License Agreement</h2>
        <form id="agreementForm">
            <label for="name">Your Legal Name</label>
            <input type="text" id="name" name="name" required>

            <label for="email">Your Email</label>
            <input type="email" id="email" name="email" required>

            <label for="artistName">Artist Name</label>
            <input type="text" id="artistName" name="artistName" required>

            <label for="spotifyLink">Spotify Link</label>
            <input type="text" id="spotifyLink" name="spotifyLink" required>

            <label for="appleMusicLink">Apple Music Link (Optional)</label>
            <input type="text" id="appleMusicLink" name="appleMusicLink">

            <label>
                <input type="checkbox" id="ageCheck"> I am 18 or older
            </label>

            <div id="guardianGroup" style="display: none;">
                <label for="guardian">Legal Parent/Guardian Name</label>
                <input type="text" id="guardian" name="guardian">
            </div>

            <label>
                <input type="checkbox" id="accept" required> I agree to the terms and conditions
            </label>

            <button type="submit" id="submitBtn" disabled>Sign</button>
        </form>
    </div>

    <script>
        document.getElementById('ageCheck').addEventListener('change', function() {
            const guardianGroup = document.getElementById('guardianGroup');
            const guardianInput = document.getElementById('guardian');
            if (this.checked) {
                guardianGroup.style.display = 'none';
                guardianInput.removeAttribute('required');
                guardianInput.value = "";
            } else {
                guardianGroup.style.display = 'block';
                guardianInput.setAttribute('required', 'required');
            }
        });

        document.getElementById('accept').addEventListener('change', function() {
            document.getElementById('submitBtn').disabled = !this.checked;
        });

        document.getElementById('agreementForm').addEventListener('submit', function(event) {
            event.preventDefault();
            alert('Form submitted!');
        });
    </script>
</body>
</html>
