h1,
p {
  color: var(--color-blue-muted);
}
.home-background {
  position: absolute;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: -1;
}
.blue-glow {
  position: absolute;
  top: -2vw;
  left: 19vw;
  width: 60vw;
  z-index: -1;
}
.blue-glow-1 {
  position: absolute;
  top: 78vw;
  left: -21vw;
  width: 60vw;
  z-index: -1;
}
.yellow-glow {
  position: absolute;
  top: 38vw;
  left: 65vw;
  width: 32vw;
  z-index: -1;
}

#introduction {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  .introduction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    .introduction-item-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 1rem;
      h1 {
        font-family: "Space Grotesk", sans-serif;
        font-size: 3rem;
        color: var(--color-cream);
        font-weight: 600;
      }
    }
    .introduction-item-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 1.5rem;
      p {
        color: var(--color-cream);
        font-size: 0.8rem;
        font-weight: 300;
      }
    }
  }
}

#lead-form {
  display: flex;
  justify-content: center;
  width: 60%;
  .lead-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-midnight);
    border: 0.05rem solid var(--color-charcoal);
    border-radius: 1.2rem;
    padding: 1.6rem 2.6rem;
  }
  hr {
    height: 0.05rem;
    border: none;
    background-color: var(--color-charcoal);
  }
  .lead-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.8rem 0;
  }
  .step-heading {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    p {
      font-size: 0.75rem;
      font-weight: 300;
      color: var(--color-gray-muted);
    }
  }
  .step-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    h2 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--color-cream);
    }
    em {
      font-size: 0.75rem;
      font-style: italic;
      font-weight: 200;
      color: var(--color-gray-muted);
    }
  }
  .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    color: var(--color-orange);
    border: 0.06rem solid var(--color-orange);
    border-radius: 50%;
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
  }

  .detail-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    label {
      font-size: 0.75rem;
      font-weight: 400;
      color: var(--color-gray-muted);
    }
    .call-me {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.35rem;
      margin-top: 0.1rem;
      font-size: 0.65rem;
      position: relative;
      cursor: pointer;
      input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
        opacity: 0;
        cursor: pointer;
      }
    }
    .call-me-box {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 0.65rem;
      height: 0.65rem;
      border: 0.05rem solid var(--color-charcoal);
      border-radius: 0.15rem;
      flex-shrink: 0;
      &::after {
        content: "";
        width: 0.16rem;
        height: 0.32rem;
        border: solid var(--color-cream);
        border-width: 0 0.08rem 0.08rem 0;
        transform: translateY(-0.04rem) rotate(45deg);
        opacity: 0;
      }
    }
    .call-me-text {
      font-size: 0.65rem;
      font-weight: 300;
      color: var(--color-charcoal);
    }
    .call-me:hover .call-me-box {
      border-color: var(--color-cream);
    }
    .call-me:has(:checked) {
      .call-me-box {
        background: var(--color-orange);
        border-color: var(--color-orange);
        &::after {
          opacity: 1;
        }
      }
      .call-me-text {
        color: var(--color-gray-muted);
      }
    }
    input {
      font-size: 0.85rem;
      font-weight: 300;
      color: var(--color-cream);
      background: var(--color-midnight);
      border: 0.05rem solid var(--color-gray-muted);
      border-radius: 0.5rem;
      padding: 0.72rem 0.5rem;
      outline: none;
    }
  }

  .step-description {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }
  .tool-toggle {
    flex-shrink: 0;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    color: var(--color-orange);
    background: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
  }
  .tool-toggle:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .tool-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.9rem;
  }
  .option {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.45rem;
    background: var(--color-midnight);
    border: 0.05rem solid var(--color-gray-muted);
    border-radius: 0.5rem;
    padding: 1.2rem 0.7rem;
    cursor: pointer;
    position: relative;
    input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
  }
  .option-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.12rem;
    border: 0.05rem solid var(--color-charcoal);
    border-radius: 0.2rem;
    flex-shrink: 0;
    &::after {
      content: "";
      width: 0.2rem;
      height: 0.4rem;
      border: solid var(--color-cream);
      border-width: 0 0.09rem 0.09rem 0;
      transform: translateY(-0.05rem) rotate(45deg);
      opacity: 0;
    }
  }
  .option-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .option-title {
    font-size: 0.82rem;
    font-weight: 400;
    color: #b7b5ae;
  }
  .option-hint {
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--color-charcoal);
  }
  .option:hover {
    border-color: var(--color-cream);
  }
  .option:has(:checked) {
    background: rgba(231, 108, 33, 0.13);
    border-color: var(--color-orange);
    .option-box {
      background: var(--color-orange);
      border-color: var(--color-orange);
      &::after {
        opacity: 1;
      }
    }
    .option-title {
      color: var(--color-cream);
    }
    .option-hint {
      color: var(--color-gray-muted);
    }
  }

  .spend-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .pill {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-gray-muted);
    background: #141014;
    border: 0.05rem solid var(--color-charcoal);
    border-radius: 999px;
    padding: 0.5rem 0.72rem;
    cursor: pointer;
    position: relative;
    input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
  }
  .pill:hover {
    border-color: var(--color-cream);
  }
  .pill:has(:checked) {
    background: rgba(231, 108, 33, 0.13);
    border-color: var(--color-orange);
    color: var(--color-orange);
  }

  textarea {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-cream);
    background: var(--color-midnight);
    border: 0.05rem solid var(--color-gray-muted);
    border-radius: 0.5rem;
    padding: 0.72rem 0.9rem;
    height: 12rem;
    resize: none;
    outline: none;
  }

  input::placeholder,
  textarea::placeholder {
    color: var(--color-charcoal);
    font-weight: 300;
  }
  input:focus,
  textarea:focus {
    border-color: var(--color-orange);
  }
  .option:has(:focus-visible),
  .pill:has(:focus-visible) {
    border-color: var(--color-orange);
  }

  .form-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-top: 1rem;
    button {
      width: 61%;
      font-family: "Poppins", sans-serif;
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: normal;
      text-transform: none;
      background: var(--color-orange);
      border-radius: 999px;
      padding: 0.8rem 0.72rem;
    }
    button:hover {
      background: var(--color-orange-dark);
    }
    button:disabled {
      background-color: var(--color-gray);
      cursor: default;
    }
    p {
      font-size: 0.67rem;
      font-weight: 300;
      color: var(--color-charcoal);
    }
  }
}

@media screen and (min-width: 768px) {
  #introduction,
  #lead-form {
    zoom: 0.8;
  }
}

@media screen and (max-width: 767px) {
  main {
    gap: 40px;
  }
  .error {
    top: 16px;
    right: 16px;
    left: 16px;
    font-size: 14px;
    padding: 12px 14px;
  }
  .error::before {
    font-size: 16px;
  }

  #introduction {
    padding: 24px 16px 0;
    .introduction-item {
      gap: 16px;
      .introduction-item-header {
        gap: 8px;
        h1 {
          font-size: 30px;
          line-height: 1.15;
          br {
            display: none;
          }
          .orange {
            display: block;
          }
        }
      }
      .introduction-item-footer {
        gap: 12px;
        p {
          font-size: 14px;
          line-height: 1.5;
          br {
            display: none;
          }
        }
      }
    }
  }

  #lead-form {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    .lead-form {
      box-sizing: border-box;
      border-width: 1px;
      border-radius: 16px;
      padding: 8px 16px 24px;
    }
    hr {
      height: 1px;
    }
    .lead-step {
      gap: 20px;
      padding: 24px 0;
    }
    .step-heading {
      gap: 8px;
      p {
        font-size: 13px;
        line-height: 1.5;
      }
    }
    .step-title {
      gap: 10px;
      flex-wrap: wrap;
      h2 {
        font-size: 18px;
      }
      em {
        font-size: 12px;
      }
    }
    .step-number {
      font-size: 13px;
      width: 26px;
      height: 26px;
      border-width: 1px;
    }

    .detail-fields {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .field {
      gap: 6px;
      label {
        font-size: 13px;
      }
      .call-me {
        gap: 8px;
        margin-top: 4px;
      }
      .call-me-box {
        width: 16px;
        height: 16px;
        border-width: 1px;
        border-radius: 4px;
        &::after {
          width: 4px;
          height: 8px;
          border-width: 0 2px 2px 0;
          transform: translateY(-1px) rotate(45deg);
        }
      }
      .call-me-text {
        font-size: 13px;
      }
      input {
        font-size: 16px;
        border-width: 1px;
        border-radius: 8px;
        padding: 12px;
      }
    }

    .tool-toggle {
      font-size: 14px;
      padding: 4px 0;
    }
    .tool-options {
      grid-template-columns: 1fr;
      grid-auto-rows: auto;
      gap: 10px;
    }
    .option {
      gap: 12px;
      border-width: 1px;
      border-radius: 10px;
      padding: 14px;
    }
    .option-box {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      border-width: 1px;
      border-radius: 4px;
      &::after {
        width: 5px;
        height: 9px;
        border-width: 0 2px 2px 0;
        transform: translateY(-1px) rotate(45deg);
      }
    }
    .option-text {
      gap: 4px;
    }
    .option-title {
      font-size: 15px;
    }
    .option-hint {
      font-size: 12px;
    }

    .spend-options {
      gap: 8px;
    }
    .pill {
      font-size: 14px;
      border-width: 1px;
      padding: 10px 14px;
    }

    textarea {
      font-size: 16px;
      border-width: 1px;
      border-radius: 8px;
      padding: 12px;
      height: 140px;
    }

    .form-submit {
      gap: 10px;
      padding-top: 8px;
      button {
        width: 100%;
        font-size: 15px;
        padding: 14px;
      }
      p {
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
      }
    }
  }
}

@media screen and (min-width: 1024px) {
  html {
    font-size: min(1.2vw, 17.28px);
  }
  #introduction,
  #lead-form {
    zoom: 0.9;
    max-width: 70rem;
  }
}
