:root {
  color-scheme: light;
  --ink: #142f3a;
  --ink-soft: #48616a;
  --paper: #f5f8f7;
  --white: #ffffff;
  --line: #d7e1df;
  --gold: #f2c86b;
  --gold-dark: #d7a737;
  --teal: #276574;
  --error: #a33a3a;
  --shadow: 0 22px 55px rgba(20, 47, 58, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 5%, rgba(242, 200, 107, .17), transparent 28rem), var(--paper); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.page-shell { min-height: 100vh; }
.site-header { max-width: 1240px; margin: 0 auto; padding: 28px 34px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--gold); background: var(--ink); font-size: 1.35rem; line-height: 1; font-weight: 850; }
.admin-link { color: var(--ink-soft); text-underline-offset: 4px; font-size: .92rem; }
.admin-link:hover { color: var(--ink); }

.screen { max-width: 1180px; margin: 0 auto; padding: 70px 34px 90px; }
.split-layout { min-height: calc(100vh - 94px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: 9vw; align-items: center; }
.intro-panel { max-width: 650px; padding-bottom: 5vh; }
.intro-panel h1 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 550; line-height: .95; letter-spacing: -.055em; }
.eyebrow { margin: 0 0 18px; color: var(--teal); text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 800; }
h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.052em; font-weight: 500; text-wrap: balance; }
.intro-copy { max-width: 600px; margin: 30px 0; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.7; }
.time-note { display: inline-flex; gap: 10px; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgba(255,255,255,.55); font-size: .9rem; }

.card { background: rgba(255,255,255,.93); border: 1px solid rgba(215,225,223,.9); border-radius: 24px; box-shadow: var(--shadow); }
.login-card { padding: clamp(28px, 4vw, 48px); }
.step-label { margin: 0 0 10px; color: var(--gold-dark); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 850; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; letter-spacing: -.025em; }
.muted { color: var(--ink-soft); line-height: 1.5; }
form { margin-top: 32px; }
label, legend { display: block; font-weight: 720; font-size: .92rem; }
input[type="text"], input[type="password"], input[type="date"], textarea { width: 100%; border: 1px solid #c8d5d3; border-radius: 12px; padding: 14px 15px; color: var(--ink); background: #fbfdfc; outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(39,101,116,.12); background: #fff; }
.login-card input { margin-top: 9px; }
.login-card label:not(:first-of-type) { margin-top: 24px; }
.field-hint { margin: 7px 0 0; color: var(--ink-soft); font-size: .82rem; }
.button { border: 0; border-radius: 12px; min-height: 50px; padding: 0 22px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.primary { color: #fff; background: var(--ink); }
.primary:hover { background: #1c4653; }
.login-card .button { width: 100%; margin-top: 28px; }
.form-error { min-height: 1.2em; margin: 12px 0 0; color: var(--error); font-size: .88rem; }

.form-layout { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 60px; align-items: start; justify-content: center; }
.form-aside { position: sticky; top: 34px; padding-top: 34px; }
.form-aside h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.form-aside > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.65; }
.session-chip { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .85rem; }
.session-chip button { border: 0; padding: 4px; color: var(--teal); background: none; font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.feedback-card { overflow: hidden; padding: 34px clamp(22px, 5vw, 54px) 48px; }
.progress-row { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.progress-track { height: 3px; margin: 13px 0 40px; overflow: hidden; background: #e8eeec; }
.progress-track span { display: block; width: 100%; height: 100%; background: var(--gold-dark); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.profile-grid input { margin-top: 9px; }
.rating-question { border: 0; padding: 32px 0; margin: 0; border-bottom: 1px solid var(--line); }
.rating-question legend { width: 100%; font-size: 1rem; line-height: 1.55; }
.question-number { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 9px; border-radius: 50%; color: var(--teal); background: #e4f0f0; font-size: .78rem; vertical-align: 1px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 20px; }
.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale-option { min-height: 52px; display: grid; place-items: center; border: 1px solid #cbd7d5; border-radius: 11px; color: var(--ink-soft); background: #fbfdfc; font-size: .95rem; transition: .14s; }
.scale input:checked + .scale-option { color: var(--ink); border-color: var(--gold-dark); background: #fff5d9; box-shadow: inset 0 0 0 1px var(--gold-dark); }
.scale input:focus-visible + .scale-option { outline: 3px solid rgba(39,101,116,.28); outline-offset: 2px; }
.scale-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-soft); font-size: .73rem; }
.open-question { padding: 34px 0 22px; }
.open-question label { line-height: 1.55; }
.open-question textarea { margin-top: 17px; resize: vertical; line-height: 1.55; }
.textarea-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 7px; color: var(--ink-soft); font-size: .75rem; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 18px; border-radius: 13px; background: #f0f5f4; cursor: pointer; font-weight: 400; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin-top: 24px; display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.submit-row p { margin: 0; max-width: 300px; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }

.success-layout { min-height: calc(100vh - 94px); max-width: 760px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.success-layout h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.success-layout > p:last-child { max-width: 600px; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.65; }
.success-mark { width: 58px; height: 58px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 1.5rem; font-weight: 900; }

@media (max-width: 850px) {
  .site-header { padding: 20px; }
  .screen { padding: 38px 20px 70px; }
  .split-layout, .form-layout { grid-template-columns: 1fr; gap: 36px; }
  .split-layout { align-items: start; }
  .intro-panel { padding: 28px 0 0; }
  .form-aside { position: static; padding-top: 0; }
  .form-aside > p:not(.eyebrow) { max-width: 620px; }
  .session-chip { max-width: 420px; }
}

@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .card { border-radius: 18px; }
  .profile-grid { grid-template-columns: 1fr; }
  .scale { gap: 5px; }
  .scale-option { min-height: 48px; }
  .textarea-meta span:first-child { display: none; }
  .textarea-meta { justify-content: flex-end; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row .button { width: 100%; }
}

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