/**
 * @file
 * Marketing intro + process steps above insurance product forms.
 *
 * Rendered outside <form> (via #prefix) so they sit above the form card.
 */

.insurance-landing-above {
  max-width: 750px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.insurance-landing-intro {
  text-align: center;
  margin: 0 0 1.5rem;
}

.insurance-landing-intro__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.insurance-landing-intro__subtitle {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a4a4a;
}

.insurance-process-steps {
  margin: 0;
}

.insurance-process-steps__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insurance-process-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.insurance-process-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.125rem;
  left: calc(50% + 1.2rem);
  width: calc(100% - 2.4rem);
  height: 2px;
  background: #c5c9d1;
  z-index: 0;
}

.insurance-process-steps__item.is-complete:not(:last-child)::after {
  background: var(--primary-color, #0e7a50);
}

.insurance-process-steps__number {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.55rem;
  padding: 0;
  border: 2px solid #c5c9d1;
  border-radius: 50%;
  background: #fff;
  color: #8a9099;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 0;
  text-align: center;
  z-index: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.insurance-process-steps__digit {
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Optical vertical centering for typical sans digits. */
  transform: translateY(0.04em);
}

.insurance-process-steps__check {
  display: block;
  width: 14px;
  height: 14px;
}

.insurance-process-steps__label {
  display: block;
  max-width: 11rem;
  padding: 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: #8a9099;
  transition: color 0.2s ease;
}

.insurance-process-steps__item.is-upcoming .insurance-process-steps__number {
  border-color: #c5c9d1;
  color: #8a9099;
  background: #fff;
}

.insurance-process-steps__item.is-active .insurance-process-steps__number {
  border-color: var(--primary-color, #0e7a50);
  background: var(--primary-color, #0e7a50);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color, #0e7a50) 18%, transparent);
  transform: scale(1.08);
}

.insurance-process-steps__item.is-active .insurance-process-steps__label {
  color: #1a1a1a;
  font-weight: 700;
}

.insurance-process-steps__item.is-complete .insurance-process-steps__number {
  border-color: var(--primary-color, #0e7a50);
  background: var(--primary-color, #0e7a50);
  color: #fff;
}

.insurance-process-steps__item.is-complete .insurance-process-steps__label {
  color: #1a1a1a;
}

@media (max-width: 600px) {
  .insurance-process-steps__label {
    max-width: 7rem;
    font-size: 0.82rem;
  }

  .insurance-process-steps__item:not(:last-child)::after {
    left: calc(50% + 1.1rem);
    width: calc(100% - 2.2rem);
  }
}
