:root {
  --brand: #ad4798;
  --brand-dark: #92377f;
  --brand-soft: #f7e8f3;
  --text: #383838;
  --muted: #575757;
  --border: #d5d5d5;
  --danger: #a72626;
  --success: #287a53;
  --white: #ffffff;
  --shadow: 0 14px 38px rgba(56, 56, 56, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px 12px 48px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, var(--brand-soft) 0, #fff 320px);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
}

.device {
  width: 100%;
  max-width: 520px;
  padding: 28px 24px 36px;
}

.logo {
  width: 106px;
  height: 36px;
  margin-bottom: 48px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.hero h1,
.hero p,
.eyebrow {
  margin: 0;
}

.hero h1 {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.eyebrow {
  color: var(--brand);
  font-family: 'Rethink Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.card {
  padding: 24px;
  border: 1px solid rgba(173, 71, 152, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.card > label:first-child {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
}

.phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.phone-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(173, 71, 152, 0.14);
}

.phone-field span {
  padding-left: 14px;
  color: var(--muted);
}

.phone-field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 14px 14px 5px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  background: var(--brand);
  box-shadow: 0 2px 4px rgba(79, 24, 68, 0.2);
  color: var(--white);
  cursor: pointer;
  font-family: 'Rethink Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button:hover {
  background: var(--brand-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-link {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.message:not(:empty) {
  margin-top: 14px;
}

.message--error {
  color: var(--danger);
}

.notice {
  margin-bottom: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 10px;
  background: var(--brand-soft);
  font-size: 13px;
  line-height: 1.4;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 28px auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--success);
  font-size: 32px;
  font-weight: 600;
}

.next-steps {
  margin: 36px 0 32px;
}

.next-steps--request {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(173, 71, 152, 0.16);
}

.next-steps h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 28px;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: var(--brand-soft);
}

.step-number {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 600;
}

.step-content {
  padding-top: 2px;
}

.step-content h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.text-link {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--brand);
}

.spinner {
  width: 56px;
  height: 56px;
  margin: 32px auto 28px;
  border: 5px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1800ms;
  }
}

.hero--centered {
  text-align: center;
}

.is-hidden {
  display: none;
}

@media (max-width: 520px) {
  body {
    padding: 0;
  }

  .device {
    padding: 24px 16px 32px;
  }

  .logo {
    margin-bottom: 40px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }
}
