.ankieta {
  display: flex;
  flex-direction: column;
  font-size: 1.7rem;
  gap: 2.5rem;
}

.ankieta .wtext {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.ankieta .alert {
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 1rem;
  padding: 0.2rem 0.5rem;
  min-height: 4rem;
  max-width: 44rem;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 2px;
  box-shadow: 1px 1px 4px rgb(200, 200, 200);
}

.ankieta .alert-error {
  background-color: rgb(177, 0, 0);
}

.ankieta .alert-error-1 {
  background-color: var(--white);
  color: var(--black);
  border: solid 0.3rem rgb(177, 0, 0);
  min-height: 3.4rem;
  max-width: 43.4rem;
}

.ankieta .alert-success {
  background-color: rgb(0, 177, 0);
}

.ankieta form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ankieta .displayn {
  display: none;
}

.ankieta .qestion {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: justify;
  gap: 0rem;
}

.ankieta .c5 {
  display: flex;
  position: relative;
  max-width: 45rem;
  height: 6.5rem;
  position: relative;
}
.ankieta .c5::after {
  content: '';
  position: absolute;
  top: calc(1.5rem + 1px);
  left: 0;
  height: 1rem;
  border-radius: 1.2rem;
  width: 100%;
  background-color: rgb(255, 255, 255);
    box-shadow: 1px 3px 5px rgb(231, 231, 231);
}

.ankieta .c5 .slider {
  position: absolute;
  opacity: 0;
  top: calc(1px + 0.1rem + 1.4rem);
  left: 2px;
  height: 1rem;
  width: calc(20% - 1px);
  background: rgb(252, 252, 252);
  border-radius: 1.2rem;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.ankieta .c5 .slider-2 {
  width: calc(50% - 2px);
  background: var(--blue);
}

.ankieta .c5 .slider-a {
  background: var(--blue);
}

.ankieta .c5 .slider-3 {
  width: calc(33.3% - 1px);
  background: var(--blue);
}

.ankieta .c5 input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.ankieta .c5 label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 1;
  z-index: 2;
}

.ankieta .c5 label div {
  height: 1.2rem;
  width: 100%;
  background-color: rgb(252, 252, 252);
  border-top: 1px solid rgb(231, 231, 231);
  border-bottom: 1px solid rgb(231, 231, 231);
}

.ankieta .c5 label:nth-child(2) div {
  border-radius: 1.2rem 0 0 1.2rem;
  border-left: 1px solid rgb(211, 211, 211);
}

.ankieta .c5 label:last-child div {
  border-radius: 0 1.2rem 1.2rem 0;
  border-right: 1px solid rgb(211, 211, 211);
}

.ankieta .c5 span {
  display: flex;
  justify-items: center;
  align-items: center;
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.ankieta form span.error {
  display: block;
  margin: 0 0 0.4rem 0.5rem;
  font-size: 1.2rem;
  color: rgb(255, 0, 0);
}

.ankieta textarea {
  resize: none;
  overflow: hidden;
  min-height: 10rem;
  height: auto;
  box-sizing: border-box;
  color: var(--black-sw);
  background-color: transparent;
  outline: 1px solid rgb(229 229 229);
  box-shadow: 1px 1px 5px rgb(233 233 233), inset -1px -1px 5px rgb(251 251 251);
  height: 100%;
  width: 100%;
  max-width: 45rem;
  font-size: 1.6rem;
  font-family: inherit;
  padding: 1rem;
  margin: 1rem 0 0 0;
  border: none;
  border-radius: 0.5rem;
}

.ankieta textarea:focus {
  border: none;
  outline: 2px solid rgb(233, 233, 233);
}

.ankieta button {
  box-sizing: content-box;
  position: relative;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  margin: 1rem 0 0 0;
  font-family: inherit;
  cursor: pointer;
  border-radius: 5rem;
  height: 2rem;
  padding: 0.8rem 0;
  max-width: 45rem;
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: 500;
  box-shadow: 0 3px 3px rgb(147 141 141), inset -1px -1px 5px rgb(0 53 109);
  transition: font-weight 0.2s ease, box-shadow 0.05s ease, transform 0.05s ease;
}

.ankieta button:hover {
  font-weight: 600;
}

.ankieta button:active {
  transform: translateY(0.2rem);
  box-shadow: 0 0 3px rgb(147 141 141), inset -1px -1px 5px rgb(0 53 109);
}

.ankieta button::after {
  content: '';
  position: absolute;
  background-color: rgba(165, 165, 165, 0.1);
  left: 50%;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 2rem;
  transition: width 0.3s ease, left 0.3s ease;
}

.ankieta button:hover::after {
  width: 100%;
  left: 0;
}

@media screen and (max-width: 500px) {

  .ankieta .alert,
  .ankieta .c5,
  .ankieta textarea,
  .ankieta button {
    max-width: none;
  }

  .ankieta form span.error {
    display: flex;
    justify-content: center;
    margin: 0 0 0.4rem 0;
  }
}