:root {
    --sv-navy: #1a365d;
    --sv-blue: #2f6f9f;
    --sv-teal: #138078;
    --sv-gold: #c5a059;
    --sv-coral: #d05b4f;
    --sv-ink: #182230;
    --sv-muted: #667085;
    --sv-line: #d9e2ec;
    --sv-soft: #f6f8fb;
    --sv-white: #ffffff;
    --sv-shadow: 0 18px 48px rgba(26, 54, 93, .12);
}

body.sv-public-body {
    background: var(--sv-soft);
    color: var(--sv-ink);
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

body.sv-public-body,
body.sv-public-body * {
    letter-spacing: 0;
    word-break: keep-all;
}

body.sv-public-body *,
body.sv-public-body *::before,
body.sv-public-body *::after {
    box-sizing: border-box;
}

body.sv-public-body [hidden] {
    display: none !important;
}

body.sv-public-body .nav-menu > li > a.active {
    color: var(--sv-gold);
}

.sv-public {
    min-height: 640px;
    background:
        linear-gradient(180deg, rgba(26, 54, 93, .05), rgba(255, 255, 255, 0) 260px),
        var(--sv-soft);
}

.sv-public-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 78px;
}

.sv-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 28px;
    align-items: stretch;
    overflow: hidden;
    padding: 36px;
    border: 1px solid rgba(26, 54, 93, .12);
    border-radius: 8px;
    background: var(--sv-white);
    box-shadow: var(--sv-shadow);
}

.sv-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--sv-navy), var(--sv-teal), var(--sv-gold));
}

.sv-hero__copy,
.sv-hero__meta {
    position: relative;
    min-width: 0;
}

.sv-eyebrow,
.sv-question-index,
.sv-list-card__badge,
.sv-required-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(19, 128, 120, .1);
    color: var(--sv-teal);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.sv-hero h1 {
    margin: 16px 0 14px;
    color: var(--sv-navy);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: break-word;
}

.sv-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--sv-muted);
    font-size: 17px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.sv-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sv-meta-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #e5ebf1;
    border-radius: 8px;
    background: #f8fafc;
}

.sv-meta-item--wide {
    grid-column: 1 / -1;
}

.sv-meta-item span,
.sv-list-card__meta span,
.sv-progress-panel__text span,
.sv-intro-grid span {
    color: var(--sv-muted);
    font-size: 13px;
    font-weight: 700;
}

.sv-meta-item strong,
.sv-list-card__meta strong,
.sv-progress-panel__text strong,
.sv-intro-grid strong {
    margin-top: 8px;
    color: var(--sv-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.sv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.sv-list-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 26px;
    border: 1px solid rgba(26, 54, 93, .12);
    border-radius: 8px;
    background: var(--sv-white);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(26, 54, 93, .08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sv-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(19, 128, 120, .42);
    box-shadow: 0 18px 42px rgba(26, 54, 93, .14);
}

.sv-list-card h2 {
    margin: 16px 0 10px;
    color: var(--sv-navy);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.sv-list-card p {
    margin: 0;
    color: var(--sv-muted);
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.sv-list-card__meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
}

.sv-survey-layout {
    width: min(920px, 100%);
    margin: 24px auto 0;
}

.sv-notice {
    margin-bottom: 18px;
    border: 1px solid rgba(197, 160, 89, .32);
    border-radius: 8px;
    background: #fffdf8;
    overflow: hidden;
}

.sv-notice summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 16px 18px;
    color: #5f4a20;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.sv-notice summary::marker {
    content: "";
}

.sv-notice__body {
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(197, 160, 89, .24);
    color: #4f422b;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.sv-form-card,
.sv-complete {
    border: 1px solid rgba(26, 54, 93, .12);
    border-radius: 8px;
    background: var(--sv-white);
    box-shadow: var(--sv-shadow);
}

.sv-form-card {
    padding: 30px;
}

.sv-progress-panel {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e6edf4;
    border-radius: 8px;
    background: #f8fafc;
}

.sv-progress-panel__text {
    display: flex;
    flex-direction: column;
}

.sv-progress-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce5ee;
}

.sv-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sv-teal), var(--sv-blue));
    transition: width .22s ease;
}

.sv-screen {
    display: none;
    min-height: 320px;
    padding: 34px 4px 12px;
}

.sv-screen.is-active {
    display: block;
}

.sv-intro h2,
.sv-question-title,
.sv-complete h1,
.sv-complete h2,
.sv-language-modal h2 {
    color: var(--sv-navy);
    font-weight: 900;
    line-height: 1.32;
    overflow-wrap: break-word;
}

.sv-intro h2 {
    margin: 18px 0 12px;
    font-size: clamp(26px, 3vw, 36px);
}

.sv-intro p {
    max-width: 720px;
    margin: 0;
    color: var(--sv-muted);
    font-size: 17px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.sv-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.sv-intro-grid > div {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5ebf1;
    border-radius: 8px;
    background: #f8fafc;
}

.sv-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.sv-required-label {
    background: rgba(208, 91, 79, .1);
    color: var(--sv-coral);
}

.sv-question-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 34px);
}

.sv-required {
    color: var(--sv-coral);
}

.sv-help {
    margin: 0 0 22px;
    color: var(--sv-muted);
    font-size: 16px;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.sv-options {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin-top: 22px;
}

.sv-option {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.sv-option input {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    pointer-events: none;
}

.sv-option span {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    padding: 15px 16px 15px 52px;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: var(--sv-white);
    color: var(--sv-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: break-word;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sv-option span::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #9aabba;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--sv-white);
}

.sv-option input[type="checkbox"] + span::before {
    border-radius: 6px;
}

.sv-option input:checked + span {
    border-color: rgba(19, 128, 120, .65);
    background: #f0fbf8;
    box-shadow: 0 0 0 3px rgba(19, 128, 120, .1);
}

.sv-option input[type="radio"]:checked + span::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sv-teal);
    transform: translateY(-50%);
}

.sv-option input[type="checkbox"]:checked + span::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 50%;
    width: 8px;
    height: 13px;
    border: solid var(--sv-teal);
    border-width: 0 3px 3px 0;
    transform: translateY(-60%) rotate(45deg);
}

.sv-option:focus-within span,
.sv-text-control:focus,
.sv-button:focus-visible,
.sv-language-choice:focus-visible {
    outline: 3px solid rgba(47, 111, 159, .24);
    outline-offset: 2px;
}

.sv-scale-options {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.sv-scale-options .sv-option span {
    justify-content: center;
    min-height: 66px;
    padding: 16px 10px;
    text-align: center;
}

.sv-scale-options .sv-option span::before,
.sv-scale-options .sv-option span::after {
    display: none;
}

.sv-text-control {
    width: 100%;
    min-height: 56px;
    padding: 15px 16px;
    border: 1px solid #cbd7e3;
    border-radius: 8px;
    background: var(--sv-white);
    color: var(--sv-ink);
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
}

textarea.sv-text-control {
    min-height: 160px;
    resize: vertical;
}

.sv-error {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid rgba(208, 91, 79, .35);
    border-radius: 8px;
    background: #fff5f3;
    color: #9b3228;
    font-weight: 800;
    line-height: 1.5;
}

.sv-error.is-visible {
    display: block;
}

.sv-bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.18fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #edf1f5;
}

.sv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid #b9c8d7;
    border-radius: 8px;
    background: var(--sv-white);
    color: var(--sv-navy);
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.sv-button:hover {
    transform: translateY(-1px);
    border-color: var(--sv-blue);
}

.sv-button[disabled] {
    border-color: #d6dee7;
    background: #f3f6f9;
    color: #a6b2bf;
    cursor: not-allowed;
    transform: none;
}

.sv-button-primary {
    border-color: var(--sv-navy);
    background: var(--sv-navy);
    color: var(--sv-white);
}

.sv-button-primary:hover {
    border-color: var(--sv-teal);
    background: var(--sv-teal);
}

.sv-button-secondary {
    border-color: rgba(197, 160, 89, .46);
    background: #fffaf0;
    color: #775c20;
}

.sv-complete {
    width: min(720px, 100%);
    margin: 28px auto 0;
    padding: 38px;
    text-align: center;
}

.sv-complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(26, 54, 93, .08);
    color: var(--sv-navy);
    font-size: 12px;
    font-weight: 900;
}

.sv-complete h1,
.sv-complete h2 {
    margin: 0 0 12px;
    font-size: clamp(25px, 3vw, 34px);
}

.sv-complete p {
    margin: 0 auto 22px;
    color: var(--sv-muted);
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.sv-password-card {
    display: grid;
    gap: 14px;
}

.sv-password-card .sv-button {
    width: 100%;
}

.sv-language-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .48);
}

.sv-language-backdrop.is-visible {
    display: flex;
}

.sv-language-modal {
    width: min(560px, 100%);
    padding: 30px;
    border-radius: 8px;
    background: var(--sv-white);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}

.sv-language-modal h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.sv-language-modal p {
    margin: 0 0 20px;
    color: var(--sv-muted);
    line-height: 1.7;
}

.sv-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sv-language-choice {
    min-height: 48px;
    padding: 10px;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: var(--sv-white);
    color: var(--sv-ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sv-language-choice.is-selected {
    border-color: var(--sv-teal);
    background: #f0fbf8;
    color: var(--sv-teal);
}

.sv-language-confirm {
    width: 100%;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .sv-public-main {
        width: min(100% - 28px, 1120px);
        padding: 36px 0 60px;
    }

    .sv-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }
}

@media (max-width: 640px) {
    body.sv-public-body {
        background: var(--sv-white);
    }

    .sv-public-main {
        width: min(100% - 24px, 1120px);
        padding: 24px 0 48px;
    }

    .sv-hero,
    .sv-form-card,
    .sv-complete {
        padding: 22px;
    }

    .sv-hero h1 {
        font-size: 29px;
    }

    .sv-hero__meta,
    .sv-intro-grid,
    .sv-bottom-actions,
    .sv-language-grid {
        grid-template-columns: 1fr;
    }

    .sv-progress-panel {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .sv-screen {
        min-height: 280px;
        padding-top: 26px;
    }

    .sv-question-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sv-question-title {
        font-size: 24px;
    }

    .sv-option span {
        min-height: 56px;
        padding: 14px 14px 14px 48px;
        font-size: 17px;
    }

    .sv-option span::before {
        left: 16px;
    }

    .sv-option input[type="radio"]:checked + span::after,
    .sv-option input[type="checkbox"]:checked + span::after {
        left: 23px;
    }

    .sv-scale-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sv-scale-options .sv-option span {
        min-height: 58px;
        padding: 12px 8px;
    }

    .sv-button {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
    }
}
