/* ══════════════════════════════════════════════
   C-TAB
══════════════════════════════════════════════ */
.c-tab {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--vw) * 8);
  padding: calc(var(--vw) * 5) calc(var(--vw) * 8);
  border-radius: calc(var(--vw) * 2);
  border: 2px solid transparent;
  background-color: var(--gray-100);
  color: var(--black);
  font-size: calc(var(--vw) * 14);
  font-weight: bold;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    font-weight 0.15s ease;
}

.c-tab--sm {
  font-size: calc(var(--vw) * 11);
}

.c-tab--selected {
  background-color: var(--white);
  border-color: var(--secondary-color);
  font-weight: 700;
}

.c-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--vw) * 24);
  height: calc(var(--vw) * 24);
  padding: calc(var(--vw) * 4);
  border-radius: calc(var(--vw) * 6);
  border: 1.5px solid var(--gray-600);
  background-color: var(--white);
  color: var(--black);
  font-size: calc(var(--vw) * 11);
  font-weight: 500;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   C-TAB-GROUP
══════════════════════════════════════════════ */
.c-tab-group {
  display: inline-flex;
  align-items: center;
  gap: 0;

  border-radius: calc(var(--vw) * 4);
}

.c-tab-group__item {
  display: flex;
  align-items: center;
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: calc(var(--vw) * 7);
  border-radius: calc(var(--vw) * 4);
  border: 1px solid transparent;
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: calc(var(--vw) * 14);
  font-weight: bold;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, font-weight 0.15s ease;
}

.c-tab-group__item--bg-white {
  background-color: var(--white);
}

.c-tab-group__item--selected {
  background-color: var(--white);
  border-color: var(--secondary-color);
  color: var(--black);
  font-weight: 700;
}

.c-tab-group__item .c-tab__badge {
  background-color: var(--gray-100);
}
.c-tab-group__item--selected .c-tab__badge {
  background-color: var(--white);
}

.c-tab-group--field {
  width: 100%;
  justify-content: space-between;
  gap: calc(var(--vw) * 8);
  padding: 0;
  background-color: transparent;
}

.c-tab-group--field .wpcf7-form-control-wrap {
  flex: 1;
}

.c-tab-group__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}


.c-tab-group__input:checked + .c-tab-group__item {
  background-color: var(--white);
  border-color: var(--secondary-color);
  color: var(--black);
  font-weight: 700;
}

.c-tab-group__input:focus-visible + .c-tab-group__item {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}



@media (max-width: 768px) {
  .c-tab-group--field {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .c-tab-group--field::-webkit-scrollbar {
    display: none;
  }

  .c-tab-group--field .c-tab-group__item {
    flex: 0 0 auto;
  }
}