@font-face {
    font-family: 'GangwonEducationModuche';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFLightA.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GangwonEducationModuche';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFBoldA.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

.survey-page img.emoji {
    height: 1em !important;
    width: 1em !important;
    max-height: 1em;
    max-width: 1em;
    margin: 0 0.05em;
    vertical-align: -0.1em;
    display: inline-block;
}

.survey-page {
    --survey-bg: #fff9f5;
    --survey-bg-soft: #fff3ee;
    --survey-card: #ffffff;
    --survey-text: #5d4037;
    --survey-text-muted: #8a7568;
    --survey-primary: #e8534f;
    --survey-primary-dark: #c74340;
    --survey-accent: #ff8a80;
    --survey-border: #f0d0d9;
    --survey-shadow: 0 12px 40px rgba(232, 83, 79, 0.08);
    --survey-input-bg: #fffcfb;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'GangwonEducationModuche', sans-serif;
    font-weight: 300;
    color: var(--survey-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 182, 193, 0.18), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(255, 209, 102, 0.14), transparent 24%),
        radial-gradient(circle at 80% 85%, rgba(255, 138, 128, 0.12), transparent 30%),
        var(--survey-bg);
}

.survey-page *,
.survey-page *::before,
.survey-page *::after {
    box-sizing: border-box;
}

.survey-header {
    text-align: center;
    padding: 2.5rem 1.25rem 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.survey-header-logo img {
    max-width: min(420px, 92vw);
    height: auto;
    margin-bottom: 1.25rem;
}

.survey-title {
    margin: 0 0 0.5rem;
    font-family: 'GangwonEducationModuche', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--survey-primary);
    letter-spacing: -0.02em;
}

.survey-subtitle {
    margin: 0;
    color: var(--survey-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.survey-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.survey-card {
    background: var(--survey-card);
    border: 1px solid var(--survey-border);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: var(--survey-shadow);
}

.survey-section {
    margin-bottom: 1.6rem;
}

.survey-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: var(--survey-text);
}

.survey-required {
    color: var(--survey-primary);
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

.survey-radio-group,
.survey-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-radio-group label,
.survey-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--survey-border);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 400;
    color: var(--survey-text);
    background: var(--survey-input-bg);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.survey-radio-group label:hover,
.survey-checkbox-group label:hover {
    border-color: var(--survey-accent);
    background: #fff;
}

.survey-radio-group input:checked + span,
.survey-checkbox-group input:checked + span {
    color: var(--survey-primary-dark);
}

.survey-radio-group label:has(input:checked),
.survey-checkbox-group label:has(input:checked) {
    border-color: var(--survey-primary);
    background: #fff8f7;
    box-shadow: 0 0 0 3px rgba(232, 83, 79, 0.08);
}

.survey-radio-group input,
.survey-checkbox-group input {
    margin-top: 0.2rem;
    accent-color: var(--survey-primary);
    flex-shrink: 0;
}

.survey-option-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--survey-text-muted);
    margin-top: 0.25rem;
}

.survey-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--survey-accent);
    font-size: 0.75rem;
}

.survey-divider::before,
.survey-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--survey-border), transparent);
}

.survey-input-wrap {
    position: relative;
}

.survey-input-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--survey-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.survey-page .survey-input,
.survey-page textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    background: var(--survey-input-bg);
    border: 1px solid var(--survey-border);
    border-radius: 14px;
    color: var(--survey-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.survey-page .survey-input--prefix {
    padding-left: 2rem;
}

.survey-page .survey-input:focus,
.survey-page textarea:focus {
    outline: none;
    border-color: var(--survey-primary);
    box-shadow: 0 0 0 3px rgba(232, 83, 79, 0.1);
    background: #fff;
}

.survey-page .survey-input::placeholder,
.survey-page textarea::placeholder {
    color: #b8a59c;
}

.survey-page textarea {
    min-height: 120px;
    resize: vertical;
}

.survey-field-hint {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--survey-text-muted);
}

.survey-field-warning {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: #c74340;
    font-weight: 500;
}

.survey-hidden {
    display: none !important;
}

.survey-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 180px;
    padding: 0.95rem 2.25rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--survey-primary), #ff7b6b);
    box-shadow: 0 8px 20px rgba(232, 83, 79, 0.25);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.survey-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(232, 83, 79, 0.3);
}

.survey-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.survey-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
    font-size: 0.95rem;
}

.survey-message.success {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    color: #c74340;
}

.survey-message.error {
    background: #fff8f8;
    border: 1px solid #ffb4b4;
    color: #b71c1c;
}

.survey-footer {
    text-align: center;
    color: var(--survey-text-muted);
    font-size: 0.82rem;
    padding: 1rem 1.25rem 2rem;
}

@media (max-width: 768px) {
    .survey-header {
        padding-top: 1.75rem;
    }

    .survey-card {
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
    }
}
