/* Survey page — matches Boiling dark / crimson system */
:root {
    --sv-bg: #0c0c0c;
    --sv-surface: #161616;
    --sv-line: rgba(255, 255, 255, 0.1);
    --sv-text: #f2f2f2;
    --sv-muted: rgba(255, 255, 255, 0.62);
    --sv-accent: #C63127;
    --sv-accent-soft: rgba(198, 49, 39, 0.16);
    --sv-font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.survey-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198, 49, 39, 0.22), transparent 55%),
        linear-gradient(180deg, #141010 0%, var(--sv-bg) 28%, #0a0a0a 100%);
    color: var(--sv-text);
    font-family: var(--sv-font);
}

.survey-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(12, 12, 12, 0.92);
    border-bottom: 1px solid var(--sv-line);
    backdrop-filter: blur(10px);
}

.survey-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.survey-nav__brand img {
    height: 44px;
    width: auto;
}

.survey-nav__back {
    color: var(--sv-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.survey-nav__back:hover {
    color: #fff;
}

.survey-nav select {
    background: transparent;
    color: #fff;
    border: 0;
    outline: none;
    cursor: pointer;
}

.survey-nav select option {
    background: #111;
}

.survey-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

.survey-hero {
    margin-bottom: 28px;
    animation: survey-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.survey-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(22px, 4.5vw, 30px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.survey-hero__lead,
.survey-hero__note {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--sv-muted);
}

.survey-hero__note {
    color: rgba(255, 210, 200, 0.78);
}

.survey-section {
    margin-bottom: 28px;
    animation: survey-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.survey-section:nth-child(2) { animation-delay: 0.05s; }
.survey-section:nth-child(3) { animation-delay: 0.1s; }
.survey-section:nth-child(4) { animation-delay: 0.15s; }
.survey-section:nth-child(5) { animation-delay: 0.2s; }
.survey-section:nth-child(6) { animation-delay: 0.25s; }

.survey-section__title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(198, 49, 39, 0.35);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.survey-q {
    margin-bottom: 18px;
    padding: 16px 14px;
    border: 1px solid var(--sv-line);
    border-radius: 12px;
    background: var(--sv-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.survey-q.is-error {
    border-color: rgba(198, 49, 39, 0.85);
    box-shadow: 0 0 0 3px var(--sv-accent-soft);
}

.survey-q__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.survey-q__hint {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #ffc9c3;
    background: var(--sv-accent-soft);
    vertical-align: middle;
}

.survey-options {
    display: grid;
    gap: 8px;
}

.survey-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #111;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.survey-option:hover {
    border-color: rgba(198, 49, 39, 0.35);
    background: #1a1212;
}

.survey-option:has(input:checked) {
    border-color: var(--sv-accent);
    background: linear-gradient(135deg, #241414, #1a1010);
}

.survey-option input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--sv-accent);
}

.survey-option span {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.survey-textarea {
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--sv-line);
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.survey-textarea:focus {
    border-color: var(--sv-accent);
    box-shadow: 0 0 0 3px var(--sv-accent-soft);
}

.survey-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.survey-actions {
    margin-top: 8px;
    animation: survey-fade-up 0.5s ease 0.28s both;
}

.survey-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #9c2820, #C63127 55%, #d6453a);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.survey-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(198, 49, 39, 0.4);
}

.survey-submit:active {
    transform: scale(0.985);
}

.survey-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.survey-done {
    display: none;
    text-align: center;
    padding: 48px 16px;
    animation: survey-fade-up 0.45s ease both;
}

.survey-done.is-show {
    display: block;
}

.survey-done h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.survey-done p {
    margin: 0 0 8px;
    color: var(--sv-muted);
    line-height: 1.7;
}

.survey-done a {
    display: inline-block;
    margin-top: 20px;
    color: #ffb4ad;
    text-decoration: none;
}

.survey-done a:hover {
    color: #fff;
}

.survey-form.is-hidden {
    display: none;
}

.survey-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1100;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.94);
    border: 1px solid rgba(198, 49, 39, 0.45);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.survey-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes survey-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .survey-hero,
    .survey-section,
    .survey-actions,
    .survey-done {
        animation: none !important;
    }
}
