/* SL Process Timeline widget */

.slpt {
  --slpt-line: #dfe4ec;
  --slpt-fill: #f5c518;
  --slpt-line-width: 4px;
  --slpt-overlap: 36px;
  --slpt-node: 52px;
  --slpt-node-color: #0b1b3f;
  --slpt-node-bg: #fff;
  --slpt-node-border: #dfe4ec;
  --slpt-node-passed-color: #0b1b3f;
  --slpt-node-passed-bg: #f5c518;
  --slpt-halo: #eef2f8;
  --slpt-gap: 96px;
  --slpt-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  counter-reset: slpt-step;
}

.slpt__track {
  position: absolute; top: 0; bottom: 64px; left: 50%;
  width: var(--slpt-line-width);
  transform: translateX(-50%);
  background: var(--slpt-line);
  border-radius: var(--slpt-line-width);
  overflow: hidden;
}
.slpt__fill {
  position: absolute; inset: 0;
  background: var(--slpt-fill);
  transform-origin: top;
  transform: scaleY(var(--slpt-progress, 1));
}

.slpt .slpt__list { position: relative; margin: 0; padding: 0; list-style: none; }

.slpt__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--slpt-gap) minmax(0, 1fr);
  align-items: center;
  margin: 0;
  counter-increment: slpt-step;
}
.slpt__step + .slpt__step { margin-top: calc(var(--slpt-overlap) * -1); }

.slpt__step::before {
  content: counter(slpt-step, decimal-leading-zero);
  grid-column: 2; grid-row: 1; justify-self: center;
  display: grid; place-items: center;
  width: var(--slpt-node); height: var(--slpt-node);
  border-radius: 50%;
  font-weight: 600; font-size: 15px; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--slpt-node-color);
  background: var(--slpt-node-bg);
  border: 2px solid var(--slpt-node-border);
  box-shadow: 0 0 0 6px var(--slpt-halo);
  box-sizing: border-box;
  transition: background-color .4s var(--slpt-ease), border-color .4s var(--slpt-ease), color .4s var(--slpt-ease);
}
.slpt--num-plain .slpt__step::before { content: counter(slpt-step); }
.slpt--num-none .slpt__step::before { content: ""; width: calc(var(--slpt-node) * .4); height: calc(var(--slpt-node) * .4); }
.slpt__step.is-passed::before {
  color: var(--slpt-node-passed-color);
  background: var(--slpt-node-passed-bg);
  border-color: var(--slpt-node-passed-bg);
}

.slpt__card {
  position: relative;
  grid-column: 1; grid-row: 1;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  transition: box-shadow .35s var(--slpt-ease), transform .35s var(--slpt-ease);
}
.slpt--alternate .slpt__step:nth-child(even) .slpt__card { grid-column: 3; }
.slpt__card::after {
  content: ""; position: absolute; top: 50%; right: -25px;
  width: 24px; height: 2px; background: var(--slpt-line);
}
.slpt--alternate .slpt__step:nth-child(even) .slpt__card::after { right: auto; left: -25px; }
.slpt__step:hover .slpt__card { transform: translateY(-3px); }

.slpt .slpt__title { margin: 0 0 8px; color: #0b1b3f; font-weight: 600; font-size: 19px; line-height: 1.3; }
.slpt .slpt__desc { margin: 0; color: #566074; font-size: 16px; line-height: 1.6; }

.slpt .slpt__end {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: 100%;
  margin: 40px auto 0;
  padding: 14px 28px 14px 16px;
  border-radius: 999px;
  background: #f5c518; color: #0b1b3f;
  font-weight: 600; font-size: 18px; line-height: 1.3;
}
.slpt__end-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: #0b1b3f;
}
.slpt__end-icon svg { width: 18px; height: 18px; fill: none; stroke: #f5c518; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Single column, and alternating layout below tablet */
.slpt--single .slpt__track { left: calc(var(--slpt-node) / 2); transform: translateX(-50%); }
.slpt--single .slpt__step { grid-template-columns: var(--slpt-node) minmax(0, 1fr); gap: 20px; align-items: start; }
.slpt--single .slpt__step + .slpt__step { margin-top: 20px; }
.slpt--single .slpt__step::before { grid-column: 1; justify-self: center; }
.slpt--single .slpt__card { grid-column: 2; }
.slpt--single .slpt__card::after { display: none; }
.slpt--single .slpt__end { margin-left: 0; }

@media (max-width: 1024px) {
  .slpt--alternate .slpt__track { left: calc(var(--slpt-node) / 2); }
  .slpt--alternate .slpt__step { grid-template-columns: var(--slpt-node) minmax(0, 1fr); gap: 18px; align-items: start; }
  .slpt--alternate .slpt__step + .slpt__step { margin-top: 20px; }
  .slpt--alternate .slpt__step::before { grid-column: 1; }
  .slpt--alternate .slpt__card,
  .slpt--alternate .slpt__step:nth-child(even) .slpt__card { grid-column: 2; }
  .slpt--alternate .slpt__card::after { display: none; }
  .slpt--alternate .slpt__end { margin-left: 0; }
}

@media (max-width: 767px) {
  .slpt { --slpt-node: 44px; }
  .slpt__step::before { font-size: 13px; }
  .slpt__card { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .slpt__step::before, .slpt__card { transition: none; }
  .slpt__step:hover .slpt__card { transform: none; }
}
