* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f8f9fb;
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

.quiz-page-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.quiz-page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

.quiz-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.quiz-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 32px;
    text-align: center;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.quiz-page {
    display: none;
    padding: 32px;
    min-height: 400px;
}

.quiz-page.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.progress-container {
    padding: 16px 32px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-text {
    opacity: 0.9;
}

.progress-percentage {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f1f5f9);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    animation: shimmer 2s infinite;
}

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

.question-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.quiz-page h1 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

.quiz-page h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

.intro-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.notice-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-text {
    color: #1e40af;
    font-size: 0.95rem;
}

.scale-options {
    margin: 24px 0;
}

.option-row {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.option-row:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.option-row .option-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Emojis SVG */
.emoji-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
}

.emoji-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: 2px solid transparent;
    flex: 1;
    min-height: 80px;
}

.emoji-choice:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
}

.emoji-choice.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.emoji-svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.emoji-choice:hover .emoji-svg {
    transform: scale(1.1);
}

.emoji-choice.selected .emoji-svg {
    transform: scale(1.15);
}

.emoji-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    pointer-events: none;
    z-index: 10;
}

.emoji-choice:hover .emoji-label,
.emoji-choice.selected .emoji-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .emoji-scale {
        flex-direction: column;
        gap: 12px;
    }

    .emoji-choice {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        min-height: 60px;
        padding: 12px 16px;
    }

    .emoji-svg {
        width: 32px;
        height: 32px;
        margin-right: 12px;
        margin-bottom: 0;
    }

    .emoji-label {
        position: static;
        transform: none;
        opacity: 1;
        background: transparent;
        color: #6b7280;
        font-size: 0.85rem;
        padding: 0;
    }
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    justify-content: center;
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border-color: #d1d5db;
    color: #6b7280;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

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

.email-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.result {
    text-align: center;
    padding: 20px 0;
}

.result-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-section {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    text-align: center;
}

.cta-btn {
    background: white;
    color: #3b82f6;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .quiz-container {
        margin: 20px 16px;
    }

    .quiz-header, .quiz-page {
        padding: 24px 20px;
    }

    .progress-container {
        padding: 0 20px 16px;
    }

    .quiz-title {
        font-size: 1.5rem;
    }
}
