/* Quantize v3 adapter for the reusable smart form.
 * Load after smart-form.css. All rules stay scoped to the component.
 */
.qz-smart-form,
.qz-smart-form .lead-form {
  --lf-surface: var(--page-raised, #050505);
  --lf-surface-soft: color-mix(in srgb, var(--page-raised, #050505) 92%, var(--ink, #fff) 8%);
  --lf-heading: var(--ink, #fff);
  --lf-body: var(--mut7, rgba(255, 255, 255, 0.7));
  --lf-muted: var(--mut, rgba(255, 255, 255, 0.6));
  --lf-border: var(--hair, rgba(255, 255, 255, 0.18));
  --lf-border-strong: color-mix(in srgb, var(--ink, #fff) 28%, transparent);
  --lf-accent: var(--cta-sky, #a8dcff);
  --lf-accent-hover: var(--cta-sky-hover, #c4e9ff);
  --surface-cinematic: var(--page, #000);
  --interactive-negative: var(--qz-form-error, #ff9a9a);
  --tone-black: #000;
  --nav-height: 51px;
  font-family: var(--font-d, "Helvetica Neue", Arial, sans-serif);
}

.qz-smart-form .lead-form {
  --qz-signal-x: 50%;
  --qz-signal-y: 42%;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-color: color-mix(in srgb, var(--lf-border) 78%, var(--lf-accent) 22%);
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--lf-accent) 13%, transparent), transparent 30%),
    linear-gradient(150deg, color-mix(in srgb, var(--lf-surface-soft) 94%, transparent), var(--lf-surface));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.06);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.qz-smart-form .lead-form::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--lf-accent) 24%, transparent) 1px, transparent 1.5px);
  background-position: 100% 0;
  background-size: 14px 14px;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  mask-image: radial-gradient(circle at 96% 0%, #000, transparent 45%);
}

.qz-smart-form .lead-form::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--qz-signal-x) var(--qz-signal-y),
    color-mix(in srgb, var(--lf-accent) 13%, transparent),
    transparent 68%
  );
  content: "";
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.qz-smart-form .lead-form:hover::after,
.qz-smart-form .lead-form:focus-within::after {
  opacity: 0.82;
}

.qz-smart-form .lead-form:focus-within {
  border-color: color-mix(in srgb, var(--lf-accent) 46%, var(--lf-border));
  box-shadow:
    0 38px 96px rgba(0, 0, 0, 0.34),
    0 0 0 1px color-mix(in srgb, var(--lf-accent) 10%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.07);
}

.qz-smart-form .lead-form > * {
  position: relative;
  z-index: 1;
}

.qz-smart-form .qsf7-progress {
  height: 4px;
  background: color-mix(in srgb, var(--lf-border) 72%, transparent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.24);
}

.qz-smart-form .qsf7-progress-bar {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--lf-accent) 42%, transparent),
    0 0 3px color-mix(in srgb, var(--lf-accent) 72%, transparent);
}

.qz-smart-form .qsf7-progress-bar::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.72), transparent 90%);
  content: "";
  opacity: 0;
  transform: translateX(-110%);
}

.qz-smart-form .qsf7-progress.is-advancing .qsf7-progress-bar::after {
  animation: qz-form-progress-pulse 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qz-smart-form .qsf7-step {
  animation: qz-form-step-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qz-smart-form .qsf7-step > * {
  animation: qz-form-item-enter 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qz-smart-form .qsf7-step > :nth-child(2) {
  animation-delay: 35ms;
}

.qz-smart-form .qsf7-step > :nth-child(n + 3) {
  animation-delay: 70ms;
}

.qz-smart-form .qsf7-question {
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

.qz-smart-form .qsf7-question:focus {
  outline: 0;
}

.qz-smart-form .qsf7-input {
  border-color: color-mix(in srgb, var(--lf-border) 82%, var(--lf-accent) 18%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lf-surface-soft) 90%, transparent), color-mix(in srgb, var(--lf-surface) 96%, transparent));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 14px 32px rgba(0, 0, 0, 0.12);
}

.qz-smart-form .qsf7-input:hover {
  border-color: var(--lf-border-strong);
}

.qz-smart-form .qsf7-input:focus {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--lf-accent) 18%, transparent),
    0 18px 42px rgba(0, 0, 0, 0.2),
    0 0 34px color-mix(in srgb, var(--lf-accent) 10%, transparent);
}

html[data-theme="light"] .qz-smart-form {
  --qz-form-error: #a4262c;
}

.qz-smart-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.qz-smart-form .btn-primary {
  border-color: var(--lf-accent);
  background: var(--lf-accent);
  color: var(--cta-ink, #071722);
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--lf-accent) 18%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.42);
}

.qz-smart-form .btn-primary:hover {
  border-color: var(--lf-accent-hover);
  background: var(--lf-accent-hover);
  transform: translateY(-1px);
}

.qz-smart-form .btn-primary:active {
  transform: translateY(1px);
}

.qz-smart-form .qsf7-date[aria-pressed="true"],
.qz-smart-form .qsf7-time[aria-pressed="true"] {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lf-accent) 30%, transparent),
    0 12px 34px color-mix(in srgb, var(--lf-accent) 13%, transparent);
  animation: qz-form-selection-lock 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qz-smart-form .qsf7-page-button:not(:disabled):hover,
.qz-smart-form .qsf7-date:hover,
.qz-smart-form .qsf7-time:hover {
  transform: translateY(-1px);
}

.qz-smart-form .qsf7-confirm {
  position: relative;
  overflow: hidden;
}

.qz-smart-form .qsf7-confirm::after {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lf-accent-hover) 58%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

.qz-smart-form .qsf7-confirm.is-armed::after {
  animation: qz-form-confirm-ready 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qz-smart-form .btn-primary:focus-visible {
  outline: 2px solid var(--lf-accent);
  outline-offset: 3px;
}

.qz-smart-form .lf-error {
  color: var(--qz-form-error, #ff9a9a);
}

@keyframes qz-form-progress-pulse {
  0% { opacity: 0; transform: translateX(-110%); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(110%); }
}

@keyframes qz-form-step-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes qz-form-item-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes qz-form-selection-lock {
  0% { transform: scale(0.975); }
  62% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

@keyframes qz-form-confirm-ready {
  0% { opacity: 0.42; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

.qz-smart-form .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .qz-smart-form .btn,
  .qz-smart-form .lead-form::after,
  .qz-smart-form .qsf7-progress-bar::after,
  .qz-smart-form .qsf7-step,
  .qz-smart-form .qsf7-step > *,
  .qz-smart-form .qsf7-date,
  .qz-smart-form .qsf7-time,
  .qz-smart-form .qsf7-confirm::after {
    animation: none;
    transition: none;
  }
}
