:root {
    /* Color Palette */
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --secondary: #ec4899; /* Pink */
    
    --bg-dark: #0f172a;
    --bg-panel: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --error: #ef4444;
    
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.text-muted { color: var(--text-muted); }

/* Layout: Split Screen */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.visual-panel {
    position: relative;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

.visual-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.visual-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

.visual-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.visual-content h1 {
    color: var(--text-light);
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, #818cf8, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.visual-content p {
    color: rgba(248, 250, 252, 0.8);
    font-size: 1.25rem;
    line-height: 1.6;
}

.form-panel {
    width: 50%;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
}

.form-container {
    max-width: 500px;
    width: 100%;
    margin: auto; /* Vertically and horizontally center */
    display: flex;
    flex-direction: column;
}

/* Sections & States */
.state-section {
    animation: fadeIn 0.4s ease-out;
}

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

.header-mobile {
    display: none;
    margin-bottom: 2rem;
}

.header-mobile h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Custom Checkbox */
.checkbox-group {
    margin-top: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-weight: 400;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    min-width: 24px;
    height: 24px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.5rem;
}

.privacy-note a {
    color: var(--primary);
    text-decoration: none;
}
.privacy-note a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success State Elements */
.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

#state-success h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ticket-card {
    background: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
}

.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background: var(--bg-panel);
    border-radius: 50%;
    transform: translateY(-50%);
}

.ticket-card::before {
    left: -12px;
    border-right: 2px dashed var(--border-color);
}

.ticket-card::after {
    right: -12px;
    border-left: 2px dashed var(--border-color);
}

.ticket-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Powered By Element */
#wbx-powered-by-slot {
    margin-top: 3rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }
    
    .visual-panel {
        width: 100%;
        padding: 3rem 2rem;
        min-height: 40vh;
        align-items: center;
        text-align: center;
    }
    
    .visual-content h1 {
        font-size: 2.5rem;
    }
    
    .form-panel {
        width: 100%;
        min-height: 60vh;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        padding-top: 3rem;
    }
    
    .header-mobile {
        display: block;
    }
    
    /* Hide desktop copy since mobile header takes over */
    .visual-content p {
        display: none;
    }
}
