.form-page aside {
  display: none;
}

.step {
  display: none;
}

.active {
  display: block;
}

input {
  padding: 15px 20px;
  width: 100%;
  font-size: 1em;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
}

input:focus {
  border: 1px solid #009688;
  outline: 0;
}

.invalid {
  border: 1px solid #ffaba5;
}

.invalid + .invalid-feedback {
  display: block;
}

#nextBtn,
#prevBtn {
  background-color: #009688;
  color: #ffffff;
  border: none;
  padding: 13px 30px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 5px;
  transition: background-color 0.3s ease;
  flex-basis: 50%;
}

#prevBtn {
  background-color: #ffffff;
  color: #f60;
  border: 1px solid #f60;

  @media (max-width: 577px) {
    order: 2;
  }
}

#prevBtn:hover,
#nextBtn:hover {
  background-color: #ca5202;
  color: #ffffff;
}

.progress {
  margin-bottom: 20px;
}

/******* ADDED ********/
.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --gap: 10px;
  gap: var(--gap);
}

.option-wrap {
  flex-basis: calc(50% - var(--gap));
  max-width: 205px;
  min-width: 0;

  @media (max-width: 340px) {
    flex-basis: 100%;
  }
}

#label-dogname,
#label-birthday,
#label-breed {
  text-align: center;
  font-size: 18px;
}

#label-birthday i,
#label-breed i {
  font-size: 20px;
}

#dog_name,
#birthday,
#breed {
  max-width: 210px;
}

.option-wrap label:has(> input[type="checkbox"]:checked),
.option-wrap label:has(> input[type="radio"]:checked) {
  border-color: #85b39e;
  background-color: #e1ece8;
}

.option-wrap label:has(> input[type="checkbox"].invalid),
.option-wrap label:has(> input[type="radio"].invalid) {
  background-color: #ffebee;
}

.form-check-label:has(> input[type="checkbox"].invalid) {
  color: #dd3211;
}

.option-wrap i {
  color: #5190bd;
}

.step h4 {
  text-align: center;
  margin-bottom: 25px;
}

.step .title h4 {
  margin-bottom: 0;
}

.step .title p {
  font-size: 16px;
  margin: 10px 0 25px;
  text-align: center;
}

.btn-radio {
  box-shadow: none;
  background: #fff;
  border: 2px solid hsl(240, 2%, 79%);
  transition: all;
  transition-duration: 0.1s;
  border-radius: 5px;
  max-width: 500px;
}

.btn-radio.selected {
  border-color: #c30010;
}

.btn-radio:hover {
  background: #fafafb;
  border: 2px solid #eaeaeb;
}

.btn-radio:hover i {
  color: #005da6;
}

.btn-next:focus {
  background-color: #f60;
  color: #fff;
  box-shadow: none;
}

button.btn-next {
  border: none;
  padding: 13px 30px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  flex: 1;
  margin-top: 5px;
  transition: background-color 0.3s ease;

  @media (max-width: 577px) {
    order: 1;
  }
}

.btn-wrapper {
  margin-top: 45px;
  gap: 10px;
  display: flex;

  @media (max-width: 577px) {
    flex-direction: column;
  }
}

.text-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;

  @media (max-width: 577px) {
    flex-direction: column;
    gap: 10px;
  }
}

.text-bottom > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.text-bottom span {
  font-size: 12px;
}

.privacy {
  padding: 10px;
  text-align: left !important;
}
.privacy input {
  position: absolute;
  display: block;
  width: auto;
}
.privacy small {
  display: inline-block;
  margin-left: 20px;
  font-size: 100%;
}
.privacy a {
  color: #333;
  text-decoration: underline;
}
.privacy a:hover,
.privacy a:focus,
.privacy a:active {
  text-decoration: none;
}

.step-wrapper {
  margin-top: 20px;
}

.step-wrapper[data-step="first"] .btn-wrapper button.btn-prev {
  display: none;
}

.step-wrapper[data-step="last"] .btn-wrapper,
.step-wrapper[data-step="last"] .progress,
.step-wrapper[data-step="last"] .text-bottom,
.step-wrapper[data-step="address-form"] .btn-wrapper .btn:not(.btn-next),
.step-wrapper[data-step="send-form"] .btn-wrapper .btn:not(.btn-submit) {
  display: none;
}

.step-wrapper[data-step="step-loader"] .btn-wrapper {
  display: none;
}

.btn-wrapper button.btn-submit {
  display: none;
}

.step-wrapper[data-step="send-form"] .btn-wrapper .btn-submit {
  display: block;
}

.form-text {
  font-size: 12px;
}

@media (min-width: 577px) {
  .form-address {
    display: flex;
    gap: 10px;
  }

  .form-address > div.short {
    flex: 30%;
  }

  .form-address > div:not(.short) {
    flex: 70%;
  }
}

.step-loader {
  overflow: hidden;
}

.slider {
  animation: slidein 3s linear infinite;
  white-space: nowrap;
  margin-bottom: 70px;
}

.slider .logos {
  width: 100%;
  display: inline-block;
  margin: 0px 0px;
}

.slider .item {
  display: inline-block;
  max-width: 150px;
  margin: 0 20px;
  animation: fade-in 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards;
}

@keyframes slidein {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.response {
  text-align: center;
  animation: fadeIn 700ms;
}

.response i {
  font-size: 50px;
}

.response i {
  color: #28a745;
}

#error .response i {
  color: #dd3211;
}

.step-wrapper[data-step="address-form"] .form-wrapper {
  animation: fadeIn 2000ms;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  66% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.step.last p {
  margin: 0;
}

.step.last #success,
.step.last #error {
  display: none;
  text-align: center;
}

.step.last #success h4,
.step.last #error h4 {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 20px 0 13px;
}

.step.last #loading .spinner-grow {
  width: 3rem;
  height: 3rem;
}

.step.last #loading h4 {
  font-size: 25px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 25px 0 10px;
}

.usercode {
  position: absolute;
  left: -5000px;
  top: 0;
}

/********* OVERWRITE ********/
.btn-checkbox,
.btn-radio {
  margin-bottom: 0;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.25em;
}

@media (min-width: 768px) {
  .btn-checkbox,
  .btn-radio {
    font-size: 1em;
  }
}
