:root {
  --pink: #e151bb;
  --pink-hover: #ec65c9;
  --ink: #2c3338;
  --muted: #b7b7b7;
  --line: #cfcfcf;
  --card: #e6e6e6;
  --bg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: transparent;
  z-index: 20;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
  transition: width 0.35s ease;
}

.brand {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
}

.shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.form {
  width: min(680px, 100%);
}

.step {
  display: none;
}

.step[hidden] {
  display: none !important;
}

html:not(.js) .step:not([data-step="11"]),
.step.is-active {
  display: block;
}

.question {
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9a9a9a;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  padding: 4px 0 10px;
  outline: none;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--pink);
}

.phone {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #9a9a9a;
}

.phone:focus-within {
  border-bottom-color: var(--pink);
}

.phone-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
}

.phone-flag svg {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone input {
  border: 0;
  padding: 8px 0 10px;
}

.hint {
  margin: 10px 0 0;
  color: #9a9a9a;
  font-size: 12px;
}

.choices {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--card);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.choice:hover,
.choice:focus-visible {
  border-color: var(--pink);
  outline: none;
}

.choice[aria-pressed="true"] {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}

.choice-key {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #c8c8c8;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.choice[aria-pressed="true"] .choice-key {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 18px;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--pink-hover);
  outline: none;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}

.nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
}

.nav[hidden] {
  display: none;
}

.nav button {
  appearance: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4a4a4a;
  cursor: pointer;
}

.nav button:hover,
.nav button:focus-visible {
  color: var(--pink);
  outline: none;
}

.nav button[disabled] {
  opacity: 0.28;
  cursor: default;
}

.thanks {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.thanks svg {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.thanks h1 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.3;
}

.thanks p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.consent-box input {
  margin-top: 3px;
  accent-color: var(--pink);
}

.consent-box a {
  color: var(--pink);
  font-weight: 700;
}

.form-legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #7a7388;
}

.form-legal a {
  color: #604fa4;
  font-weight: 600;
}

html:not(.js) .btn:not(#submit-btn),
html:not(.js) .nav {
  display: none;
}

@media (max-width: 720px) {
  .brand {
    top: 22px;
  }

  .shell {
    padding: 100px 20px 72px;
    align-items: flex-start;
  }

  .question,
  .field input,
  .field textarea,
  .phone input {
    font-size: 18px;
  }

  .nav {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress span {
    transition: none;
  }
}
