.webform-submission-bike-chosing-aid-form {
  &:not(:has(.hero)) {
    margin-bottom: 8rem;
  }

  .progress-step {
    position: relative;

    &:first-child {
      .progress-text {
        padding-left: 0
      }
    }

    &:last-child {
      .progress-marker::after {
        display: block;
      }

      .progress-text {
        text-align: right;
        padding-right: 0;
      }
    }
  }

  .progress-marker {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;

    &::before {
      display: none;
    }
  }

  .webform-progress-tracker {
    .progress-step {
      .progress-marker {
        &::after {
          background-color: #D9D9D9;
        }
      }

      &.is-active {
        .progress-marker {
          &::after {
            background-color: #000000;
          }
        }
      }
    }
  }

  .progress-tracker--center {
    text-align: left;

    .progress-marker {
      &::after {
        right: unset;
      }
    }
  }

  .progress-tracker {
    margin-bottom: 130px;
  }

  fieldset {
    text-align: center;

    legend {
      font-size: 33px;
      font-weight: 300;
      text-transform: uppercase;
      margin-bottom: 40px;
    }

    &[data-drupal-selector="edit-bike-usage-type"] {
      .webform-options-display-buttons-wrapper {
        width: calc(25% - 50px);
      }
    }
  }

  .webform-options-display-buttons {
    justify-content: center;

    .webform-options-display-buttons-wrapper {
      margin: 0 25px 25px 25px;
    }

    .form-item {
      margin-bottom: 0;
    }

    .form-check {
      padding-left: 0;

      label {
        margin: 0;
        width: 100%;
        aspect-ratio: 4 / 3;
      }
    }
  }

  label[for="edit-select-bike-usage"],
  label[for="edit-select-bike-frame-type"],
  label[for="edit-select-body-height"],
  label[for="edit-select-drive-type"],
  .webform-confirmation__message {
    font-size: 33px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: block;
    width: 100%;
    text-align: center;
  }

  ul.thumbnails.image_picker_selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    li {
      margin: 1px 12.5px 25px 12.5px;
      width: calc(25% - 25px);

      .thumbnail {
        border: none;
        padding: 0;
        transition: all .2s ease;

        img {
          /* background-color: #F5F5F5; */
          border: 4px solid rgba(0, 0, 0, 0);
          transition: all .2s ease;
        }

        p {
          margin-top: 1em;
        }

        &.selected {
          color: inherit;
          background: unset;

          img {
            border: 4px solid var(--bs-primary);
          }
        }

        &:not(.selected):hover img {
          cursor: pointer;
          border: 4px solid var(--bs-primary-bg-subtle);
        }
      }
    }
  }

  .body-height-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    >label {
      width: 100%;
    }

    .description {
      width: 100%;
      text-align: center;
      margin-bottom: 2em;
    }

    .form-number {
      width: 94px
    }

    .field-suffix {
      margin-left: 1em;
      line-height: 2em;
    }
  }

  #edit-select-budget,
  #edit-select-distance,
  #edit-select-body-height {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 3em;

    >.form-item {
      width: calc(50% - 1.5em);
    }
  }

  .form-check {
    min-height: 1.78em;
  }

  .webform-confirmation {
    margin-top: 90px;
  }

  .badge {
    position: absolute;
    left: 1em;
    top: 1em;
    z-index: 1;

    &.bg-secondary {
      left: 3em;
    }
  }

  .bike-image {
    img {
      width: 100%;
    }
  }

  .form-check-input {
    transform: translateY(7px);
  }

  .hero {
    position: relative;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
}

.ui-dialog.download-bike-pdf {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 2rem);
}

html[data-admin-toolbar="collapsed"] .ui-dialog.download-bike-pdf {
  left: calc(50% + 73px) !important;
}
