:root {
    /* Nowa Paleta: Mystic Emerald */
    --bg-dark: #021B1A;
    --bg-gradient: linear-gradient(135deg, #000000 0%, #042928 50%, #094D48 100%);
    --primary: #D4AF37; /* Metaliczne Złoto */
    --primary-hover: #F2D06B;
    --text: #ffffff;
    --glass: rgba(13, 69, 66, 0.4); /* Półprzezroczysta zieleń */
    --border-color: rgba(212, 175, 55, 0.3); /* Złote obramowanie */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif; 
    color: var(--text);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-stars {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Możesz zmienić to zdjęcie na coś bardziej zielonego/mistycznego, jeśli chcesz */
    background: url('https://cdn.pixabay.com/photo/2016/11/29/05/45/astronomy-1867616_960_720.jpg') center/cover;
    opacity: 0.15;
    z-index: -1;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

h1, h2 { 
    font-weight: 300; 
    text-align: center; 
    margin-bottom: 25px; 
    line-height: 1.3; 
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
}

.quiz-container {
    width: 90%;
    max-width: 500px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px; /* Bardziej kwadratowe rogi */
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px;
    transition: transform 0.3s ease;
}

.step { display: none; animation: slideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.step.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ELEMENTS */
.btn {
    display: block; width: 100%; padding: 18px; 
    background: linear-gradient(90deg, #b8860b, #ffd700); /* Złoty gradient */
    color: #000;
    border: none; border-radius: 12px; /* Nowoczesny kształt */
    font-size: 18px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; text-transform: uppercase; margin-top: 25px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(90deg, #ffd700, #b8860b);
}

.option-btn {
    width: 100%; padding: 16px; margin-bottom: 12px; 
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1); 
    color: white; border-radius: 10px; cursor: pointer;
    text-align: center; /* Wyśrodkowany tekst wygląda lepiej */
    transition: 0.3s; font-size: 16px; 
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}
.option-btn:hover { 
    background: rgba(212, 175, 55, 0.15); 
    border-color: var(--primary); 
    transform: translateX(5px);
}
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* INPUTS */
.input-field, .input-select {
    width: 100%; padding: 16px; border-radius: 10px; 
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.6); 
    color: white; font-size: 16px; box-sizing: border-box; margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
}
.input-field:focus, .input-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.8);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.date-selectors { display: flex; gap: 10px; margin-bottom: 15px; }
.input-select { flex: 1; padding: 12px; text-align: center; cursor: pointer; }

/* CHECKBOX & LEGAL */
.checkbox-container {
    display: flex; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,0.7);
    margin: 20px 0; text-align: left; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px;
}
.checkbox-container input { margin-right: 12px; margin-top: 3px; accent-color: var(--primary); cursor: pointer; }
.checkbox-container a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); }

.legal-footer {
    width: 100%; text-align: center; padding: 30px 20px; font-size: 12px;
    color: rgba(255, 255, 255, 0.4); margin-top: auto;
}
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; margin: 0 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-copyright { margin-top: 15px; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 400px;
    background: #021B1A;
    border: 1px solid var(--primary);
    padding: 15px 20px; display: flex;
    justify-content: space-between; align-items: center; gap: 15px; z-index: 9999;
    box-sizing: border-box; font-size: 13px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cookie-banner a { color: var(--primary); }
.cookie-banner button { 
    background: var(--primary); color: #000; border: none; 
    padding: 8px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; 
}

/* ANIMATIONS & LOADER */
.progress-container { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 16px 16px 0 0; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.4s ease; box-shadow: 0 0 10px var(--primary); }

.loader-content { text-align: center; }
.spinner { 
    width: 60px; height: 60px; 
    border: 3px solid rgba(255,255,255,0.1); 
    border-top: 3px solid var(--primary); 
    border-radius: 50%; 
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite; 
    margin: 0 auto 30px auto; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

.trust-icons { display: flex; justify-content: space-around; margin-top: 25px; font-size: 0.85em; opacity: 0.8; color: var(--primary); letter-spacing: 0.5px; }