:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --bg-color: #F3F4F6;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.test-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 480px;
    height: 680px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Start Screen */
#start-screen {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.icon-container {
    width: 96px;
    height: 96px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    color: var(--primary);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 48px;
    word-break: keep-all;
}

/* Buttons */
.primary-btn, .secondary-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.secondary-btn {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background-color: var(--bg-color);
}

/* Question Screen */
.progress-wrap {
    margin-bottom: 32px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-header {
    margin-bottom: 16px;
}

.step-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 32px;
    color: var(--text-main);
    word-break: keep-all;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.option-btn {
    padding: 20px 24px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
    font-weight: 500;
    word-break: keep-all;
}

.option-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

/* Result Screen */
#result-screen {
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.result-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 12px;
}

.result-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
    word-break: keep-all;
    line-height: 1.3;
}

.result-card {
    background-color: var(--bg-color);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    width: 100%;
    text-align: left;
}

.result-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 24px;
    word-break: keep-all;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.secondary-result {
    width: 100%;
    text-align: left;
    margin-bottom: 32px;
}

.secondary-result h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.secondary-job-card {
    padding: 16px 20px;
    background-color: var(--primary-light);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.secondary-job-card svg {
    color: var(--primary);
}
