:root {
  --lat-blue: #006b85;
  --lat-blue-dark: #00475d;
  --lat-turquoise: #00a4a6;
  --lat-orange: #f45a25;
  --ink: #17333d;
  --muted: #65777d;
  --surface: #f2f7f7;
  --white: #ffffff;
  --error: #b42318;
  --success: #12805c;
  --shadow-soft: 0 14px 45px rgba(25, 68, 78, .10);
  --shadow-card: 0 8px 24px rgba(25, 68, 78, .09);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 164, 166, .15), transparent 24rem),
    radial-gradient(circle at 92% 86%, rgba(0, 107, 133, .12), transparent 28rem),
    linear-gradient(145deg, #f8fbfb 0%, #edf5f5 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  width: 210px;
  height: 210px;
  top: -115px;
  right: 9%;
  background: linear-gradient(145deg, rgba(244, 90, 37, .23), rgba(244, 90, 37, .03));
}

body::after {
  width: 360px;
  height: 360px;
  left: -245px;
  bottom: 4%;
  background: linear-gradient(145deg, rgba(0, 164, 166, .22), rgba(0, 107, 133, .03));
}

button, input, textarea { font: inherit; }

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

.page-shell {
  min-height: 100vh;
  padding: 28px 20px;
  display: grid;
  place-items: start center;
}

.survey-card {
  width: min(1040px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.survey-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, .88);
}

.company-logo {
  display: block;
  width: 100%;
  max-width: 145px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.eyebrow,
.step-label {
  margin: 0 0 5px;
  color: var(--lat-turquoise);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-copy h1 {
  margin: 0;
  color: var(--lat-blue-dark);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
}

.document-code {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.identity-step {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  padding: clamp(64px, 10vh, 104px) 28px 72px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 164, 166, .09), transparent 22rem),
    linear-gradient(180deg, #fbfdfd, #f5f9f9);
}


.identity-step > *:not(.npt-illustration) {
  position: relative;
  z-index: 1;
}

.npt-illustration {
  position: absolute;
  z-index: 0;
  width: 205px;
  height: auto;
  left: 30px;
  top: 150px;
  opacity: .24;
  transform: rotate(-4deg);
  pointer-events: none;
}

.npt-line {
  fill: none;
  stroke: var(--lat-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.npt-line-soft { stroke: var(--lat-turquoise); }
.npt-accent { stroke: var(--lat-orange); stroke-width: 5; }
.npt-dot { fill: var(--lat-orange); }

.identity-copy {
  width: min(650px, 100%);
  margin: 0 auto 34px;
}

.identity-copy h2,
.survey-intro h2 {
  margin: 0;
  color: var(--lat-blue-dark);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.identity-copy > p:last-child {
  max-width: 520px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.role-options {
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.role-option {
  min-height: 52px;
  padding: 13px 23px;
  color: var(--lat-blue-dark);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(24, 65, 75, .11);
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.role-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(24, 65, 75, .15);
}

.role-option.selected {
  color: var(--white);
  background: linear-gradient(135deg, var(--lat-blue), var(--lat-turquoise));
  box-shadow: 0 10px 25px rgba(0, 125, 143, .28);
}

.role-option:focus-visible,
.primary-button:focus-visible,
.text-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.rating-choice input:focus-visible + .rating-box,
.nps-choice input:focus-visible + span {
  outline: 3px solid rgba(244, 90, 37, .45);
  outline-offset: 3px;
}

.centered-error { text-align: center; }

.institution-panel {
  width: min(610px, 100%);
  margin: 34px auto 0;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, .94);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .28s ease, transform .28s ease;
}

.institution-panel.revealed {
  opacity: 1;
  transform: translateY(0);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label,
.comments-section label {
  font-size: 14px;
  font-weight: 750;
}

input[type="text"],
textarea {
  width: 100%;
  color: var(--ink);
  background: #f2f7f7;
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(24, 65, 75, .06);
  outline: none;
}

input[type="text"] {
  height: 50px;
  padding: 10px 14px;
}

textarea {
  min-height: 94px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  background: #edf8f8;
  box-shadow: inset 0 0 0 2px rgba(0, 164, 166, .25);
}

.invalid { box-shadow: inset 0 0 0 2px rgba(180, 35, 24, .45) !important; }

.primary-button {
  min-width: 155px;
  height: 50px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--lat-blue), var(--lat-turquoise));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(0, 107, 133, .24);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0, 107, 133, .30);
}

.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }

.survey-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 42px 36px 24px;
}

.survey-intro h2 { font-size: clamp(28px, 4vw, 42px); }

.text-button {
  padding: 9px 0;
  color: var(--lat-blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.evaluation-section { padding: 0 36px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.section-heading h2 {
  margin: 0;
  color: var(--lat-blue-dark);
  font-size: 16px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  text-align: right;
}

.rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 9px;
  table-layout: fixed;
  font-size: 12px;
}

.rating-table th,
.rating-table td {
  height: 43px;
  padding: 5px 6px;
  border: 0;
}

.rating-table thead th {
  height: 25px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.rating-table thead .aspect-column { width: auto; text-align: left; }
.rating-table thead th:not(.aspect-column) { width: 52px; }

.rating-table tbody td { background: #f5f9f9; }

.rating-table tbody td:first-of-type {
  padding-left: 17px;
  border-radius: 13px 0 0 13px;
  font-weight: 650;
}

.rating-table tbody td:last-of-type { border-radius: 0 13px 13px 0; }
.rating-table tbody td.rating-cell { padding: 0; text-align: center; }

.rating-choice {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 41px;
  cursor: pointer;
}

.rating-choice input,
.nps-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-box {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(65, 97, 105, .34);
  font-size: 0;
}

.rating-choice input:checked + .rating-box {
  background: var(--lat-turquoise);
  box-shadow: inset 0 0 0 5px var(--white), 0 0 0 2px var(--lat-turquoise);
}

.nps-section,
.comments-section {
  margin: 22px 36px 0;
  padding: 24px;
  background: linear-gradient(145deg, #f7fbfb, #f0f7f7);
  border-radius: 19px;
  box-shadow: 0 5px 18px rgba(25, 68, 78, .07);
}

.nps-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.nps-copy h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.nps-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.nps-options {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
}

.nps-choice span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--lat-blue-dark);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(25, 68, 78, .11);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.nps-choice input:checked + span {
  color: var(--white);
  background: linear-gradient(135deg, var(--lat-blue), var(--lat-turquoise));
  box-shadow: 0 6px 14px rgba(0, 107, 133, .25);
}

.comments-section {
  display: grid;
  grid-template-columns: 215px 1fr;
  align-items: center;
  gap: 18px;
}

.comments-section label span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.form-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 36px 36px;
}

.form-status {
  color: var(--error);
  font-size: 12px;
  text-align: right;
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--error);
  font-size: 11px;
  line-height: 1.35;
}

.table-error { padding: 4px 0 0; }

.success-message {
  min-height: 520px;
  display: grid;
  place-content: center;
  padding: 70px 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 164, 166, .10), transparent 19rem);
}

.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--success), var(--lat-turquoise));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(18, 128, 92, .24);
  font-size: 29px;
}

.success-message h2 {
  margin: 0 auto 9px;
  color: var(--lat-blue-dark);
  font-size: 30px;
}

.success-message p { margin: 0; color: var(--muted); font-size: 14px; }

.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;
}

[hidden] { display: none !important; }

@media (max-width: 780px) {
  body { background: var(--surface); }
  body::before, body::after { display: none; }
  .page-shell { min-height: 100dvh; padding: 0; display: block; }
  .survey-card { min-height: 100dvh; border-radius: 0; box-shadow: none; }
  .survey-header { grid-template-columns: 88px 1fr; gap: 12px; padding: 13px 16px; }
  .company-logo { max-width: 88px; max-height: 43px; }
  .eyebrow { display: none; }
  .header-copy h1 { font-size: 17px; line-height: 1.2; }
  .document-code { grid-column: 1 / -1; font-size: 8px; text-align: right; }
  .identity-step { min-height: calc(100dvh - 82px); padding: 13vh 18px 45px; }
  .npt-illustration {
    width: 150px;
    left: auto;
    right: -32px;
    top: 88px;
    opacity: .15;
    transform: rotate(6deg);
  }
  .identity-copy { margin-bottom: 28px; }
  .identity-copy h2 { font-size: clamp(36px, 11vw, 49px); }
  .identity-copy > p:last-child { margin-top: 13px; font-size: 14px; }
  .role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .role-option { min-width: 0; min-height: 54px; padding: 11px 10px; font-size: 13px; }
  .role-option-wide { grid-column: 1 / -1; }
  .institution-panel { grid-template-columns: 1fr; margin-top: 26px; padding: 20px; border-radius: 18px; }
  .primary-button { width: 100%; }
  .survey-intro { align-items: start; padding: 30px 16px 20px; }
  .survey-intro h2 { font-size: 30px; }
  .text-button { max-width: 110px; padding-top: 1px; text-align: right; }
  .evaluation-section { padding: 0 12px; }
  .section-heading { display: block; padding: 0 4px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p { margin-top: 7px; text-align: left; line-height: 1.55; }
  .table-wrap { overflow: visible; }
  .rating-table, .rating-table tbody { display: block; width: 100%; }
  .rating-table thead { display: none; }
  .rating-table { font-size: 14px; }
  .rating-table tbody tr {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 11px 0;
    padding: 16px 13px 13px;
    background: var(--white);
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(25, 68, 78, .08);
  }
  .rating-table tbody td { display: block; height: auto; background: transparent; }
  .rating-table tbody td:first-of-type {
    grid-column: 1 / -1;
    padding: 0 2px 10px;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.4;
  }
  .rating-table tbody td:last-of-type { border-radius: 0; }
  .rating-table tbody td.rating-cell { min-width: 0; }
  .rating-choice { height: 46px; }
  .rating-box {
    width: 100%;
    height: 44px;
    color: var(--lat-blue-dark);
    background: #f3f8f8;
    border-radius: 11px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
  }
  .rating-box::after { content: attr(data-label); }
  .rating-choice input:checked + .rating-box {
    color: var(--white);
    background: linear-gradient(135deg, var(--lat-blue), var(--lat-turquoise));
    box-shadow: 0 5px 12px rgba(0, 107, 133, .20);
  }
  .nps-section, .comments-section { margin: 13px 12px 0; padding: 18px 15px; border-radius: 17px; }
  .nps-section { grid-template-columns: 1fr; gap: 15px; }
  .nps-copy h2 { font-size: 16px; }
  .nps-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .nps-choice span { width: 100%; height: 45px; border-radius: 11px; }
  .comments-section { grid-template-columns: 1fr; gap: 10px; }
  .comments-section label span { display: inline; }
  textarea { min-height: 105px; font-size: 16px; }
  .form-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -7px 20px rgba(25, 68, 78, .08);
    backdrop-filter: blur(10px);
  }
  .form-status { text-align: left; }
  .success-message { min-height: calc(100dvh - 80px); padding: 22vh 24px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

