/* Steps V2 */
.sp2-section {
  --v2-text: #55708A;
  --v2-note-bg: linear-gradient(90deg, rgba(15, 168, 225, .19) 0%, rgba(15, 168, 225, .11) 100%);
  --v2-note-border: transparent;
  --sp2-bar: #007BB9;
  background: #FFFFFF;
}
.sp2-section .sp2-steps {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.sp2-section .sp2-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid #E3EBF2;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sp2-section .sp2-step:hover {
  border-color: #C9DDEA;
  box-shadow: 0 4px 12px rgba(10, 30, 56, .07);
  transform: translateY(-2px);
}
.sp2-section .sp2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sp2-section .sp2-n {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0074AE;
}
.sp2-section .sp2-bar {
  display: flex;
  gap: 4px;
}
.sp2-section .sp2-bar i {
  display: block;
  width: 14px;
  height: 4px;
  border-radius: 4px;
  background: var(--v2-line);
}
.sp2-section .sp2-bar i.on {
  background: var(--sp2-bar);
}
.sp2-section .sp2-step .v2-card-title {
  font-family: var(--v2-font-head);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -.01em;
}
.sp2-section .sp2-step .v2-card-text {
  font-size: 16px;
  line-height: 26px;
}
.sp2-section .sp2-note {
  margin-top: 28px;
  padding: 20px 24px;
}

/* track and agenda styles sit further below the header */
.sp2-section .v2-head:has(+ .sp2-track, + .sp2-agenda) {
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

/* track style: icons on a dotted line */
.sp2-section .sp2-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--sp2-n, 4), minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp2-section .sp2-track:before {
  content: "";
  position: absolute;
  top: 23px;
  right: calc(100% / var(--sp2-n, 4) - 10px);
  left: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #C5D6E3 0 6px, transparent 6px 12px);
}
.sp2-section .sp2-track li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sp2-section .sp2-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #E3EBF2, 0 0 0 6px #F2F8FC;
}
.sp2-section .sp2-dot img {
  width: 20px;
  height: 20px;
}
.sp2-section .sp2-track .v2-card-title {
  margin-bottom: 6px;
  font-family: var(--v2-font-head);
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -.01em;
}
.sp2-section .sp2-track .v2-card-text {
  font-size: 14px;
  line-height: 22px;
  color: #5B6E80;
}

/* track: steps a booking has reached (set by Booking Hero V2) */
.sp2-section .sp2-track li.reached .sp2-dot {
  background: #16A98A;
  box-shadow: 0 0 0 6px #DDF3EC;
}
.sp2-section .sp2-track li.current .sp2-dot {
  background: var(--ic, #0FA8E1);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ic, #0FA8E1) 18%, #FFFFFF);
  animation: sp2-beat 2.2s ease-in-out infinite;
}
.sp2-section .sp2-track li.reached .sp2-dot img,
.sp2-section .sp2-track li.current .sp2-dot img {
  filter: brightness(0) invert(1);
}
@keyframes sp2-beat {
  50% {
    box-shadow: 0 0 0 11px color-mix(in srgb, var(--ic, #0FA8E1) 8%, #FFFFFF);
  }
}
.sp2-section .sp2-you {
  position: absolute;
  top: 12px;
  left: 58px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0A1E38;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #FFFFFF;
}

/* agenda style: cards with a time label and icon */
.sp2-section .sp2-agenda {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.sp2-section .sp2-ag {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--v2-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sp2-section .sp2-ag::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--ic, #0FA8E1);
}
.sp2-section .sp2-ag:hover {
  box-shadow: 0 0 0 1px var(--v2-line), 0 22px 40px -28px rgba(10, 30, 56, .35);
  transform: translateY(-3px);
}
.sp2-section .sp2-ag-t {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ic, #0FA8E1) 10%, #FFFFFF);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ic, #0FA8E1) 58%, #0A1E38);
}
.sp2-section .sp2-ag-ic {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic, #0FA8E1) 16%, #FFFFFF), color-mix(in srgb, #4CC0EE 10%, #FFFFFF));
}
.sp2-section .sp2-ag-ic img {
  width: 22px;
  height: 22px;
}
.sp2-section .sp2-ag .v2-card-title {
  margin-top: 6px;
  font-family: var(--v2-font-head);
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -.01em;
}
.sp2-section .sp2-ag .v2-card-text {
  font-size: 16px;
  line-height: 26px;
}

/* Bootstrap breakpoints */
@media (max-width: 991px) {
  .sp2-section .sp2-track {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
  .sp2-section .sp2-track:before {
    display: none;
  }
}
@media (max-width: 767px) {
  .sp2-section .sp2-track {
    grid-template-columns: 1fr;
  }
  .sp2-section .sp2-step .v2-card-title {
    font-size: 17px;
    line-height: 24px;
  }
  .sp2-section .sp2-track .v2-card-title,
  .sp2-section .sp2-ag .v2-card-title {
    font-size: 20px;
    line-height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp2-section .sp2-step:hover,
  .sp2-section .sp2-ag:hover {
    transform: none;
  }
  .sp2-section .sp2-track li.current .sp2-dot {
    animation: none;
  }
}
