
/* Step 78: public staff survey */
html.nik78-public-survey-preboot,
html.nik78-public-survey-preboot body,
html.nik78-public-survey-page,
html.nik78-public-survey-page body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(186,230,253,.72), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(191,219,254,.55), transparent 25%),
    linear-gradient(135deg, #eef8ff 0%, #f8fbff 56%, #eaf5ff 100%);
}

html.nik78-public-survey-preboot body > :not(#nik78-survey-root),
html.nik78-public-survey-page body > :not(#nik78-survey-root) {
  display: none !important;
}

#nik78-survey-root,
#nik78-survey-root * {
  box-sizing: border-box;
}

#nik78-survey-root {
  min-height: 100vh;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nik78-shell {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 42px 0;
}

.nik78-hero,
.nik78-card,
.nik78-section,
.nik78-notice {
  border: 1px solid rgba(125,180,255,.28);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 80px rgba(35,93,150,.12);
  border-radius: 30px;
}

.nik78-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}

.nik78-hero span {
  display: inline-flex;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nik78-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.065em;
}

.nik78-hero p {
  margin: 14px 0 0;
  max-width: 760px;
  color: #52657c;
  line-height: 1.6;
}

.nik78-logo {
  min-width: 144px;
  border-radius: 24px;
  border: 1px solid rgba(14,165,233,.24);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(224,242,254,.72));
  color: #075985;
  padding: 18px;
  text-align: center;
  font-size: 26px;
  line-height: .9;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.nik78-logo small {
  font-size: 12px;
  letter-spacing: .35em;
}

.nik78-notice {
  margin-top: 16px;
  padding: 18px 22px;
  color: #075985;
  font-weight: 800;
}

.nik78-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.nik78-section {
  padding: 22px;
}

.nik78-section h2 {
  margin: 0 0 16px;
  color: #ef4444;
  font-size: 20px;
  letter-spacing: -.02em;
}

.nik78-field {
  border: 1px solid rgba(125,180,255,.20);
  border-radius: 22px;
  background: rgba(248,250,252,.66);
  padding: 16px;
  margin-top: 12px;
}

.nik78-field header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.nik78-field b {
  font-size: 15px;
  line-height: 1.45;
}

.nik78-field .req {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(254,226,226,.9);
  color: #dc2626;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.nik78-scale,
.nik78-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nik78-scale label,
.nik78-options label {
  min-height: 42px;
  border: 1px solid rgba(125,180,255,.28);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  font-weight: 850;
  cursor: pointer;
}

.nik78-scale label {
  width: 44px;
  padding: 0;
}

.nik78-scale label.active,
.nik78-options label.active {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  box-shadow: 0 14px 34px rgba(37,99,235,.18);
}

.nik78-scale input,
.nik78-options input {
  display: none;
}

.nik78-field textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid rgba(125,180,255,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  color: #0f172a;
  padding: 14px;
  font-size: 14px;
  line-height: 1.55;
  outline: none;
}

.nik78-field textarea:focus {
  border-color: rgba(14,165,233,.58);
  box-shadow: 0 0 0 4px rgba(186,230,253,.5);
}

.nik78-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 24px;
}

.nik78-actions button {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(37,99,235,.22);
}

.nik78-card.center {
  width: min(720px, calc(100vw - 32px));
  margin: 12vh auto;
  text-align: center;
  padding: 36px;
}

.nik78-card.center .nik78-logo {
  margin: 0 auto 20px;
}

.nik78-card h1 {
  margin: 0;
  font-size: 36px;
}

.nik78-card p {
  color: #64748b;
  line-height: 1.6;
}

.nik78-card.error {
  border-color: rgba(248,113,113,.32);
  background: rgba(255,241,242,.82);
}

.nik78-card.success {
  border-color: rgba(34,197,94,.30);
  background: rgba(240,253,244,.82);
}

@media (max-width: 720px) {
  .nik78-shell {
    width: min(100% - 16px, 1120px);
    padding: 12px 0 30px;
  }

  .nik78-hero {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
    padding: 22px;
  }

  .nik78-logo {
    width: 100%;
  }

  .nik78-section {
    padding: 16px;
    border-radius: 24px;
  }

  .nik78-field header {
    display: grid;
  }

  .nik78-actions button {
    width: 100%;
  }
}
