/* Wizard Summary Styles */
.wizard-summary--container {
  margin-bottom: 2rem;
}

.wizard-summary {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 1.15rem;
  align-items: flex-end;
}

.wizard-summary-step {
  margin-left: 1rem;
  margin-right: 1rem;
}

.wizard-summary > li {
  position: relative;
  z-index: 2;
  margin-right: 3px !important;
  margin-left: 3px !important;
}

.wizard-summary > li:first-child .wizard-summary-step-count:before {
  display: none;
}

.wizard-summary > li:last-child .wizard-summary-step-count:after {
  display: none;
}

.wizard-summary-step-count:before {
  left: 0;
}

.wizard-summary-step-count:after {
  right: 0;
}

.wizard-summary-step-count:before, .wizard-summary-step-count:after {
  content: "";
  height: 0;
  width: 50%;
  position: absolute;
  z-index: -1;
  margin-bottom: -3px;
  border-top: 6px dashed #ddd;
}

.wizard-summary-step--completed .wizard-summary-step-count:before,
.wizard-summary-step--completed .wizard-summary-step-count:after,
.wizard-summary-step--active .wizard-summary-step-count:before {
  border-color: #1782d4;
}

.wizard-summary-step-count {
  width: 28px;
  height: 28px;
  margin: auto;
  background: #ddd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.wizard-summary-step--active {
  font-weight: 700;
}

.wizard-summary-step--active .wizard-summary-step-count,
.wizard-summary-step--completed .wizard-summary-step-count {
  background: #1782d4;
  color: #FFF;
}

.wizard-summary-step-description {
  margin: 1rem auto 3rem;
  text-align: center;
  max-width: 760px;
  word-break: keep-all !important;
}

.wizard-summary--container li, .wizard-summary--container ul {
  margin: 0;
  margin-block: 0;
}

.wizard-summary li {
  width: 270px;
}

/* Wizard Form Styles */
.wizard-form .view-content.gin-layer-wrapper {
  border: none !important;
  background: none !important;
  border-radius: none !important;
}

.wizard-app-form .form-actions {
  display: flex;
  justify-content: center;
}

.wizard-app-form .form-actions .form-submit {
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  margin-left: 1rem;
  margin-right: 1rem;
}

.wizard-app-form .form-actions .form-submit[data-drupal-selector="edit-back"] {
  display: flex;
  flex-direction: row-reverse;
}

.wizard-app-form .form-actions .form-submit[data-drupal-selector="edit-back"]:after {
  margin-left: 0;
  margin-right: 1rem;
  content: "\f137";
}

/* AJAX Processing Styles */
.ajax-progress--fullscreen, .ajax-progress {
  display: none !important;
}

.ajax--wrapper {
  transition: opacity 0.25s ease 0s;
  opacity: 1;
}

.ajax--wrapper.ajax--processing {
  opacity: 0.6;
  pointer-events: none;
}

.button--primary.form-submit.ajax--processing:after {
  content: "\f013" !important;
  animation: spin 2s infinite linear;
}

a.ajax--processing:after, button.ajax--processing:after {
  content: "\f013";
  animation: spin 2s infinite linear;
  font-family: "Font Awesome 6 Free";
  display: inline-block;
  position: relative;
  font-weight: 900;
  margin-left: 1rem;
}

.pager a.ajax--processing {
  padding-right: 1.5em;
}

.pager a.ajax--processing:after {
  font-size: 0.75em;
  margin-left: 0.35em;
}

.sortable-heading > a.ajax--processing::before {
  display: none !important;
}

.sortable-heading > a.ajax--processing::after {
  position: absolute;
  right: 18px;
  background: none;
  mask-image: none;
  -webkit-mask-image: none;
  width: initial !important;
  height: initial !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Wizard Styles */
@media screen and (max-width: 1400px) {
  .wizard-summary {
    font-size: 1rem !important;
  }
}
