.tq-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rp-page__steps .tq-steps{
  margin-bottom: var(--space-section);
}

.tq-step__icon {
  width: clamp(24px, 3vw, 40px);
  height: clamp(24px, 3vw, 40px);
  object-fit: contain;
  display: block;
}

.tq-step__connector {
  position: absolute;
  top: clamp(32px, 3.2vw, 40px);
  left: calc(50% + clamp(40px, 4.2vw, 52px));
  right: calc(-50% + clamp(40px, 4.2vw, 52px));
  border-top: 1px solid var(--tq-divider, #c9c5d0);
}

.tq-step__tile {
  width: clamp(56px, 6.0vw, 80px);
  height: clamp(56px, 6.0vw, 80px);
  border-radius: clamp(12px, 1.2vw, 20px);
  background: var(--tq-surface, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--tq-elev-tile, 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08));
  transition:
    transform var(--tq-dur-base, 260ms) var(--tq-ease-out, cubic-bezier(0.2, 0.7, 0.3, 1)),
    box-shadow var(--tq-dur-base, 260ms) ease;
}

.tq-step:hover .tq-step__tile {
  transform: translateY(-4px);
  box-shadow: var(--tq-elev-tile-hover, 0 4px 10px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.08));
}

.tq-step__eyebrow {
  margin-top: clamp(16px, 1.6vw, 24px);
  font-size: var(--font-size-small);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--tq-cp-brand, var(--tq-cp-logo, #8c1d24));
}

.tq-step__title {
  margin-top: clamp(6px, 0.8vw, 8px);
  font-size: var(--font-size-t5);
  font-weight: 500;
  line-height: var(--line-height-title);
  color: var(--tq-text, #1b1b1f);
  text-align: center;
  text-wrap: balance;
}

.tq-step__body {
  margin: clamp(6px, 0.9vw, 8px) 0 0;
  max-width: clamp(150px, 22vw, 210px);
  text-align: center;
  font-size: var(--font-size-t6);
  font-weight: 400;
  line-height: clamp(18px, 1.8vw, 20px);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--tq-text-secondary, #46464f);
}

.tq-steps .tq-step:first-child .tq-step__tile,
.tq-step--first .tq-step__tile {
  border: 2px solid var(--tq-step-accent, #dc2626);
  box-shadow:
    0 0 0 6px var(--tq-step-accent-soft, rgba(220, 38, 38, 0.12)),
    0 6px 16px var(--tq-step-accent-glow, rgba(220, 38, 38, 0.22));
}

.tq-steps .tq-step:first-child:hover .tq-step__tile,
.tq-step--first:hover .tq-step__tile {
  box-shadow:
    0 0 0 8px var(--tq-step-accent-soft, rgba(220, 38, 38, 0.12)),
    0 10px 22px var(--tq-step-accent-glow, rgba(220, 38, 38, 0.22));
}

.tq-steps .tq-step:first-child .tq-step__eyebrow,
.tq-step--first .tq-step__eyebrow {
  color: var(--tq-step-accent, #dc2626);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.tq-steps .tq-step:first-child .tq-step__title,
.tq-step--first .tq-step__title {
  font-weight: 600;
}

.tq-steps .tq-step:first-child .tq-step__connector,
.tq-step--first .tq-step__connector {
  border-top-color: var(--tq-step-accent, #dc2626);
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .tq-step__tile {
    transition: none;
  }

  .tq-step:hover .tq-step__tile {
    transform: none;
  }
}

@media (max-width: 600px) {
  .tq-step__body {
    display: none;
  }

}