/* For steps in wizard */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
}

h1, h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}

.onl-wizard-wrapper {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
}

.onl-wizard-form {
  max-width: 700px;
  margin: 0px auto;
}
.onl-wizard {
  display: block;
  margin: 15px;
}

.onl-wizard-form .step {
  display: none;
}
.onl-wizard-form .step.active {
  display: block;
}

.onl-wizard-form svg {
  fill: currentColor;
  height: 1em;
  width: 1em;
  vertical-align: -0.15em;
  overflow: hidden;
}

/* Navigation Buttons */
.onl-wizard-form .navigation-button {
  cursor: pointer;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  color: white;
  background-color: rgb(1, 66, 172);
}
.onl-wizard-form .navigation-button:hover, .onl-wizard-form .navigation-button:focus {
  background-color: rgb(39, 94, 184);
}
.onl-wizard-form .navigation-button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

.navigation-buttons .navigation-button + .navigation-button {
  margin-left: 20px;
}
.navigation-buttons .navigation-button.full-width-navigation-button {
  display: block;
  width: 100%;
}

/* For single select with radio & multi select with checkboxes */
.onl-wizard-form .radio-buttons > input[type="radio"] {
  position: absolute;
  left: 20px;
  opacity: 0;
  width: 1px;
  margin: 0;
  margin-left: -1px;
  top: 20px;
}
.onl-wizard-form .multiselect > input[type="checkbox"] {
  display: none;
}

.onl-wizard-form .radio-buttons, .onl-wizard-form .multiselect {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}
.onl-wizard-form .radio-button, .onl-wizard-form .multiselect-button {
  appearance: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;

  display: flex;
  place-content: center space-between;
  align-items: center;

  background-color: rgba(1, 66, 172, 0.1);
  box-shadow: rgba(1, 66, 172, 0.6) 0px 0px 0px 1px inset;
  color: rgb(1, 66, 172);
  border-radius: 20px;
}
.onl-wizard-form .radio-buttons > input[type="radio"]:checked + .radio-button, .onl-wizard-form .multiselect > input[type="checkbox"]:checked + .multiselect-button {
  box-shadow: rgba(1, 66, 172, 0.8) 0px 0px 0px 2px inset;
}

.onl-wizard-form .radio-buttons .radio-button-check-icon, .onl-wizard-form .multiselect-button .multiselect-button-check-icon {
  visibility: hidden;
}
.onl-wizard-form .radio-buttons > input[type="radio"]:checked + .radio-button .radio-button-check-icon, .onl-wizard-form .multiselect > input[type="checkbox"]:checked + .multiselect-button .multiselect-button-check-icon {
  visibility: visible;
}

/* Sonstige text field */
.onl-wizard-form .multiselect .text-form-field {
  display: none;
  padding: 0 20px;
}
.onl-wizard-form .multiselect > input[type="checkbox"][value="Sonstige"]:checked + .multiselect-button + .text-form-field {
  display: block;
}
.onl-wizard-form .multiselect .text-form-field .text-form-hint {
  color: gray;
  font-size: 10px;
  margin-top: 2px;
  visibility: hidden;
}
.onl-wizard-form .multiselect .text-form-field input:focus + .text-form-hint {
  visibility: visible;
}

/* Error msgs style if at least one checkbox needs to be selected */
.onl-wizard-form .multi-select-error-warn {
  flex: 100%;
  color: red;
  margin-left: 10px;
}

.onl-wizard-form .text-form-field {
  margin-bottom: 15px;
}

.onl-wizard-form .text-form-field label {
  display: block;
  font-weight: unset;
  font-size: 14px;
  line-height: 20px;
  color: rgb(1, 66, 172);
  margin: 0;
}

.onl-wizard-form .text-form-field input {
  display: block;
  width: 100%;
  color: rgb(1, 66, 172);
  padding-inline: 0px;
  border: none;
  outline: none;
  border-radius: 0px;
  font-size: 20px;
  line-height: unset;
  box-shadow: rgba(1, 66, 172, 0.3) 0px 1px;
  background-color: transparent !important;
}

#final-submit-button.processing-pdf {
  pointer-events: none;
  opacity: 0.6;
}

#final-submit-button #processing-pdf-spinner {
  display: none;
  -webkit-animation: icon-spin 1s infinite steps(8);
  animation: icon-spin 1s infinite steps(8);
}
#final-submit-button.processing-pdf #processing-pdf-spinner {
  display: inline;
}

#final-submit-button #processing-pdf-done {
  display: none;
}
#final-submit-button.processed-pdf #processing-pdf-done {
  display: inline;
}

@keyframes icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
