/*
 * LEVEL UP 2.0 - Core Styling & Theme System
 */

/* Fonts & Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
    --bg-dark: #050608;
    --bg-card: rgba(10, 12, 18, 0.75);
    --bg-input: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(0, 230, 118, 0.6);
    
    --primary: #00ff87; /* Neon Green */
    --primary-glow: rgba(0, 255, 135, 0.2);
    --secondary: #00e676; /* Bright Mint Green */
    --secondary-glow: rgba(0, 230, 118, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-error: #ef4444;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Mesh & Lights */
.bg-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: -200px;
    filter: blur(80px);
    animation: pulseGlow 15s infinite alternate;
}

.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -150px;
    filter: blur(80px);
    animation: pulseGlow 12s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.9; }
}

/* Container & Split Grid */
.container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Left Column: Event Branding & Info */
.info-section {
    padding: 5rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-main);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-container span {
    color: var(--secondary);
}

.hero-text {
    margin: 4rem 0;
}

.event-banner-img {
    width: 100%;
    max-width: 580px;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 230, 118, 0.1);
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition-smooth);
}

.event-banner-img:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 230, 118, 0.2);
}

.event-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #00ff87;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #00e676 70%, #00ff87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

/* Event Metadata Cards */
.meta-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 580px;
}

.meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.meta-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.08);
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.meta-card:first-child .meta-icon {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--primary);
}

.meta-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.meta-card a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.meta-card a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3rem;
}

/* Right Column: Form Container */
.form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.form-glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 580px;
    padding: 3.5rem;
    border-radius: 28px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Form Steps Layout */
.form-step {
    display: none;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 2.5rem;
}

.step-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Form Input Elements */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.form-label span {
    color: var(--text-error);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Radio Group & Options */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-option {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    background: transparent;
    outline: none;
}

.radio-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary);
    transform: scale(0);
    transition: var(--transition-smooth);
}

.radio-option input[type="radio"]:checked {
    border-color: var(--secondary);
}

.radio-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-option.selected {
    border-color: var(--secondary);
    background: rgba(6, 182, 212, 0.05);
}

.radio-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Other Custom Input (conditional) */
.other-input-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 0.5rem;
    padding-left: 2.2rem;
}

.other-input-container.show {
    max-height: 100px;
    opacity: 1;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #05c46b 100%);
    border: none;
    color: #050608;
    flex: 1;
    box-shadow: 0 8px 24px rgba(0, 230, 118, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Inline Errors */
.error-msg {
    color: var(--text-error);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.4rem;
    display: none;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Success State & Access Ticket styling */
.success-wrapper {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-header {
    margin-bottom: 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    color: #10b981;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    margin: 2rem auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.success-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 20px 20px 0 0;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.success-detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.success-detail-val {
    font-weight: 700;
    color: var(--text-main);
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 4rem 3rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        margin: 2.5rem 0;
    }
    
    .hero-description {
        margin: 0 auto 2rem auto;
    }
    
    .meta-cards {
        margin: 0 auto;
        width: 100%;
    }
    
    .form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-glass-card {
        padding: 2.5rem 1.8rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.6rem;
    }
    
    .meta-cards {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
    }
}
