/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-size: 16px; /* 기본 폰트 크기 증가 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background: white;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.1rem;
    color: #34495e;
}

/* Main Content */
main {
    padding: 2rem;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Landing Page */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.steps-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.step-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #34495e;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 버튼 처리 중 상태 (깜빡임 방지) */
.btn-primary.processing,
.btn-secondary.processing {
    opacity: 0.8;
    pointer-events: none;
}

.info-text {
    margin-top: 2rem;
    color: #34495e;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #34495e;
    font-size: 1.1rem;
}

/* Question Container */
.question-container {
    max-width: 700px;
    margin: 0 auto;
}

.question {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
}

.question.active {
    display: block;
}

.question h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.question-options {
    display: grid;
    gap: 1rem;
}

.option {
    background: white;
    padding: 1rem 1.5rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 52px;
}

.option:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
}

.option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.option input[type="radio"] {
    display: none; /* 척도 질문이 아닌 경우 라디오버튼 숨김 */
}

/* 척도 질문에서만 라디오버튼 표시 */
.scale-rating .scale-option input[type="radio"] {
    display: block;
    margin: 0;
    accent-color: #667eea;
    width: 16px;
    height: 16px;
    min-width: 44px;
    min-height: 44px;
    transform: scale(0.8);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.option label {
    flex: 1;
    cursor: pointer;
}

/* Scale Rating */
.scale-rating {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 1rem 0;
    gap: 0.25rem;
}

.scale-option {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
}

/* .scale-option input 스타일은 위의 .scale-rating .scale-option input으로 통합됨 */

.scale-option label {
    display: block;
    font-size: 0.75rem;
    color: #34495e;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    hyphens: auto;
    word-break: keep-all;
}

/* 척도 설명 스타일 */
.scale-description {
    font-size: 0.7rem;
    color: #95a5a6;
    margin-top: 0.2rem;
    line-height: 1.2;
}

/* 미완성 항목 질문 스타일 */
.question.incomplete h3 {
    color: #e74c3c !important;
}

/* 정보 툴팁 스타일 */
.info-tooltip {
    cursor: pointer;
    font-size: 1rem;
    color: #667eea;
    margin-left: 0.5rem;
    opacity: 1;
    transition: all 0.3s ease;
    background: #f0f2ff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #667eea;
}

.info-tooltip:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tooltip-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.tooltip-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.tooltip-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.2rem 0.5rem;
}

.tooltip-close:hover {
    color: #2c3e50;
}

.tooltip-body {
    padding: 1.5rem;
    line-height: 1.6;
}

.tooltip-body strong {
    color: #2c3e50;
}

/* Question Tooltip Styles */
.question-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.question-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    border: none;
    font-size: 12px;
}

.question-tooltip:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.question-tooltip svg {
    width: 12px;
    height: 12px;
}

/* Question Tooltip Popup */
.question-tooltip-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tooltip-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.tooltip-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.tooltip-popup-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tooltip-popup-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.tooltip-popup-close:hover {
    background: #e9ecef;
    color: #495057;
}

.tooltip-popup-body {
    padding: 20px;
}

.tooltip-popup-body p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

/* Option Description Styles */
.option-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.option-desc {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.3;
}

/* Scale Option Description */
.scale-label-container {
    margin-bottom: 8px;
}

.scale-option-desc {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
    font-style: italic;
}

/* Navigation */
.navigation {
    text-align: center;
    margin: 3rem 0;
}

/* Results */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.results-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Personality Difference Explanation */
.personality-difference-explanation {
    background: #f8f9ff;
    border: 1px solid #e1e6ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.explanation-icon {
    font-size: 1.2rem;
}

.explanation-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.explanation-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.chart-description {
    font-size: 0.9rem;
    color: #34495e;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 3px solid #667eea;
}

/* Profile Summary */
.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.profile-label {
    font-weight: 600;
    color: #2c3e50;
}

.profile-value {
    color: #34495e;
}

/* Job Recommendations */
.job-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.job-match {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-description {
    color: #34495e;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.job-explanation {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #5a6c7d;
    margin-bottom: 0.5rem;
    border-left: 3px solid #667eea;
}

/* Action Plan */
.action-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #27ae60;
}

.action-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.action-description {
    color: #34495e;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.action-link {
    margin-top: 0.8rem;
}

/* Enhanced action plan layout */
.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-title {
    margin: 0;
    flex: 1;
}

.action-priority {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-reason {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    border-left: 3px solid #3498db;
}

.btn-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.btn-link:hover {
    background: #5a6fd8;
    text-decoration: none;
}

/* Results Actions */
.results-actions {
    text-align: center;
}

.btn-consulting {
    font-size: 1.1rem;
    padding: 14px 35px;
    font-weight: 700;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transform: scale(1.05);
}

.btn-consulting:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    color: #34495e;
    border-top: 1px solid #ecf0f1;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 480px) {
    .container {
        margin: 0;
        min-height: 100vh;
    }
    
    /* 모바일 헤더 최적화 */
    .header {
        padding: 1rem 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    /* 모바일 메인 콘텐츠 */
    main {
        padding: 0.5rem;
    }
    
    /* 모바일 히어로 섹션 */
    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        color: #666;
    }
    
    /* 컴팩트 프로세스 카드 모바일 최적화 */
    .process-cards-compact {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1rem 0;
        align-items: stretch;
    }
    
    .compact-card {
        padding: 1rem 0.75rem;
        border-radius: 8px;
        align-items: flex-start;
        min-height: 60px;
    }
    
    .compact-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
    
    .compact-content {
        flex: 1;
        padding-left: 0.5rem;
    }
    
    .compact-content h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: break-word;
        margin: 0;
    }
    
    .compact-arrow {
        transform: rotate(90deg);
        font-size: 1rem;
        margin: 0.25rem 0;
        color: #667eea;
        align-self: center;
    }
    
    /* 결과 미리보기 모바일 */
    .results-preview {
        margin: 1.5rem 0;
    }
    
    .results-preview h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .preview-items {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .preview-item {
        flex-direction: row;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        width: 90%;
        max-width: 280px;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .preview-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .preview-text {
        flex: 1;
        text-align: left;
        font-weight: 600;
    }
    
    /* 모바일 버튼 최적화 */
    .btn-primary-large {
        padding: 12px 24px;
        font-size: 1rem;
        width: 90%;
        max-width: 300px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px; /* 터치 친화적 높이 */
        margin: 4px;
    }
    
    /* 단계별 헤더 모바일 */
    .step-header {
        margin-bottom: 1.5rem;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .step-header p {
        font-size: 0.9rem;
    }
    
    /* 질문 컨테이너 모바일 */
    .question-container {
        max-width: 100%;
        margin: 0;
    }
    
    .question {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .question h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    /* 선택 옵션 모바일 최적화 */
    .option {
        padding: 1rem;
        margin-bottom: 0.5rem;
        min-height: 60px; /* 터치 친화적 - 44px + 패딩 */
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .option:hover {
        transform: none; /* 모바일에서 hover 효과 제거 */
    }
    
    .option input[type="radio"] {
        display: none; /* 모바일에서도 척도 질문이 아닌 경우 숨김 */
    }
    
    .option label {
        font-size: 0.9rem;
        line-height: 1.4;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    /* 척도 평가 모바일 */
    .scale-rating {
        margin: 1rem 0;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .scale-option {
        min-height: 85px;
        padding: 0.5rem 0.125rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .scale-rating .scale-option input[type="radio"] {
        display: block;
        width: 19px;
        height: 19px;
        min-width: 44px;
        min-height: 44px;
        transform: scale(0.8);
        margin-bottom: 0.25rem;
        padding: 10px; /* 터치 영역 확대 */
    }
    
    .scale-option label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    /* 툴팁 모바일 최적화 */
    .tooltip-content {
        width: 95%;
        max-width: none;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .tooltip-header {
        padding: 1rem;
    }
    
    .tooltip-header h3 {
        font-size: 1.1rem;
    }
    
    .tooltip-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* 네비게이션 모바일 - 하단 고정 방지 */
    .navigation {
        position: relative !important;
        margin: 1.5rem 0;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .navigation button {
        flex: 1;
        max-width: 120px;
    }
    
    /* 결과 페이지 모바일 */
    .results-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .results-header p {
        font-size: 0.9rem;
    }
    
    .result-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .result-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .chart-description {
        font-size: 0.8rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    /* 차트 모바일 최적화 */
    #strengths-chart {
        max-height: 300px;
        margin: 1rem 0;
    }
    
    .personality-difference-explanation {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .explanation-header {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .explanation-title {
        font-size: 0.9rem;
    }
    
    .explanation-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* 직업 추천 모바일 */
    .job-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }
    
    .job-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .job-match {
        font-size: 0.9rem;
    }
    
    .job-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* 액션 플랜 모바일 */
    .action-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .action-title {
        font-size: 0.95rem;
    }
    
    .action-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Enhanced action plan mobile styles */
    .action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .action-priority {
        font-size: 11px;
        padding: 3px 6px;
        align-self: flex-start;
    }
    
    .action-reason {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* 결과 액션 버튼 모바일 */
    .results-actions {
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .btn-consulting {
        width: 90%;
        max-width: 300px;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    /* 푸터 모바일 */
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .footer p {
        margin-bottom: 0.5rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .footer p:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        margin: 0;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .steps-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .question {
        padding: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 11px 24px;
        font-size: 0.95rem;
        margin: 6px;
    }
    
    .navigation {
        margin: 2rem 0;
    }
    
    .option {
        min-height: 48px;
    }
    
    .scale-option {
        min-height: 56px;
    }
}

/* Chart Container */
#strengths-chart {
    max-height: 400px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ecf0f1;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
}

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

/* 직업 정보 출처 스타일 */
.data-source {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* 실용적인 조언 스타일 */
.practical-advice {
    display: block;
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 8px;
}

.practical-advice strong {
    color: #667eea;
}

/* Validation Popup Styles */
.validation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.validation-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.validation-popup-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #e9ecef;
}

.validation-popup-header h3 {
    margin: 0;
    color: #e74c3c;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-popup-body {
    padding: 20px;
}

.validation-popup-body p {
    margin: 0 0 15px 0;
    color: #495057;
    line-height: 1.5;
}

.missing-items-list {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.missing-items-list li {
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.4;
}

.missing-items-list li:last-child {
    margin-bottom: 0;
}

/* New missing items styling for improved popup */
.missing-items {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.missing-items h4 {
    color: #e74c3c;
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
}

.missing-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.missing-items li {
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.4;
    padding-left: 20px;
    position: relative;
}

.missing-items li:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.missing-items li:last-child {
    margin-bottom: 0;
}

.validation-popup-actions {
    padding: 15px 20px 20px 20px;
    text-align: center;
}

.validation-popup-actions .btn-primary {
    min-width: 100px;
    padding: 10px 24px;
}

/* Simple highlight incomplete question effect */
.question.highlight-incomplete {
    background: #fef7f7 !important;
    border: 1px solid #f39c9c !important;
}

.question.incomplete h3 {
    color: #e74c3c !important;
}

/* Mobile responsive for validation popup */
@media (max-width: 480px) {
    .validation-popup {
        margin: 10px;
        border-radius: 8px;
    }
    
    .validation-popup-header {
        padding: 15px 15px 10px 15px;
    }
    
    .validation-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .validation-popup-body {
        padding: 15px;
    }
    
    .missing-items-list {
        padding: 12px 15px;
        margin: 12px 0;
    }
    
    .validation-popup-actions {
        padding: 12px 15px 15px 15px;
    }
}

/* Error Popup Styles */
.error-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: errorPopupSlideIn 0.3s ease-out;
}

@keyframes errorPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-popup-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #fff5f5;
    border-radius: 12px 12px 0 0;
}

.error-popup-header h3 {
    margin: 0;
    color: #d63384;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-popup-body {
    padding: 20px;
}

.error-popup-body p {
    margin: 0 0 15px 0;
    color: #495057;
    line-height: 1.5;
}

.error-popup-body p:last-child {
    margin-bottom: 0;
}

.error-popup-body small {
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    display: block;
    margin-top: 10px;
    border-left: 3px solid #dc3545;
}

.error-popup-actions {
    padding: 15px 20px 20px 20px;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.error-popup-actions .btn-secondary,
.error-popup-actions .btn-primary {
    min-width: 100px;
    padding: 10px 20px;
}

/* Mobile responsive for error popup */
@media (max-width: 480px) {
    .error-popup {
        margin: 10px;
        border-radius: 8px;
    }
    
    .error-popup-header {
        padding: 15px 15px 12px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .error-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .error-popup-body {
        padding: 15px;
    }
    
    .error-popup-actions {
        padding: 12px 15px 15px 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .error-popup-actions .btn-secondary,
    .error-popup-actions .btn-primary {
        width: 100%;
        margin: 0;
    }
}

/* Simple Popup Styles */
.simple-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.simple-popup {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.3s ease-out;
}

.simple-popup-content {
    padding: 25px;
    text-align: center;
}

.simple-popup-content p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.simple-popup-content .btn-primary {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 1rem;
}

/* Mobile responsive for simple popup */
@media (max-width: 480px) {
    .simple-popup {
        margin: 20px;
        border-radius: 8px;
    }
    
    .simple-popup-content {
        padding: 20px;
    }
    
    .simple-popup-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .simple-popup-content .btn-primary {
        width: 100%;
        padding: 12px;
    }
}

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

/* Enhanced Personality Tooltip Styles */
.personality-tooltip {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.personality-tooltip .tooltip-body {
    text-align: left;
    line-height: 1.6;
}

.theory-background {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.theory-background h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.theory-background p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.selected-type-detail {
    margin-bottom: 25px;
}

.selected-type-detail h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.main-description {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: 500;
}

.characteristics-section,
.jobs-section,
.workstyle-section {
    margin-bottom: 18px;
}

.characteristics-section h5,
.jobs-section h5,
.workstyle-section h5 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.characteristics-section ul {
    margin: 8px 0;
    padding-left: 20px;
}

.characteristics-section li {
    margin-bottom: 5px;
    color: #555;
}

.jobs-section p,
.workstyle-section p {
    color: #555;
    margin: 8px 0;
    font-size: 0.95rem;
}

.riasec-overview {
    background: #f1f3f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.riasec-overview h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.type-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid #e9ecef;
}

.type-item strong {
    color: #667eea;
}

.note {
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

/* Analysis Loading Styles */
.analysis-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.analysis-header h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.analysis-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.analysis-progress {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

/* 간단한 프로그레스 바 */
.simple-progress {
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar-simple {
    width: 100%;
    height: 8px;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill-simple {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.progress-text-simple {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 10px;
}

.analysis-steps {
    margin-top: 40px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.analysis-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.analysis-step.active {
    background: #e8f2ff;
    border-left-color: #667eea;
    transform: translateX(5px);
}

.analysis-step.completed {
    background: #e8f5e8;
    border-left-color: #28a745;
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.step-text {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.analysis-step.active .step-text {
    color: #667eea;
}

.analysis-step.completed .step-text {
    color: #28a745;
}

.step-status {
    font-size: 1.2rem;
}

.analysis-step.active .step-status {
    animation: pulse 1.5s infinite;
}

.analysis-step.completed .step-status::before {
    content: '✅';
}

/* @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} */ /* 회전 애니메이션 키프레임 제거 */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile responsive for analysis loading */
@media (max-width: 768px) {
    .analysis-container {
        padding: 30px 15px;
    }
    
    .analysis-header h2 {
        font-size: 1.5rem;
    }
    
    .simple-progress {
        max-width: 250px;
    }
    
    .progress-text-simple {
        font-size: 1.4rem;
    }
    
    .analysis-steps {
        max-width: 100%;
    }
    
    .analysis-step {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .step-icon {
        font-size: 1.2rem;
        width: 30px;
    }
}

/* Mobile responsive for personality tooltip */
@media (max-width: 768px) {
    .personality-tooltip {
        max-width: 95vw;
        max-height: 85vh;
        margin: 10px;
    }
    
    .theory-background,
    .riasec-overview {
        padding: 15px;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .selected-type-detail h4 {
        font-size: 1.1rem;
    }
    
    .main-description {
        font-size: 0.95rem;
    }
}

