.survey { background: var(--paper); }
.survey .section-heading { max-width: 960px; }
.survey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.survey-card { padding: clamp(24px, 3.2vw, 44px); border: 1px solid var(--line); background: var(--white); }
.survey-card--official { border-top: 4px solid var(--seal); }
.survey-card__tag { margin-bottom: 22px; color: var(--pine); font-size: .85rem; font-weight: 800; }
.survey-card--official .survey-card__tag { color: var(--seal-dark); }
.survey-card h3 { margin-bottom: 20px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: 1.35; }
.survey-card > p { min-height: 82px; color: #48534e; }
.survey-facts { margin: 24px 0; border-top: 1px solid var(--line); }
.survey-facts > div { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.survey-facts dt { color: #58635e; }
.survey-facts dd { font-weight: 600; }
.survey-card .button { width: 100%; gap: 12px; padding: 14px 18px; text-align: center; }
.button--pine { color: white; background: var(--pine); }
.button--pine:hover { background: var(--ink); }
.survey-note { margin-top: 24px; padding: 20px; background: #f4efe3; }
.survey-note p { margin-top: 8px; color: #48534e; }
.survey-help { margin-top: 32px; padding: 26px 30px; border-left: 3px solid var(--pine); background: rgba(255,255,255,.5); }
.survey-help h3 { margin-bottom: 10px; font-size: 1.1rem; }
.survey-help p + p { margin-top: 8px; }
.survey-qr { margin-top: 24px; border-top: 1px solid var(--line); }
.survey-qr summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.survey-qr img { width: 264px; height: auto; margin: 8px auto 20px; background: white; }
.survey-qr p { color: #48534e; }
.survey-qr a { display: inline-flex; align-items: center; min-height: 48px; color: var(--pine); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.survey-page { width: min(100% - 40px, 820px); margin: 0 auto; padding: 36px 0 100px; }
.survey-page--admin { max-width: 1000px; }
.survey-back { display: inline-flex; min-height: 48px; align-items: center; margin-bottom: 32px; text-decoration: underline; text-underline-offset: 5px; }
.survey-page h1 { margin: 14px 0 22px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.35; }
.survey-page h1 strong { color: var(--pine); }
.survey-page__intro { margin-bottom: 28px; }
.survey-message, .survey-errors { padding: 24px; margin: 24px 0; border: 1px solid var(--line); background: var(--white); }
.survey-message h2, .survey-errors h2 { margin: 0 0 10px; font-size: 1.3rem; }
.survey-errors { border-left: 4px solid var(--seal); }
.survey-errors li { margin-top: 8px; }
.survey-form { display: grid; gap: 28px; }
.survey-form .survey-message { margin: 0; }
.survey-form label { display: block; font-weight: 700; }
.survey-form small { font-size: .85rem; color: #58635e; font-weight: 400; }
.survey-form input[type="text"], .survey-form input[type="date"], .survey-form textarea { display: block; width: 100%; min-width: 0; margin-top: 10px; padding: 12px; border: 1px solid #89928a; border-radius: 0; background: white; color: var(--ink); }
.survey-form textarea { resize: vertical; }
.survey-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.survey-form__pair > label { min-width: 0; }
.survey-rating { min-width: 0; margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--line); }
.survey-rating legend { max-width: 100%; padding: 0 0 10px; font-weight: 800; }
.survey-rating > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.survey-rating label { position: relative; cursor: pointer; }
.survey-rating input { position: absolute; top: 10px; left: 10px; accent-color: var(--pine); }
.survey-rating span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 14px 4px 10px; border: 1px solid #89928a; background: white; font-size: .86rem; text-align: center; }
.survey-rating b { font-size: 1.5rem; }
.survey-rating input:checked + span { color: white; border-color: var(--pine); background: var(--pine); }
.survey-rating input:focus-visible + span { outline: 3px solid #b77d00; outline-offset: 3px; }
.survey-form .survey-check { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; }
.survey-check input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--pine); }
.survey-form .button { cursor: pointer; }
.survey-form__note { color: #58635e; }
.survey-captcha { max-width: 100%; overflow-x: auto; }
.survey-response { margin-top: 20px; padding: 24px; border: 1px solid var(--line); background: var(--white); overflow-wrap: anywhere; }
.survey-response h2 { margin-bottom: 12px; font-size: 1.2rem; }
.survey-response h2 small { display: block; color: #58635e; font-size: .9rem; font-weight: 400; }
.survey-response__review { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.survey-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.survey-pagination a, .survey-admin-link a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: underline; }
@media (max-width: 760px) {
    .survey-grid { grid-template-columns: 1fr; }
    .survey-card > p { min-height: 0; }
    .survey-help { padding: 22px; }
}
@media (max-width: 480px) {
    .survey-form__pair { grid-template-columns: 1fr; }
    .survey-rating > div { gap: 5px; }
    .survey-rating input { top: 7px; left: 6px; }
    .survey-rating span { min-height: 112px; padding-top: 24px; font-size: .76rem; word-break: keep-all; }
    .survey-page .button { padding: 12px 16px; text-align: center; }
}
