.discovery-page {
  background: #edf2f5;
}

.discovery-nav-copy {
  color: #dce7ec;
  font-size: 15px;
  font-weight: 800;
}

.nav-return {
  margin-left: auto;
  border: 1px solid #35505d;
  border-radius: 999px;
  color: #dce7ec;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}

.nav-return:hover {
  border-color: #70b6ff;
  color: #fff;
}

.discovery-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(19, 112, 143, 0.52), transparent 31%),
    linear-gradient(135deg, #07141d, #0c2733);
  color: #fff;
  padding-block: 88px 102px;
}

.discovery-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.discovery-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.62fr);
  align-items: end;
  gap: 70px;
}

.discovery-hero h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.discovery-lead {
  max-width: 780px;
  margin-bottom: 0;
  color: #c4d3da;
  font-size: 20px;
  line-height: 1.65;
}

.form-expectation {
  display: flex;
  gap: 16px;
  border: 1px solid #31505e;
  border-radius: 18px;
  background: rgba(18, 52, 67, 0.78);
  padding: 22px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
}

.expectation-icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #2489ff;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.form-expectation strong,
.form-expectation p {
  display: block;
}

.form-expectation strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.form-expectation p {
  margin: 0;
  color: #b9cbd3;
  font-size: 15px;
  line-height: 1.55;
}

.form-section {
  padding-block: 0 105px;
}

.form-wrap {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid #d3dee4;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(7, 20, 29, 0.07);
  list-style: none;
}

.form-progress li {
  position: relative;
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #e1e8ec;
  color: #75858e;
  padding: 18px 22px;
}

.form-progress li:last-child {
  border-right: 0;
}

.form-progress li::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: transparent;
  content: "";
}

.form-progress li.is-active {
  background: #f7fbff;
  color: #10232e;
}

.form-progress li.is-active::after {
  background: #2489ff;
}

.form-progress li.is-complete::after {
  background: #16b895;
}

.form-progress span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  color: #60717d;
  font-size: 11px;
  font-weight: 900;
}

.form-progress .is-active span {
  background: #2489ff;
  color: #fff;
}

.form-progress .is-complete span {
  background: #16b895;
  color: #fff;
}

.form-progress b {
  font-size: 15px;
}

.discovery-form {
  border: 1px solid #d3dee4;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(7, 20, 29, 0.11);
}

.form-step {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 52px 42px 42px;
}

.discovery-form.js-enabled .form-step {
  display: none;
}

.discovery-form.js-enabled .form-step.is-active {
  display: block;
  animation: step-in 180ms ease-out;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 34px;
  padding: 0;
}

.step-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #0d2633;
  color: #70b6ff;
  font-size: 12px;
  font-weight: 900;
}

.step-heading strong,
.step-heading small {
  display: block;
}

.step-heading strong {
  color: #10232e;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.step-heading small {
  margin-top: 4px;
  color: #60717d;
  font-size: 16px;
  line-height: 1.55;
}

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

.field-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.software-followup {
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 8px;
  color: #213641;
  font-size: 15px;
  font-weight: 800;
}

.field-full {
  width: 100%;
  margin-top: 24px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #b9c9d1;
  border-radius: 11px;
  background: #fff;
  color: #10232e;
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #87959d;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #2489ff;
  background: #fbfdff;
  box-shadow: 0 0 0 4px rgba(36, 137, 255, 0.12);
  outline: none;
}

.group-block {
  margin-top: 30px;
  border-top: 1px solid #e1e8ec;
  padding-top: 30px;
}

.friendly-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 2px;
  border-radius: 10px;
  background: #eef8f5;
  color: #365c53;
  padding: 12px 14px;
  font-size: 14px;
}

.friendly-note strong {
  color: #174a3e;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.group-heading strong {
  color: #10232e;
  font-size: 17px;
}

.group-heading span {
  color: #6f7f88;
  font-size: 14px;
}

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

.option-card {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  border: 1px solid #ccd8de;
  border-radius: 11px;
  background: #f8fafb;
  color: #304650;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.option-card:hover {
  border-color: #86bfff;
  background: #f3f9ff;
  transform: translateY(-1px);
}

.option-card:has(input:checked) {
  border-color: #2489ff;
  background: #eaf4ff;
  color: #10232e;
}

.option-card input,
.consent-row input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  accent-color: #2489ff;
}

.group-error {
  display: none;
  margin: 10px 0 0;
  color: #be2239;
  font-size: 14px;
  font-weight: 800;
}

.group-block.has-error {
  border-top-color: #ef4457;
}

.group-block.has-error .group-error {
  display: block;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
  border-top: 1px solid #e1e8ec;
  padding-top: 26px;
}

.button-outline {
  border: 1px solid #b8c8d0;
  background: #fff;
  color: #10232e;
}

.button-outline:hover {
  border-color: #2489ff;
  background: #f4f9ff;
}

.safety-note {
  display: grid;
  gap: 3px;
  margin-top: 26px;
  border-left: 4px solid #f3a244;
  border-radius: 8px;
  background: #fff8eb;
  color: #5b4624;
  padding: 14px 16px;
  font-size: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  color: #304650;
  font-size: 15px;
  font-weight: 750;
}

.submit-envelope {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.trap-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-errors,
.success-panel {
  border: 1px solid #d3dee4;
  border-radius: 20px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 24px 65px rgba(7, 20, 29, 0.11);
}

.form-errors {
  margin-bottom: 18px;
  border-left: 5px solid #ef4457;
  color: #6d2430;
}

.form-errors ul {
  margin: 9px 0 0;
  padding-left: 22px;
}

.success-panel {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #16b895;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.success-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.success-panel > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: #60717d;
  font-size: 18px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 980px) {
  .discovery-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-expectation {
    max-width: 600px;
  }

  .form-progress b {
    display: none;
  }

  .form-progress li {
    justify-content: center;
  }

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

@media (max-width: 680px) {
  .discovery-nav-copy {
    display: none;
  }

  .nav-return {
    font-size: 12px;
  }

  .discovery-hero {
    padding-block: 62px 84px;
  }

  .discovery-hero h1 {
    font-size: 45px;
  }

  .discovery-lead {
    font-size: 17px;
  }

  .form-wrap {
    margin-top: -30px;
  }

  .form-progress li {
    min-height: 64px;
    padding: 12px;
  }

  .form-progress span {
    width: 31px;
    height: 31px;
  }

  .form-step {
    padding: 27px 20px;
  }

  .step-heading strong {
    font-size: 24px;
  }

  .friendly-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .field-grid,
  .field-grid-three,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .step-actions,
  .success-actions {
    flex-direction: column-reverse;
  }

  .step-actions .button,
  .success-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-form.js-enabled .form-step.is-active {
    animation: none;
  }
}
