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

body {
    font-family: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.04em;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.survey-container {
    background: white;
    width: 420px;
    height: 700px;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.survey-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4A6CF7;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
}

.back-button:disabled {
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
}

.back-button:not(:disabled):hover {
    background: #3B5BF7;
    transform: scale(1.05);
}

.back-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4A6CF7;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 14.28%;
}

.progress-text {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
}

.survey-content {
    padding: 0 24px 32px;
}

.question-number {
    font-size: 32px;
    font-weight: bold;
    color: #4A6CF7;
    margin-bottom: 24px;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    color: #1F2A44;
    line-height: 1.5;
    margin-bottom: 32px;
    word-break: keep-all;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.answer-button {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 9999px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    word-break: keep-all;
    font-family: inherit;
}

.answer-button:hover {
    border-color: #4A6CF7;
    background: #F8FAFC;
}

.answer-button.selected {
    background: #4A6CF7;
    border-color: #4A6CF7;
    color: white;
}

.answer-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}


.result-container {
    padding: 32px 24px;
    text-align: center;
}

/* Multi-recommendation result styles */
.result-card {
    text-align: center;
    margin: 20px 0;
}

.result-headline {
    font-size: 22px;
    font-weight: bold;
    color: #1F2A44;
    margin-bottom: 12px;
    text-align: center;
}

.result-block {
    margin: 16px 0;
    padding: 12px;
    border-radius: 8px;
    background: #F8FAFC;
}

.result-title[data-color="green"] {
    color: #059669;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.result-title[data-color="amber"] {
    color: #D97706;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.result-title[data-color="blue"] {
    color: #2563EB;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-list li {
    padding: 6px 0;
    font-size: 18px;
    font-weight: 800;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
}

.result-list li:last-child {
    border-bottom: none;
}

.insight-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.insight-title {
    font-weight: 600;
    color: #1F2A44;
    margin-bottom: 12px;
    font-size: 16px;
}

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

.tag {
    background: #EBF4FF;
    color: #4A6CF7;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.muted {
    color: #94A3B8;
    font-size: 14px;
}

hr {
    border: none;
    margin: 16px 0;
}

.result-title {
    font-size: 24px;
    font-weight: bold;
    color: #1F2A44;
    margin-bottom: 16px;
    line-height: 1.3;
}

.result-description {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.5;
}

.result-info {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.business-type {
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.insight-tag {
    background: #EBF4FF;
    color: #4A6CF7;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.restart-button {
    width: 100%;
    background: white;
    color: #4A6CF7;
    border: 2px solid #4A6CF7;
    border-radius: 9999px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.restart-button:hover {
    background: #4A6CF7;
    color: white;
}

.restart-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

.logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hidden {
    display: none;
}

/* Landing Screen Styles */
.landing-container {
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.landing-title {
    font-size: 24px;
    font-weight: bold;
    color: #4A6CF7;
    margin-bottom: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.landing-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 32px;
    word-break: keep-all;
    white-space: nowrap;
}

.service-preview {
    border-radius: 16px;
    margin: 32px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.start-button {
    width: 100%;
    background: #4A6CF7;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 24px;
}

.start-button:hover {
    background: #3B5BF7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.start-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

.start-button span {
    font-size: 16px;
}


/* Answers auto-advance styling */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .survey-container {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 700px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .survey-header {
        padding: 20px 20px 12px;
    }
    
    .survey-content {
        padding: 0 20px 32px;
    }
    
    .landing-container {
        padding: 28px 20px;
    }
    
    .question-text {
        font-size: 16px;
        margin-bottom: 28px;
    }
    
    .answer-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .question-number {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .result-container {
        padding: 28px 20px;
    }
    
    .result-title {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 10px;
    }
    
    .survey-header {
        padding: 16px 16px 8px;
        gap: 12px;
    }
    
    .survey-content {
        padding: 0 16px 28px;
    }
    
    .landing-container {
        padding: 24px 16px;
    }
    
    .landing-title {
        font-size: 18px;
        white-space: normal;
    }
    
    .landing-description {
        font-size: 12px;
        white-space: normal;
    }
    
    .logo {
        width: 56px;
        height: 56px;
    }
    
    .preview-image {
        max-height: 120px;
    }
    
    .back-button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .answer-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .restart-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .start-button {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .landing-title {
        font-size: 20px;
        white-space: normal;
    }
    
    .landing-description {
        font-size: 13px;
        white-space: normal;
    }
    
    .service-preview {
        margin: 24px 0;
    }
    
    .preview-image {
        max-height: 150px;
    }
    
    .result-container {
        padding: 24px 16px;
    }
}
