@font-face {
    font-family: 'Jua';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/Jua-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

.survey-page {
    --ink: #f4eefc;
    --muted: #b7a9cc;
    --card: rgba(28, 24, 42, 0.82);
    --card-border: rgba(201, 182, 255, 0.28);
    --primary: #c9b6ff;
    --primary-deep: #9b7dff;
    --mint: #9be7d8;
    --pink: #ff9ec8;
    --yellow: #ffd36a;
    --input-bg: rgba(16, 14, 26, 0.72);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Pretendard', 'Jua', sans-serif;
    color: var(--ink);
    background: #0d0b14;
    position: relative;
    overflow-x: hidden;
}

.survey-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(201, 182, 255, 0.22), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(155, 231, 216, 0.16), transparent 26%),
        radial-gradient(circle at 70% 88%, rgba(255, 158, 200, 0.14), transparent 30%),
        linear-gradient(165deg, #14101f 0%, #0d0b14 48%, #151022 100%);
}

.survey-spark {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.75;
    animation: spark-float 5.5s ease-in-out infinite;
}

.survey-spark--a { top: 12%; left: 8%; animation-delay: 0s; }
.survey-spark--b { top: 22%; right: 10%; width: 8px; height: 8px; background: var(--pink); animation-delay: 1.2s; }
.survey-spark--c { bottom: 18%; left: 16%; width: 7px; height: 7px; background: var(--mint); animation-delay: 2.1s; }

@keyframes spark-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
    50% { transform: translateY(-10px) rotate(18deg); opacity: 1; }
}

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

.survey-header,
.survey-wrap,
.survey-footer {
    position: relative;
    z-index: 1;
}

.survey-header {
    text-align: center;
    padding: 2.2rem 1.25rem 0.85rem;
    max-width: 760px;
    margin: 0 auto;
}

.survey-logo-link {
    display: inline-block;
    text-decoration: none;
    animation: logo-in 0.85s ease both;
}

.survey-logo {
    display: block;
    width: 360px;
    height: 295px;
    object-fit: contain;
    margin: 0 auto 0.85rem;
    filter: drop-shadow(0 10px 28px rgba(155, 125, 255, 0.25));
    transition: transform 0.25s ease;
}

@media (max-width: 400px) {
    .survey-logo {
        width: min(360px, 88vw);
        height: calc(min(360px, 88vw) * 295 / 360);
    }
}

.survey-logo-link:hover .survey-logo {
    transform: translateY(-3px) scale(1.015);
}

@keyframes logo-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.survey-title {
    margin: 0 0 0.45rem;
    font-family: 'Jua', 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: clamp(1.55rem, 4vw, 2rem);
    color: var(--primary);
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(201, 182, 255, 0.35);
    animation: logo-in 0.85s 0.08s ease both;
}

.survey-subtitle {
    margin: 0 auto;
    max-width: 28rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
    animation: logo-in 0.85s 0.16s ease both;
}

.survey-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 3rem;
    animation: logo-in 0.9s 0.2s ease both;
}

.survey-card {
    background: var(--card);
    border: 2px solid var(--card-border);
    border-radius: 28px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.survey-loading {
    text-align: center;
    color: var(--muted);
}

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

.survey-label {
    font-family: 'Jua', 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 1.08rem;
    margin-bottom: 0.85rem;
    color: #fff;
}

.survey-required {
    color: var(--pink);
    font-family: 'Pretendard', sans-serif;
    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: 2px solid rgba(201, 182, 255, 0.22);
    border-radius: 18px;
    cursor: pointer;
    background: var(--input-bg);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.survey-radio-group label:hover,
.survey-checkbox-group label:hover {
    border-color: var(--mint);
    transform: translateY(-1px);
}

.survey-radio-group label:has(input:checked),
.survey-checkbox-group label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(201, 182, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(201, 182, 255, 0.15);
}

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

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

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

.survey-divider::before,
.survey-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 182, 255, 0.35), transparent);
}

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

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

.survey-page .survey-input,
.survey-page textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    background: var(--input-bg);
    border: 2px solid rgba(201, 182, 255, 0.22);
    border-radius: 16px;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
}

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

.survey-page .survey-input:focus,
.survey-page textarea:focus {
    outline: none;
    border-color: var(--mint);
    background: rgba(20, 18, 32, 0.95);
}

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

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

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

.survey-field-warning {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: var(--yellow);
    font-weight: 600;
}

.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;
    min-width: 200px;
    padding: 1rem 2.35rem;
    border: 2px solid #1a1228;
    border-radius: 999px;
    font-family: 'Jua', 'Pretendard', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    color: #1a1228;
    background: linear-gradient(135deg, #7fd9ff, var(--mint));
    box-shadow: 0 8px 0 #1a1228, 0 12px 28px rgba(155, 125, 255, 0.25);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.survey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #1a1228, 0 16px 32px rgba(155, 125, 255, 0.3);
}

.survey-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #1a1228, 0 8px 18px rgba(155, 125, 255, 0.2);
}

.survey-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 0 #1a1228;
}

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

.survey-message.success {
    background: rgba(155, 231, 216, 0.14);
    border: 1px solid rgba(155, 231, 216, 0.45);
    color: var(--mint);
}

.survey-message.error {
    background: rgba(255, 158, 200, 0.12);
    border: 1px solid rgba(255, 158, 200, 0.4);
    color: #ffc1db;
}

.survey-closed-notice {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.survey-closed-title {
    margin: 0 0 0.75rem;
    font-family: 'Jua', sans-serif;
    font-size: 1.35rem;
    color: var(--primary);
}

.survey-closed-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.survey-footer {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    align-items: center;
    color: #7d6f93;
    font-size: 0.82rem;
    padding: 0.5rem 1.25rem 2.25rem;
}

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

    .survey-card {
        padding: 1.45rem 1.15rem;
        border-radius: 22px;
    }

    .survey-btn {
        width: 100%;
    }
}
