@media (min-width: 768px) {
  #mm-0:has(.journey-form-component) {
    overflow: clip;
  }

  body:has(.journey-form-component) {
    overflow: clip auto;
  }

  .journey-form-component .actual-content {
    position: sticky;
    top: 96px;
  }
}

.journey-form-component .webform-submission-form {
  input,
  select{
    width: 100%;
    font-family: 'Avenir', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }
  input[type="radio"],
  input[type="checkbox"]{
    width: 14px;
    height: 14px;
    margin: 0;
    margin-top: 4px;
    background-image: none;
    appearance: auto;
    accent-color: #006680;
    &:focus {
      box-shadow: none;
      border: none;
      outline: 0;
    }
  }
  .radio,
  .checkbox {
    display: flex;
    align-items: normal;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
    width: 100%;
    label {
      color: #1A1A1A;
      font-family: Avenir, sans-serif;
      font-size: 14px;
      font-style: normal;
      font-weight: 500;
      line-height: 24px;
      margin-bottom: 0;
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
      flex: 1;
    }
    .webform-element-description {
      margin-left: 25px;
      color: #808080;
      font-family: Avenir, sans-serif;
      font-size: 14px;
      font-style: normal;
      font-weight: 500;
      line-height: 24px;
    }
  }
  .fieldset-legend {
    color: #1A1A1A;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500 !important;
    line-height: 120%;
    display: block;
    line-height: 24px;
  }
  .school-autocomplete {
    background-image: none;
  }
  input.error {
    box-shadow: 0px 0px 0px 0px #FFF inset, 0px 0px 0px 1px #FCA5A5 inset;
    overflow: hidden;
    color: #7F1D1D;
    text-overflow: ellipsis;
  }
  input[type="text"],
  input[type="number"],
  input[type="email"]{
    padding: 8px 12px;
  }
  select {
    padding: 8px 36px 8px 12px;
    line-height: 24px;
  }
  input[type="text"].is-invalid {
    background-image: none;
  }
  .js-form-item {
    margin-bottom: 16px !important;
    width: 100%;
    &>div {
      width: 100%;
    }
  }
  .js-webform-radios .js-form-item {
    margin-bottom: 0 !important;
    label {
      font-weight: 400 !important;
    }
  }
  div.form-wrapper {
    display:inline-block;
    .js-form-item {
      box-sizing: border-box;
      flex: 0 0 calc(50% - 12px);
      margin-bottom: 0 !important;
    }
    @media (max-width: 768px) {
      .js-form-item {
        flex: 0 0 100%;
      }
    }
  }
  div[id^="edit-school"],
  div[id^="edit-chapter"] {
    width: 100%;
    display: block;
    .js-form-item {
      width: 100%;
    }
  }
  label {
    color: #1A1A1A;
    font-family: 'Avenir', sans-serif;
    font-size: 14px;
    font-style: normal;
    line-height: 24px;
    margin-bottom: 8px;
    font-weight: 500 !important;
  }
  label.error {
    position: relative;
    padding-left: 28px;
    color: #DC2626;
    line-height: 20px;
    margin-top: 8px;
    font-weight: 400 !important;
  }

  .form-submit {
    width: auto;
  }

  .form-actions {
    position: relative;
    display:inline-block;
  }

  .webform-confirmation {
    position: relative;
    max-width: 400px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin: 0 auto;
    .webform-confirmation__message {
      position:relative;
      max-width: 293px;
      margin: 0 auto;
      color: #4d4d4d;
      text-align: center;
      font-family: Avenir, sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px;
      padding-top: 80px;
      &:before {
        position: absolute;
        top:0;
        left: 50%;
        content: '';
        width: 64px;
        height: 64px;
        background: #E2FBE8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='green'%3E%3Cpath fill-rule='evenodd' d='M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 0 1 1.04-.208Z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
        background-size:27px 19.5px;
        transform: translateX(-50%);
        border-radius: 50%;
      }
      h2 {
        text-align: center;
        font-style: normal;
        margin-bottom: 8px;
        align-self: stretch;
        color: #006680;
        font-size: 24px;
        font-weight: 400;
        font-family: GaspoSlab, sans-serif;
        line-height: 28.8px;
      }
    }
    .webform-confirmation__back {
      width: 100%;
      text-align: center;
      a {
        font-family: 'Avenir', sans-serif;
        position: relative;
        display: inline-flex;
        vertical-align: middle;
        height: max-content;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        transition: all 0.1s linear;
        gap: 0.375rem;
        border-radius: 0.5rem;
        padding: 0.75rem 1.125rem;
        font-size: 1rem;
        font-weight: 500;
        background-color: #e76127;
        color: #fff;
        box-shadow:
          inset 0 0 0 1px rgba(10,13,18,0.18),
          inset 0 -2px 0 0 rgba(10,13,18,0.05);
        ring: 1px transparent inset;
        margin: 0;
        border:0;
        &:hover {
          background-color: #c2410c !important;
        }
        &:focus-visible {
          outline-color: #FFD700;
          outline-width: 2px;
          outline-offset: 2px;
        }
        &::before {
          content: "";
          position: absolute;
          inset: 1px;
          border: 1px solid rgba(255, 255, 255, 0.12);
          border-radius: 7px;
        }
      }
      .ajax-progress.ajax-progress-throbber {
        display: none;
      }
    }
  }

  .form-item-recaptcha-notice {
    color: #1A1A1A;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 350;
    line-height: 24px;
    margin-bottom: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;

    margin-top: 24px;
  }
  .form-item-recaptcha-notice a {
    color: #E76127;
  }
}

.ui-menu-item-wrapper {
  color: #1A1A1A !important;
  padding: 3px 1em 3px .4em !important;
  display: block;
}
.ui-state-active {
  padding: 3px 1em 3px .4em !important;
  margin: 0 !important;
  color: #FFFFFF !important;
  border: none !important;
}

@keyframes customspin {
  0%   { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}
