:root {
    --primary: #0B3ABF;
    --primary-light: #2A5DEB;
    --primary-dark: #062275;
    --primary-glow: rgba(11, 58, 191, 0.6);
    --bg-dark: #0A0D1A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #FFFFFF;
    --text-muted: #A0ABC0;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.4s;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #000000;
    bottom: -150px;
    right: -150px;
    opacity: 0.8;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

/* Layout Containers */
.quiz-container {
    width: 100%;
    max-width: 600px;
    padding: 40px 30px;
    position: relative;
    z-index: 10;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 0.6s var(--ease-out-expo);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Steps */
.step {
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all var(--transition-speed) var(--ease-out-expo);
}

.step.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.step.exit-left {
    transform: translateX(-50px) scale(0.95);
    opacity: 0;
}

.step.exit-right {
    transform: translateX(50px) scale(0.95);
    opacity: 0;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #a8b8d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
}

input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(42, 93, 235, 0.2);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 18px 30px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

/* Option Buttons (Sim/Não, etc) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-option {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: white;
    padding: 20px;
    text-align: left;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(10px);
}

.btn-option:active {
    transform: translateX(5px) scale(0.98);
}

/* Range Slider Customization */
.range-container {
    padding: 20px 0;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 20px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

input[type=range]::-webkit-slider-thumb {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -10px;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

#range-value-display {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Micro animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.error-shake {
    animation: shake 0.4s ease-in-out;
    border-color: #ff3333 !important;
}

/* Responsive */
@media (max-width: 600px) {
    .quiz-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 16px 24px;
    }
}
