:root {
  --paper: #f7f6f4;
  --paper-deep: #efeeeb;
  --white: #fff;
  --ink: #090a0c;
  --muted: #60646d;
  --line: #dededb;
  --navy: #34405d;
  --orange: #df6042;
  --orange-soft: #f5e5df;
  --blue-soft: #e6edf6;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.survey-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 64px);
  max-width: 1240px;
  min-height: 72px;
  margin: 24px auto 0;
  padding: 0 18px 0 26px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 36px rgba(32,37,51,.1);
  backdrop-filter: blur(18px);
}

.survey-brand,
.survey-close {
  color: var(--ink);
  text-decoration: none;
}

.survey-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.survey-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.survey-language {
  position: relative;
}

.survey-language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 64px;
  height: 40px;
  padding: 0 13px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  cursor: pointer;
}

.survey-language-trigger svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .2s ease;
}

.survey-language.is-open .survey-language-trigger svg {
  transform: rotate(180deg);
}

.survey-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 176px;
  padding: 7px;
  border: 1px solid rgba(52,64,93,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 42px rgba(32,37,51,.16);
}

.survey-language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.survey-language-menu button:hover,
.survey-language-menu button[aria-selected="true"] {
  color: var(--ink);
  background: var(--orange-soft);
}

.survey-language-menu small {
  color: var(--orange);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.survey-brand-mark {
  display: block;
  width: 27px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.survey-close {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 600;
}

.survey-close i {
  position: relative;
  width: 14px;
  height: 14px;
}

.survey-close i::before,
.survey-close i::after {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.survey-close i::after {
  transform: rotate(-45deg);
}

.survey-access {
  display: grid;
  place-items: center;
  width: calc(100% - 64px);
  max-width: 1240px;
  min-height: calc(100vh - 128px);
  margin: 24px auto 32px;
  padding: 32px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(52,64,93,.07);
}

.survey-access[hidden] {
  display: none;
}

.survey-access-card {
  display: flex;
  max-width: 690px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.survey-access-mark {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 34px;
  border-radius: 22px;
  background: var(--blue-soft);
}

.survey-access-mark::before {
  position: absolute;
  top: 29px;
  left: 23px;
  width: 28px;
  height: 25px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  content: "";
}

.survey-access-mark::after {
  position: absolute;
  top: 17px;
  left: 28px;
  width: 18px;
  height: 21px;
  border: 2px solid var(--navy);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
}

.survey-access h1 {
  margin: 0;
  font-size: clamp(40px, 5.3vw, 70px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.survey-access-card > p:not(.survey-kicker) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.survey-access a {
  margin-top: 30px;
  padding-bottom: 4px;
  color: var(--ink);
  border-bottom: 1px solid;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.survey-access-request-toggle,
.survey-access-request-submit {
  min-height: 46px;
  padding: 0 20px;
  color: var(--white);
  border: 0;
  border-radius: 11px;
  background: var(--orange);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.survey-access-request-toggle {
  margin-top: 26px;
}

.survey-access-request-form {
  display: grid;
  width: min(590px, 100%);
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: left;
}

.survey-access-request-form[hidden],
.survey-access-request-toggle[hidden] {
  display: none;
}

.survey-access-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.survey-access-request-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.survey-access-request-form input,
.survey-access-request-form textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--white);
}

.survey-access-request-form input {
  min-height: 44px;
  padding: 0 12px;
}

.survey-access-request-form textarea {
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
}

.survey-access-request-form input:focus,
.survey-access-request-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(52, 64, 93, .07);
}

.survey-access-request-submit {
  justify-self: end;
}

.survey-access-request-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.survey-access-request-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 11px;
  line-height: 1.5;
}

.survey-access-request-status.is-error {
  color: #9f3f2d;
  background: var(--orange-soft);
}

.survey-access-request-trap {
  position: absolute;
  left: -10000px;
}

.survey-main {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
  gap: 24px;
  width: calc(100% - 64px);
  max-width: 1240px;
  min-height: calc(100vh - 128px);
  margin: 24px auto 32px;
}

.survey-main[hidden],
.survey-company[hidden] {
  display: none;
}

.survey-aside,
.survey-panel {
  border-radius: 30px;
}

.survey-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 56px);
  min-height: 590px;
  padding: 52px;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.survey-aside::after {
  position: absolute;
  right: -170px;
  bottom: -190px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
  content: "";
}

.survey-kicker {
  margin: 0 0 22px;
  color: #f19a83;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.survey-aside h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.survey-aside-copy {
  max-width: 420px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  line-height: 1.7;
}

.survey-company {
  display: inline-flex;
  width: fit-content;
  margin: 24px 0 0;
  padding: 10px 13px;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .05em;
}

.survey-progress-block {
  position: relative;
  z-index: 1;
}

.survey-progress-copy,
.survey-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.survey-progress-copy {
  color: rgba(255,255,255,.72);
}

.survey-progress {
  height: 4px;
  margin: 15px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.survey-progress i {
  display: block;
  width: 6%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width .35s cubic-bezier(.22,.8,.3,1);
}

.survey-meta {
  color: rgba(255,255,255,.42);
}

.survey-panel {
  min-height: 590px;
  padding: 56px 64px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(52,64,93,.07);
}

#surveyForm {
  min-height: 100%;
}

.survey-question-head {
  margin-bottom: 34px;
}

.survey-question-index {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #b84b33;
  border-radius: 7px;
  background: var(--orange-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.survey-question-head h2 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.13;
  text-wrap: balance;
}

.survey-question-help {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.survey-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.survey-options.is-long {
  grid-template-columns: minmax(0, 1fr);
}

.survey-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 13px 46px 13px 17px;
  color: #41464f;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.survey-option:hover {
  border-color: #aeb5c0;
  background: var(--white);
  transform: translateY(-1px);
}

.survey-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-option i {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 19px;
  height: 19px;
  border: 1px solid #aeb5c0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.survey-option input[type="checkbox"] + i {
  border-radius: 5px;
}

.survey-option:has(input:checked) {
  color: var(--ink);
  border-color: var(--navy);
  background: var(--blue-soft);
}

.survey-option input:checked + i {
  border: 5px solid var(--navy);
  background: var(--white);
}

.survey-option input[type="checkbox"]:checked + i {
  border: 0;
  background: var(--navy);
}

.survey-option input[type="checkbox"]:checked + i::after {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  content: "";
  transform: rotate(45deg);
}

.survey-text,
.survey-other-input {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: 0;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.survey-text {
  min-height: 190px;
  padding: 20px;
  border-radius: 16px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.65;
}

.survey-text:focus,
.survey-other-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(52,64,93,.08);
}

.survey-text-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.survey-voice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.survey-voice-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  color: var(--white);
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}

.survey-voice-button:hover {
  transform: translateY(-1px);
}

.survey-voice-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.survey-record-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14);
}

.survey-voice-button.is-recording {
  background: var(--orange);
  animation: voice-pulse 1.2s ease-in-out infinite;
}

.survey-voice-button.is-recording .survey-record-dot {
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .2);
}

.survey-voice-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.survey-audio-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 16px;
  padding: 14px;
}

.survey-audio-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.survey-audio-wave {
  display: block;
  width: 140px;
  height: 34px;
  flex: 0 0 140px;
  border-radius: 8px;
  background: rgba(52, 64, 93, .05);
  transition: background-color .2s ease;
}

.survey-audio-answer.is-recording .survey-audio-wave {
  background: rgba(223, 96, 66, .08);
}

.survey-audio-timer {
  min-width: 42px;
  color: var(--navy);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.survey-audio-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.survey-audio-preview[hidden] {
  display: none;
}

.survey-audio-preview audio {
  width: 100%;
  height: 38px;
}

.survey-audio-ready {
  color: var(--navy);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.survey-audio-preview-actions {
  display: inline-flex;
  gap: 6px;
}

.survey-audio-preview-actions button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 9px;
}

.survey-audio-preview-actions button:hover {
  color: var(--ink);
  border-color: rgba(52,64,93,.3);
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(223,96,66,.18); }
  50% { box-shadow: 0 0 0 7px rgba(223,96,66,0); }
}

.survey-other {
  margin-top: 13px;
}

.survey-other-input {
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
}

.survey-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.survey-contact-input {
  margin-top: 12px;
}

.survey-error {
  margin: 18px 0 0;
  padding: 12px 15px;
  color: #9f3f2d;
  border-radius: 10px;
  background: var(--orange-soft);
  font-size: 12px;
}

.survey-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.survey-button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}

.survey-button:hover {
  transform: translateY(-1px);
}

.survey-button-secondary {
  color: var(--ink);
  background: var(--paper-deep);
}

.survey-button-secondary:disabled {
  visibility: hidden;
}

.survey-button-primary {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
  color: var(--white);
  background: var(--orange);
}

.survey-button-primary i {
  width: 15px;
  height: 1px;
  background: currentColor;
}

.survey-button-primary i::after {
  display: block;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  margin-left: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.survey-complete {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.survey-complete[hidden] {
  display: none;
}

.survey-complete-mark {
  position: relative;
  width: 66px;
  height: 66px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.survey-complete-mark::after {
  position: absolute;
  top: 18px;
  left: 24px;
  width: 14px;
  height: 23px;
  border-right: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  content: "";
  transform: rotate(45deg);
}

.survey-complete h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.survey-complete > p:not(.survey-kicker) {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.survey-complete a {
  margin-top: 34px;
  padding-bottom: 4px;
  color: var(--ink);
  border-bottom: 1px solid;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .survey-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-access {
    width: calc(100% - 16px);
    min-height: calc(100vh - 92px);
    margin: 8px auto;
    padding: 24px;
    border-radius: 23px;
  }

  .survey-aside {
    position: relative;
    top: auto;
    height: auto;
    min-height: 330px;
  }

  .survey-panel {
    min-height: 560px;
  }
}

@media (max-width: 600px) {
  .survey-header {
    width: calc(100% - 20px);
    min-height: 66px;
    margin-top: 10px;
    padding: 0 12px 0 16px;
    border-radius: 23px;
  }

  .survey-brand {
    max-width: 142px;
    font-size: 9px;
    line-height: 1.2;
  }

  .survey-brand-mark {
    width: 24px;
    height: 27px;
  }

  .survey-close {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .survey-header-actions {
    gap: 6px;
  }

  .survey-language-trigger {
    min-width: 58px;
  }

  .survey-close span {
    display: none;
  }

  .survey-main {
    width: calc(100% - 16px);
    min-height: 0;
    margin-top: 8px;
  }

  .survey-access-request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-access-request-form {
    padding: 15px;
  }

  .survey-access-request-submit {
    width: 100%;
  }

  .survey-aside,
  .survey-panel {
    border-radius: 23px;
  }

  .survey-aside {
    min-height: 285px;
    padding: 32px 24px;
  }

  .survey-aside h1 {
    font-size: 38px;
  }

  .survey-panel {
    min-height: 0;
    padding: 38px 22px;
  }

  .survey-question-head h2 {
    font-size: 29px;
  }

  .survey-options,
  .survey-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-voice {
    align-items: flex-start;
    flex-direction: column;
  }

  .survey-audio-answer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-audio-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .survey-audio-wave {
    width: auto;
    min-width: 120px;
    flex: 1 1 120px;
  }

  .survey-audio-preview {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-audio-preview-actions {
    width: 100%;
  }

  .survey-audio-preview-actions button {
    flex: 1;
  }

  .survey-controls {
    position: sticky;
    bottom: 0;
    margin: 35px -8px -24px;
    padding: 15px 8px 0;
    background: linear-gradient(transparent, var(--white) 22%);
  }
}

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