/* Additional Styles and UI Enhancements */

/* 팝업 공통 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.popup-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 미완료 항목 팝업 */
.missing-items-list {
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.missing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.missing-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.missing-text {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 완료 팝업 */
.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* 단계 완료 팝업용 진행률 원 (회전 애니메이션 없음) */
.completion-progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.progress-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.popup-actions .btn-primary,
.popup-actions .btn-secondary {
    flex: 1;
    max-width: 200px;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Resume Dialog */
.resume-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.resume-dialog {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.resume-dialog h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.resume-dialog p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading States */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

/* Notifications */
.error-notification, .success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

.error-notification {
    border-left: 4px solid #e74c3c;
}

.success-notification {
    border-left: 4px solid #27ae60;
}

.error-content, .success-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-close, .success-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.error-close:hover, .success-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Touch Interface Optimizations */
.mobile-device .option {
    padding: 1.2rem 1.5rem;
    min-height: 60px;
}

.touch-highlight {
    background: rgba(102, 126, 234, 0.1) !important;
    transform: scale(0.98);
}

/* iOS Safari 특별 최적화 */
@supports (-webkit-touch-callout: none) {
    .btn-primary, .btn-secondary, .option {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    input[type="radio"] {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #667eea;
        border-radius: 50%;
        background: white;
        position: relative;
        margin: 0;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    input[type="radio"]:checked {
        background: #667eea;
        border-color: #667eea;
    }
    
    input[type="radio"]:checked::after {
        content: '';
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Android Chrome 특별 최적화 */
@media (max-width: 480px) and (pointer: coarse) {
    .option:hover {
        transform: none;
    }
    
    .option:active {
        transform: scale(0.98);
        background-color: rgba(102, 126, 234, 0.05);
        transition: transform 0.1s ease;
    }
    
    .btn-primary:active, .btn-secondary:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
    
    /* 스크롤 에리어 최적화 */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .tooltip-content {
        -webkit-overflow-scrolling: touch;
    }
    
    .popup-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* 터치 제스처 강화 */
@media (hover: none) and (pointer: coarse) {
    .option:hover,
    .step-card:hover,
    .job-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* 터치 피드백 강화 */
    .option:active {
        background-color: rgba(102, 126, 234, 0.08);
        transform: scale(0.98);
    }
    
    .btn-primary:active {
        transform: scale(0.96);
        background: linear-gradient(135deg, #5a6fd8, #6b59a6);
    }
    
    .btn-secondary:active {
        transform: scale(0.96);
        background: #d0d7d7;
    }
}

/* Enhanced Mobile Typography and Readability */
@media (max-width: 480px) {
    body {
        font-size: 16px !important;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 제목 계층구조 최적화 */
    .header h1 {
        font-size: 1.4rem;
        line-height: 1.2;
        font-weight: 700;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .step-header p {
        font-size: 0.95rem;
        line-height: 1.4;
        opacity: 0.8;
    }
    
    /* 질문 텍스트 최적화 */
    .question h3 {
        font-size: 1.1rem;
        line-height: 1.5;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 1.5rem;
        word-break: keep-all;
        overflow-wrap: break-word;
        padding: 0 0.5rem;
    }
    
    /* 옵션 레이블 최적화 */
    .option label {
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 500;
        color: #2c3e50;
        word-break: keep-all;
        overflow-wrap: break-word;
        display: block;
        padding-right: 0.5rem;
    }
    
    /* 척도 레이블 최적화 */
    .scale-option label {
        font-size: 0.8rem;
        line-height: 1.3;
        font-weight: 500;
        color: #2c3e50;
        text-align: center;
    }
    
    .scale-description {
        font-size: 0.75rem;
        line-height: 1.2;
        color: #95a5a6;
        margin-top: 0.25rem;
    }
    
    /* 버튼 텍스트 최적화 */
    .btn-primary, .btn-secondary {
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.025em;
    }
    
    .btn-primary-large {
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.025em;
    }
    
    /* 정보 텍스트 최적화 */
    .info-text {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #7f8c8d;
        text-align: center;
    }
    
    /* 결과 페이지 타이포그래피 */
    .results-header h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        font-weight: 700;
    }
    
    .results-header p {
        font-size: 1rem;
        line-height: 1.4;
        opacity: 0.9;
    }
    
    .result-card h3 {
        font-size: 1.2rem;
        line-height: 1.2;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .chart-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* 직업 추천 텍스트 */
    .job-title {
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .job-match {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .job-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .job-explanation {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* 액션 플랜 텍스트 */
    .action-title {
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .action-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* 컴팩트 카드 텍스트 */
    .compact-content h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 600;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .compact-content p {
        font-size: 0.8rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .compact-time {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* 미리보기 텍스트 */
    .preview-text {
        font-size: 0.95rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .results-preview h3 {
        font-size: 1.1rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    /* 툴팁 텍스트 */
    .tooltip-header h3 {
        font-size: 1.1rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .tooltip-body {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* 팝업 텍스트 */
    .popup-header h3 {
        font-size: 1.3rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .popup-header p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .missing-text {
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    /* 푸터 텍스트 */
    .footer {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* 태블릿 크기 타이포그래피 */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.5;
    }
    
    .question h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .option label {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 1rem;
    }
    
    .results-header h2 {
        font-size: 1.8rem;
    }
    
    .result-card h3 {
        font-size: 1.3rem;
    }
}

/* 새로운 컴팩트 히어로 섹션 */
.hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* 컴팩트한 프로세스 카드 */
.process-cards-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.compact-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
}

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

.compact-content h4 {
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.compact-content p {
    color: #7f8c8d;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.compact-time {
    background: #e8f4fd;
    color: #667eea;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.compact-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    transform: rotate(90deg);
}

/* 결과 미리보기 */
.results-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.results-preview h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.preview-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 100px;
}

.preview-icon {
    font-size: 2rem;
}

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

/* 시작 섹션 */
.start-section {
    margin: 2rem 0;
}

.btn-primary-large {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 1rem;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.info-text {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Enhanced Landing Page Styles (기존 스타일 유지) */
.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0 3rem 0;
    padding: 0 2rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
    z-index: 1;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    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;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

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

.step-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.step-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

.process-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.summary-icon {
    font-size: 1.1rem;
}

/* Enhanced Question Styles */
.selection-info {
    font-size: 1rem;
    color: #5a6c7d;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    padding: 1rem 1.5rem;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.scale-question {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #ecf0f1;
}

.scale-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.scale-item-desc {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-style: italic;
}

/* Enhanced Ranking Options */
.ranking-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.ranking-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ranking-option {
    position: relative;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 60px;
    display: flex;
    align-items: center;
}

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

.ranking-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.rank-number {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.ranking-option.selected .rank-number {
    opacity: 1;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: translateY(-50%) scale(0.8); }
    100% { transform: translateY(-50%) scale(1); }
}

.selected-rankings {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ccc;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-guide {
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
}

.selected-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.selected-rank {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
}

.selected-text {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

/* 옵션 제목과 설명 스타일 */
.option-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.option-desc {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

/* 스케일 가이드 스타일 */
.scale-guide {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.scale-guide-text {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

/* 라디오 버튼 크기 적당하게 조정 */
.scale-option input[type="radio"] {
    margin-bottom: 0.5rem;
    accent-color: #667eea;
    width: 20px;
    height: 20px;
    transform: scale(1); /* 일관된 표준 크기 */
    margin: 0.5rem;
}

.scale-radio-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 다른 라디오 버튼들도 적당한 크기로 */
input[type="radio"] {
    width: 18px;
    height: 18px;
    transform: scale(1); /* 일관된 표준 크기 */
    accent-color: #667eea;
    margin-right: 0.75rem;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    transform: scale(1); /* 일관된 표준 크기 */
    accent-color: #667eea;
    margin-right: 0.75rem;
}

/* Multiple Select Options */
.multiple-select-option {
    position: relative;
    padding: 1rem 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #ecf0f1;
    color: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.multiple-select-option.selected .check-icon {
    background: #667eea;
    color: white;
    animation: checkPop 0.3s ease-out;
}

@keyframes checkPop {
    0% { transform: translateY(-50%) scale(0.8); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Enhanced Results Styles */
.results-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

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

.results-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Insight Cards */
.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.insight-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.insight-content p {
    color: #7f8c8d;
    line-height: 1.5;
}

/* Timeline Recommendations */
.timeline-period {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #27ae60;
}

.timeline-period h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.timeline-period ul {
    list-style: none;
    padding: 0;
}

.timeline-period li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-period li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Enhanced Job Items */
.job-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.job-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

.job-match {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.job-details {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ecf0f1;
}

/* Enhanced Action Items */
.action-item {
    position: relative;
    padding-left: 2rem;
}

.action-item::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    top: 1.5rem;
    color: #27ae60;
    font-weight: bold;
}

.action-timeline {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ecf0f1;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.option:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .navigation,
    .results-actions {
        display: none;
    }
    
    .container {
        box-shadow: none;
    }
    
    .result-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .option {
        border: 2px solid #000;
    }
    
    .option.selected {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    /* Dark mode styles would go here */
    /* Currently disabled to maintain consistent branding */
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .process-timeline {
        padding: 0 1rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-meta {
        justify-content: center;
    }
    
    .process-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .summary-item {
        justify-content: center;
    }
}

/* Mobile Navigation UX Enhancements - 하단 고정 완전 제거 */
@media (max-width: 768px) {
    /* 모든 navigation 요소에 대해 강제 적용 */
    .navigation,
    #personal-info .navigation,
    #step1 .navigation,
    #step2 .navigation,
    #step3 .navigation,
    .section .navigation {
        position: relative !important;
        background: white;
        padding: 16px;
        margin: 1.5rem 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-between;
        gap: 12px;
        /* 하단 고정 관련 속성들 완전 제거 */
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        border-top: none !important;
    }
    
    /* 네비게이션 버튼 최적화 */
    .navigation .btn-primary,
    .navigation .btn-secondary {
        flex: 1;
        min-height: 48px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        max-width: 140px;
    }
    
    /* 진행률 표시 개선 */
    .progress-bar {
        position: sticky;
        top: 0;
        z-index: 50;
        background: white;
        padding: 8px 0;
        margin-bottom: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .progress-fill {
        height: 4px;
        border-radius: 2px;
    }
    
    /* 단계 헤더 고정 */
    .step-header {
        position: sticky;
        top: 14px;
        background: white;
        z-index: 40;
        padding: 16px 0;
        margin-bottom: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* 스크롤 여백 조정 */
    .question-container {
        padding-bottom: 80px;
        margin-bottom: 0;
    }
    
    /* 질문 간격 최적화 */
    .question {
        margin-bottom: 16px;
    }
    
    /* 상단 여백 추가 (고정 네비게이션 대응) */
    main {
        padding-bottom: 0;
    }
    
    /* 결과 페이지 네비게이션 */
    .results-actions {
        position: relative;
        background: white;
        padding: 20px;
        margin: 1.5rem 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .results-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
        background: transparent;
        color: #667eea;
        box-shadow: none;
        border: 1px solid #667eea;
        order: 2;
    }
    
    .results-actions .btn-consulting {
        width: 100%;
        max-width: 300px;
        order: 1;
    }
    
    /* 스크롤 패딩 조정 */
    html {
        scroll-padding-top: 100px;
        scroll-padding-bottom: 100px;
    }
    
    /* 일반적인 모바일 개선사항 계속 */
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-info h3 {
        font-size: 1.1rem;
    }
    
    .step-info p {
        font-size: 0.9rem;
    }
    
    .step-meta {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .question {
        padding: 1rem;
    }
    
    .ranking-option {
        padding: 1rem 0.75rem;
        min-height: 65px;
        display: flex;
        align-items: center;
    }
    
    .rank-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        right: 0.5rem;
        top: 0.5rem;
    }
    
    .results-header {
        padding: 2rem 1rem;
    }
    
    .results-header h2 {
        font-size: 1.8rem;
    }
    
    .insight-card,
    .timeline-period {
        padding: 1rem;
    }
    
    /* 결과 컨테이너 하단 패딩 */
    .results-container {
        padding-bottom: 100px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0;
    }
    
    main {
        padding: 0.5rem;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Mobile Tooltip Adjustments */
@media (max-width: 768px) {
    .question-tooltip {
        width: 24px;
        height: 24px;
        min-width: 44px; /* iOS/Android 최소 터치 영역 */
        min-height: 44px;
        margin-left: 6px;
    }
    
    .question-tooltip svg {
        width: 14px;
        height: 14px;
    }
    
    .tooltip-popup-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        border-radius: 8px;
    }
    
    .tooltip-popup-header {
        padding: 12px 16px;
    }
    
    .tooltip-popup-body {
        padding: 16px;
    }
    
    .tooltip-popup-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
    }
    
    .question-header h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .option-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .option-desc {
        font-size: 0.8rem;
        margin-top: 3px;
        line-height: 1.3;
    }
    
    .scale-option-desc {
        font-size: 0.75rem;
        margin-top: 1px;
    }
}

@media (max-width: 480px) {
    .question-tooltip {
        width: 22px;
        height: 22px;
        margin-left: 4px;
    }
    
    .question-tooltip svg {
        width: 12px;
        height: 12px;
    }
    
    .question-header {
        gap: 4px;
        align-items: flex-start;
    }
    
    .question-header h3 {
        flex: 1;
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .tooltip-popup-content {
        border-radius: 6px;
    }
    
    .tooltip-popup-header h4 {
        font-size: 1rem;
    }
    
    .tooltip-popup-body p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .option-title {
        font-size: 0.9rem;
    }
    
    .option-desc {
        font-size: 0.75rem;
        margin-top: 2px;
    }
}

/* Touch device specific adjustments */
@media (hover: none) and (pointer: coarse) {
    .question-tooltip:hover {
        transform: none; /* 터치 디바이스에서는 hover 효과 제거 */
    }
    
    .question-tooltip:active {
        transform: scale(0.95);
        background: #5a6fd8;
    }
}