:root {
    --green-950: #1a242f;
    --green-900: #243646;
    --green-800: #2C3E50;
    --green-700: #366A96;
    --green-100: #e3ebf2;
    --green-50: #f3f6f9;
    --navy-950: #172533;
    --navy-800: #2C3E50;
    --slate-700: #5C5C5C;
    --slate-500: #7b8790;
    --slate-300: #bdc7ce;
    --slate-200: #dbe2e7;
    --slate-100: #ebeff2;
    --slate-50: #F8F8F8;
    --white: #fff;
    --amber: #EB9E04;
    --amber-100: #fff3d8;
    --red: #C21500;
    --red-50: #fff1ee;
    --shadow-sm: 0 1px 2px rgba(44, 62, 80, .06), 0 8px 24px rgba(44, 62, 80, .07);
    --shadow-lg: 0 24px 70px rgba(26, 36, 47, .16);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--navy-950);
    background: var(--slate-50);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }

a { color: inherit; }

img { max-width: 100%; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--white);
    background: var(--navy-950);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 20;
    color: var(--navy-950);
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 4px 18px rgba(44, 62, 80, .06);
}

.header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--navy-950);
    text-decoration: none;
}

.brand-logo { display: block; width: 228px; height: auto; }

.brand-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 13px 4px 13px 4px;
    background: rgba(255, 255, 255, .08);
    font-weight: 850;
    letter-spacing: -.04em;
}

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 1.1rem; letter-spacing: .08em; }
.brand-copy small { margin-top: 4px; color: rgba(255, 255, 255, .68); font-size: .76rem; }

.header-badge {
    padding: 7px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    color: var(--green-800);
    background: var(--slate-50);
    font-size: .78rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 96px;
    color: var(--white);
    background:
        radial-gradient(circle at 84% 22%, rgba(235, 158, 4, .24), transparent 18%),
        linear-gradient(130deg, #1a242f 0%, #2C3E50 52%, #366A96 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
    gap: 72px;
    align-items: end;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-700);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero .eyebrow, .survey-hero .survey-kicker { color: #f5c665; }

.hero h1 {
    max-width: 820px;
    margin: 14px 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.045em;
}

.hero-copy > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 34px;
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
}

.trust-row b { color: #f5b83d; margin-right: 5px; }

.hero-note {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg) 6px var(--radius-lg) 6px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}

.hero-note-number {
    display: block;
    color: #f5b83d;
    font-family: Georgia, serif;
    font-size: 4.2rem;
    line-height: 1;
}

.hero-note p { margin: 12px 0 0; color: rgba(255, 255, 255, .74); }

.survey-choice { padding: 90px 0 96px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.section-heading > p { max-width: 350px; margin: 0; color: var(--slate-700); }

.survey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.survey-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 490px;
    flex-direction: column;
    padding: 36px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.survey-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    border: 45px solid #dfe8f0;
    border-radius: 50%;
    opacity: .55;
}

.survey-card--external::after { border-color: var(--amber-100); }
.survey-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.survey-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.survey-number { color: var(--slate-300); font-family: Georgia, serif; font-size: 2rem; }
.time-pill { padding: 6px 11px; border-radius: 999px; background: var(--slate-50); color: var(--slate-700); font-size: .75rem; font-weight: 700; }
.audience-label { position: relative; z-index: 1; margin: 56px 0 8px !important; color: var(--green-800) !important; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.survey-card--external .audience-label { color: #a46900 !important; }
.survey-card h3 { position: relative; z-index: 1; margin: 0 0 15px; font-family: Georgia, serif; font-size: 2.1rem; font-weight: 500; line-height: 1.1; }
.survey-card > p { position: relative; z-index: 1; margin: 0; color: var(--slate-700); }
.survey-card .button { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(235, 158, 4, .5); outline-offset: 2px; }
.button-primary { color: var(--white); background: var(--green-800); }
.button-primary:hover { background: var(--green-900); }
.button-secondary { color: var(--green-900); border-color: var(--slate-200); background: var(--white); }
.button-secondary:hover { border-color: var(--green-700); }
.button-submit { color: var(--navy-950); background: var(--amber); }
.button-submit:hover { background: #d98f00; }
.button-small { min-height: 38px; padding: 7px 12px; font-size: .84rem; }
.button-danger { color: var(--red); border-color: #f4c7c2; background: var(--red-50); }

.privacy-strip { padding: 44px 0; background: #eef3f7; border-top: 1px solid #d6e0e8; }
.privacy-inner { display: flex; align-items: center; gap: 20px; max-width: 850px; }
.privacy-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: var(--white); font-size: 1.6rem; box-shadow: var(--shadow-sm); }
.privacy-inner h2 { margin: 0; font-size: 1.05rem; }
.privacy-inner p { margin: 4px 0 0; color: var(--slate-700); }

.site-footer { padding: 34px 0; color: rgba(255,255,255,.72); background: var(--navy-950); font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner div { display: grid; }
.footer-inner strong { color: var(--white); }
.footer-inner a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-inner a:hover { color: var(--white); }

/* Survey */
.survey-hero { padding: 58px 0 66px; color: var(--white); background: linear-gradient(132deg, #1a242f, #2C3E50 62%, #366A96); }
.survey-hero-inner { max-width: 950px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 38px; color: rgba(255,255,255,.68); font-size: .84rem; text-decoration: none; }
.back-link:hover { color: var(--white); }
.survey-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.survey-hero h1 { margin: 10px 0 5px; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.survey-subtitle { margin: 0 0 22px; color: #f2c86d; font-size: 1.16rem; }
.survey-intro { max-width: 830px; color: rgba(255,255,255,.75); }
.survey-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.survey-meta span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.76); font-size: .76rem; }

.survey-form-wrap { padding: 52px 0 86px; }
.survey-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; }
.survey-sidebar { position: sticky; top: 24px; }
.progress-card { padding: 22px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.progress-label { display: flex; justify-content: space-between; align-items: center; font-size: .83rem; }
.progress-label span { color: var(--slate-700); }
.progress-label strong { color: var(--green-800); }
.progress-track { height: 7px; margin: 10px 0 22px; overflow: hidden; border-radius: 99px; background: var(--slate-100); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2C3E50, #366A96); transition: width .25s ease; }
.section-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.section-list li { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; padding: 7px 5px; color: var(--slate-500); font-size: .76rem; line-height: 1.3; }
.section-list li > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 50%; color: var(--slate-500); font-size: .65rem; }
.section-list li.active { color: var(--navy-950); font-weight: 750; }
.section-list li.active > span { color: var(--white); border-color: var(--green-800); background: var(--green-800); }
.section-list li.complete > span { color: var(--green-800); border-color: var(--green-100); background: var(--green-100); }

.survey-main { min-width: 0; }
.survey-form { display: grid; gap: 22px; }
.form-step { display: block; }
.js .form-step { display: none; }
.js .form-step.active { display: block; }
.step-heading { margin-bottom: 20px; padding: 24px 28px; border-radius: var(--radius); color: var(--white); background: var(--navy-800); }
.step-heading span { color: #a3c8b8; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.step-heading h2 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; line-height: 1.2; }

.question-card { min-width: 0; margin: 0 0 16px; padding: 26px 28px 28px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.question-card legend { width: 100%; display: flex; align-items: flex-start; gap: 11px; padding: 0; font-weight: 720; line-height: 1.45; }
.question-code { flex: 0 0 auto; min-width: 34px; margin-top: -1px; padding: 3px 7px; border-radius: 7px; color: var(--green-800); background: var(--green-50); font-size: .72rem; text-align: center; }
.question-text { flex: 1; }
.required-mark { color: var(--red); }
.help-text { margin: 8px 0 15px 45px; color: var(--slate-700); font-size: .82rem; }
.option-list { display: grid; gap: 9px; margin-top: 17px; }
.option-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border: 1px solid var(--slate-200); border-radius: 11px; cursor: pointer; color: var(--navy-800); background: var(--white); transition: border-color .15s ease, background .15s ease; }
.option-item:hover { border-color: #a7bccd; background: var(--green-50); }
.option-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-control { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border: 1.5px solid var(--slate-300); border-radius: 5px; background: var(--white); }
.option-item input[type="radio"] + .option-control { border-radius: 50%; }
.option-item input:checked + .option-control { border-color: var(--green-800); background: var(--green-800); box-shadow: inset 0 0 0 4px var(--white); }
.option-item input[type="checkbox"]:checked + .option-control { box-shadow: none; }
.option-item input[type="checkbox"]:checked + .option-control::after { content: "✓"; color: var(--white); font-size: .76rem; font-weight: 900; }
.option-item:has(input:checked) { border-color: #799ab5; background: var(--green-50); }

textarea, input[type="text"], input[type="password"], input[type="date"], select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    color: var(--navy-950);
    background: var(--white);
}
textarea { min-height: 130px; margin-top: 17px; resize: vertical; }
textarea::placeholder, input::placeholder { color: #95a39e; }
textarea:focus, input:focus, select:focus { border-color: var(--green-700); }
.textarea-meta { display: flex; justify-content: space-between; margin-top: 4px; color: var(--slate-500); font-size: .72rem; }
.other-input { display: none; margin: 1px 0 4px 32px; width: calc(100% - 32px) !important; }
.other-input.visible { display: block; }
.question-card.has-error { border-color: #e9a8a1; box-shadow: 0 0 0 3px rgba(180,35,24,.06); }
.field-error { margin: 12px 0 0; color: var(--red); font-size: .8rem; font-weight: 650; }
.field-error[hidden] { display: none; }
.step-actions { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; }
.privacy-note { margin: 18px auto 0; max-width: 650px; color: var(--slate-500); font-size: .78rem; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; font-size: .88rem; }
.alert-error { color: #8c1c13; border: 1px solid #f1b9b3; background: var(--red-50); }
.alert-success { color: var(--green-900); border: 1px solid #bdcfdd; background: var(--green-50); }

.thank-you-page, .message-page { min-height: 68vh; display: grid; place-items: center; padding: 70px 20px; }
.thank-you-card { width: min(100%, 660px); padding: 58px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); text-align: center; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--green-800); font-size: 2rem; }
.thank-you-card h1 { margin: 8px 0 14px; font-family: Georgia, serif; font-size: 2.7rem; font-weight: 500; }
.thank-you-card p { color: var(--slate-700); }
.thank-you-actions { margin: 26px 0 18px; }
.thank-you-card small { color: var(--slate-500); }
.message-page { display: block; max-width: 720px; }

/* Admin */
.admin-body { min-height: 100vh; background: #f3f5f7; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; color: var(--white); background: linear-gradient(180deg, #2C3E50, #1a242f); }
.admin-sidebar .brand { padding: 0 0 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo-surface, .login-logo-surface { display: flex; width: 100%; align-items: center; justify-content: center; padding: 9px 10px; border-radius: 10px; background: var(--white); box-shadow: var(--shadow-sm); }
.admin-logo-surface .brand-logo { width: 190px; }
.brand-favicon { display: none; width: 36px; height: 36px; }
.admin-nav { display: grid; gap: 5px; margin-top: 24px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: rgba(255,255,255,.68); text-decoration: none; font-size: .87rem; }
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.1); }
.admin-nav-icon { width: 21px; color: #f0b33c; text-align: center; }
.admin-user { margin-top: auto; padding: 15px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user strong, .admin-user span { display: block; }
.admin-user strong { font-size: .84rem; }
.admin-user span { color: rgba(255,255,255,.55); font-size: .72rem; }
.admin-user a { display: inline-block; margin-top: 10px; color: #f2c86d; font-size: .75rem; text-decoration: none; }
.sidebar-logout { margin: 4px 0 0; padding: 0; border: 0; color: rgba(255,255,255,.55); background: none; cursor: pointer; font-size: .75rem; }
.sidebar-logout:hover { color: var(--white); }
.admin-main { min-width: 0; padding: 32px 38px 60px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.admin-topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.02em; }
.admin-topbar p { margin: 3px 0 0; color: var(--slate-700); font-size: .85rem; }
.admin-topbar-actions { display: flex; gap: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 21px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.stat-card-label { color: var(--slate-700); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { display: block; margin-top: 7px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1; }
.stat-card small { display: block; margin-top: 7px; color: var(--slate-500); }
.stat-card .stat-card-date { font-size: 1.75rem; }
.stat-grid--three { grid-template-columns: repeat(3, 1fr); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 20px; }
.admin-panel { min-width: 0; border: 1px solid var(--slate-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 21px; border-bottom: 1px solid var(--slate-100); }
.panel-header h2 { margin: 0; font-size: 1rem; }
.panel-header p { margin: 3px 0 0; color: var(--slate-500); font-size: .76rem; }
.panel-body { padding: 20px 21px; }
.survey-admin-list { display: grid; gap: 12px; }
.survey-admin-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 17px; border: 1px solid var(--slate-100); border-radius: 12px; }
.survey-admin-item h3 { margin: 0; font-size: .95rem; }
.survey-admin-item p { margin: 3px 0 0; color: var(--slate-500); font-size: .76rem; }
.survey-admin-count { text-align: right; }
.survey-admin-count strong { display: block; font-size: 1.25rem; }
.survey-admin-count span { color: var(--slate-500); font-size: .7rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { padding: 11px 14px; color: var(--slate-500); border-bottom: 1px solid var(--slate-200); background: var(--slate-50); font-size: .7rem; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a { color: var(--green-800); font-weight: 700; text-decoration: none; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--green-900); background: var(--green-100); font-size: .68rem; font-weight: 750; }
.empty-state { padding: 42px 20px; color: var(--slate-500); text-align: center; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 16px 20px; border-bottom: 1px solid var(--slate-100); }
.filter-field { display: grid; gap: 4px; }
.filter-field label { color: var(--slate-500); font-size: .7rem; font-weight: 700; }
.filter-field select, .filter-field input { min-width: 170px; padding: 8px 10px; font-size: .8rem; }
.pagination { display: flex; justify-content: center; gap: 7px; padding: 20px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); font-size: .78rem; text-decoration: none; }
.pagination .active { color: var(--white); border-color: var(--green-800); background: var(--green-800); }
.question-stat { margin-bottom: 18px; padding: 20px; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); }
.question-stat:last-child { margin-bottom: 0; }
.survey-switcher { display: grid; grid-template-columns: 180px minmax(230px, 390px); gap: 12px; align-items: center; margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); }
.survey-switcher label { color: var(--slate-700); font-size: .78rem; font-weight: 750; }
.survey-switcher select { padding-block: 8px; font-size: .82rem; }
.statistics-section { margin-top: 30px; }
.statistics-section-heading { margin-bottom: 14px; }
.statistics-section-heading span { color: var(--green-700); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.statistics-section-heading h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.question-stat-head { display: flex; gap: 11px; margin-bottom: 16px; }
.question-stat-head h3 { margin: 0; font-size: .93rem; line-height: 1.4; }
.question-stat-meta { margin-top: 3px; color: var(--slate-500); font-size: .72rem; }
.bar-list { display: grid; gap: 12px; }
.bar-row-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: .78rem; }
.bar-row-head span:last-child { white-space: nowrap; color: var(--slate-500); }
.bar-track { height: 9px; overflow: hidden; border-radius: 99px; background: var(--slate-100); }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2C3E50, #366A96); }
.text-answer-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.text-answer { padding: 11px 13px; border-left: 3px solid var(--green-100); background: var(--slate-50); font-size: .8rem; white-space: pre-wrap; }
.text-answer small { display: block; margin-top: 4px; color: var(--slate-500); }
.text-responses { margin-top: 17px; border-top: 1px solid var(--slate-100); padding-top: 13px; }
.text-responses summary { cursor: pointer; color: var(--green-800); font-size: .78rem; font-weight: 750; }
.text-responses .text-answer-list { margin-top: 10px; }
.empty-inline { padding: 16px; border-radius: 9px; color: var(--slate-500); background: var(--slate-50); font-size: .78rem; }
.response-detail { display: grid; gap: 18px; }
.response-section h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.answer-block { margin-bottom: 9px; padding: 15px 17px; border: 1px solid var(--slate-100); border-radius: 11px; background: var(--white); }
.answer-block h3 { margin: 0 0 7px; font-size: .85rem; }
.answer-block p { margin: 0; color: var(--slate-700); font-size: .82rem; white-space: pre-wrap; }
.answer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.answer-tag { padding: 5px 8px; border-radius: 7px; color: var(--green-900); background: var(--green-50); font-size: .74rem; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); background: var(--white); }
.login-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: var(--white); background: linear-gradient(145deg, #1a242f, #2C3E50 58%, #366A96); }
.login-brand { width: min(100%, 280px); }
.login-logo-surface .brand-logo { width: 235px; }
.login-brand-panel::after { content: ""; position: absolute; right: -140px; bottom: -150px; width: 400px; height: 400px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-brand-panel h1 { position: relative; z-index: 1; max-width: 500px; margin: auto 0 20px; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.login-brand-panel p { position: relative; z-index: 1; max-width: 440px; color: rgba(255,255,255,.7); }
.login-form-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(100%, 420px); }
.login-card .eyebrow { margin-bottom: 10px; }
.login-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 500; }
.login-card > p { margin: 0 0 28px; color: var(--slate-700); }
.form-group { display: grid; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .79rem; font-weight: 750; }
.login-card .button { width: 100%; margin-top: 6px; }
.login-back { display: inline-block; margin-top: 24px; color: var(--slate-500); font-size: .78rem; text-decoration: none; }
.password-panel { max-width: 620px; }
.form-group small { color: var(--slate-500); font-size: .72rem; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-note { max-width: 440px; }
    .survey-layout { grid-template-columns: 1fr; }
    .survey-sidebar { position: static; }
    .section-list { grid-template-columns: repeat(3, 1fr); }
    .admin-shell { grid-template-columns: 82px minmax(0, 1fr); }
    .admin-sidebar { padding: 20px 12px; }
    .admin-nav a span:not(.admin-nav-icon), .admin-user { display: none; }
    .admin-sidebar .brand { justify-content: center; padding-inline: 0; }
    .admin-logo-surface { display: none; }
    .brand-favicon { display: block; }
    .admin-nav a { justify-content: center; }
    .admin-main { padding-inline: 24px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid--three { grid-template-columns: repeat(3, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-inner { min-height: 88px; }
    .site-header .brand-logo { width: 196px; }
    .header-badge { display: none; }
    .hero { padding: 64px 0 70px; }
    .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
    .survey-choice { padding: 65px 0; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 14px; }
    .survey-grid { grid-template-columns: 1fr; }
    .survey-card { min-height: 440px; padding: 28px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .survey-hero { padding: 38px 0 46px; }
    .back-link { margin-bottom: 28px; }
    .survey-form-wrap { padding: 28px 0 60px; }
    .section-list { display: none; }
    .progress-track { margin-bottom: 0; }
    .question-card { padding: 21px 18px 23px; }
    .question-card legend { gap: 8px; }
    .help-text { margin-left: 0; }
    .step-heading { padding: 21px; }
    .step-actions .button { padding-inline: 14px; }
    .thank-you-card { padding: 38px 24px; }
    .admin-shell { display: block; }
    .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; }
    .admin-sidebar .brand { padding: 0; border: 0; }
    .admin-logo-surface { display: flex; width: auto; padding: 5px 7px; }
    .admin-logo-surface .brand-logo { width: 136px; }
    .brand-favicon { display: none; }
    .admin-nav { display: flex; margin: 0 0 0 auto; }
    .admin-nav a { padding: 9px; }
    .admin-main { padding: 24px 14px 46px; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-grid--three { grid-template-columns: 1fr; }
    .survey-switcher { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .login-page { display: block; }
    .login-brand-panel { min-height: 290px; padding: 30px 24px; }
    .login-brand-panel h1 { margin-top: 70px; font-size: 2.8rem; }
    .login-form-panel { padding: 42px 24px; }
}

@media (max-width: 480px) {
    .site-header .brand-logo { width: 178px; }
    .survey-card { min-height: 465px; }
    .trust-row { display: grid; }
    .step-actions { align-items: stretch; flex-direction: column-reverse; }
    .step-actions > span { display: none; }
    .step-actions .button { width: 100%; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-topbar-actions { width: 100%; flex-direction: column; }
    .admin-topbar-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
