:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #141414;
  --muted: #6b7280;
  --line: #dfe3e8;
  --selected: #17233f;
  --accent: #ff7a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.wireframe {
  width: min(100%, 860px);
}

.progress {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  height: 6px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-bar {
  height: 100%;
  width: 14.285%;
  background: var(--accent);
  transition: width 180ms ease;
}

.card {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

h1 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
}

.subtitle {
  margin: 0 auto 32px;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
}

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

.option {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.option:hover {
  border-color: #aeb5bf;
}

.option.selected {
  border-color: var(--selected);
  background: #f3f5f8;
  box-shadow: inset 0 0 0 1px var(--selected);
}

.option small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}

.custom-field {
  margin-top: 18px;
}

.custom-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.custom-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.actions {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.button-back {
  background: #eceff3;
  color: var(--text);
}

.button-next {
  margin-left: auto;
  background: var(--accent);
  color: #111827;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.results {
  width: 100%;
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 24px;
}

.result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.result span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.result strong {
  display: block;
  font-size: 22px;
}

.assumption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.restart {
  grid-column: 1 / -1;
  margin: 22px auto 0;
  display: block;
}

.contact-module {
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-module h2 {
  margin: 0;
  font-size: 24px;
  text-align: left;
}

.contact-intro {
  margin: 7px 0 18px;
  color: var(--muted);
  text-align: left;
}

.trust-list {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  text-align: left;
}

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

.contact-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.contact-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.partner-box {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fa;
  text-align: left;
}

.consent-row {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.contact-submit {
  margin-top: 16px;
  width: 100%;
}

.contact-error {
  margin: 10px 0 0;
  color: #a4261d;
  font-size: 13px;
  text-align: left;
}

.contact-success {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #eef7f2;
  text-align: left;
}

@media (max-width: 680px) {
  .card {
    padding: 28px 20px;
  }

  h1 {
    font-size: 26px;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: 88px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
