:root {
  color-scheme: dark;
  --page: #020812;
  --page-deep: #01050c;
  --surface: rgba(7, 22, 38, 0.82);
  --surface-strong: rgba(8, 27, 46, 0.94);
  --surface-soft: rgba(9, 29, 49, 0.58);
  --line: rgba(123, 176, 209, 0.18);
  --line-strong: rgba(70, 179, 230, 0.42);
  --text: #f2f6fa;
  --muted: #9eb0bf;
  --muted-strong: #c7d3dc;
  --accent: #0faee8;
  --accent-strong: #39c6f5;
  --accent-dark: #0877aa;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: rgba(15, 174, 232, 0.78);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #020812 0%, #04111f 48%, #020913 100%);
}

.page-shell::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(77, 153, 196, 0.025) 50%,
      transparent
    );
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

.ambient-one {
  top: 55px;
  left: 50%;
  width: min(920px, 92vw);
  height: 560px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle,
      rgba(0, 119, 181, 0.15) 0%,
      rgba(0, 70, 114, 0.06) 42%,
      transparent 72%
    );
}

.ambient-two {
  right: -260px;
  bottom: 480px;
  width: 620px;
  height: 620px;
  background:
    radial-gradient(
      circle,
      rgba(0, 130, 190, 0.08),
      transparent 68%
    );
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(92, 161, 199, 0.13);
  background:
    linear-gradient(
      180deg,
      rgba(2, 8, 18, 0.98),
      rgba(3, 13, 25, 0.94)
    );
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1400px, calc(100% - 72px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  background: transparent;
}

.brand {
  width: 286px;
}

.footer-brand {
  width: 208px;
}

.brand img,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 7px rgba(0, 152, 230, 0.10));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  color: #c9d4dc;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.site-nav a {
  position: relative;
  padding: 42px 0 37px;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
}

.site-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: var(--accent);
}

.hero {
  position: relative;
  padding: 112px 0 104px;
  border-bottom: 1px solid rgba(106, 165, 199, 0.10);
}

.hero::after {
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  width: min(680px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  content: "";
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(39, 183, 235, 0.55),
      transparent
    );
}

.hero-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.hero-kicker,
.section-eyebrow {
  color: #5bc9ef;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(15, 174, 232, 0.08);
}

.hero h1 {
  margin: 0;
  color: #f4f7fa;
  font-size: clamp(3.15rem, 6.2vw, 6.35rem);
  font-weight: 490;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span {
  color: #1ab4e9;
}

.hero-lead {
  max-width: 760px;
  margin: 32px auto 0;
  color: #aebdc8;
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  line-height: 1.74;
}

.hero-details {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 19px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(119, 180, 213, 0.17);
  border-radius: 12px;
  background: rgba(5, 18, 31, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.detail-label {
  color: #7990a1;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-item strong {
  color: #eff5f8;
  font-size: 0.95rem;
  font-weight: 530;
}

.detail-separator {
  width: 1px;
  height: 30px;
  background: rgba(124, 178, 207, 0.18);
}

.research-section,
.trust-section {
  width: min(1360px, calc(100% - 72px));
  margin: 0 auto;
}

.research-section {
  padding: 96px 0 86px;
}

.section-heading {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 64px;
}

.section-heading h2,
.trust-copy h2 {
  margin: 13px 0 0;
  color: #f1f5f8;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 490;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-heading > p {
  margin: 0;
  color: #8ea2b2;
  font-size: 1rem;
  line-height: 1.65;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.industry-card {
  min-height: 300px;
  padding: 29px 28px 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107, 169, 202, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(8, 27, 45, 0.76),
      rgba(5, 18, 31, 0.86)
    );
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);
  transition:
    transform 190ms ease,
    border-color 190ms ease,
    background 190ms ease;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 177, 225, 0.44);
  background:
    linear-gradient(
      180deg,
      rgba(10, 35, 57, 0.88),
      rgba(6, 23, 39, 0.94)
    );
}

.industry-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 175, 220, 0.22);
  border-radius: 12px;
  background: rgba(10, 42, 64, 0.46);
  color: #73d4f5;
}

.industry-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.industry-copy {
  margin-top: 26px;
}

.industry-card h3 {
  margin: 0;
  color: #f0f5f8;
  font-size: 1.42rem;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.industry-card p {
  min-height: 48px;
  margin: 11px 0 0;
  color: #8ea1b0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.industry-action {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(42, 165, 216, 0.42);
  border-radius: 8px;
  background: rgba(5, 85, 124, 0.30);
  color: #e9f7fc;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 520;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.industry-action:hover {
  border-color: rgba(62, 193, 241, 0.74);
  background: rgba(8, 119, 168, 0.46);
}

.industry-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-section {
  padding: 0 0 96px;
}

.trust-panel {
  min-height: 300px;
  padding: 55px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
  overflow: hidden;
  border: 1px solid rgba(98, 164, 199, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(7, 26, 44, 0.94),
      rgba(4, 17, 30, 0.92)
    );
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.20);
}

.trust-copy {
  max-width: 760px;
}

.trust-copy p {
  max-width: 720px;
  margin: 23px 0 0;
  color: #94a7b6;
  font-size: 1rem;
  line-height: 1.72;
}

.trust-mark {
  min-width: 190px;
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-left: 1px solid rgba(104, 171, 204, 0.18);
}

.trust-mark span {
  color: #62839a;
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.18em;
}

.trust-mark strong {
  margin-top: 5px;
  color: #29b8ec;
  font-size: 3.55rem;
  font-weight: 480;
  letter-spacing: -0.06em;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid rgba(103, 164, 197, 0.14);
  background: rgba(1, 7, 14, 0.82);
}

.footer-inner {
  width: min(1400px, calc(100% - 72px));
  min-height: 146px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  color: #738897;
  font-size: 0.82rem;
}

.footer-inner > p {
  margin: 0;
  text-align: center;
}

.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links span + span {
  padding-left: 28px;
  border-left: 1px solid rgba(111, 168, 199, 0.18);
}

@media (max-width: 1080px) {
  .header-inner,
  .footer-inner,
  .research-section,
  .trust-section {
    width: min(100% - 44px, 1360px);
  }

  .brand {
    width: 242px;
  }

  .site-nav {
    gap: 27px;
    font-size: 0.86rem;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 20px 0 15px;
    flex-direction: column;
    gap: 8px;
  }

  .brand {
    width: 220px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 21px;
    overflow-x: auto;
    font-size: 0.78rem;
  }

  .site-nav a {
    padding: 12px 0 16px;
    white-space: nowrap;
  }

  .site-nav a.active::after {
    bottom: 7px;
  }

  .hero {
    padding: 82px 0 78px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-details {
    max-width: 410px;
    padding: 18px 20px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-separator {
    width: 100%;
    height: 1px;
  }

  .research-section {
    padding: 72px 0 66px;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    min-height: 280px;
  }

  .trust-panel {
    padding: 42px 30px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .trust-mark {
    min-width: 0;
    padding: 28px 0 0;
    align-items: flex-start;
    border-top: 1px solid rgba(104, 171, 204, 0.18);
    border-left: 0;
  }

  .footer-inner {
    padding: 34px 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-self: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  .footer-links span + span {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .footer-inner,
  .research-section,
  .trust-section {
    width: min(100% - 28px, 1360px);
  }

  .brand {
    width: 202px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-inner {
    width: min(100% - 28px, 1040px);
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .section-heading h2,
  .trust-copy h2 {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .industry-card,
  .industry-action,
  .site-nav a {
    transition: none;
  }
}


/* HYVISION Research Platform v3 — routes, forms and CEO panel */
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 570;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { border: 1px solid #1c9ed5; background: #087eaf; color: #fff; }
.button-primary:hover { background: #0a91c8; }
.button-secondary { border: 1px solid rgba(112,175,207,.28); background: rgba(7,24,40,.62); color: #dce7ed; }
.button-secondary:hover { border-color: rgba(66,184,230,.58); background: rgba(10,38,60,.72); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.subpage-hero, .survey-header {
  padding: 84px 0 66px;
  border-bottom: 1px solid rgba(106,165,199,.10);
}
.content-narrow {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}
.subpage-hero h1, .survey-header h1, .legal-document h1, .success-panel h1 {
  margin: 16px 0 0;
  color: #f4f7fa;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 490;
  letter-spacing: -.055em;
  line-height: .98;
}
.subpage-hero p, .survey-header p {
  max-width: 720px;
  margin: 23px 0 0;
  color: #9eb0bf;
  font-size: 1.08rem;
  line-height: 1.7;
}
.catalog-section { padding-top: 66px; }
.back-link { display: inline-block; margin-bottom: 32px; color: #9db1bf; font-size: .9rem; }
.privacy-notice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(239,178,78,.27);
  border-radius: 10px;
  background: rgba(94,63,13,.18);
  color: #e8cf9f;
  line-height: 1.55;
}

.survey-container {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 100px;
}
.survey-form {
  padding: 38px;
  border: 1px solid rgba(106,169,203,.18);
  border-radius: 16px;
  background: rgba(5,18,31,.82);
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
}
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.survey-progress {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(110,168,199,.14); }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: 99px; background: #0faee8; transition: width .2s ease; }
.progress-label { color: #7f94a4; font-size: .8rem; }
.survey-step { display: none; }
.survey-step.active { display: block; }
.step-header { margin-bottom: 34px; }
.step-header > span { color: #5bc9ef; font-size: .7rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.step-header h2 { margin: 10px 0 0; font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 500; letter-spacing: -.035em; }
.step-header p { max-width: 650px; margin: 12px 0 0; color: #91a4b3; line-height: 1.6; }
.question-list { display: grid; gap: 27px; }
.question-block { margin: 0; padding: 0; border: 0; }
.question-block legend { margin-bottom: 14px; color: #e8eef2; font-size: 1rem; font-weight: 540; line-height: 1.45; }
.question-block legend span { color: #39c6f5; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.choice-item { position: relative; cursor: pointer; }
.choice-item input { position: absolute; opacity: 0; pointer-events: none; }
.choice-item span {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(111,170,202,.18);
  border-radius: 9px;
  background: rgba(8,27,45,.58);
  color: #b9c8d2;
}
.choice-item input:checked + span { border-color: rgba(47,184,232,.68); background: rgba(8,113,157,.30); color: #f4fbfe; }
.scale-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.scale-item { position: relative; cursor: pointer; }
.scale-item input { position: absolute; opacity: 0; }
.scale-item span {
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111,170,202,.18);
  border-radius: 9px;
  background: rgba(8,27,45,.58);
}
.scale-item input:checked + span { border-color: #0faee8; background: rgba(8,113,157,.34); }
.scale-labels { margin-top: 8px; display: flex; justify-content: space-between; color: #718898; font-size: .75rem; }
.question-block textarea, .question-block input[type="text"], .contact-grid input,
.admin-login-panel input, .admin-filters select {
  width: 100%;
  border: 1px solid rgba(111,170,202,.22);
  border-radius: 9px;
  background: rgba(3,14,25,.76);
  color: #eef4f7;
}
.question-block textarea { padding: 15px; resize: vertical; line-height: 1.55; }
.question-block input[type="text"], .contact-grid input, .admin-login-panel input, .admin-filters select {
  min-height: 48px;
  padding: 0 14px;
}
.field-error { margin: 8px 0 0; color: #f29aa0; font-size: .82rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.contact-grid label, .admin-login-panel label, .admin-filters label { display: grid; gap: 8px; color: #b9c8d2; font-size: .88rem; }
.consent-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(111,170,202,.18);
  border-radius: 10px;
  background: rgba(6,23,39,.58);
}
.consent-panel.required { border-color: rgba(58,177,225,.42); }
.consent-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; color: #d5e0e7; line-height: 1.55; }
.consent-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #0faee8; }
.consent-panel > p { margin: 12px 0 0 30px; color: #8298a8; font-size: .82rem; line-height: 1.55; }
.consent-panel a, .legal-document a { color: #52c8ef; text-decoration: underline; text-underline-offset: 3px; }
.survey-navigation { margin-top: 38px; display: flex; justify-content: space-between; gap: 12px; }

.center-page { min-height: calc(100vh - 250px); padding: 90px 20px; display: grid; place-items: center; }
.success-panel { width: min(700px,100%); text-align: center; }
.success-mark {
  width: 62px; height: 62px; margin: 0 auto 24px; display: grid; place-items: center;
  border: 1px solid rgba(59,188,233,.4); border-radius: 50%; background: rgba(8,96,135,.25);
  color: #65d5f7; font-size: 1.6rem;
}
.success-panel > p { margin: 24px auto 0; color: #9eb0bf; font-size: 1.08rem; line-height: 1.7; }
.reference-box { margin: 30px auto 0; padding: 16px; display: grid; gap: 7px; border: 1px solid rgba(111,170,202,.18); border-radius: 10px; background: rgba(5,18,31,.7); }
.reference-box span { color: #728899; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }

.legal-page { width: min(960px,calc(100% - 40px)); margin: 0 auto; padding: 90px 0 110px; }
.legal-document { color: #b6c4ce; line-height: 1.75; }
.legal-document header { padding-bottom: 42px; border-bottom: 1px solid rgba(106,169,203,.16); }
.legal-document header > p { max-width: 720px; margin: 22px 0 0; font-size: 1.05rem; }
.language-link { display: inline-block; margin-top: 20px; color: #58c9ef; }
.legal-document section { padding: 35px 0; border-bottom: 1px solid rgba(106,169,203,.10); }
.legal-document h2 { margin: 0 0 14px; color: #edf3f6; font-size: 1.35rem; font-weight: 540; }
.legal-document blockquote { margin: 20px 0; padding: 18px 20px; border-left: 3px solid #0faee8; background: rgba(8,42,63,.35); color: #d3e1e8; }

/* CEO panel */
.admin-body { background: #020812; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0,1fr); }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; padding: 28px 22px; display: flex; flex-direction: column;
  border-right: 1px solid rgba(106,169,203,.16); background: #030b16;
}
.admin-brand { width: 190px; }
.admin-brand img, .admin-login-panel > img { display: block; width: 100%; height: auto; }
.admin-badge { margin-top: 20px; color: #5bc9ef; font-size: .65rem; font-weight: 700; letter-spacing: .15em; }
.admin-sidebar nav { margin-top: 34px; display: grid; gap: 8px; }
.admin-sidebar nav a, .admin-sidebar form button {
  width: 100%; padding: 12px 13px; border: 0; border-radius: 8px;
  background: transparent; color: #9fb0bc; text-align: left; cursor: pointer;
}
.admin-sidebar nav a:hover, .admin-sidebar form button:hover { background: rgba(13,50,75,.44); color: #fff; }
.admin-sidebar form { margin-top: auto; }
.admin-main { min-width: 0; padding: 42px; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.admin-page-header span { color: #5bc9ef; font-size: .7rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.admin-page-header h1 { margin: 8px 0 0; font-size: clamp(2rem,4vw,3.5rem); font-weight: 500; letter-spacing: -.045em; }
.metric-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.metric-card, .admin-panel { border: 1px solid rgba(106,169,203,.17); border-radius: 13px; background: rgba(6,22,38,.8); }
.metric-card { padding: 23px; display: grid; gap: 10px; }
.metric-card span { color: #7f95a5; font-size: .8rem; }
.metric-card strong { font-size: 2.2rem; font-weight: 520; }
.admin-grid { margin-top: 22px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.admin-panel { padding: 24px; }
.admin-panel > header { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-panel h2 { margin: 0; font-size: 1.1rem; font-weight: 550; }
.admin-panel header a, .admin-table a { color: #57c8ee; }
.category-list, .response-list { display: grid; }
.category-list a, .response-list a { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(106,169,203,.10); }
.category-list strong { color: #57c8ee; }
.response-list a > div { display: grid; gap: 4px; }
.response-list a span { color: #7f94a4; font-size: .78rem; }
.contact-status { padding: 5px 8px; border-radius: 99px; background: rgba(112,132,145,.16); color: #91a4b1 !important; font-size: .68rem !important; }
.contact-status.yes { background: rgba(15,174,232,.14); color: #62d0f3 !important; }
.empty-state { color: #758b9a; }
.admin-filters { margin-top: 30px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; border: 1px solid rgba(106,169,203,.16); border-radius: 12px; background: rgba(6,22,38,.68); }
.admin-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid rgba(106,169,203,.16); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; background: rgba(4,16,28,.7); }
.admin-table th, .admin-table td { padding: 15px 17px; border-bottom: 1px solid rgba(106,169,203,.10); text-align: left; white-space: nowrap; }
.admin-table th { color: #7890a0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { color: #b8c6cf; font-size: .86rem; }
.response-meta { margin: 30px 0 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.response-meta > div { padding: 18px; display: grid; gap: 8px; border: 1px solid rgba(106,169,203,.16); border-radius: 11px; background: rgba(6,22,38,.7); }
.response-meta span, .contact-details dt, .answer-list dt { color: #7890a0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-panel { margin-bottom: 18px; }
.contact-details, .answer-list { margin: 0; display: grid; }
.contact-details > div, .answer-list > div { padding: 16px 0; display: grid; grid-template-columns: minmax(180px,.38fr) 1fr; gap: 22px; border-top: 1px solid rgba(106,169,203,.10); }
.contact-details dd, .answer-list dd { margin: 0; color: #d3dee5; line-height: 1.55; white-space: pre-wrap; }
.danger-zone { margin-top: 18px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border: 1px solid rgba(239,111,119,.24); border-radius: 12px; background: rgba(84,19,25,.15); }
.danger-zone button { padding: 11px 15px; border: 1px solid rgba(239,111,119,.48); border-radius: 8px; background: rgba(159,44,54,.35); color: #ffdfe1; cursor: pointer; }

.admin-login-body { min-height: 100vh; background: radial-gradient(circle at 50% 20%,rgba(0,112,181,.12),transparent 35%),#020812; }
.admin-login-shell { min-height: 100vh; padding: 30px; display: grid; place-items: center; }
.admin-login-panel { width: min(440px,100%); padding: 38px; border: 1px solid rgba(106,169,203,.18); border-radius: 16px; background: rgba(4,16,28,.92); }
.admin-login-panel > img { width: 250px; margin-bottom: 22px; }
.admin-login-panel h1 { margin: 12px 0 0; font-size: 2.5rem; font-weight: 500; letter-spacing: -.045em; }
.admin-login-panel > p { margin: 12px 0 26px; color: #8fa2b1; line-height: 1.6; }
.admin-login-panel form { display: grid; gap: 16px; }
.admin-login-panel form .button { width: 100%; }
.admin-login-panel > a { display: inline-block; margin-top: 24px; color: #8095a4; font-size: .85rem; }
.login-error { margin-bottom: 18px; padding: 12px; border: 1px solid rgba(239,111,119,.3); border-radius: 8px; background: rgba(84,19,25,.2); color: #f0a8ad; }
.admin-link { opacity: .5; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2,1fr); }
  .admin-sidebar form { margin-top: 18px; }
  .admin-main { padding: 28px 20px 50px; }
  .metric-grid, .response-meta { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .choice-grid, .contact-grid { grid-template-columns: 1fr; }
  .survey-form { padding: 25px 20px; }
  .contact-details > div, .answer-list > div { grid-template-columns: 1fr; gap: 8px; }
  .survey-navigation { flex-direction: column-reverse; }
  .survey-navigation .button { width: 100%; }
  .danger-zone { align-items: stretch; flex-direction: column; }
}


/* HYVISION SURVEY ERROR FLOW v3.1 */
.form-error-summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(239, 111, 119, 0.42);
  border-radius: 10px;
  background: rgba(91, 24, 31, 0.22);
  color: #f3c9cc;
}

.form-error-summary strong {
  display: block;
  color: #ffe8ea;
  font-weight: 620;
}

.form-error-summary p {
  margin: 7px 0 0;
  color: #cdaeb2;
  font-size: 0.9rem;
  line-height: 1.55;
}

.question-block.has-error textarea,
.question-block.has-error input[type="text"] {
  border-color: rgba(239, 111, 119, 0.68);
}
