:root {
  --page: #d9dce2;
  --surface: #f0f1f4;
  --card: #ffffff;
  --ink: #17191c;
  --muted: #8a8f96;
  --line: #c8ccd0;
  --primary: #1687c5;
  --primary-dark: #0d77b2;
  --danger: #c73737;
  --shadow: 0 3px 10px rgba(25, 32, 38, .14);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 32px rgba(19, 25, 31, .16);
}

.topbar {
  position: relative;
  z-index: 3;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(8px, env(safe-area-inset-top)) 18px 0;
}

.topbar__title {
  max-width: 250px;
  overflow: hidden;
  color: #777c82;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #202326;
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
}

.back-button { left: 8px; font-size: 27px; }
.close-button { right: 8px; font-weight: 200; }

.progress {
  position: relative;
  z-index: 3;
  height: 3px;
  background: #d8dade;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 240ms ease;
}

.screen {
  min-height: calc(100svh - 64px);
  padding: 74px 26px 112px;
  animation: screen-in 220ms ease both;
}

.screen[data-screen="1"],
.screen[data-screen="2"] { padding-top: 20px; }

.screen[data-screen="3"] { padding: 22px 20px 112px; }
.screen[hidden] { display: none; }

@keyframes screen-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.card {
  position: relative;
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.intro-card { padding: 62px 25px 21px; }

.brand-mark {
  position: absolute;
  top: -45px;
  left: 50%;
  width: 91px;
  height: 91px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border: 3px solid #e8eaed;
  border-radius: 50%;
  background: #11171e;
  box-shadow: inset 0 0 0 3px #28b46a, inset 0 0 0 7px #11171e;
  color: #fff;
}

.brand-mark__letters { font-size: 23px; font-weight: 700; letter-spacing: -.5px; }
.brand-mark__caption { margin-top: 2px; color: #47c87e; font-size: 5px; font-weight: 700; letter-spacing: .4px; }

.card__kicker {
  margin: 0 0 28px;
  overflow: hidden;
  color: #8b9096;
  font-size: 16px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.22;
}

.offer-list {
  margin: 23px 0 0;
  padding: 0 0 0 20px;
  font-size: 18px;
  line-height: 1.55;
}

.offer-list li { padding-left: 9px; }
.offer-list li + li { margin-top: 15px; }

.intro-copy { margin-top: 22px; font-size: 16px; line-height: 1.48; }
.intro-copy p { margin: 0; }
.intro-copy p + p { margin-top: 14px; }

.screen-actions {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 13px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid #cdd0d3;
  background: rgba(255, 255, 255, .97);
}

.primary-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  transition: background 160ms ease, transform 120ms ease;
}

.primary-button:hover { background: var(--primary-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button:focus-visible, .icon-button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22, 135, 197, .28); outline-offset: 2px; }
.primary-button:disabled { opacity: .65; cursor: wait; }

.question-card { margin: 0; padding: 25px 20px 28px; border: 0; }

.question-card legend {
  float: left;
  width: 100%;
  margin: 0 0 17px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.question-card legend + .choice { clear: both; }

.question-help {
  clear: both;
  margin: 0 0 20px;
  color: #62686e;
  font-size: 15px;
  line-height: 1.45;
}

.choice {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1.12;
  transition: border-color 150ms ease, background 150ms ease;
}

.choice + .choice { margin-top: 19px; }
.choice:hover { border-color: #8d949a; }
.choice:has(input:checked) { border-color: var(--primary); background: #f3faff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice i { width: 31px; height: 31px; flex: 0 0 31px; border: 3px solid #111; border-radius: 50%; }
.choice input:checked ~ i { border: 8px solid var(--primary); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(22, 135, 197, .28); outline-offset: 2px; }

.choice--with-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  column-gap: 16px;
  row-gap: 8px;
}
.choice--with-field > span { min-width: 0; }
.choice--with-field > i { grid-column: 2; grid-row: 1; align-self: center; }
.choice--with-field .other-input {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 3px 0 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  opacity: 1;
  pointer-events: auto;
}
.choice--with-field:not(:has(input[type="radio"]:checked)) .other-input { display: none; }

.choice--check i { border-radius: 4px; }
.choice--check input:checked ~ i { border: 7px solid var(--primary); border-radius: 4px; background: #fff; }

.text-inline {
  clear: both;
  display: block;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.4;
}
.text-inline input {
  width: 100%;
  margin-top: 9px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.text-inline input:focus { border-bottom-color: var(--primary); outline: 0; }
.topics-card .choice { min-height: 58px; font-size: 17px; }
.topics-card .choice + .choice { margin-top: 11px; }

.details-stack { display: grid; gap: 21px; }
.contact-stack { padding-top: 10px; }
.text-card { display: block; padding: 25px 21px 22px; }
.text-card > span { display: block; font-size: 16px; line-height: 1.35; }

.text-card input, .text-card textarea {
  width: 100%;
  margin-top: 14px;
  padding: 0 0 8px;
  resize: none;
  border: 0;
  border-bottom: 1.5px solid #c8cbcf;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}

.text-card textarea { min-height: 80px; }
.text-card input::placeholder, .text-card textarea::placeholder { color: #a0a4a8; opacity: 1; }
.text-card input:focus, .text-card textarea:focus { border-bottom-color: var(--primary); outline: 0; }

.field-error { min-height: 18px; margin: 10px 0 0; color: var(--danger); font-size: 13px; line-height: 1.3; }
.submit-status { min-height: 20px; margin: 14px 2px 0; color: var(--danger); font-size: 13px; }
.honeypot, .submission-frame { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0; }

.success-screen { padding: 112px 26px 28px; }
.success-card { padding: 62px 21px 20px; }
.success-card .card__kicker { margin-bottom: 25px; }
.success-card h1 { text-align: center; font-size: 21px; }
.success-card > p:not(.card__kicker) { margin: 20px 0; font-size: 16px; line-height: 1.35; }
.success-note { padding-top: 17px; border-top: 1px solid #d8dadd; color: #a4a8ad; font-size: 13px; }
.success-note span { color: #737980; font-size: 17px; }

@media (max-width: 360px) {
  .screen { padding-right: 16px; padding-left: 16px; }
  .screen[data-screen="3"] { padding-right: 14px; padding-left: 14px; }
  .intro-card { padding-right: 20px; padding-left: 20px; }
  .offer-list { font-size: 16px; }
  .choice { font-size: 19px; }
}

@media (min-width: 768px) {
  .app-shell { width: min(100%, 620px); }
  .screen { padding-right: 42px; padding-left: 42px; }
  .screen[data-screen="3"] { padding-right: 34px; padding-left: 34px; }
  .intro-card { padding-right: 42px; padding-left: 42px; }
  .question-card { padding: 31px 30px 34px; }
  .text-card { padding-right: 29px; padding-left: 29px; }
  .screen-actions { padding-right: 24px; padding-left: 24px; }
}

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