*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --primary-3: #3b82f6;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --success: #16a34a;
  --danger: #dc2626;
  --dark: #060c1d;
  --dark-2: #0f172a;
  --dark-3: #1e293b;
  --light: #eff2ff;
  --soft: #f8faff;
  --white: #ffffff;
  --gray: #64748b;
  --gray-2: #94a3b8;
  --border: #dde5ff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(29, 78, 216, .1);
  --shadow-lg: 0 16px 56px rgba(29, 78, 216, .18);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: #1a1a2e;
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-3);
  outline-offset: 3px;
  border-radius: 8px;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-3), var(--accent));
  box-shadow: 0 0 10px rgba(29, 78, 216, .5);
  transition: width .1s linear;
}

.container {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  border-bottom-color: rgba(29, 78, 216, .16);
  box-shadow: 0 4px 32px rgba(29, 78, 216, .12);
}

.nav-inner {
  width: min(100%, 1280px);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-logo img {
  width: auto;
  height: 38px;
}

.nav-center-label {
  flex: 1;
  min-width: 0;
  color: var(--gray);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  color: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform .55s ease;
}

.btn:hover::after {
  transform: translateX(130%) skewX(-20deg);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: 0 0 auto;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 16px rgba(29, 78, 216, .35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(29, 78, 216, .55);
}

.btn-outline {
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--primary);
  padding: 7px 18px;
}

.btn-outline:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: .82rem;
}

.btn-lg {
  min-height: 50px;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.section {
  padding: 72px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 14px;
  border: 1px solid rgba(29, 78, 216, .15);
  border-radius: 100px;
  color: var(--primary);
  background: rgba(29, 78, 216, .09);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 42%, var(--primary) 100%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header .tag {
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .2);
}

.page-header h1 {
  margin-top: 14px;
  font-size: 2.7rem;
  line-height: 1.12;
  font-weight: 900;
}

.page-header p {
  max-width: 620px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, .75);
  font-size: 1rem;
}

.page-header-dots,
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.survey-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 12, 29, .82), rgba(15, 23, 42, .72)),
    url("../img/hero-college.jpg") center / cover no-repeat;
}

.survey-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  padding-top: 86px;
  padding-bottom: 86px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 54px;
  align-items: center;
}

.survey-hero-copy h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: 3.7rem;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .42);
}

.survey-hero-copy p {
  max-width: 600px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.06rem;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 100px;
  background: rgba(245, 158, 11, .16);
  backdrop-filter: blur(8px);
  font-size: .84rem;
  font-weight: 800;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s infinite;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  font-size: .84rem;
  font-weight: 700;
}

.hero-pill svg {
  color: #4ade80;
}

.survey-hero-panel {
  min-height: 310px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .22), 0 32px 80px rgba(0, 0, 0, .42);
}

.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-panel-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 24px rgba(29, 78, 216, .38);
}

.hero-panel-top strong,
.hero-panel-top span {
  display: block;
}

.hero-panel-top strong {
  font-size: 1rem;
  font-weight: 900;
}

.hero-panel-top span {
  margin-top: 2px;
  color: rgba(255, 255, 255, .68);
  font-size: .82rem;
}

.hero-panel-lines {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.hero-panel-lines span {
  display: block;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
}

.hero-panel-lines span:nth-child(2) {
  width: 82%;
}

.hero-panel-lines span:nth-child(3) {
  width: 62%;
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .22);
}

.survey-section {
  background: var(--soft);
  padding-bottom: 120px;
}

.survey-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

.identity-panel,
.questions-column,
.login-card,
.complete-card,
.qr-sheet,
.answers-panel,
.detail-side .info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.identity-panel {
  position: sticky;
  top: 88px;
  padding: 28px;
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.identity-panel h2,
.questions-head h2,
.answers-head h2 {
  color: var(--dark-2);
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 900;
}

.identity-panel > p {
  margin: 8px 0 24px;
  color: var(--gray);
  font-size: .92rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: var(--dark);
  font-size: .88rem;
  font-weight: 800;
}

.req {
  color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-input,
.form-select {
  min-height: 48px;
  padding: 11px 14px;
  font-size: .95rem;
}

.form-textarea {
  min-height: 132px;
  resize: vertical;
  padding: 14px 16px;
  font-size: .96rem;
  line-height: 1.55;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}

.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--danger);
}

.field-error {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: .78rem;
  font-weight: 700;
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
}

.form-alert--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.source-other {
  display: none;
}

.source-other.visible {
  display: block;
}

.survey-progress-card {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(29, 78, 216, .14);
  border-radius: 14px;
  background: var(--light);
}

.survey-progress-card strong {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.survey-progress-card span {
  color: var(--gray);
  font-weight: 800;
}

.survey-progress-card p {
  margin-top: 2px;
  color: var(--gray);
  font-size: .82rem;
  font-weight: 700;
}

.mini-progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
}

.mini-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition);
}

.questions-column {
  padding: 24px;
}

.questions-head,
.answers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.questions-count {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--light);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 900;
}

.question-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.question-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.question-top {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.question-num,
.answer-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--light);
  font-size: .82rem;
  font-weight: 900;
}

.question-title {
  display: block;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
}

.question-help {
  margin-top: 3px;
  color: var(--gray);
  font-size: .86rem;
}

.submit-dock {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 30px;
  background: rgba(248, 250, 255, .88);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

.submit-dock-inner {
  width: min(100%, 1280px);
  min-height: 82px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.submit-copy strong,
.submit-copy span {
  display: block;
}

.submit-copy strong {
  color: var(--dark);
  font-size: .94rem;
  font-weight: 900;
}

.submit-copy span {
  color: var(--gray);
  font-size: .84rem;
}

.empty-state,
.staff-empty {
  padding: 54px 24px;
  text-align: center;
  color: var(--gray);
}

.empty-state h3,
.staff-empty h3 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.complete-section,
.login-shell,
.qr-shell {
  min-height: calc(100vh - 64px);
  padding: 64px 24px;
  background: linear-gradient(135deg, var(--soft), #fff 52%, var(--light));
}

.complete-card {
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 54px 44px;
  text-align: center;
}

.complete-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}

.complete-icon-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--primary);
  border-radius: 50%;
  opacity: .24;
  animation: ringPulse 2s ease-in-out infinite;
}

.complete-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(29, 78, 216, .4);
  animation: iconPop .55s cubic-bezier(.22, 1, .36, 1);
}

.complete-title {
  margin-top: 14px;
  color: var(--dark-2);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.15;
}

.complete-subtitle {
  max-width: 500px;
  margin: 14px auto 28px;
  color: var(--gray);
  font-size: 1rem;
}

.complete-tiles {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.complete-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--dark);
  background: var(--light);
  font-size: .86rem;
  font-weight: 800;
}

.complete-tile-icon {
  color: var(--primary);
  display: flex;
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(100%, 560px);
  padding: 34px;
}

.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.login-brand-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand h1 {
  margin-top: 12px;
  color: var(--dark-2);
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 900;
}

.login-brand p {
  margin-top: 5px;
  color: var(--gray);
  font-size: .9rem;
}

.staff-section {
  background: var(--soft);
}

.staff-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.staff-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.staff-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.staff-stat-icon,
.info-card-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--primary);
  background: rgba(29, 78, 216, .1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-stat-icon--green,
.info-card-icon--green {
  color: var(--success);
  background: rgba(22, 163, 74, .1);
}

.staff-stat-icon--accent,
.info-card-icon--accent {
  color: #d97706;
  background: rgba(245, 158, 11, .12);
}

.staff-stat-num {
  color: var(--dark);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.staff-stat-num--green {
  color: var(--success);
}

.staff-stat-num--accent {
  color: #d97706;
}

.staff-stat-label {
  margin-top: 3px;
  color: var(--gray);
  font-size: .78rem;
  font-weight: 700;
}

.staff-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.staff-search {
  flex: 1 1 300px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-2);
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 40px;
}

.staff-filter-bar .form-select {
  width: 220px;
}

.staff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.staff-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .84rem;
}

.staff-table thead tr {
  color: #fff;
  background: var(--dark-2);
}

.staff-table th {
  padding: 13px 14px;
  text-align: left;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.staff-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.staff-table tbody tr:last-child td {
  border-bottom: none;
}

.staff-table tbody tr:hover {
  background: #fafbff;
}

.row-num {
  width: 44px;
  color: var(--gray-2);
  font-weight: 800;
}

.name-col strong,
.name-col span {
  display: block;
}

.name-col strong {
  color: var(--dark);
  font-weight: 900;
}

.name-col span {
  color: var(--gray);
  font-size: .78rem;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--light);
  font-size: .78rem;
  font-weight: 900;
}

.date-col,
.score-col,
.actions-col {
  white-space: nowrap;
}

.score-col {
  text-align: center;
  font-weight: 900;
}

.staff-empty svg {
  color: var(--gray-2);
  margin: 0 auto 12px;
}

.staff-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--gray);
  font-size: .86rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section {
  background: var(--soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.detail-side .info-card {
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.detail-side .info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.detail-side .info-card h4 {
  margin-top: 12px;
  color: var(--dark);
  font-size: .9rem;
  font-weight: 900;
}

.detail-side .info-card p {
  margin-top: 4px;
  color: var(--gray);
  font-size: .9rem;
}

.answers-panel {
  padding: 24px;
}

.answer-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.answer-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.answer-card h3 {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 900;
}

.answer-card p {
  margin-top: 8px;
  color: var(--dark-3);
  font-size: .95rem;
  line-height: 1.7;
}

.qr-shell {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.qr-type-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-type-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--gray);
  font-size: .84rem;
  font-weight: 900;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.qr-type-btn:hover,
.qr-type-btn.active {
  color: #fff;
  background: var(--primary);
}

.qr-sheet {
  width: min(100%, 900px);
  padding: 42px;
}

.qr-sheet--small {
  width: min(100%, 148mm);
  min-height: 148mm;
  padding: 13mm;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8mm;
}

.qr-small-title {
  color: var(--dark-2);
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-small-box {
  width: 104mm;
  max-width: 100%;
  padding: 5mm;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.qr-small-box img,
.qr-a4-box img {
  width: 100%;
  height: auto;
}

.qr-small-note,
.qr-a4-note {
  color: var(--gray);
  font-size: .92rem;
  font-weight: 800;
}

.qr-sheet--a4 {
  width: min(100%, 210mm);
  min-height: 297mm;
  padding: 24mm 18mm;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18mm;
}

.qr-a4-title {
  max-width: 170mm;
  color: var(--dark-2);
  font-size: 2.15rem;
  line-height: 1.18;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-a4-box {
  width: 150mm;
  max-width: 100%;
  padding: 9mm;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-sheet--poster {
  width: min(100%, 900px);
  padding: 42px;
}

.qr-print-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--gray);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.qr-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.qr-brand img {
  height: 52px;
  width: auto;
}

.qr-brand span {
  color: var(--gray);
  font-size: .9rem;
  font-weight: 800;
}

.qr-main {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: center;
  padding: 42px 0;
}

.qr-main h1 {
  margin-top: 16px;
  color: var(--dark-2);
  font-size: 2.7rem;
  line-height: 1.12;
  font-weight: 900;
}

.qr-main p {
  margin-top: 16px;
  color: var(--gray);
  font-size: 1rem;
}

.qr-url {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  background: var(--light);
  font-size: .86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.qr-box {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-box img {
  width: 100%;
  height: auto;
}

.qr-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: .86rem;
  font-weight: 800;
}

.qr-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-fourup-print {
  display: none;
}

.start-section {
  background: var(--soft);
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.register-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.register-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.register-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-card-header h2 {
  color: var(--dark);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.register-card-header p {
  margin-top: 3px;
  color: var(--gray);
  font-size: .84rem;
}

.register-sidebar {
  display: grid;
  gap: 16px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.info-card h4 {
  margin-top: 12px;
  color: var(--dark);
  font-size: .9rem;
  font-weight: 900;
}

.info-card p {
  margin-top: 5px;
  color: var(--gray);
  font-size: .84rem;
  line-height: 1.6;
}

.survey-test-page {
  background: var(--soft);
}

.survey-test-page .navbar,
.survey-test-page .footer,
.survey-test-page #btt {
  display: none;
}

.survey-test-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: var(--dark-2);
  border-bottom: 2px solid rgba(29, 78, 216, .4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.survey-test-header-inner {
  width: min(100%, 1280px);
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.test-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-logo-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.test-logo-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.test-logo-name {
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.1;
}

.test-logo-sub {
  max-width: 260px;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.test-progress-wrap {
  flex: 1;
  max-width: 380px;
  min-width: 180px;
}

.test-progress-label {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  text-align: center;
}

.test-progress-bar-wrap {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.test-progress-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-3), var(--accent));
  transition: width .35s ease;
}

.test-edit-btn {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
}

.test-edit-btn:hover {
  color: var(--dark);
  background: var(--accent);
  border-color: var(--accent);
}

.test-main {
  width: min(100%, 950px);
  margin: 0 auto;
  padding: 28px 24px 100px;
}

.subject-block {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
}

.subject-header {
  padding: 20px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.subject-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.subject-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
}

.subject-meta {
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  font-weight: 700;
}

.subject-score-badge {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: .9rem;
  font-weight: 900;
}

.questions-list {
  background: #fff;
  padding: 8px 16px 16px;
}

.survey-test-main .question-card {
  margin: 8px 0;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.question-section {
  margin-bottom: 20px;
}

.question-section-title {
  margin: 18px 2px 10px;
  color: var(--dark-2);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.survey-test-main .question-card:last-child {
  padding-bottom: 20px;
}

.survey-test-main .question-card:hover,
.survey-test-main .question-card.answered {
  border-color: rgba(29, 78, 216, .3);
  background: #fafbff;
  box-shadow: var(--shadow);
}

.question-control {
  margin-left: 44px;
}

.question-other {
  margin: 14px 0 0 44px;
}

.question-control .form-input,
.question-control .form-textarea {
  width: 100%;
}

.question-control ul,
.question-control ol {
  list-style: none;
}

.question-control .survey-radio,
.question-control .survey-checks {
  display: grid;
  gap: 10px;
}

.question-control .survey-radio label,
.question-control .survey-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.question-control .survey-radio label:hover,
.question-control .survey-checks label:hover {
  border-color: var(--primary-3);
  background: #f5f8ff;
}

.question-control .survey-radio input,
.question-control .survey-checks input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.question-control .survey-checks input[type="checkbox"] {
  border-radius: 4px;
}

.question-control .survey-radio span,
.question-control .survey-checks span {
  font-size: .92rem;
  color: var(--dark-3);
}

.question-control .survey-radio label:has(input:checked),
.question-control .survey-checks label:has(input:checked) {
  border-color: var(--primary);
  background: #f0f5ff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .08);
}

.survey-test-main .question-card.answered .question-num {
  color: #fff;
  background: var(--primary);
}

.test-submit-section {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.submit-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.submit-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.submit-info strong,
.submit-info span {
  display: block;
}

.submit-info strong {
  margin-bottom: 2px;
  color: var(--dark);
  font-size: .9rem;
  font-weight: 900;
}

.submit-info span {
  color: var(--gray);
  font-size: .84rem;
}

#btt {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(29, 78, 216, .4);
  opacity: 0;
  transform: translateY(16px) scale(.86);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}

#btt.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.footer {
  padding: 54px 24px 28px;
  color: rgba(255, 255, 255, .75);
  background: var(--dark);
}

.footer-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 440px;
  font-size: .9rem;
}

.footer h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, .65);
  font-size: .88rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer a:hover {
  color: #fff;
  padding-left: 4px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .72;
    transform: scale(1.18);
  }
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .24;
  }
  50% {
    transform: scale(1.12);
    opacity: .1;
  }
}

@keyframes iconPop {
  from {
    transform: scale(.2) rotate(-20deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 1080px) {
  .survey-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .survey-hero-copy h1 {
    font-size: 3rem;
  }

  .survey-hero-panel {
    display: none;
  }

  .survey-layout,
  .start-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .identity-panel,
  .detail-side {
    position: static;
  }

  .register-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .staff-stat-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .staff-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  .staff-search,
  .staff-filter-bar .form-input,
  .staff-filter-bar .form-select,
  .staff-filter-bar .btn {
    width: 100%;
    min-width: 0;
  }

  .staff-search {
    flex: none;
  }

  .staff-filter-bar .form-select {
    height: 48px;
  }

  .staff-filter-bar .btn {
    min-height: 46px;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-logo img {
    height: 32px;
    max-width: 145px;
    object-fit: contain;
  }

  .nav-center-label,
  .nav-wide {
    display: none;
  }

  .nav-btns .btn span {
    display: none;
  }

  .nav-btns .btn {
    width: 42px;
    min-width: 42px;
    padding-left: 0;
    padding-right: 0;
  }

  .survey-hero-inner {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .survey-hero-copy h1,
  .page-header h1,
  .qr-main h1 {
    font-size: 2.15rem;
  }

  .survey-hero-copy p {
    font-size: .98rem;
  }

  .section {
    padding-top: 42px;
  }

  .survey-section {
    padding-bottom: 110px;
  }

  .survey-layout {
    gap: 18px;
  }

  .identity-panel,
  .questions-column,
  .register-card,
  .answers-panel,
  .login-card,
  .complete-card,
  .qr-sheet {
    border-radius: 14px;
  }

  .identity-panel,
  .questions-column,
  .register-card,
  .answers-panel {
    padding: 20px;
  }

  .form-grid-2,
  .staff-stats-row,
  .qr-main,
  .register-sidebar,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .staff-stat-card--wide {
    grid-column: auto;
  }

  .questions-head,
  .staff-toolbar,
  .staff-footer-row,
  .qr-brand,
  .qr-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-toolbar .btn,
  .staff-filter-bar .btn,
  .staff-filter-bar .form-select,
  .staff-search {
    width: 100%;
  }

  .staff-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-table {
    min-width: 620px;
  }

  .submit-dock-inner {
    min-height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .submit-copy {
    display: none;
  }

  .submit-dock .btn {
    width: 100%;
  }

  .survey-test-header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
  }

  .test-progress-wrap {
    display: none;
  }

  .test-logo {
    flex: 1;
  }

  .test-logo-sub {
    max-width: 170px;
  }

  .test-edit-btn {
    width: 42px;
    min-width: 42px;
    padding-left: 0;
    padding-right: 0;
    font-size: 0;
  }

  .test-edit-btn::before {
    content: "←";
    font-size: 1rem;
  }

  .test-main {
    padding: 18px 14px 96px;
  }

  .subject-header {
    padding: 16px;
    align-items: flex-start;
  }

  .subject-score-badge {
    display: none;
  }

  .questions-list {
    padding: 8px;
  }

  .survey-test-main .question-card {
    padding: 16px;
  }

  .question-control,
  .question-other {
    margin-left: 0;
  }

  .test-submit-section {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 16px 16px 0 0;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .test-submit-section .submit-info {
    display: none;
  }

  .test-submit-section .btn {
    width: 100%;
  }

  .complete-section,
  .login-shell,
  .qr-shell {
    padding: 36px 16px;
  }

  .complete-card,
  .login-card,
  .qr-sheet {
    padding: 28px 20px;
  }

  .login-brand {
    flex-direction: column;
  }

  .complete-title {
    font-size: 1.75rem;
  }

  .complete-tiles {
    flex-direction: column;
    align-items: stretch;
  }

  .qr-box {
    max-width: 320px;
    margin: 0 auto;
  }

  #btt {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 58px;
  }

  .survey-hero-copy h1,
  .page-header h1,
  .qr-main h1 {
    font-size: 1.8rem;
  }

  .hero-badge,
  .hero-pill {
    font-size: .78rem;
  }

  .identity-panel h2,
  .questions-head h2,
  .answers-head h2 {
    font-size: 1.18rem;
  }

  .question-title,
  .answer-card h3 {
    font-size: .96rem;
  }

  .question-top,
  .answer-card {
    gap: 10px;
  }

  .form-input,
  .form-select {
    min-height: 50px;
  }

  .form-textarea {
    min-height: 118px;
  }

  .staff-table {
    min-width: 560px;
  }

  .staff-table th:nth-child(1),
  .staff-table td:nth-child(1),
  .staff-table th:nth-child(4),
  .staff-table td:nth-child(4) {
    display: none;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background: #fff;
  }

  .navbar,
  .footer,
  #btt,
  #progress-bar,
  .qr-type-switch,
  .qr-actions {
    display: none !important;
  }

  .qr-shell {
    min-height: auto;
    padding: 0;
    display: block;
    background: #fff;
  }

  .qr-sheet {
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .qr-page-small .qr-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .qr-page-small .qr-sheet--small {
    display: none;
  }

  .qr-page-small .qr-fourup-print {
    display: none;
  }

  .qr-page-a4 .qr-sheet--a4 {
    width: 210mm;
    min-height: 297mm;
    padding: 24mm 18mm;
  }

  .qr-page-a4 .qr-a4-box {
    width: 154mm;
    box-shadow: none;
  }

  .qr-page-small .qr-fourup-print {
    display: grid;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 9mm 12mm;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4mm 8mm;
    page-break-inside: avoid;
  }

  .qr-page-small .qr-fourup-item {
    border: 0;
    border-radius: 0;
    padding: 2mm 4mm 5mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5mm;
    box-shadow: none;
  }

  .qr-page-small .qr-fourup-title {
    color: var(--dark-2);
    font-size: 12pt;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
  }

  .qr-page-small .qr-fourup-box {
    width: 70mm;
    height: 70mm;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .qr-page-small .qr-fourup-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

}
