.steps-with-switch {
  --font-primary: Elastik, sans-serif;
  --font-secondary: Solina, "Times New Roman", sans-serif;
  padding-top: var(--padding-top, 50px);
  padding-bottom: var(--padding-bottom, 50px);
  background-color: var(--bg-color, #00C65E);
}

@media only screen and (max-width: 767px) {
  .steps-with-switch {
    padding-top: var(--mobile-padding-top, 30px);
    padding-bottom: var(--mobile-padding-bottom, 30px);
  }
}

.steps-with-switch .container.steps-with-switch__container {
  max-width: var(--content-max-width, 1200px);
}

.steps-with-switch__inner {
  max-width: var(--content-inner-width, 100%);
  margin-left: auto;
  margin-right: auto;
}

.steps-with-switch__header {
  text-align: center;
  margin-bottom: 24px;
}

.steps-with-switch__subheading {
  display: block;
  margin: 0 auto 8px;
  max-width: var(--subheading-max-width, 100%);
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-primary);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(var(--color-primary-body-text), 1);
}

.steps-with-switch__heading {
  margin: 0 0 24px;
  letter-spacing: -0.03em; /* Figma: -3% */
  line-height: 0.9;
}

@media only screen and (max-width: 767px) {
  .steps-with-switch__heading {
    margin-bottom: 16px;
  }
}

/* Tabs */

.steps-with-switch__tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  width: 460px;
  margin: 0 auto 40px;
  padding: 0;
  border-radius: 26px;
  background-color: transparent;
  border: 1px solid #282928;
}

.steps-with-switch__tab {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 16px 24px;
  border-radius: 24px;
  background-color: transparent;
  color: #282928;
  font-family: 'Solina';
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-grow: 1;
}

.steps-with-switch__tab[aria-selected="true"] {
  background-color: #282928;
  color: #FFFEF9;
  min-width: 240px;
  flex-grow: 0;
}

@media only screen and (max-width: 767px) {
  .steps-with-switch__tabs {
    margin-bottom: 32px;
    width: 345px;
  }

  .steps-with-switch__tab {
    padding: 16px 8px;
  }

  .steps-with-switch__tab[aria-selected="true"] {
    min-width: 172px;
  }
}

/* Cards */

.steps-with-switch__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.steps-with-switch__card {
  display: none;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 11px);
  min-width: 250px;
}

.steps-with-switch[data-active-tab="1"] .steps-with-switch__card[data-switch-state="1"] {
  display: flex;
}

.steps-with-switch[data-active-tab="2"] .steps-with-switch__card[data-switch-state="2"] {
  display: flex;
}

.steps-with-switch__image {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--card-border-radius, 8px);
  border-width: var(--card-border-width, 0px);
  border-style: solid;
  border-color: var(--card-border-color, transparent);
  overflow: hidden;
}

.steps-with-switch__image img {
  display: block;
  width: 100%;
  height: auto;
}

.steps-with-switch__content {
  padding: var(--card-padding-vertical, 24px) var(--card-padding-horizontal, 24px);
  background-color: var(--bg-color, transparent);
  border-radius: var(--card-border-radius, 8px);
}

.steps-with-switch__item-heading {
  width: 100%;
  margin: 0 0 16px;
  letter-spacing: -0.03em; /* Figma: -3% */
  line-height: 0.9;
  font-size: 28px;
}

.steps-with-switch__item-text {
  width: 100%;
  color: rgba(var(--color-primary-body-text), 1);
}

.steps-with-switch__item-text p {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.steps-with-switch__bottom-text {
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(var(--color-primary-body-text), 1);
}

.steps-with-switch__bottom-text a {
  color: inherit;
  text-decoration: underline;
}

@media only screen and (max-width: 767px) {
  .steps-with-switch__bottom-text {
    margin-top: 24px;
  }
  .steps-with-switch__cards {
    gap: 32px;
  }

  .steps-with-switch__card {
    flex: 1 1 100%;
  }

  .steps-with-switch__item-heading {
    font-size: 20px;
  }
}