@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;700&display=swap');

:root {
    --primary: #008080; 
    --secondary: #FFD700; 
    --accent: #E3242B; 
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at top left, #0e1c26 0%, #050505 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pattern Overlays */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('6881608.jpg'); /* Tech Pattern */
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    z-index: 10;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

h1.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #006666 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 128, 128, 0.5);
    filter: brightness(1.1);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ticket Styles - Reimagined */
.ticket-container {
    perspective: 1000px;
}

.ticket {
    background: #fff;
    color: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.5s ease;
}

.ticket-header {
    background: #111;
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('v1045-23a.jpg');
    background-size: cover;
    opacity: 0.15;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.event-caps {
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ticket-type {
    position: relative;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.ticket-body {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
}

.detail-group {
    margin-bottom: 1.2rem;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-group label {
    color: #8e8e8e;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.detail-group .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.detail-group .value.accent {
    color: var(--primary);
}

.ticket-qr {
    text-align: center;
    flex-shrink: 0;
}

.ticket-qr img {
    width: 100px;
    height: 100px;
    display: block;
    margin-bottom: 0.5rem;
}

.qr-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 1px;
}

.ticket-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-top: 2px dashed #e2e8f0;
    position: relative;
}

.ticket-footer::before,
.ticket-footer::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark); /* Match page bg */
    border-radius: 50%;
}

.ticket-footer::before { left: -10px; }
.ticket-footer::after { right: -10px; }

.footer-msg {
    font-size: 0.85rem;
    font-style: italic;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.arrival-note {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    text-transform: uppercase;
}

/* Animations & Transitions */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

@media print {
    body * { visibility: hidden; }
    #ticket-content, #ticket-content * { visibility: visible; }
    #ticket-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card { padding: 2rem 1.5rem; }
    h1.hero-title { font-size: 2.2rem; }
    .ticket-body { flex-direction: column; align-items: center; text-align: center; }
    .ticket-qr { margin-top: 1.5rem; }
}
