:root {
    /* Fonts */
    --font-main: 'Inter', sans-serif;

    /* Dark Mode (Default) - "True Charcoal" Palette */
    --bg-body: #0B0D10;
    --bg-mesh-1: #0f1216;
    --bg-mesh-2: #15181e;
    --color-text: #E9EEF5;
    --color-text-muted: #A0AAB8;
    --color-primary: #40E0FF;
    /* Electric Cyan */
    --color-primary-glow: rgba(64, 224, 255, 0.4);
    --color-accent: #B9A7FF;
    /* Holo Lilac */
    --glass-bg: rgba(11, 13, 16, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

[data-theme="light"] {
    /* Light Mode - "Cloud Dancer" Palette */
    --bg-body: #F0EEE9;
    --bg-mesh-1: #e6e2da;
    --bg-mesh-2: #fcfcfb;
    --color-text: #121212;
    --color-text-muted: #555;
    --color-primary: #003057;
    /* Deep Space Blue - darker for text/headers */
    --color-primary-glow: rgba(0, 48, 87, 0.2);
    --color-accent: #A89ACD;
    /* Digital Lavender */
    --glass-bg: rgba(240, 238, 233, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    --input-bg: rgba(0, 0, 0, 0.03);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Animated Mesh */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, var(--bg-mesh-1), transparent 25%),
        radial-gradient(circle at 85% 30%, var(--bg-mesh-2), transparent 25%);
    filter: blur(40px);
}

/* Glassmorphism Utilities */
.glass-nav,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

/* Theme Toggle */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: var(--input-bg);
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    max-width: 800px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--input-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-primary);
    border: 1px solid var(--glass-border);
}

/* Form Section */
.enrollment-section {
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.glass-card {
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: none;
    border-radius: 12px;
    color: #fff;
    /* Always white text on gradient */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.socials {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--color-primary);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 24px;
    }
}

/* Loader */
.hidden {
    display: none !important;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    margin: 0 auto;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#form-message {
    margin-top: 16px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

#form-message.success {
    background: rgba(0, 255, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(0, 255, 128, 0.2);
}

#form-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #f87171;
    border: 1px solid rgba(255, 0, 0, 0.2);
}