/* Global box-sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background: #070b14;
  color: #8c96aa;
  font-size: 12px;
}

/* Background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 231, 194, 0.07) 0%,
    rgba(28, 231, 194, 0) 34.61%,
    rgba(28, 231, 194, 0) 64.99%,
    rgba(28, 231, 194, 0.07) 99.98%
  );
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/assets/background_pattern.svg") repeat;
  background-size: 32px 32px;
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) calc(50% - 420px),
    transparent calc(50% - 299px),
    transparent calc(50% + 299px),
    rgba(0, 0, 0, 0.4) calc(50% + 420px),
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Main Page Content */
main {
  max-width: 598px;
  padding: 30px 10px;
  margin: auto;
  position: relative;
  z-index: 1;
}

header {
  margin-bottom: 20px;
}

header img {
  display: block;
  margin: 0 auto 30px;
}

h1 {
  color: rgba(28, 231, 194, 0.7);
  font-size: 32px;
  font-style: normal;
  font-weight: 510;
  line-height: 40px;
  margin: 0;
}

header p {
  margin-top: 8px;
  color: #7b7b7b;
  font-size: 14px;
}

a {
  color: #3b9eff;
  text-underline-offset: 2px;
}

a:hover {
  color: #6db8ff;
}

a:focus-visible {
  outline: 2px solid #3b9eff;
  outline-offset: 3px;
  border-radius: 3px;
}

.indent {
  padding-left: 30px;
}

.section-heading {
  color: #eee;
  font-size: 16px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 28px 0 12px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #717d79;
  color: #717d79;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-name {
  color: #eee;
  font-size: 16px;
  font-weight: 600;
}

.step-body {
  margin-bottom: 8px;
}

/* Highlight step number badge when any input inside the step is focused */
.step-section:has(.step-body :focus, .step-body :focus-within) .step-num {
  background: #1ce7c2;
  border-color: #1ce7c2;
  color: #1c2024;
}
