.radio-text input[type='radio'] {
  z-index: -1;
  position: absolute;
  opacity: 0;
}

.radio-text input[type='radio']:checked ~ label {
  background-color: rgba(1, 70, 174, 0.1);
  color: #0146ae;
}

.radio-text input[type='radio']:checked ~ label::before {
  will-change: transform, border-width, border-color;
  -webkit-animation: bubble 1s ease-in;
          animation: bubble 1s ease-in;
}

.radio-text input[type='radio']:checked ~ label > span {
  will-change: transform;
  border: 0;
  z-index: 10;
  background: #0146ae;
  -webkit-animation: radio 400ms cubic-bezier(0.17, 0.89, 0.32, 1.49);
          animation: radio 400ms cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.radio-text input[type='radio']:checked ~ label > span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 10px;
  background-color: #fff;
}

.radio-text label {
  position: relative;
  display: -ms-grid;
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-grid-columns: 20px auto 100px;
      grid-template-columns: 20px auto 100px;
  grid-gap: 20px;
  width: 320px;
  height: 40px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: bold;
  -webkit-transition: all 200ms ease-in;
  transition: all 200ms ease-in;
  color: #666;
}

.radio-text label:hover {
  border-color: #0146ae;
  background-color: rgba(1, 70, 174, 0.1);
}

.radio-text label::before, .radio-text label::after {
  position: absolute;
  left: 19px;
  border-radius: 50%;
  content: '';
}

.radio-text label::before {
  margin: -2rem;
  border: solid 2rem #0146ae;
  width: 4rem;
  height: 4rem;
  -webkit-transform: scale(0);
          transform: scale(0);
}

.radio-text label > span {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  border: 2px solid #0146ae;
  background: #fff;
}

@-webkit-keyframes radio {
  0%,
  17.5% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}

@keyframes radio {
  0%,
  17.5% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}

@-webkit-keyframes bubble {
  15% {
    -webkit-transform: scale(1);
            transform: scale(1);
    border-color: rgba(1, 70, 174, 0.15);
    border-width: 2rem;
  }
  30%,
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    border-color: rgba(1, 70, 174, 0.15);
    border-width: 0;
  }
}

@keyframes bubble {
  15% {
    -webkit-transform: scale(1);
            transform: scale(1);
    border-color: rgba(1, 70, 174, 0.15);
    border-width: 2rem;
  }
  30%,
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    border-color: rgba(1, 70, 174, 0.15);
    border-width: 0;
  }
}

.radio-switch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #666;
}

.radio-switch input[type='radio'] {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}

.radio-switch input[type='radio']:checked + label {
  color: #fff;
}

.radio-switch input[type='radio']:checked + label::before {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

.radio-switch label {
  background-color: #fff;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  padding: 8px 16px;
  margin-right: -1px;
  border: 1px solid #ccc;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 64px;
  overflow: hidden;
}

.radio-switch label:hover {
  cursor: pointer;
  background-color: rgba(1, 70, 174, 0.1);
}

.radio-switch label::before {
  content: '';
  background-color: #0146ae;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  -webkit-transition: 0.2s -webkit-transform ease-in;
  transition: 0.2s -webkit-transform ease-in;
  transition: 0.2s transform ease-in;
  transition: 0.2s transform ease-in, 0.2s -webkit-transform ease-in;
}

.radio-switch label:first-of-type {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.radio-switch label:first-of-type::before {
  -webkit-transform: translateX(101%);
          transform: translateX(101%);
}

.radio-switch label:last-of-type {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.radio-switch label:last-of-type::before {
  -webkit-transform: translateX(-101%);
          transform: translateX(-101%);
}

.radio-switch label > span {
  position: relative;
  z-index: 10;
}

.form-group {
  margin: 30px 0;
}

.range-slider-wrapper {
  margin: 40px 0 50px;
}

#company_type_slider {
  margin-top: 13px;
}

.range-slider {
  background-color: rgba(1, 70, 174, 0.1);
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  height: 10px;
  border-radius: 10px;
}

.range-slider .noUi-connects {
  border-radius: 10px;
}

.range-slider .noUi-connect {
  background: #0146ae;
  border-radius: 10px;
  cursor: pointer;
}

.range-slider .noUi-handle {
  height: 24px;
  width: 24px;
  border-radius: 20px;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: 0;
  background-color: #0146ae;
  border: 2px solid #e5ecf7;
  right: -12px !important;
  top: -7px;
  cursor: pointer;
}

.range-slider .noUi-handle::after {
  display: none;
}

.range-slider .noUi-handle::before {
  width: 6px;
  height: 6px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background: white;
  border-radius: 10px;
}

.range-slider .noUi-marker-horizontal.noUi-marker {
  display: none;
}

.range-slider .noUi-pips-horizontal {
  height: 55px;
  padding: 4px 0;
  color: #666666;
}

.range-slider .noUi-value {
  cursor: pointer;
  -webkit-transition: color 0.2s ease-in;
  transition: color 0.2s ease-in;
  padding: 5px;
}

.range-slider .noUi-value.active {
  color: #0146ae;
  font-weight: bold;
  -webkit-animation: activeText 0.3s ease-in forwards;
          animation: activeText 0.3s ease-in forwards;
}

@-webkit-keyframes activeText {
  50% {
    -webkit-transform: translate(-50%, 50%) scale(1.3);
            transform: translate(-50%, 50%) scale(1.3);
  }
  80% {
    -webkit-transform: translate(-50%, 50%) scale(1.1);
            transform: translate(-50%, 50%) scale(1.1);
  }
  100% {
    -webkit-transform: translate(-50%, 50%) scale(1.2);
            transform: translate(-50%, 50%) scale(1.2);
  }
}

@keyframes activeText {
  50% {
    -webkit-transform: translate(-50%, 50%) scale(1.3);
            transform: translate(-50%, 50%) scale(1.3);
  }
  80% {
    -webkit-transform: translate(-50%, 50%) scale(1.1);
            transform: translate(-50%, 50%) scale(1.1);
  }
  100% {
    -webkit-transform: translate(-50%, 50%) scale(1.2);
            transform: translate(-50%, 50%) scale(1.2);
  }
}

@media (max-width: 767px) {
  .form-group > label {
    margin: 12px 0;
  }
}
