:root {
  --navy: #041a49;
  --navy-2: #071337;
  --purple: #630871;
  --purple-dark: #47084f;
  --lilac: #fff6ff;
  --lavender: #f2e8f8;
  --line: #e4d9ea;
  --ink: #17213f;
  --muted: #63708a;
  --white: #fff;
  --shadow: 0 24px 60px rgba(23, 10, 44, .11);
}

* { box-sizing: border-box; }
html { background: var(--lilac); }
body { margin: 0; color: var(--ink); background: var(--lilac); font-family: "Montserrat", sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 12px; color: #d9c5fa; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow.violet { color: var(--purple); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.brand strong { font-weight: 800; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-family: "Playfair Display", serif; font-size: 19px; line-height: 1; }
.dark-brand { color: var(--navy); }
.dark-brand .brand-mark { border-color: var(--navy); }
.public-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, 36%) 1fr; }
.intro-panel { position: relative; display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 46px clamp(32px, 6vw, 92px); color: #fff; background: var(--navy); }
.intro-panel::before, .intro-panel::after { position: absolute; content: ""; pointer-events: none; border-radius: 50%; }
.intro-panel::before { width: 530px; height: 530px; top: 28%; right: -350px; border: 1px solid rgba(232, 142, 241, .5); box-shadow: 0 0 0 46px rgba(232, 142, 241, .06), 0 0 0 111px rgba(232, 142, 241, .035); }
.intro-panel::after { width: 180px; height: 180px; left: -110px; bottom: 9%; background: linear-gradient(135deg, rgba(232,142,241,.42), rgba(99,8,113,.05)); }
.intro-copy { position: relative; z-index: 1; max-width: 455px; padding: 8vh 0; }
.intro-copy h1, .thank-you-card h1, .admin-login-card h1 { margin: 0 0 20px; font-family: "Playfair Display", serif; font-size: clamp(38px, 4.2vw, 63px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.intro-copy h1 em { color: #e88ef1; font-weight: 600; }
.intro-copy p { max-width: 440px; margin: 0; color: #e5e8f1; font-size: 16px; }
.intro-notice { position: relative; z-index: 1; display: flex; max-width: 430px; align-items: flex-start; gap: 11px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); font-size: 12px; }
.intro-notice p { margin: 0; }
.notice-icon { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #e88ef1; border-radius: 50%; color: #e88ef1; font-family: "Playfair Display", serif; font-weight: 700; }
.intro-footnote { position: relative; z-index: 1; margin: 26px 0 0; color: #b7c0d7; font-size: 11px; }
.form-panel { align-self: center; width: min(100%, 900px); margin: 0 auto; padding: 52px clamp(26px, 6vw, 86px); }
.form-brand-logo { display: block; width: min(100%, 220px); margin: 0 0 20px; }
.form-brand-logo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.form-panel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.form-panel h2, .admin-page-head h1, .detail-head h1 { margin: 0; color: var(--navy); font-family: "Playfair Display", serif; font-size: clamp(32px, 3vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.step-status { min-width: 126px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }
.progress-track { width: 100%; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e6dfe8; }
.progress-track span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: var(--purple); transition: width .24s cubic-bezier(.23,1,.32,1); }
.form-step { display: none; padding: 34px 0 8px; animation: lift .28s cubic-bezier(.23,1,.32,1); }
.form-step.is-active { display: block; }
@keyframes lift { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 25px; }
.step-number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--purple); background: #f0e5f2; font-size: 11px; font-weight: 800; }
.step-heading h3 { margin: 0 0 3px; color: var(--navy); font-size: 18px; line-height: 1.3; }
.step-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 47px; border: 1px solid #d9cfdf; border-radius: 9px; outline: 0; padding: 11px 13px; color: var(--ink); background: #fff; font-size: 14px; font-weight: 500; transition: border .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(99,8,113,.11); }
.field-error, .question-error { display: block; margin-top: 5px; color: #b91c1c; font-size: 11px; font-weight: 700; }
.form-alert { display: grid; gap: 2px; margin: 23px 0 -3px; padding: 12px 15px; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; background: #fff1f2; font-size: 12px; }
.form-actions { display: flex; gap: 11px; margin-top: 30px; }
.form-actions.align-right { justify-content: flex-end; }
.form-actions.between { justify-content: space-between; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; padding: 10px 17px; text-decoration: none; font-size: 12px; font-weight: 800; transition: transform .14s ease-out, box-shadow .14s ease-out, background .14s ease-out; }
.button:active { transform: scale(.97); }
.button.primary { color: #fff; background: var(--purple); box-shadow: 0 8px 18px rgba(99,8,113,.17); }
.button.primary:hover { background: #50065d; box-shadow: 0 11px 23px rgba(99,8,113,.23); }
.button.secondary { border: 1px solid #d7c9dd; color: var(--purple); background: transparent; }
.button.secondary:hover { background: #f5edf6; }
.question-grid { display: grid; gap: 13px; }
.question-grid-physical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.question-grid-food { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.question-card { min-width: 0; margin: 0; padding: 13px; border: 1px solid #e4d9ea; border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(23, 10, 44, .035); }
.question-card legend { display: flex; width: 100%; gap: 9px; align-items: flex-start; padding: 0; color: var(--navy); font-size: 11px; font-weight: 800; line-height: 1.25; }
.question-card legend small { display: block; margin-bottom: 2px; color: var(--purple); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.question-number { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--purple); background: #f1e7f4; font-size: 10px; font-weight: 800; }
.choice-list { display: grid; gap: 5px; margin-top: 11px; }
.choice-option { display: flex; min-height: 27px; align-items: flex-start; gap: 7px; border: 1px solid transparent; border-radius: 6px; padding: 4px 5px; color: #4c5870; background: #faf8fc; font-size: 9px; font-weight: 600; line-height: 1.27; cursor: pointer; transition: border .15s, background .15s, color .15s; }
.choice-option:hover { border-color: #cba6d2; }
.choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.choice-letter { display: grid; width: 16px; height: 16px; flex: 0 0 auto; place-items: center; border: 1px solid #b7a6c0; border-radius: 50%; color: #77748a; font-size: 8px; font-weight: 800; }
.choice-option.is-selected { border-color: var(--purple); color: var(--purple); background: #f8effa; }
.choice-option.is-selected .choice-letter { border-color: var(--purple); color: #fff; background: var(--purple); }
.consent-option { display: flex; max-width: 760px; align-items: flex-start; gap: 9px; margin-top: 22px; color: #68738a; font-size: 11px; line-height: 1.45; }
.consent-option input, .remember-option input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--purple); }
.thank-you-shell, .admin-login-shell { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: linear-gradient(135deg, var(--navy) 0%, #25205e 48%, var(--purple) 100%); }
.thank-you-card, .admin-login-card { width: min(100%, 620px); padding: clamp(34px, 6vw, 68px); border-radius: 20px; text-align: center; background: #fff; box-shadow: 0 30px 80px rgba(2, 7, 30, .3); }
.thank-you-card .brand, .admin-login-card .brand { justify-content: center; margin-bottom: 52px; }
.success-seal { display: grid; width: 54px; height: 54px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); font-size: 25px; font-weight: 800; }
.thank-you-card h1, .admin-login-card h1 { color: var(--navy); font-size: clamp(32px, 4vw, 48px); }
.thank-you-card > p:not(.eyebrow):not(.thanks-note), .admin-login-card > p { max-width: 470px; margin: 0 auto 28px; color: var(--muted); font-size: 14px; }
.thanks-note { margin: 26px 0 0; color: #7f8799; font-size: 10px; }
.admin-login-card { width: min(100%, 430px); text-align: left; }
.admin-login-card .brand { justify-content: flex-start; margin-bottom: 38px; }
.admin-login-card h1 { font-size: 35px; }
.admin-login-card > p { margin: 0 0 22px; }
.login-form { display: grid; gap: 17px; }
.remember-option { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 0; color: #68738a; font-size: 11px; line-height: 1.45; }
.full-button { width: 100%; margin-top: 4px; }
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 252px 1fr; background: #f8f6fb; }
.admin-sidebar { display: flex; flex-direction: column; gap: 43px; padding: 32px 22px; color: #fff; background: var(--navy); }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 11px; color: #ccd2e5; text-decoration: none; font-size: 12px; font-weight: 700; }
.admin-nav-link.is-current, .admin-nav-link:hover { color: #fff; background: rgba(232,142,241,.18); }
.sidebar-user { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); font-size: 11px; }
.sidebar-user span { display: block; color: #a9b4cf; }
.sidebar-user strong { display: block; margin: 2px 0 10px; }
.sidebar-user button { border: 0; padding: 0; color: #e88ef1; background: none; font-size: 11px; font-weight: 700; }
.admin-content { width: min(100%, 1500px); padding: 48px clamp(24px, 5vw, 72px); }
.admin-page-head, .detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.admin-page-head p, .detail-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.total-card { display: grid; min-width: 135px; gap: 1px; padding: 13px 16px; border-radius: 10px; color: var(--purple); background: #f2e9f6; }
.total-card strong { font-size: 23px; line-height: 1; }
.total-card span { color: #72577c; font-size: 10px; font-weight: 700; }
.filter-card, .intakes-card, .detail-card { border: 1px solid #ece4f0; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(23, 10, 44, .035); }
.filter-card { margin-bottom: 20px; padding: 18px; }
.filters-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 270px) auto auto; align-items: end; gap: 12px; }
.filters-form .button { min-height: 45px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 15px 20px; color: #7d7990; border-bottom: 1px solid #eee8f2; background: #fdfcff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 17px 20px; border-bottom: 1px solid #f0ebf3; color: #4b5570; font-size: 12px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy); font-size: 13px; }
td a { color: var(--purple); text-decoration: none; }
td span { color: #8990a3; font-size: 11px; }
.answer-count { color: #6e287a; font-weight: 700; }
.table-action { white-space: nowrap; font-size: 11px; font-weight: 800; }
.pagination-wrap { padding: 18px 20px; }
.pagination-wrap nav { display: flex; justify-content: flex-end; }
.empty-state { padding: 76px 24px; color: var(--muted); text-align: center; }
.empty-state > div { margin-bottom: 9px; color: #c8b3ce; font-size: 35px; }
.empty-state h2 { margin: 0 0 5px; color: var(--navy); font-size: 18px; }
.empty-state p { margin: 0; font-size: 12px; }
.back-link { display: inline-flex; gap: 7px; margin-bottom: 17px; color: var(--purple); text-decoration: none; font-size: 11px; font-weight: 800; }
.detail-head { align-items: center; }
.detail-grid { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(300px, 1.1fr); gap: 20px; }
.detail-card { padding: 26px; }
.card-kicker { margin: 0 0 9px; color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.contact-list { display: grid; gap: 15px; margin: 0; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { color: #798096; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.contact-list dd { margin: 0; color: var(--navy); font-size: 13px; font-weight: 700; }
.contact-list a { color: var(--purple); text-decoration: none; }
.response-block { margin-top: 20px; }
.response-block-heading { margin-bottom: 17px; border-bottom: 1px solid #eee8f2; }
.response-block-heading p:last-child { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.answer-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer-detail-card { min-width: 0; padding: 15px; border: 1px solid #eee8f2; border-radius: 10px; background: #fdfcff; }
.answer-detail-title { display: flex; gap: 9px; align-items: flex-start; }
.answer-detail-title small { display: block; margin-bottom: 2px; color: var(--purple); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.answer-detail-title h2 { margin: 0; color: var(--navy); font-size: 12px; line-height: 1.35; }
.selected-answer { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; padding: 9px 10px; border-radius: 7px; color: #50335b; background: #f6edf8; font-size: 11px; line-height: 1.35; }
.selected-answer strong { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); font-size: 9px; }
.missing-answer { margin-top: 13px; color: #b91c1c; font-size: 11px; font-weight: 700; }
.info-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding: 13px 15px; border-radius: 10px; color: #59667f; background: #eff2f8; font-size: 11px; }
.info-note > span { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1px solid #7687a6; border-radius: 50%; color: #4a628c; font-family: "Playfair Display", serif; font-weight: 700; }
.info-note p { margin: 0; }
@media (min-width: 700px) {
  .public-shell.is-question-step { grid-template-columns: 1fr; }
  .public-shell.is-question-step .intro-panel { display: none; }
  .public-shell.is-question-step .form-panel { width: min(100%, 1440px); padding: 28px clamp(28px, 4.5vw, 75px); }
  .public-shell.is-question-step .form-brand-logo { width: 150px; margin-bottom: 9px; }
  .public-shell.is-question-step .form-panel-top { padding-bottom: 17px; }
  .public-shell.is-question-step .form-step { padding-top: 18px; }
  .public-shell.is-question-step .step-heading { margin-bottom: 14px; }
  .public-shell.is-question-step .form-actions { margin-top: 17px; }
}
@media (max-width: 1060px) and (min-width: 700px) { .question-grid-physical { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .public-shell { grid-template-columns: 1fr; } .intro-panel { min-height: auto; gap: 42px; padding: 32px clamp(24px, 6vw, 60px); } .intro-copy { padding: 20px 0; } .intro-copy h1 { font-size: 43px; } .form-panel { padding: 44px clamp(23px, 7vw, 70px); } .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { flex-direction: row; align-items: center; gap: 20px; padding: 16px 22px; } .admin-sidebar nav { margin-left: auto; } .sidebar-user { display: none; } }
@media (max-width: 700px) { .question-grid-physical, .question-grid-food, .answer-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .field-grid, .detail-grid { grid-template-columns: 1fr; } .form-panel-top, .admin-page-head, .detail-head { align-items: flex-start; flex-direction: column; } .step-status { width: 100%; text-align: left; } .form-actions.between { gap: 10px; } .button { padding: 10px 14px; } .filters-form { grid-template-columns: 1fr; } .admin-content { padding: 32px 18px; } .admin-sidebar .brand { font-size: 10px; } .admin-sidebar nav { margin-left: 0; } .admin-nav-link { padding: 8px; } .thank-you-card, .admin-login-card { padding: 34px 26px; } .question-card { padding: 12px 10px; } }
@media print { .admin-sidebar, .no-print, .back-link { display: none !important; } .admin-shell { display: block; } .admin-content { padding: 0; } .detail-grid { grid-template-columns: 1fr 1fr; } body { background: #fff; } }
