:root {
    --bg-main:      #0d0b14;
    --bg-card:      #1a1626;
    --text-primary: #f0eaff;
    --text-muted:   #b0a0d0;
    --accent:       #c084fc;
    --accent-dark:  #9f6bed;
    --accent-glow:  #d7aaff;
    --success:      #77f0a8;
    --success-bg:   #1e3a2f;
    --error:        #ff8a9a;
    --error-bg:     #3a1e2a;
    --border:       #3a2e52;
    --shadow:       0 8px 32px rgba(0,0,0,0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px 16px;
    line-height: 1.6;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.4rem 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

h1 {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 2.2rem;
    color: var(--accent-glow);
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}

.question {
    font-size: 1.38rem;
    font-weight: 600;
    margin: 1.8rem 0 1.4rem;
    color: #e0d4ff;
}

.email-section {
    margin-bottom: 2.2rem;
}

label[for="userEmail"] {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1.05rem;
}

input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    background: #211c2e;
    border: 1px solid #3a2e52;
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
    background: #251f34;
}

label.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin: 12px 0;
    background: #211c2e;
    border: 1px solid #3a2e52;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s ease;
}

label.option:hover {
    background: #2a243a;
    border-color: #5a4a7a;
}

label.option:has(input:checked) {
    background: rgba(192, 132, 252, 0.14);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.22);
}

.option-text {
    font-size: 1.08rem;
    color: #e8deff;
}

strong {
    color: var(--accent);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 2.4rem 0 1rem;
}

button {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#submitBtn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(192, 132, 252, 0.35);
}

#submitBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 132, 252, 0.5);
}

#submitBtn:disabled {
    background: #3a2e52;
    color: #80789e;
    cursor: not-allowed;
    box-shadow: none;
}

#backBtn {
    background: #2a243a;
    color: #d0c0ff;
    border: 1px solid #4a3e68;
}

#backBtn:hover {
    background: #352e48;
    border-color: #6a5a8c;
}

#message {
    margin: 1.8rem 0;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    border: 1px solid;
}

.success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #4ac984;
}

.error {
    background: var(--error-bg);
    color: var(--error);
    border-color: #e0667a;
}

.footer {
    text-align: center;
    margin-top: 2.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Dodaj na samym końcu style.css */

body {
    position: relative;
    overflow-x: hidden;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* lub contain – zależnie od proporcji */
    z-index: -2;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(26, 22, 38, 0.78);   /* półprzezroczysty ciemny overlay – ważny! */
    backdrop-filter: blur(8px);           /* ładny efekt szkła – działa w większości przeglądarek */
    border: 1px solid rgba(58, 46, 82, 0.6);
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

/* Opcjonalnie – delikatny overlay gradientowy na wideo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,11,20,0.4), rgba(13,11,20,0.75));
    z-index: -1;
    pointer-events: none;
}