* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.quiz-active {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quiz-container {
    background: linear-gradient(135deg, #1E40AF, #7DD3FC);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
    max-width: 510px;
    width: 80%;
    padding: 21px;
    position: relative;
    overflow: hidden;
    margin: 18px auto;
    color: white;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quiz-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.progress-container {
    background: #e0e0e0;
    border-radius: 25px;
    height: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    height: 100%;
    border-radius: 25px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-counter {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.question-container {
    margin-bottom: 25px;
}

.question {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 18px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.options {
    display: grid;
    gap: 8px;
}

.option {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.option:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.option:hover::before {
    left: 100%;
}

.option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #1E40AF;
    border-color: white;
    transform: scale(1.02);
    font-weight: 600;
}

.option-text {
    font-size: 0.95rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    color: white;
}

.option.selected .option-text {
    color: #1E40AF;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-next, .btn-submit {
    background: rgba(255, 255, 255, 0.9);
    color: #1E40AF;
    font-weight: 700;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-container {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease;
    background: white;
    border-radius: 15px;
    padding: 3px 10px;
    margin: 10px auto;
    color: #1E40AF;
    position: relative;
    overflow: hidden;
}

.results-container::before {
    content: 'YOU ARE A WARRIOR';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1E40AF;
}

.result-description {
    font-size: 1.2rem;
    color: #1E40AF;
    line-height: 1.6;
    margin-bottom: 25px;
}

.result-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 10px;
    text-align: left;
}

.strength-section, .growth-section {
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1E40AF;
}

.section-content {
    color: #1E40AF;
    line-height: 1.6;
    font-size: 1.05rem;
}

.email-capture {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 10px;
}

.email-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
}

.cta-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.hidden {
    display: none;
}

.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    padding-top: 40px;
}

.quiz-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.quiz-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .quiz-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .quiz-container {
        padding: 14px;
        margin: 12px auto;
        max-width: 75%;
        width: 75%;
    }
    
    .quiz-header {
        margin-bottom: 20px;
    }
    
    .quiz-title {
        font-size: 1.4rem;
    }
    
    .quiz-subtitle {
        font-size: 0.75rem;
    }
    
    .question {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .options {
        gap: 5px;
    }
    
    .option {
        padding: 6px 10px;
    }
    
    .option-text {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .nav-buttons {
        margin-top: 15px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .results-container {
        padding: 5px 10px;
        margin: 5px auto;
    }
    
    .result-title {
        font-size: 1.2rem;
    }
    
    .result-description {
        font-size: 0.85rem;
    }
    
    .result-details {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    .section-content {
        font-size: 0.75rem;
    }
    
    .email-capture {
        padding: 8px;
        margin-bottom: 10px;
    }
}