:root {
    --bg-dark: #0f111a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --accent-glow: #6366f1;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Stunning Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -2;
    background: var(--bg-dark);
}

.aurora-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: #6366f1; /* Indigo */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: #ec4899; /* Pink */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 50%;
    width: 40vw; height: 40vw;
    background: #06b6d4; /* Cyan */
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
}

/* Elegant Floating Gallery */
.floating-gallery {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.g-item {
    position: absolute;
    width: clamp(80px, 8vw, 150px);
    height: clamp(80px, 8vw, 150px);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: float 8s infinite alternate ease-in-out;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.1);
}

/* Specific positions around the center */
.img-1 { top: 15%; left: 15%; animation-delay: 0s; transform: rotate(-10deg); }
.img-2 { top: 20%; right: 20%; animation-delay: -2s; transform: rotate(15deg); width: clamp(60px, 6vw, 100px); height: clamp(60px, 6vw, 100px); }
.img-3 { bottom: 25%; left: 10%; animation-delay: -4s; transform: rotate(5deg); }
.img-4 { bottom: 15%; right: 15%; animation-delay: -1s; transform: rotate(-15deg); }
.img-5 { top: 40%; left: 5%; animation-delay: -5s; transform: rotate(20deg); width: clamp(50px, 5vw, 90px); height: clamp(50px, 5vw, 90px); }
.img-6 { top: 50%; right: 8%; animation-delay: -3s; transform: rotate(-5deg); }
.img-7 { top: 10%; left: 50%; animation-delay: -6s; transform: rotate(10deg); width: clamp(70px, 7vw, 120px); height: clamp(70px, 7vw, 120px); }
.img-8 { bottom: 10%; left: 40%; animation-delay: -2.5s; transform: rotate(-12deg); }
.img-9 { top: 30%; left: 30%; animation-delay: -7s; transform: rotate(8deg); width: clamp(40px, 4vw, 80px); height: clamp(40px, 4vw, 80px); }

@keyframes float {
    0% { margin-top: 0; }
    100% { margin-top: 30px; }
}

/* Hero Content */
.hero-content {
    background: rgba(15, 17, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 4rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.date-chip {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.main-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 1rem;
    font-weight: 300;
}

/* Event Specs styling */
.event-specs {
    margin: 1.5rem 0;
    text-align: left;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
    color: #06b6d4;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 0 0 130px;
    font-weight: 700;
}
.spec-value {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    text-align: right;
    flex: 1;
}
.strict-rule {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid #ec4899;
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-weight: 400;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}
.strict-rule b { color: #ec4899; font-weight: 900; }

.btn-scroll {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-scroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* Main Form Container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 100px;
    position: relative;
    z-index: 10;
}

.glass-container {
    background: rgba(15, 17, 26, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.form-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.form-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Form Elements */
.input-group {
    margin-bottom: 3rem;
}

.input-group > label, .row-group .half > label {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 5px solid #06b6d4;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    box-shadow: inset 1px 0 0 rgba(255,255,255,0.1);
}

.q-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    padding-left: 25px;
    font-style: italic;
    line-height: 1.4;
}

.row-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.row-group .half {
    flex: 1;
    margin-bottom: 0;
}

/* Inputs */
input[type="text"],
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 18px 24px;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    caret-color: #ec4899;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 0 2px #06b6d4;
    transform: translateY(-2px);
}

.select-wrapper {
    position: relative;
}

select {
    cursor: pointer;
    appearance: none;
}

/* Elegant Pill Radios */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-radio {
    cursor: pointer;
}

.pill-radio input[type="radio"] {
    display: none;
}

.pill-radio span {
    display: inline-block;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-radio:hover span {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
}

.pill-radio:active span {
    transform: scale(0.95);
}

.pill-radio:has(input:checked) span {
    background: white;
    color: black;
    border-color: white;
    font-weight: 600;
}

/* Status specific checked colors */
.status-green:has(input:checked) span { background: #10b981; border-color: #10b981; color: white; }
.status-yellow:has(input:checked) span { background: #f59e0b; border-color: #f59e0b; color: white; }
.status-red:has(input:checked) span { background: #ef4444; border-color: #ef4444; color: white; }

.important-group {
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

/* Vertical Radios (Mutya) */
.vertical-radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v-radio {
    cursor: pointer;
}

.v-radio input[type="radio"] {
    display: none;
}

.v-radio span {
    display: block;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-radio:hover span {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
}

.v-radio:active span {
    transform: scale(0.98);
}

.v-radio:has(input:checked) span {
    background: white;
    color: black;
    border-color: white;
}

.v-radio b {
    font-weight: 600;
    color: inherit;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 20px;
    background: white;
    color: black;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: black;
    animation: spin 1s ease-in-out infinite;
    margin-left: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(15, 17, 26, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.success-icon {
    width: 64px; height: 64px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
}

.modal-content h2 {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    background: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.modal-content h3 {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-content p b {
    color: #ec4899;
}

.destiny-box {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid #ec4899;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(236, 72, 153, 0.1);
}

.destiny-label {
    display: block;
    font-size: 0.75rem;
    color: #ec4899;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.destiny-text {
    color: white;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* Intro Screen & Confetti */
#intro-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0f111a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.intro-content { text-align: center; padding: 0 20px; }

#intro-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1s infinite alternate;
    transition: all 0.5s ease;
}

@keyframes pulse {
    from { opacity: 0.6; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.02); }
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #ec4899);
    transition: width 1.5s ease-in-out;
}

#confetti-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px; height: 20px;
    opacity: 0;
    animation: fall linear forwards;
    border-radius: 2px;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 768px) {
    #intro-text { font-size: 1.5rem; letter-spacing: 1px; }
}

@media (max-width: 768px) {
    .glass-container { padding: 1.5rem; border-radius: 20px; }
    
    /* Lower blur slightly on mobile so any overlapping images are still visible */
    .hero-content { 
        padding: 2rem 1rem; 
        margin: 0 0.5rem; 
        backdrop-filter: blur(5px); 
        -webkit-backdrop-filter: blur(5px); 
        background: rgba(15, 17, 26, 0.7);
        width: calc(100% - 1rem);
        max-width: 450px;
        box-sizing: border-box;
    }
    
    .main-title { font-size: clamp(2.5rem, 12vw, 3.5rem); word-break: break-word; }
    .subtitle { font-size: 1rem; margin-bottom: 1rem; }
    
    .event-specs { padding: 1rem; margin: 1.5rem 0; }
    .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0.8rem 0; }
    .spec-label { flex: none; font-size: 0.8rem; }
    .spec-value { text-align: left; font-size: 0.95rem; }
    .strict-rule { font-size: 0.95rem; padding: 12px; margin-bottom: 1.5rem; }
    .row-group { flex-direction: column; gap: 1.5rem; }
    .input-group > label { font-size: 1.1rem; padding: 10px 15px; border-left-width: 4px; }
    .q-desc { font-size: 0.9rem; padding-left: 15px; margin-bottom: 1rem; }
    .pill-radio span { width: 100%; text-align: center; padding: 12px 15px; font-size: 0.95rem; box-sizing: border-box; }
    .pill-group { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; box-sizing: border-box; }
    .v-radio span { padding: 12px 15px; font-size: 0.95rem; box-sizing: border-box; }
    .form-header h2 { font-size: clamp(1.5rem, 7vw, 2rem); word-break: break-word; }
    .btn-submit { font-size: 1.1rem; padding: 16px; }

    /* Transform floating gallery into a premium horizontal scrolling Avatar Row on mobile */
    .hero-section {
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0 20px 0;
    }
    
    .floating-gallery {
        position: relative !important;
        width: 100%;
        height: auto;
        z-index: 10;
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 10px 20px;
        margin-bottom: 20px;
        pointer-events: auto; /* Enable touch scrolling */
    }
    .floating-gallery::-webkit-scrollbar { display: none; }
    
    .g-item {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        flex: 0 0 80px;
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        border: 3px solid #ec4899 !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.5), 0 0 15px rgba(236, 72, 153, 0.4) !important;
        transform: none !important;
        animation: mobileBounce 2s infinite alternate ease-in-out !important;
    }
    
    .g-item:nth-child(even) { 
        border-color: #06b6d4 !important; 
        box-shadow: 0 8px 16px rgba(0,0,0,0.5), 0 0 15px rgba(6, 182, 212, 0.4) !important; 
        animation-delay: -1s !important; 
    }
    
    @keyframes mobileBounce {
        0% { transform: translateY(0); }
        100% { transform: translateY(-8px); }
    }
}
