/* ===================================================================
   SERVICE QUIZ - Interactive Tool
   =================================================================== */

.service-quiz-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    padding: 60px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.service-quiz-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: quiz-bg-rotate 20s linear infinite;
}

@keyframes quiz-bg-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.quiz-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.quiz-header h2 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.quiz-header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.quiz-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeInUp 0.5s ease;
}

.quiz-card.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 30px 0;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.quiz-option {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    border-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.quiz-option.selected {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-color: #0891b2;
    color: white;
}

.quiz-option-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.quiz-option.selected .quiz-option-icon {
    color: white;
}

.quiz-option-text {
    flex: 1;
}

.quiz-option-title {
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 0 5px 0;
}

.quiz-option-desc {
    font-size: 0.9em;
    opacity: 0.7;
    margin: 0;
}

.quiz-option.selected .quiz-option-desc {
    opacity: 0.9;
}

.quiz-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.quiz-btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-btn-back {
    background: #e2e8f0;
    color: #475569;
}

.quiz-btn-back:hover {
    background: #cbd5e1;
}

.quiz-btn-next {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    margin-left: auto;
}

.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Page */
.quiz-results {
    text-align: center;
}

.quiz-results-icon {
    font-size: 4em;
    color: #10b981;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.quiz-results-title {
    font-size: 2em;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.quiz-results-subtitle {
    font-size: 1.1em;
    color: #64748b;
    margin: 0 0 30px 0;
}

.quiz-recommendation {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.quiz-recommendation h3 {
    color: #0ea5e9;
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.quiz-recommendation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.quiz-recommendation li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-recommendation li:last-child {
    border-bottom: none;
}

.quiz-recommendation li i {
    color: #10b981;
}

.quiz-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-cta-btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.quiz-cta-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
}

.quiz-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.quiz-cta-secondary {
    background: white;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
}

.quiz-cta-secondary:hover {
    background: #f8fafc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-header h2 {
        font-size: 1.8em;
    }

    .quiz-card {
        padding: 25px;
    }

    .quiz-question {
        font-size: 1.2em;
    }

    .quiz-option {
        padding: 15px;
    }

    .quiz-option-icon {
        font-size: 1.5em;
    }

    .quiz-buttons {
        flex-direction: column;
    }

    .quiz-btn-next {
        margin-left: 0;
    }

    .quiz-cta-buttons {
        flex-direction: column;
    }

    .quiz-cta-btn {
        width: 100%;
        justify-content: center;
    }
}