:root {
  color-scheme: light;
  font-family: "Inter", Arial, sans-serif;
  color: #141414;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --accent: #f15f2f;
  --accent-soft: #fff0e9;
  --muted: #999896;
  --line: #dedddb;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: clamp(24px, 6.7vh, 77px) 18px 34px;
}

.survey-card {
  display: flex;
  flex-direction: column;
  width: min(716px, 100%);
  min-height: 968px;
  margin: 0 auto;
  padding: 34px 50px 30px;
  border-radius: 16px;
  background: #fdfdfc;
  box-shadow: 0 7px 30px rgb(0 0 0 / 9%);
}

.survey-header h1 {
  margin: 0;
  font-size: clamp(29px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.survey-header h1 span {
  color: var(--accent);
}

.intro-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.025em;
}

.underlined-copy {
  position: relative;
  white-space: nowrap;
}

.underlined-copy::after {
  position: absolute;
  right: -2px;
  bottom: -3px;
  left: 0;
  height: 3px;
  border-radius: 100%;
  background: var(--accent);
  content: "";
  transform: rotate(-2deg);
}

.survey-progress {
  display: flex;
  gap: 9px;
  width: min(395px, 100%);
  margin-top: 33px;
}

.progress-segment {
  height: 6px;
  flex: 1;
  border-radius: 99px;
  background: #e9e8e7;
}

.progress-segment.is-active {
  background: var(--accent);
}

.step-label {
  min-height: 24px;
  margin-top: 17px;
  font-size: 14px;
  line-height: 24px;
}

.time-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 39px;
  margin-top: 8px;
  padding: 0 13px 0 9px;
  border-radius: 30px;
  color: var(--accent);
  background: #ffede5;
  font-size: 14px;
  line-height: 1;
}

.time-label::before {
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) 6px 2px / 1px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 6px / 4px 1px no-repeat;
  content: "";
}

#survey-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.step-content {
  margin-top: 29px;
}

.field-stack {
  display: grid;
  gap: 23px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #999896;
  font-size: 13px;
  line-height: 1.35;
}

.required-mark {
  color: var(--accent);
}

.text-input,
.text-area {
  display: block;
  width: 100%;
  border: 1px solid #d7d6d4;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: #1b1b1b;
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.text-input {
  height: 47px;
  padding: 0 15px;
}

.text-area {
  min-height: 96px;
  padding: 12px 15px;
  resize: vertical;
}

.text-input::placeholder,
.text-area::placeholder {
  color: #9a9997;
  opacity: 1;
}

.text-input:focus,
.text-area:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(241 95 47 / 12%);
}

.text-input[aria-invalid="true"],
.text-area[aria-invalid="true"] {
  border-color: #d94724;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: #bd3f1b;
  font-size: 12px;
  line-height: 1.4;
}

.field-error:not(:empty) {
  display: block;
}

.sector-question {
  margin: 22px 0 10px;
  color: #999896;
  font-size: 13px;
  line-height: 1.35;
}

.sector-question[aria-invalid="true"] {
  color: #bd3f1b;
}

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

.sector-chip {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #e1dfdd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.18;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.sector-chip:hover,
.choice-card:hover,
.price-pill:hover {
  border-color: #ff9a78;
}

.sector-chip:active,
.choice-card:active,
.price-pill:active {
  transform: translateY(1px);
}

.sector-chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(105deg, #ff693a, #f45121);
}

.sector-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  align-items: center;
  justify-content: center;
}

.sector-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.step-heading {
  margin: 38px 0 6px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.step-description {
  margin: 0 0 8px;
  color: #999896;
  font-size: 13px;
  line-height: 1.5;
}

.choice-list {
  display: grid;
  gap: 5px;
}

.choice-card {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  border: 1px solid #d9d8d6;
  border-radius: 5px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.choice-card[aria-checked="true"] {
  border-color: #ff8c68;
  background: #fff0e9;
}

.radio-dot {
  position: relative;
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d4d2;
  border-radius: 50%;
  background: #fff;
}

.choice-card[aria-checked="true"] .radio-dot {
  border-color: #d5d4d2;
}

.choice-card[aria-checked="true"] .radio-dot::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.choice-copy {
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.choice-title {
  display: block;
  font-weight: 500;
}

.choice-detail {
  display: block;
  margin-top: 1px;
  color: #92918f;
  font-size: 10px;
  line-height: 1.25;
}

.price-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  margin: 8px 2px 10px 20px;
}

.price-pill {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.price-pill .radio-dot {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.price-pill[aria-checked="true"] .radio-dot::after {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.footnote {
  margin: 8px 0 0;
  color: #999896;
  font-size: 10px;
  line-height: 1.5;
}

.email-block {
  margin-top: 29px;
}

.message-block {
  margin-top: 22px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: #999896;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.consent-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-row input[aria-invalid="true"] {
  outline: 2px solid #d94724;
  outline-offset: 2px;
}

.consent-block > .field-error {
  margin-left: 30px;
}

.form-error {
  min-height: 20px;
  margin-top: 6px;
  color: #bd3f1b;
  font-size: 12px;
  line-height: 1.5;
}

.form-error:empty {
  min-height: 0;
  margin-top: 0;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 17px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 230px;
  color: #222;
  font-size: 12px;
  line-height: 1.35;
}

.privacy-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.action-button {
  display: inline-flex;
  min-width: 144px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid #aaa8a5;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.action-button:hover {
  box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
}

.action-button:active {
  transform: translateY(1px);
}

.action-button.primary {
  min-width: 239px;
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.action-button.primary:hover {
  background: #e95425;
}

.arrow-icon {
  width: 27px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.site-signature {
  width: min(716px, 100%);
  margin: 8px auto 0;
  padding-left: 50px;
  color: #747270;
  font-size: 9px;
  letter-spacing: 4px;
}

:focus-visible {
  outline: 3px solid rgb(241 95 47 / 55%);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 12px 22px;
  }

  .survey-card {
    min-height: calc(100vh - 58px);
    padding: 27px 22px 22px;
    border-radius: 13px;
  }

  .survey-header h1 {
    font-size: clamp(26px, 7.1vw, 36px);
    line-height: 1.1;
  }

  .survey-header h1 br {
    display: none;
  }

  .intro-copy {
    margin-top: 13px;
    font-size: 13px;
  }

  .desktop-break {
    display: none;
  }

  .survey-progress {
    gap: 6px;
    margin-top: 25px;
  }

  .step-content {
    margin-top: 23px;
  }

  .form-field + .form-field {
    margin-top: 17px;
  }

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

  .sector-chip {
    justify-content: flex-start;
    min-height: 42px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .step-heading {
    margin-top: 27px;
    font-size: 20px;
  }

  .choice-card {
    min-height: 46px;
    padding: 7px 10px;
  }

  .choice-copy {
    font-size: 13px;
  }

  .card-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding-top: 15px;
  }

  .privacy-note {
    max-width: none;
  }

  .actions {
    width: 100%;
  }

  .action-button {
    min-width: 0;
    min-height: 50px;
    flex: 1;
    padding-inline: 12px;
    font-size: 16px;
  }

  .action-button.primary {
    min-width: 0;
  }

  .site-signature {
    padding-left: 22px;
  }

}

@media (max-width: 390px) {
  .survey-card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .sector-grid {
    gap: 5px;
  }

  .sector-chip {
    gap: 5px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .action-button {
    font-size: 14px;
  }
}

body.is-success .page-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 80px;
}

body.is-success .survey-card {
  width: min(680px, 100%);
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.is-success .survey-header,
body.is-success .survey-progress,
body.is-success .step-label,
body.is-success .time-label,
body.is-success .form-error,
body.is-success .card-footer {
  display: none;
}

body.is-success #survey-form {
  display: block;
}

body.is-success .success-content {
  display: flex;
  width: min(600px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.success-greeting {
  position: absolute;
  top: 23.4vh;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: clamp(27px, 3.8vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: center;
}

.celebration-image {
  display: block;
  width: min(160px, 45vw);
  aspect-ratio: 1;
  object-fit: contain;
}

.success-heading {
  max-width: 560px;
  margin: 0;
  font-size: clamp(29px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.success-message {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.success-message strong {
  color: #333;
  font-weight: 500;
}

body.is-success .site-signature {
  position: fixed;
  right: 12px;
  bottom: 20px;
  left: 12px;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: center;
}
