﻿/* Quiz Modal Styles - Glassmorphism & Responsive Grid */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quiz-modal.active {
    display: flex;
}

.quiz-container {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.quiz-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.quiz-close:hover {
    color: #fff;
}

.quiz-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2dd4bf);
    width: 20%;
    transition: width 0.4s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.quiz-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.5;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.08s ease, border-color 0.05s ease, background 0.05s ease, box-shadow 0.05s ease;
}

.quiz-option:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.1);
}

.quiz-option.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.quiz-option-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.quiz-option-text {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.quiz-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-input-group label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.quiz-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.quiz-input:focus {
    border-color: #3b82f6;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.quiz-btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-btn-prev {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
}

.quiz-btn-prev:hover {
    border-color: #fff;
    color: #fff;
}

.quiz-btn-next {
    background: #3b82f6;
    border: none;
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.quiz-btn-next:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.quiz-summary-box {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #3b82f6;
}

.quiz-summary-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 25px 20px;
    }

    .quiz-title {
        font-size: 1.4rem;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
    }

    .quiz-option-img {
        height: 140px;
    }
}
