/* Quiz View Styles */
#quizView {
    min-height: 100vh;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    display: none;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quiz-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.quiz-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
}

.quiz-logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 24px;
    font-weight: 800;
}

.quiz-exit-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quiz-exit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Progress Bar */
.quiz-progress {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    height: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-progress-bar {
    height: 100%;
    background: white;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.quiz-progress-text {
    text-align: center;
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Quiz Card */
.quiz-card {
    background: white;
    border-radius: 28px;
    padding: 52px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
    min-height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.quiz-step-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.2;
}

.quiz-step-subtitle {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 36px;
    font-weight: 500;
}

/* Quiz Questions */
.quiz-question {
    margin-bottom: 28px;
}

.quiz-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

/* Multi-Select Toggles */
.quiz-multi-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quiz-toggle-btn {
    padding: 32px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 200px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.3px;
}

.quiz-toggle-btn:hover {
    border-color: #a5b4fc;
    color: #6366f1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 12px 24px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.quiz-toggle-btn.selected {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quiz-toggle-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.quiz-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.quiz-toggle-btn:hover .quiz-toggle-icon {
    background: rgba(99, 102, 241, 0.12);
    transform: scale(1.05);
    box-shadow: 
        inset 0 0 0 1px rgba(99, 102, 241, 0.2),
        0 4px 12px rgba(99, 102, 241, 0.1);
}

.quiz-toggle-btn.selected .quiz-toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-toggle-icon svg {
    color: currentColor;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-toggle-btn:hover .quiz-toggle-icon svg {
    opacity: 1;
    transform: scale(1.05);
}

/* Platform-specific colors */
.quiz-toggle-btn.platform-tiktok .quiz-toggle-icon {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.quiz-toggle-btn.platform-tiktok:hover .quiz-toggle-icon {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.quiz-toggle-btn.platform-tiktok.selected {
    background: #000000;
    color: white;
}

.quiz-toggle-btn.platform-tiktok.selected .quiz-toggle-icon {
    background: rgba(0, 242, 234, 0.15);
    box-shadow: inset 0 0 0 1px rgba(0, 242, 234, 0.3);
}

.quiz-toggle-btn.platform-instagram .quiz-toggle-icon {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.quiz-toggle-btn.platform-instagram:hover .quiz-toggle-icon {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.quiz-toggle-btn.platform-instagram.selected {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
}

.quiz-toggle-btn.platform-instagram.selected .quiz-toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.quiz-toggle-btn.platform-youtube .quiz-toggle-icon {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.quiz-toggle-btn.platform-youtube:hover .quiz-toggle-icon {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.quiz-toggle-btn.platform-youtube.selected {
    background: #FF0000;
    color: white;
}

.quiz-toggle-btn.platform-youtube.selected .quiz-toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Chips */
.quiz-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.quiz-chip {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.quiz-chip:hover {
    border-color: #a5b4fc;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.quiz-chip.selected {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.quiz-chip-other {
    background: white;
    border-color: #cbd5e1;
}

.quiz-chip-other:hover {
    border-color: #94a3b8;
}

.quiz-chip-other.selected {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-color: #6366f1;
    color: white;
}

/* Other Input */
.quiz-other-input-wrapper {
    width: 100%;
    margin-top: 8px;
}

.quiz-other-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.quiz-other-input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.quiz-other-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Textarea */
.quiz-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.quiz-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

/* Radio Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-radio-option,
.quiz-checkbox-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.quiz-radio-option:hover,
.quiz-checkbox-option:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quiz-radio-option.selected,
.quiz-checkbox-option.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

.quiz-radio-option input,
.quiz-checkbox-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.quiz-radio-label,
.quiz-checkbox-label {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
}

.quiz-radio-check,
.quiz-checkbox-check {
    width: 26px;
    height: 26px;
    border: 2.5px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.quiz-radio-option:hover .quiz-radio-check,
.quiz-checkbox-option:hover .quiz-checkbox-check {
    border-color: #a5b4fc;
}

.quiz-radio-option.selected .quiz-radio-check,
.quiz-checkbox-option.selected .quiz-checkbox-check {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.quiz-radio-option.selected .quiz-radio-check::after,
.quiz-checkbox-option.selected .quiz-checkbox-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.quiz-nav-btn {
    padding: 16px 40px;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
}

.quiz-btn-back {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    border: 2px solid transparent;
}

.quiz-btn-back:hover {
    background: white;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-btn-back:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.quiz-btn-next {
    background: white;
    color: #6366f1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    flex: 1;
    font-weight: 800;
}

.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

/* Error Message */
.quiz-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
}

/* Summary */
.quiz-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.quiz-summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    color: #334155;
}

.quiz-summary-item:last-child {
    border-bottom: none;
}

.quiz-summary-item strong {
    color: #6366f1;
    display: inline-block;
    min-width: 120px;
}

/* Loading Overlay */
#quizLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.quiz-loading-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 40px;
}

.quiz-loading-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
    letter-spacing: -0.5px;
}

.quiz-loading-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 48px;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.quiz-loading-progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.quiz-loading-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.quiz-loading-percentage {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 56px;
    opacity: 0.95;
}

.quiz-loading-testimonials {
    position: relative;
    min-height: 180px;
}

.quiz-loading-testimonial {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.5s ease;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-niche {
    font-size: 14px;
    opacity: 0.85;
}

.testimonial-result {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
    text-align: left;
}

.testimonial-highlight {
    color: #fbbf24;
    font-weight: 700;
    font-size: 18px;
}

.specifically-for-you {
    color: #fbbf24;
    font-weight: 800;
    display: block;
    margin-top: 4px;
    font-size: 30px;
    letter-spacing: 1.5px;
}

/* Compact Checklist Styling */
.quiz-loading-checklist-compact {
    margin: 32px auto 48px;
    text-align: left;
    max-width: 450px;
}

.checklist-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.checklist-item-compact[data-status="active"],
.checklist-item-compact[data-status="completed"] {
    opacity: 1;
}

.checkmark-compact {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    opacity: 0;
    transition: opacity 0.2s ease;
    min-width: 20px;
}

.checklist-item-compact[data-status="completed"] .checkmark-compact {
    opacity: 1;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.checklist-text-compact {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.dynamic-niche,
.dynamic-vibe,
.dynamic-audience,
.dynamic-challenge {
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-card {
        padding: 30px 20px;
    }

    .quiz-step-title {
        font-size: 24px;
    }

    .quiz-chip-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .quiz-navigation {
        flex-direction: column-reverse;
    }

    .quiz-btn-next {
        width: 100%;
    }
}
