
.groupingContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  padding: 0.5rem;
}

.radioGroup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.radioGroup label {
  font-family: vazir, sans-serif;
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  color: var( --heading-color);
  border: 3px solid var( --heading-color);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: var(--container-bg);
  box-shadow: 0 3px 6px rgba(151, 153, 254, 0.2);
}

.radioGroup label:hover {
  background-color: var(--button-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(151, 153, 254, 0.3);
}

.radioGroup input:checked ~ label {
  background-color: var(--heading-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(151, 153, 254, 0.4);
}

p {
  font-size: 0.95rem;
  font-family: vazir, sans-serif;
  color: var(--text-color);
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  padding: 0 1rem;
}

.grouping {
  position: relative;
  width: 90%;
  max-width: 350px;
  min-width: 200px;
  aspect-ratio: 1/1;
  margin: 2rem auto;
  background: var(--container-bg);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(106, 77, 133, 0.1);
  border: 2px dashed var( --grouping-border);
}

.center-circle {
  position: absolute;
  width: 20%;
  height: 20%;
  background: var(--heading-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(151, 153, 254, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: bold;
}

.small-circle {
  position: absolute;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  background: #f69097;
  box-shadow: 0 0 8px rgba(246, 144, 151, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.small-circle:hover {
  transform: scale(1.2);
  background: #ff7a83;
}

.grouping .label {
  position: absolute;
  font-size: 11px;
  background: var(--text-color);
  color: var(--container-bg);
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transform: translateX(-50%);
  font-family: vazir, sans-serif;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.grouping .label:hover {
  background: var( --label-hover);
  transform: translateX(-50%) scale(1.05);
}

.grouping .label input {
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 8px;
  width: 80px;
  color: #6a4d85;
  font-family: vazir, sans-serif;
  font-weight: 800;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.grouping .label input:focus {
  border-color: #9799fe;
  box-shadow: 0 0 5px rgba(151, 153, 254, 0.5);
}

@media screen and (max-width: 500px) {
  p {
    font-size: 0.85rem;
  }

  .radioGroup label {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 375px) {
  .radioGroup label {
    padding: 0.5rem 1rem;
  }

  .grouping .label{
    font-size: 9px;
  }
}

@media screen and (max-width: 320px) {

  .radioGroup {
    gap: 0.7rem;
  }

  .radioGroup label {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}
