/* ============================================
   PRE-SCREENING QUIZ STYLES
   Tessera Amoris - High-Quality Filtering
   ============================================ */

/* Quiz Modal Overlay */
.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(12, 27, 51, 0.95) 0%, 
        rgba(12, 27, 51, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.quiz-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Quiz Container */
.quiz-container {
    background: var(--ivory);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 0 1px rgba(212, 175, 55, 0.3);
    animation: quizSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Quiz Header */
.quiz-header {
    background: linear-gradient(135deg, 
        var(--midnight-blue) 0%, 
        #0a1628 100%);
    color: var(--ivory);
    padding: 50px 40px 40px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.quiz-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gold) 50%, 
        transparent 100%);
}

.quiz-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.3) 50%, 
        transparent 100%);
}

.quiz-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--ivory);
}

.quiz-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 35px;
    color: var(--ivory);
}

/* Progress Bar */
.quiz-progress-container {
    margin-top: 30px;
}

.quiz-progress-text {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.85;
    color: var(--ivory);
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gold) 0%, 
        #f4d03f 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    position: relative;
}

.quiz-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Quiz Content */
.quiz-content {
    padding: 50px 40px;
    min-height: 400px;
}

.quiz-question-container {
    animation: questionFadeIn 0.5s ease;
}

@keyframes questionFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quiz-question-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.quiz-question-number::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--gold);
    margin-right: 12px;
}

.quiz-question-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--midnight-blue);
    margin-bottom: 35px;
}

/* Quiz Options */
.quiz-options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 24px 28px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quiz-option:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.02) 0%, 
        rgba(212, 175, 55, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.quiz-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(212, 175, 55, 0.12) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.quiz-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    border-radius: 12px 0 0 12px;
}

.quiz-option-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-option-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.quiz-option-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--midnight-blue);
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quiz-option.selected .quiz-option-letter {
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    color: var(--midnight-blue);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.quiz-option-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--midnight-blue);
    font-weight: 400;
}

.quiz-option.selected .quiz-option-text {
    font-weight: 500;
}

.quiz-option-checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: transparent;
    font-size: 14px;
}

.quiz-option.selected .quiz-option-checkmark {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--midnight-blue);
}

/* Quiz Footer */
.quiz-footer {
    padding: 30px 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(12, 27, 51, 0.08);
}

.quiz-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    color: var(--midnight-blue);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.quiz-btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f 0%, var(--gold) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.quiz-btn-primary:active {
    transform: translateY(0);
}

.quiz-btn-secondary {
    background: transparent;
    color: var(--midnight-blue);
    border: 2px solid var(--midnight-blue);
}

.quiz-btn-secondary:hover {
    background: var(--midnight-blue);
    color: var(--ivory);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Quiz Results */
.quiz-result-container {
    text-align: center;
    padding: 40px 20px;
    animation: resultFadeIn 0.6s ease;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quiz-result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 30px;
    animation: iconPulse 1s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.quiz-result-icon.highly-aligned {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    box-shadow: 0 8px 25px rgba(21, 87, 36, 0.2);
}

.quiz-result-icon.aligned {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    box-shadow: 0 8px 25px rgba(133, 100, 4, 0.2);
}

.quiz-result-icon.reflection {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    box-shadow: 0 8px 25px rgba(114, 28, 36, 0.2);
}

.quiz-result-icon.not-aligned {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    color: #6c757d;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.2);
}

.quiz-result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--midnight-blue);
    margin-bottom: 20px;
}

.quiz-result-score {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.quiz-result-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--midnight-blue);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-result-message strong {
    color: var(--gold);
    font-weight: 600;
}

.quiz-result-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-container {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .quiz-header {
        padding: 35px 25px 30px;
    }
    
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
    }
    
    .quiz-content {
        padding: 35px 25px;
        min-height: 350px;
    }
    
    .quiz-question-text {
        font-size: 1.5rem;
    }
    
    .quiz-option {
        padding: 20px 20px;
    }
    
    .quiz-option-letter {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-right: 15px;
    }
    
    .quiz-option-text {
        font-size: 0.95rem;
    }
    
    .quiz-footer {
        padding: 25px 25px 30px;
        flex-direction: column-reverse;
    }
    
    .quiz-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quiz-result-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .quiz-result-title {
        font-size: 1.8rem;
    }
    
    .quiz-result-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .quiz-btn-large {
        width: 100%;
    }
}

/* Smooth Scrollbar */
.quiz-container::-webkit-scrollbar {
    width: 8px;
}

.quiz-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.quiz-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.quiz-container::-webkit-scrollbar-thumb:hover {
    background: #c9a02b;
}

/* Loading State */
.quiz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.quiz-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.quiz-loading-text {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--midnight-blue);
    opacity: 0.7;
}

