@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Variable.woff2") format("woff2"),
    url("../assets/fonts/Satoshi-Variable.woff") format("woff");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0f;
  --white: #ffffff;
  --purple-600: #7f68f3;
  --purple-100: #7f68f333;
  --orange-500: #ff961b;
  --green-600: #00bc68;
  --charcoal-700: #2d2725b2;
  --lilac-50: #f4f3ff;
  --lilac-75: #f2f2fe;
  --error: #b42318;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 60px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --top-brand-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--white) 0%, var(--lilac-50) 100%);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-md);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

h1 {
  font-size: 65px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 41px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--purple-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.progress {
  position: fixed;
  top: var(--top-brand-height);
  left: 0;
  right: 0;
  z-index: 10;
  padding: var(--space-md) var(--space-xl) var(--space-sm);
  background: color-mix(in srgb, var(--white) 85%, transparent);
  backdrop-filter: blur(6px);
}

.top-brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--top-brand-height);
  background: color-mix(in srgb, var(--white) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, white);
  backdrop-filter: blur(6px);
}

.top-brand__inner {
  height: 100%;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 10px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-lg);
}

.top-brand__logos {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.top-brand__waa {
  width: 92px;
  height: auto;
  padding: 24px;
}

.top-brand__and {
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.top-brand__client {
  max-width: 210px;
  max-height: 32px;
  width: auto;
  height: auto;
}

.progress__label {
  margin: 0 0 var(--space-xs);
  font-size: 14px;
  font-weight: 600;
}

.progress__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--purple-100);
}

.progress__bar {
  width: 16.66%;
  height: 100%;
  background: var(--purple-600);
  transition: width 300ms ease;
}

.steps-container {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--top-brand-height) + 78px);
  overflow-x: clip;
}

.step {
  display: none;
  position: relative;
  width: 100%;
  max-width: 100vw;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.step--active {
  display: block;
}

.step--exit-left {
  opacity: 0;
  transform: none;
}

.step--exit-right {
  opacity: 0;
  transform: none;
}

.step--enter-left {
  transform: none;
}

.step--enter-right {
  transform: none;
}

.step__content {
  max-width: 560px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.logo {
  width: 110px;
  margin-bottom: var(--space-xl);
}

.logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.logo-row .logo,
.logo-row .client-logo {
  margin-bottom: 0;
}

.client-logo {
  display: block;
  max-width: 220px;
  width: auto;
  max-height: 44px;
  margin: 0 0 var(--space-lg);
}

.logo--inverse {
  filter: brightness(0) invert(1);
  margin-top: var(--space-lg);
}

.subtitle {
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  margin-bottom: var(--space-xl);
}

.note {
  margin-top: var(--space-sm);
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  font-size: 14px;
}

.card {
  background: var(--lilac-75);
  border: 1px solid color-mix(in srgb, var(--purple-600) 20%, white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.card p {
  margin-bottom: var(--space-sm);
}

.terms {
  margin-bottom: var(--space-lg);
}

.terms ul {
  margin: 0 0 var(--space-md);
  padding-left: 18px;
}

.back-btn {
  display: inline-flex;
  margin: 0 0 var(--space-xl);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.field span {
  font-size: 14px;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, white);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  min-height: 48px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple-600) 20%, transparent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 4px;
  accent-color: var(--purple-600);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--cta {
  background: var(--green-600);
  color: var(--white);
}

.btn--loading .btn__text {
  opacity: 0;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  color: var(--error);
  font-weight: 600;
}

.flatpickr-calendar {
  z-index: 99999 !important;
}

.step--success {
  background: transparent;
  color: var(--ink);
}

.step--success .step__content {
  min-height: calc(100vh - (var(--top-brand-height) + 78px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.success-panel {
  width: min(560px, 100%);
  background: var(--green-600);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.step--success h2,
.step--success p,
.success-panel .success__icon {
  color: var(--white);
}

.success__icon {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 36px;
  margin-bottom: var(--space-lg);
}

#invalidStep {
  background: var(--white);
}

#invalidStep .step__content {
  min-height: calc(100vh - (var(--top-brand-height) + 78px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  :root {
    --top-brand-height: 56px;
  }

  .progress {
    padding: var(--space-md) var(--space-md) var(--space-sm);
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .step__content {
    padding: 48px var(--space-md);
  }

  .top-brand__inner {
    padding: 10px var(--space-md);
  }

  .top-brand__waa {
    width: 80px;
  }

  .top-brand__client {
    max-width: 160px;
    max-height: 28px;
  }

  .top-brand__and {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .step__content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn {
    width: 100%;
  }
}
