@supports selector(:has(*)) {
  .contact-form:has(input[name="requestType"][value="free-demo"]):not(.is-demo-wizard) {
    min-height: 430px;
    display: grid;
    place-items: center;
  }

  .contact-form:has(input[name="requestType"][value="free-demo"]):not(.is-demo-wizard) .contact-row,
  .contact-form:has(input[name="requestType"][value="free-demo"]):not(.is-demo-wizard) .contact-field:not(.honeypot),
  .contact-form:has(input[name="requestType"][value="free-demo"]):not(.is-demo-wizard) .contact-input-group,
  .contact-form:has(input[name="requestType"][value="free-demo"]):not(.is-demo-wizard) .contact-error {
    display: none;
  }

  .contact-form:has(input[name="requestType"][value="free-demo"]):not(.is-demo-wizard)::after {
    content: "Preparing guided demo request...";
    color: #9fb3ca;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

.contact-form.is-demo-wizard {
  display: block;
  min-height: 560px;
  padding: 0;
}

.is-demo-wizard .wizard-progress {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.35rem 0;
}

.is-demo-wizard .wizard-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: #9aaabd;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
}

.is-demo-wizard .wizard-progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(95, 171, 255, 0.12);
}

.is-demo-wizard .wizard-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0b7cff, #39b8ff);
  box-shadow: 0 0 18px rgba(57, 184, 255, 0.45);
  transform-origin: left center;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-demo-wizard .wizard-progress-dots {
  display: flex;
  gap: 0.34rem;
  margin-top: 0.95rem;
}

.is-demo-wizard .wizard-progress-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.is-demo-wizard .wizard-progress-dots span.is-active {
  width: 24px;
  background: #39b8ff;
  box-shadow: 0 0 18px rgba(57, 184, 255, 0.45);
}

.is-demo-wizard .wizard-progress-dots span.is-complete {
  background: rgba(57, 184, 255, 0.55);
}

.is-demo-wizard .wizard-stage {
  position: relative;
  z-index: 1;
  min-height: 460px;
  padding: clamp(2.5rem, 5vw, 4.2rem) clamp(1.35rem, 5vw, 3.75rem) 1.5rem;
  overflow: hidden;
}

.is-demo-wizard .demo-step[hidden] {
  display: none;
}

.is-demo-wizard .demo-step {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.is-demo-wizard .demo-step-number {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  color: #67b9ff;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
}

.is-demo-wizard .demo-step-number::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(103, 185, 255, 0.45);
}

.contact-form.is-demo-wizard .contact-field {
  display: block;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.contact-form.is-demo-wizard .contact-field:hover,
.contact-form.is-demo-wizard .contact-field:focus-within {
  border-color: transparent !important;
  transform: none !important;
}

.contact-form.is-demo-wizard .contact-field .field-label {
  display: block;
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  color: #f8fbff !important;
  font-family: var(--font-display), ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.65rem, 3.6vw, 2.75rem) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
}

.contact-form.is-demo-wizard .contact-input {
  min-height: 62px;
  padding: 0.85rem 0.1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(95, 171, 255, 0.34) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: #fff !important;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form.is-demo-wizard .contact-input:focus {
  border-bottom-color: #39b8ff !important;
  box-shadow: 0 8px 18px -14px rgba(57, 184, 255, 0.95) !important;
}

.is-demo-wizard .wizard-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form.is-demo-wizard select.contact-input {
  min-height: 62px;
  padding-left: 0.1rem !important;
  background-color: #080d17 !important;
  background-image: none !important;
}

.contact-form.is-demo-wizard textarea.contact-input {
  min-height: 132px;
  padding-top: 0.75rem !important;
}

.is-demo-wizard .wizard-choice-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.is-demo-wizard .wizard-choice {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(95, 171, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  color: #eaf4ff;
  font: inherit;
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.is-demo-wizard .wizard-choice:hover,
.is-demo-wizard .wizard-choice:focus-visible {
  border-color: rgba(57, 184, 255, 0.72);
  background: linear-gradient(180deg, rgba(20, 118, 255, 0.2), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 40px rgba(4, 18, 40, 0.28), 0 0 0 1px rgba(57, 184, 255, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.is-demo-wizard .wizard-choice.is-selected {
  border-color: #39b8ff;
  background: linear-gradient(180deg, rgba(11, 124, 255, 0.34), rgba(11, 124, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(57, 184, 255, 0.18), 0 0 34px rgba(11, 124, 255, 0.22);
}

.is-demo-wizard .wizard-choice-key {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(95, 171, 255, 0.34);
  border-radius: 8px;
  color: #87c8ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.is-demo-wizard .wizard-step-hint {
  margin: 1.2rem 0 0;
  color: #7e8da1;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-demo-wizard .demo-step-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.is-demo-wizard .wizard-back,
.is-demo-wizard .wizard-next,
.is-demo-wizard .wizard-skip {
  min-height: 48px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.is-demo-wizard .wizard-back {
  display: inline-grid;
  width: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(95, 171, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #d8e6f5;
}

.is-demo-wizard .wizard-back svg,
.is-demo-wizard .wizard-next svg {
  width: 18px;
  height: 18px;
}

.is-demo-wizard .wizard-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 138px;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: #0b7cff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.is-demo-wizard .wizard-next:hover {
  background: #168dff;
  box-shadow: 0 0 28px rgba(11, 124, 255, 0.3);
  transform: translateY(-1px);
}

.is-demo-wizard .wizard-skip {
  padding: 0.7rem 0.35rem;
  background: transparent;
  color: #93a4b7;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.is-demo-wizard .demo-step.is-invalid {
  animation: demo-step-shake 0.32s ease;
}

.is-demo-wizard .contact-input-group {
  display: block;
  margin-top: 1.75rem;
  padding: 0;
}

.is-demo-wizard .contact-submit {
  min-height: 54px;
}

.is-demo-wizard .contact-error,
.is-demo-wizard .contact-status {
  margin: 0 1.35rem 1.25rem;
}

.is-demo-wizard.is-complete .wizard-progress,
.is-demo-wizard.is-complete .wizard-stage,
.is-demo-wizard.is-complete .contact-status {
  display: none;
}

.is-demo-wizard .wizard-complete {
  min-height: 420px;
  padding: clamp(3rem, 7vw, 5.2rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

.is-demo-wizard .wizard-complete-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  place-items: center;
  border: 1px solid rgba(35, 220, 163, 0.45);
  border-radius: 50%;
  background: rgba(10, 191, 138, 0.12);
  color: #55efc1;
  font-size: 1.5rem;
}

.is-demo-wizard .wizard-complete h3 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.is-demo-wizard .wizard-complete p {
  max-width: 520px;
  margin: 0 auto;
  color: #a9b7c8;
  line-height: 1.7;
}

@keyframes demo-step-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-7px); }
  65% { transform: translateX(6px); }
}

@media (max-width: 640px) {
  .contact-form.is-demo-wizard {
    min-height: 560px;
  }

  .is-demo-wizard .wizard-stage {
    min-height: 450px;
    padding: 2rem 1.2rem 1.25rem;
  }

  .contact-form.is-demo-wizard .contact-field .field-label {
    font-size: 1.72rem !important;
  }

  .is-demo-wizard .demo-step-actions {
    align-items: stretch;
  }

  .is-demo-wizard .wizard-next {
    flex: 1;
  }

  .is-demo-wizard .wizard-choice {
    grid-template-columns: 30px 1fr;
    min-height: 54px;
    padding: 0.8rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-demo-wizard .wizard-progress-fill,
  .is-demo-wizard .wizard-next,
  .is-demo-wizard .contact-input,
  .is-demo-wizard .wizard-choice,
  .is-demo-wizard .wizard-progress-dots span {
    transition: none;
  }

  .is-demo-wizard .demo-step.is-invalid {
    animation: none;
  }
}
