:root {
  --flow-text-color: #949494;
  --flow-primary-color: #7960f4;
  --flow-secondary-color: #4936bc;
}

.flow-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* flow Wide */

.flow {
  color: var(--flow-text-color);
  margin-bottom: 1.5rem;
  padding: 64px 0;
}

.flow-wide .flow-chain {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.flow-wide .flow-bar {
  height: 8px;
  width: 100%;
  margin-bottom: 64px;
  border-radius: 5px;
  background-color: var(--flow-primary-color);
}

.flow-wide .flow-nav {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.flow-wide .flow-nav::before {
  content: attr(data-label);
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--flow-primary-color);
}

.flow-wide .flow-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: flex-start;
  text-align: center;
  aspect-ratio: 1/1;
  transition: all 0.3s;
}

.flow-wide .flow-item button {
  flex-basis: 100%;
  color: var(--flow-secondary-color);
  background-color: transparent;
}

.flow-wide .flow-item button {
  background-color: transparent;
}

.flow-wide .flow-item .flow-icon::before {
  /* content: ""; */
  position: absolute;
  left: 50%;
  top: -10px;
  width: calc(100% + 20px);
  aspect-ratio: 1/1;
  transform: translateX(-50%);
  border: 4px solid;
  border-color: transparent;
  z-index: -1;
  border-radius: 50%;
  transition: all 0.3s;
}

.flow-wide .flow-item.active .flow-icon::before {
  border-color: var(--flow-primary-color);
}

.flow-wide .flow-item:last-child::before {
  display: none;
}

.flow-wide .flow-item::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  width: 2px;
  height: 8px;
  background-color: var(--flow-primary-color);
}

.flow-wide .flow-item a {
  margin: 0;
  text-decoration: none;
}

.flow-wide .flow-item .flow-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.flow-wide .flow-item .flow-icon img {
  max-width: 255px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.flow-wide .flow-item .flow-icon .title-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  width: 100%;
  max-width: 150px;
  margin: 0 auto 8px auto;
  font-size: 0.95rem;
  font-weight: bold;
}

.flow-wide .flow-item .flow-icon .title-wrapper span.title {
  font-size: 20px;
  width: 100%;
  transition: all 0.3s;
  color: var(--flow-secondary-color);
}

.flow-wide .flow-item.active .flow-icon .title-wrapper span.title {
  text-decoration: underline;
  color: var(--flow-primary-color);
}

.flow-wide .flow-tabs {
  max-width: 900px;
  margin: auto;
}

.flow-wide .flow-tab {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.flow-wide .flow-tab .title-wrapper {
  flex: 0.2;
  width: 100%;
  max-width: 350px;
  font-size: 1.875rem;
  text-align: center;
  color: var(--flow-primary-color);
}

.flow-wide .flow-tab .title-wrapper strong {
  display: block;
  font-size: 5rem;
}

.flow-wide .flow-tab .content {
  flex: 0.8;
  max-width: 100%;
}

/* flow Stretch */

.flow-stretch {
  display: none;
  position: relative;
}

.flow-stretch .flow-slider {
  position: relative;
  overflow: hidden;
}

.flow-stretch .flow-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  flex-shrink: 0;
  width: 100%;
  transition: all 0.3s ease-in;
}

.flow-stretch .flow-item .header {
  position: relative;
  text-align: center;
}

.flow-stretch .flow-item .header .flow-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 200px;
}

.flow-stretch .flow-item .header .flow-icon img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.flow-stretch .flow-item .header .flow-value {
  margin-top: 1rem;
  font-size: 1.875rem;
  text-align: center;
  line-height: 1;
  color: var(--flow-primary-color);
}

.flow-stretch .flow-item .header .flow-value strong {
  display: block;
}

.flow-stretch .flow-tab .header .flow-value strong {
  font-size: 5rem;
}

.flow-stretch .flow-item .content {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px dotted var(--flow-secondary-color);
}

.content span.title {
  display: block;
  margin-bottom: 4px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--flow-secondary-color);
}

.content span.subtitle {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--flow-secondary-color);
}

.flow-stretch .flow-slider-nav {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 255px;
  top: 0;
  left: 0;
}

.flow-stretch .flow-slider-nav .flow-slider-button-prev {
  left: 0;
}

.flow-stretch .flow-slider-nav .flow-slider-button-next {
  right: 0;
}

.flow .flow-stretch .flow-slider-nav .flow-slider-button {
  position: absolute;
  top: 50%;
  background-color: transparent;
  color: var(--flow-secondary-color);
  border: none;
  transition: all 0.3s;
}

.flow .flow-stretch .flow-slider-nav .flow-slider-button:hover {
  background-color: transparent;
  color: var(--flow-primary-color);
}

.flow .hidden {
  display: none !important;
}

@keyframes fadeIn {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes fadeOut {
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.flow .isActive {
  opacity: 1 !important;
  transform: translateX(0%);
}

@media screen and (max-width: 800px) {
  .flow-wide {
    display: none;
  }
  .flow-stretch {
    display: block;
  }
}
