:root {
  --hi-bg: #ffffff;
  --hi-paper: #ffffff;
  --hi-ink: #111111;
  --hi-muted: #555555;
  --hi-green: #139a64;
  --hi-green-deep: #0e7a4e;
  --hi-green-soft: #e8f6ef;
  --hi-line: rgba(17, 17, 17, 0.12);
  --hi-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --hi-radius: 0.35rem;
  --hi-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hi-footer: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--hi-ink);
  background: var(--hi-bg);
  font-family: var(--hi-font);
  font-weight: 400;
  line-height: 1.5;
}

.hi-container {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 0.5rem;
  top: -5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.35rem;
  color: #fff;
  background: var(--hi-green);
}

.skip-link:focus {
  top: 0.5rem;
}

.hi-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--hi-line);
  background: #fff;
}

.hi-topbar-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hi-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hi-brand-logo {
  width: auto;
  height: 2.85rem;
  display: block;
  object-fit: contain;
}

.hi-lang {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.hi-lang select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2rem;
  max-width: 9.5rem;
  padding: 0.2rem 1.55rem 0.2rem 0.55rem;
  border: 1px solid var(--hi-line);
  border-radius: 0.35rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555555' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.2 0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 0.65rem;
  color: var(--hi-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.hi-lang select:hover,
.hi-lang select:focus {
  border-color: var(--hi-green);
  outline: none;
}

.hi-lang select:focus-visible {
  outline: 2px solid var(--hi-green);
  outline-offset: 1px;
}

.hi-main {
  flex: 1 0 auto;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hi-hero {
  max-width: 48rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.hi-hero-band {
  width: min(100% - 2rem, 58rem);
  margin: 0.85rem auto 0;
  min-height: clamp(8rem, 22vw, 14rem);
  border-radius: var(--hi-radius);
  background:
    center / cover no-repeat url("../images/hero.jpg"),
    var(--hi-green);
}

.hi-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--hi-green);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hi-kicker {
  margin: 0 0 0.35rem;
  color: var(--hi-ink);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hi-hero h1,
.hi-thank-you h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hi-ink);
}

.hi-lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--hi-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
}

.hi-required-note {
  margin: 1rem 0 0;
  color: var(--hi-muted);
  font-size: 0.83rem;
}

.hi-required,
.hi-required-note span[aria-hidden="true"] {
  color: var(--hi-green);
}

.hi-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 auto 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #c9e8d9;
  border-radius: var(--hi-radius);
  background: var(--hi-green-soft);
  color: var(--hi-green-deep);
  font-weight: 500;
}

.hi-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hi-results-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 500;
}

.hi-logout {
  color: var(--hi-green);
  font-weight: 500;
  text-decoration: none;
}

.hi-logout:hover {
  text-decoration: underline;
}

.hi-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hi-stat-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--hi-green);
}

.hi-dist {
  display: grid;
  grid-template-columns: auto 1fr 2.2rem;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.28rem;
  color: var(--hi-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.hi-dist-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hi-green-soft);
}

.hi-dist-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hi-green);
}

.hi-pct-0 { width: 0%; }
.hi-pct-5 { width: 5%; }
.hi-pct-10 { width: 10%; }
.hi-pct-15 { width: 15%; }
.hi-pct-20 { width: 20%; }
.hi-pct-25 { width: 25%; }
.hi-pct-30 { width: 30%; }
.hi-pct-35 { width: 35%; }
.hi-pct-40 { width: 40%; }
.hi-pct-45 { width: 45%; }
.hi-pct-50 { width: 50%; }
.hi-pct-55 { width: 55%; }
.hi-pct-60 { width: 60%; }
.hi-pct-65 { width: 65%; }
.hi-pct-70 { width: 70%; }
.hi-pct-75 { width: 75%; }
.hi-pct-80 { width: 80%; }
.hi-pct-85 { width: 85%; }
.hi-pct-90 { width: 90%; }
.hi-pct-95 { width: 95%; }
.hi-pct-100 { width: 100%; }

.hi-answer h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.hi-answer p {
  margin: 0.35rem 0 0;
}

.hi-meta {
  color: var(--hi-muted);
  font-size: 0.84rem;
}

.hi-survey {
  display: grid;
  gap: 1rem;
}

.hi-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.hi-card,
.hi-thank-you {
  padding: clamp(1.15rem, 4vw, 2rem);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius);
  background: var(--hi-paper);
  box-shadow: var(--hi-shadow);
}

.hi-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.hi-section-number {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hi-green);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.hi-section-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hi-section-heading p {
  margin: 0.35rem 0 0;
  color: var(--hi-muted);
  font-weight: 300;
  line-height: 1.45;
}

.hi-rating-question,
.hi-choice-question {
  min-width: 0;
  margin: 0;
  padding: 1.2rem 0;
  border: 0;
  border-top: 1px solid var(--hi-line);
}

.hi-rating-question:last-child {
  padding-bottom: 0;
}

.hi-rating-question legend,
.hi-choice-question legend {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.02rem;
  font-weight: 500;
}

.hi-rating-question legend {
  margin-bottom: 0.4rem;
}

.hi-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hi-rating-scale {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.28rem;
  width: fit-content;
}

.hi-rating-scale input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hi-rating-scale label {
  cursor: pointer;
  line-height: 0;
}

.hi-star {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
  overflow: visible;
  fill: #fff;
  stroke: #1c1c1c;
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.hi-rating-scale input:checked ~ label .hi-star {
  fill: var(--hi-green);
  stroke: var(--hi-green-deep);
}

.hi-rating-scale:hover input ~ label .hi-star {
  fill: #fff;
  stroke: #1c1c1c;
}

.hi-rating-scale:hover input ~ label:hover .hi-star,
.hi-rating-scale:hover input ~ label:hover ~ label .hi-star {
  fill: var(--hi-green);
  stroke: var(--hi-green-deep);
}

.hi-choice-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hi-rating-scale input:focus-visible + label .hi-star,
.hi-choice-options input:focus-visible + span {
  outline: 3px solid rgba(19, 154, 100, 0.35);
  outline-offset: 2px;
}

.hi-comment-label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  color: var(--hi-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius);
  background: #fff;
  color: var(--hi-ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 5.4rem;
  padding: 0.7rem 0.8rem;
  resize: vertical;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  border-color: var(--hi-green);
  outline: 2px solid rgba(19, 154, 100, 0.22);
  outline-offset: 1px;
}

.hi-field {
  display: block;
  margin-bottom: 1.25rem;
}

.hi-field > span {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.hi-field small {
  display: block;
  margin: -0.2rem 0 0.45rem;
  color: var(--hi-muted);
  font-size: 0.84rem;
}

.hi-choice-question {
  padding-block: 1.15rem;
}

.hi-choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hi-choice-options label {
  position: relative;
  cursor: pointer;
}

.hi-choice-options span {
  min-width: 5.5rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border: 1px solid var(--hi-line);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--hi-ink);
  font-weight: 500;
}

.hi-choice-options input:checked + span {
  border-color: var(--hi-green);
  background: var(--hi-green);
  color: #fff;
}

.hi-contact-grid {
  display: grid;
  gap: 0.1rem 1rem;
}

.hi-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding: 0.85rem;
  border-radius: var(--hi-radius);
  background: var(--hi-green-soft);
  cursor: pointer;
  line-height: 1.45;
}

.hi-consent input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  accent-color: var(--hi-green);
}

.hi-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  color: var(--hi-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hi-submit-wrap {
  padding: 0.6rem 0 0.4rem;
  text-align: center;
}

.hi-submit {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.55rem;
  border: 0;
  border-radius: var(--hi-radius);
  background: var(--hi-green);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
}

.hi-submit:hover {
  background: var(--hi-green-deep);
}

.hi-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.hi-submit-wrap p {
  margin: 0.75rem 0 0;
  color: var(--hi-muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.hi-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.hi-thank-you {
  max-width: 44rem;
  margin: clamp(1rem, 8vw, 5rem) auto;
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
  text-align: center;
}

.hi-success-icon {
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--hi-green);
  color: #fff;
  font-size: 2rem;
}

.hi-thank-you h1 {
  font-size: clamp(1.85rem, 5vw, 2.4rem);
}

.hi-thank-you p {
  max-width: 35rem;
  margin: 1rem auto 0;
  color: var(--hi-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
}

.hi-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  background: var(--hi-footer);
  color: #fff;
}

.hi-footer .hi-container {
  display: grid;
  gap: 1.5rem 2rem;
}

.hi-footer a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.hi-footer a:hover {
  text-decoration: underline;
}

.hi-footer-grid {
  display: grid;
  gap: 1.5rem 2rem;
}

.hi-footer-col {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  white-space: pre-line;
}

.hi-footer-col strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.hi-footer-bottom {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.85;
}

@media (min-width: 700px) {
  .hi-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hi-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .hi-container,
  .hi-hero-band {
    width: min(100% - 1.1rem, 58rem);
  }

  .hi-brand-logo {
    height: 2.35rem;
  }

  .hi-choice-options label {
    flex: 1 1 5.5rem;
  }

  .hi-choice-options span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
