:root {
    --bg: #0a0a0a;
    --primary: #ff003c;
    --text: #e0e0e0;
    --dim: #a3a3a3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark; /* Tells the browser to use dark system UI for dropdowns */
}

/* FIX: Allowing the page to scroll naturally */
html, body {
    min-height: 100vh;
    width: 100vw;
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* --- CORE UI COMPONENTS --- */

.container, .form-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.form-step { display: none; flex-direction: column; gap: 15px; }
.form-step.active { display: flex; }

/* Force the dropdown list to be dark */
select option {
    background-color: #111 !important; /* Matches your input background */
    color: var(--text) !important;
    padding: 10px;
}

/* Fix for Chrome/Safari mobile - ensures the select isn't white */
select {
    background-color: #111 !important;
    color: var(--text) !important;
}

/* For modern browsers, this helps the dropdown match the system's dark mode */
select {
    color-scheme: dark;
}

/* INPUT STYLING */
input, select, textarea {
    background: #111; 
    border: 1px solid #333; 
    color: #fff;
    padding: 15px; 
    font-family: monospace; 
    width: 100%;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00fff2;
    background: rgba(0, 255, 242, 0.05);
}

/* THE ONLY ERROR CLASS - Place this LOWER in the file to override base styles */
.error {
border: 2px solid var(--primary) !important;
    background: rgba(255, 0, 60, 0.1) !important;
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.3);
    animation: shake 0.3s ease-in-out;
}

a {
    color: var(--primary);
}

/* --- GLITCH & ANIMATIONS --- */

.glitch {
    font-size: clamp(2.5rem, 12vw, 7rem);
    font-weight: 900;
    position: relative;
    color: var(--text);
    letter-spacing: 5px;
    margin-bottom: 40px; 
    z-index: 5; /* Base level for the text */
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -1; /* Pushes the flickering layers behind the main text */
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff2;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

.cta-container {
    position: relative;
    margin-top: 50px;
    z-index: 10; /* Higher than the glitch levels */
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    100% { clip: rect(85px, 9999px, 63px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    100% { clip: rect(80px, 9999px, 20px, 0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- NAVIGATION & PROGRESS --- */

.progress-container {
    width: 100%;
    background: #222;
    height: 10px;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 33%;
    transition: width 0.4s ease;
}

.nav-btns { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    position: relative;
    z-index: 11;
    display: inline-block;
}

.prev-btn, .next-btn, .submit-btn, .btn-primary {
    padding: 15px;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.prev-btn { background: #333; }

.checkbox-group {
    display: flex;
    flex-direction: row; /* Force them onto one line */
    align-items: center; /* Aligns box with the top of the text */
    gap: 12px;
    margin: 15px 0;
    text-align: left; /* Ensures text doesn't center-align within the group */
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Prevents the checkbox from getting squashed */
    margin-top: 0; /* Fine-tune vertical alignment with the text */
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 0.75rem;
    color: var(--dim);
    line-height: 1;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none; /* Prevents text highlighting when clicking the box */
}

.email_footer{
    padding: 2em;
}