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

:root {
    --red: #E4022D;
    --navy: #003763;
    --cream: #f7f3ec;
    --dark: #241f1c;
    --gray: #6d6560;
    --border: #e4ddd4;
}

body {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f3efe8;
    color: var(--dark);
    min-height: 100vh;
}

.app {
    width: 100%;
    max-width: 680px;
    margin: auto;
    padding-bottom: 50px;
}

.header {
    background: #fff;
    color: var(--dark);
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.header p {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
}

.progress-area {
    padding: 14px 20px 10px;
    background: white;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 7px;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    width: 0;
    background: var(--navy);
    transition: width .3s ease;
}

.screen {
    padding: 20px;
}

.hidden {
    display: none !important;
}

#introScreen {
    text-align: center;
    padding-top: 45px;
}

#introScreen h2 {
    font-size: 27px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.intro-text {
    font-size: 17px;
    line-height: 1.6;
}

.privacy {
    margin: 20px auto 30px;
    max-width: 470px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.question-card {
    display: none;
    background: white;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.question-card.active {
    display: block;
}

.cols-2 .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.step-nav {
    display: flex;
    gap: 8px;
}

.step-nav .primary-button {
    flex: 1;
}

.primary-button.ghost {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--border);
}

.question-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.question-card h2 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.question-help {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 14px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    background: white;
}

.options label:has(input:checked) {
    border-color: var(--navy);
    background: #f3f6f8;
}

.options input {
    width: 20px;
    height: 20px;
    accent-color: var(--navy);
    flex-shrink: 0;
}

.options span {
    font-size: 16px;
    line-height: 1.3;
}

.rating {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
}

.rating label {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.rating input {
    display: none;
}

.rating span {
    width: 48px;
    height: 48px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.rating input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.rating small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: var(--gray);
}

.primary-button {
    width: 100%;
    border: none;
    background: var(--navy);
    color: white;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:disabled {
    opacity: .6;
    cursor: default;
}

.submit-button {
    margin-top: 10px;
}

.success-screen {
    text-align: center;
    padding-top: 70px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: auto auto 20px;
    background: #2e7d32;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
}

.success-screen h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.success-screen p {
    color: var(--gray);
    font-size: 17px;
}

.success-highlight {
    margin: 20px 0 30px;
    color: var(--dark) !important;
}

.error-message {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 640px;
    margin: auto;
    padding: 15px;
    background: #b71c1c;
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
    z-index: 999;
}

@media (max-width: 700px) {
    body { min-height: 100dvh; }
    .app { padding-bottom: 16px; }
    .header { padding: 12px 14px 8px; }
    .brand-logo { height: 36px; }
    .header p { margin-top: 6px; font-size: 12px; }
    .progress-area { padding: 10px 14px 8px; }
    .screen { padding: 12px; }
    #introScreen { padding-top: 24px; }
    #introScreen h2 { font-size: 24px; margin-bottom: 12px; }
    .privacy { margin: 12px auto 20px; }
    .question-number { display: none; }
    .question-card { padding: 14px; margin-bottom: 8px; }
    .question-card h2 { font-size: 18px; margin-bottom: 10px; }
    .options { gap: 7px; }
    .options label { min-height: 44px; padding: 8px 10px; }
    .options span { font-size: 15px; }
    .rating span { width: 42px; height: 42px; }
    .success-screen { padding-top: 36px; }
}
