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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    min-height: 100vh;
    color: #1f2937;
}

.container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
}

.result-container {
    max-width: 64rem;
}

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.header p {
    color: #6b7280;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 2rem;
}

.question-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.major-category {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
    background: #f3f4f6;
    border-left: 4px solid #3b82f6;
    border-radius: 0.25rem;
}

.middle-category {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding: 0.375rem 0.5rem;
    background: #f9fafb;
    border-left: 3px solid #6b7280;
    border-radius: 0.25rem;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.question-text {
    color: #374151;
    line-height: 1.5;
    white-space: pre-line;
}

.required-note {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.small-company-note {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.hint-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.hint-header {
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-content {
    color: #0c4a6e;
    line-height: 1.5;
}

.hint-requirement {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.hint-requirement:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
}

.hint-requirement.required {
    color: #dc2626;
    font-weight: 500;
}

.hint-requirement.optional {
    color: #059669;
}

.hint-category {
    background: #e0f2fe;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.options-container {
    margin-top: 1rem;
}

.option-button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.option-button:hover {
    border-color: #9ca3af;
}

.option-button.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.option-button.selected-yes {
    border-color: #10b981;
    background: #ecfdf5;
}

.option-button.selected-no {
    border-color: #ef4444;
    background: #fef2f2;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.nav-button:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.nav-button.prev {
    background: #4b5563;
    color: white;
}

.nav-button.prev:hover:not(:disabled) {
    background: #374151;
}

.nav-button.next {
    background: #2563eb;
    color: white;
}

.nav-button.next:hover:not(:disabled) {
    background: #1d4ed8;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.result-icon.passed {
    background: #dcfce7;
    color: #16a34a;
}

.result-icon.failed {
    background: #fef2f2;
    color: #dc2626;
}

.result-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.result-description {
    font-size: 1.25rem;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.result-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.result-card.status {
    background: #eff6ff;
}

.result-card.certification {
    background: #faf5ff;
}

.result-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.status-item.total {
    padding-top: 0.5rem;
    border-top: 2px solid #bfdbfe;
}

.status-value {
    font-weight: 600;
}

.status-value.total {
    font-weight: bold;
    font-size: 1.125rem;
}

.certification-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-item.passed {
    background: #dcfce7;
    color: #166534;
}

.certification-item.failed {
    background: #f3f4f6;
    color: #6b7280;
}

.certification-item.bright500 {
    background: #fef3c7;
    color: #92400e;
}

.certification-name {
    font-weight: 600;
}

.certification-description {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.failed-requirements {
    margin-bottom: 2rem;
}

.failed-requirements h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 1rem;
}

.failed-requirements-list {
    background: #fef2f2;
    border-radius: 0.5rem;
    padding: 1rem;
}

.failed-requirement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.failed-requirement:last-child {
    margin-bottom: 0;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #ef4444;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.retry-button {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background: #1d4ed8;
}

.hidden {
    display: none;
}