:root {
  color-scheme: light;
  --ksu-gray-20: #d1d1d1;
  --ksu-gray-40: #a7a7a7;
  --ksu-lavender: var(--ksu-purple-light-75);
  --ksu-purple: #512888;
  --ksu-purple-dark-25: #3d1366;
  --ksu-purple-dark-50: #280049;
  --ksu-purple-light-15: #694190;
  --ksu-purple-light-50: #927eb4;
  --ksu-purple-light-75: #c0b5d5;
  --ksu-yellow: #f4c55c;
  --ksu-rhythm-horizontal: 0.9375rem;
  --ksu-rhythm-vertical: 1rem;
  --ksu-san-serif: myriad-pro, sans-serif;
  --ksu-serif: adobe-caslon-pro, serif;
  font-family: var(--ksu-san-serif);
}

.ksu-form,
.ksu-form *,
.ksu-form *::before,
.ksu-form *::after {
  box-sizing: border-box;
  transition: none;
}

.ksu-form :where(button, input, optgroup, select, textarea) {
  font: inherit;
  margin: 0;
}

.ksu-form :where(button) {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
}

.ksu-form :where(fieldset) {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.ksu-form :where(input, select, textarea) {
  border-radius: 0;
  box-shadow: none;
  color: inherit;
}

.ksu-form :is([type=color]:focus,
[type=date]:focus,
[type=datetime-local]:focus,
[type=datetime]:focus,
[type=email]:focus,
[type=month]:focus,
[type=number]:focus,
[type=password]:focus,
[type=search]:focus,
[type=tel]:focus,
[type=text]:focus,
[type=time]:focus,
[type=url]:focus,
[type=week]:focus,
textarea:focus) {
  transition: none;
}

.ksu-form :where(label) {
  color: inherit;
  display: block;
  font: inherit;
  line-height: inherit;
  margin: 0;
}

.ksu-form :where(legend) {
  color: inherit;
  display: block;
  margin: 0;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

.ksu-form ul,
.ksu-form ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ksu-form :where(select) {
  width: auto;
}

.ksu-form :where(textarea) {
  resize: vertical;
}

.ksu-form :where([hidden]) {
  display: none;
}

.ksu-form input[type=checkbox],
.ksu-form input[type=radio] {
  margin: 0;
}

.ksu-form input[type=checkbox] + label,
.ksu-form input[type=radio] + label {
  background: transparent;
  box-shadow: none;
  color: inherit;
  margin: 0;
  position: static;
  text-transform: none;
}

.ksu-form input[type=checkbox] + label::before,
.ksu-form input[type=checkbox] + label::after,
.ksu-form input[type=radio] + label::before,
.ksu-form input[type=radio] + label::after {
  box-shadow: none;
}

.ksu-form {
  color: #000000;
  font-family: var(--ksu-san-serif);
  font-size: 1.1875rem;
  line-height: 1.31579;
}

.ksu-form__group {
  margin-bottom: calc(var(--ksu-rhythm-vertical) * 1.25);
}

.ksu-form__group--error {
  border-left: 3px solid #d4351c;
  padding-left: var(--ksu-rhythm-horizontal);
}

.ksu-form__error-summary {
  border: 3px solid #d4351c;
  margin-bottom: calc(var(--ksu-rhythm-horizontal) * 2);
  padding: var(--ksu-rhythm-horizontal);
}

.ksu-form__error-summary:focus {
  outline: 3px solid var(--ksu-lavender);
}

.ksu-form__error-summary-title {
  color: #d4351c;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 var(--ksu-rhythm-horizontal);
}

.ksu-form__error-summary-list {
  list-style: none;
  margin-bottom: 0;
  margin-top: 0;
  padding-left: 0;
}

.ksu-form__error-summary-list > li + li {
  margin-top: calc(var(--ksu-rhythm-horizontal) / 3);
}

.ksu-form__error-summary .ksu-form__error-summary-link {
  color: #d4351c;
  font-weight: 700;
}

.ksu-form__error-summary .ksu-form__error-summary-link:focus {
  background-color: var(--ksu-lavender);
  box-shadow: 0 -2px var(--ksu-lavender), 0 4px #0b0c0c;
  color: #0b0c0c;
  outline: 0;
  text-decoration: none;
}

.ksu-form__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.ksu-form__legend {
  color: #000000;
  display: table;
  font-weight: 700;
  margin-bottom: calc(var(--ksu-rhythm-horizontal) * 2 / 3);
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

.ksu-form__legend--large {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: var(--ksu-rhythm-horizontal);
}

.ksu-form__label {
  color: #000000;
  display: block;
  font-weight: 700;
  margin-bottom: calc(var(--ksu-rhythm-horizontal) / 3);
}

.ksu-form__label--inline {
  display: inline-block;
  font-weight: 400;
  margin-bottom: 0;
}

.ksu-form__hint {
  color: #505a5f;
  display: block;
  margin-bottom: calc(var(--ksu-rhythm-horizontal) * 2 / 3);
}

.ksu-form__error-message {
  color: #d4351c;
  display: block;
  font-weight: 700;
  margin-bottom: calc(var(--ksu-rhythm-horizontal) * 2 / 3);
}

.ksu-form__error-prefix {
  margin-right: calc(var(--ksu-rhythm-horizontal) / 3);
}

.ksu-form__input,
.ksu-form__textarea,
.ksu-form__select {
  appearance: none;
  background-color: #ffffff;
  border: 2px solid var(--ksu-purple-dark-50);
  border-radius: 0;
  color: #000000;
  display: block;
  min-height: 2.5rem;
  padding: calc(var(--ksu-rhythm-horizontal) / 3);
  width: 100%;
}

.ksu-form__input:focus,
.ksu-form__textarea:focus,
.ksu-form__select:focus {
  border: 3px solid var(--ksu-purple-dark-50);
  box-shadow: none;
  outline: 5px solid var(--ksu-lavender);
  outline-offset: 0;
}

.ksu-form__checkbox-input:focus + .ksu-form__checkbox-label::before,
.ksu-form__radio-input:focus + .ksu-form__radio-label::before,
.ksu-form input[type=checkbox].ksu-form__checkbox-input:focus + .ksu-form__checkbox-label::before,
.ksu-form input[type=radio].ksu-form__radio-input:focus + .ksu-form__radio-label::before {
  border: 3px solid var(--ksu-purple-dark-50);
  box-shadow: 0 0 0 5px var(--ksu-lavender);
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.ksu-form__input[aria-invalid=true],
.ksu-form__textarea[aria-invalid=true],
.ksu-form__select[aria-invalid=true],
.ksu-form__input--error,
.ksu-form__textarea--error,
.ksu-form__select--error {
  border-color: #d4351c;
}
.ksu-form__input[aria-invalid=true]:focus,
.ksu-form__textarea[aria-invalid=true]:focus,
.ksu-form__select[aria-invalid=true]:focus,
.ksu-form__input--error:focus,
.ksu-form__textarea--error:focus,
.ksu-form__select--error:focus {
  border-color: var(--ksu-purple-dark-50);
}

.ksu-form__input:disabled,
.ksu-form__textarea:disabled,
.ksu-form__select:disabled {
  background-color: var(--ksu-gray-20);
  color: #6f777b;
  cursor: not-allowed;
}

.ksu-form__input:read-only:not(:disabled),
.ksu-form__textarea:read-only:not(:disabled) {
  background-color: #e0e0e0;
  color: #000000;
}

.ksu-form .ksu-form__input--width-2 {
  max-width: 2.75em;
}

.ksu-form .ksu-form__input--width-3 {
  max-width: 3.75em;
}

.ksu-form .ksu-form__input--width-4 {
  max-width: 4.75em;
}

.ksu-form .ksu-form__input--width-5 {
  max-width: 5.75em;
}

.ksu-form .ksu-form__input--width-10 {
  max-width: 11.5em;
}

.ksu-form .ksu-form__input--width-20 {
  max-width: 23em;
}

.ksu-form__textarea {
  min-height: 10rem;
}

.ksu-form__textarea--monospace {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
}

.ksu-form__select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ksu-purple-dark-50) 50%), linear-gradient(135deg, var(--ksu-purple-dark-50) 50%, transparent 50%);
  background-origin: border-box;
  background-position: calc(100% - 1rem) 50%, calc(100% - 0.6875rem) 50% !important;
  background-repeat: no-repeat;
  background-size: 0.3125rem 0.3125rem, 0.3125rem 0.3125rem;
  padding-right: calc(var(--ksu-rhythm-horizontal) * 2);
}

.ksu-form__listbox-wrapper {
  max-width: 100%;
  position: relative;
}

.ksu-form__combobox-input {
  padding-right: calc(var(--ksu-rhythm-horizontal) * 2);
}

.ksu-form__listbox-combobox {
  background-color: #ffffff;
  border: 2px solid var(--ksu-purple-dark-50);
  color: #000000;
  cursor: pointer;
  min-height: 2.5rem;
  padding: calc(var(--ksu-rhythm-horizontal) / 3) calc(var(--ksu-rhythm-horizontal) * 2) calc(var(--ksu-rhythm-horizontal) / 3) calc(var(--ksu-rhythm-horizontal) / 3);
  position: relative;
  width: 100%;
}

.ksu-form__listbox-combobox::after {
  background-image: linear-gradient(45deg, transparent 50%, var(--ksu-purple-dark-50) 50%), linear-gradient(135deg, var(--ksu-purple-dark-50) 50%, transparent 50%);
  background-position: left 50%, right 50%;
  background-repeat: no-repeat;
  background-size: 0.3125rem 0.3125rem, 0.3125rem 0.3125rem;
  border: 0;
  content: "";
  height: 0.3125rem;
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.625rem;
}

.ksu-form__listbox-combobox:focus {
  border: 3px solid var(--ksu-purple-dark-50);
  outline: 5px solid var(--ksu-lavender);
  outline-offset: 0;
}

.ksu-form__listbox-combobox--error {
  border-color: #d4351c;
}
.ksu-form__listbox-combobox--error:focus {
  border-color: var(--ksu-purple-dark-50);
}

.ksu-form__listbox-combobox--placeholder {
  color: #505a5f;
}

.ksu-form__listbox-combobox--disabled {
  background-color: var(--ksu-gray-20);
  color: #6f777b;
  cursor: not-allowed;
}

.ksu-form__listbox-combobox--disabled::after {
  background-image: linear-gradient(45deg, transparent 50%, var(--ksu-gray-20) 50%), linear-gradient(135deg, var(--ksu-gray-20) 50%, transparent 50%);
}

.ksu-form__listbox,
.ksu-form__multi-select-listbox {
  background-color: #ffffff;
  border: 2px solid var(--ksu-purple-dark-50);
  list-style: none;
  margin: 0;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0;
}

.ksu-form__listbox {
  border-top: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 10;
}

.ksu-form__multi-select-listbox {
  max-width: 100%;
}

.ksu-form__multi-select-listbox:focus {
  border: 3px solid var(--ksu-purple-dark-50);
  outline: 5px solid var(--ksu-lavender);
  outline-offset: 0;
}

.ksu-form__multi-select-listbox--error {
  border-color: #d4351c;
}
.ksu-form__multi-select-listbox--error:focus {
  border-color: var(--ksu-purple-dark-50);
}

.ksu-form__multi-select-listbox--disabled {
  background-color: var(--ksu-gray-20);
  color: #6f777b;
  cursor: not-allowed;
}

.ksu-form__multi-select-listbox--disabled:focus {
  border: 2px solid var(--ksu-purple-dark-50);
  outline: 0;
}

.ksu-form__multi-select-listbox--disabled.ksu-form__multi-select-listbox--error:focus {
  border-color: #d4351c;
}

.ksu-form__listbox-option {
  cursor: pointer;
  padding: calc(var(--ksu-rhythm-horizontal) / 3) var(--ksu-rhythm-horizontal);
}

.ksu-form__listbox-option:hover,
.ksu-form__listbox-option--active {
  background-color: var(--ksu-lavender);
  color: #0b0c0c;
  outline: 1px solid #0b0c0c;
  outline-offset: -1px;
}

.ksu-form__listbox-option--selected {
  background-color: var(--ksu-purple);
  color: #ffffff;
  font-weight: 700;
}

.ksu-form__listbox-option--active.ksu-form__listbox-option--selected {
  background-color: var(--ksu-purple);
  box-shadow: inset 0 0 0 5px var(--ksu-lavender);
  color: #ffffff;
  outline: 1px solid #0b0c0c;
  outline-offset: -1px;
}

.ksu-form__listbox-option--disabled,
.ksu-form__listbox-option--disabled:hover {
  background-color: var(--ksu-gray-20);
  box-shadow: none;
  color: #6f777b;
  cursor: not-allowed;
  outline: 0;
}

.ksu-form__checkboxes,
.ksu-form__radios {
  display: grid;
  gap: calc(var(--ksu-rhythm-horizontal) * 2 / 3);
}

.ksu-form__checkboxes--compact,
.ksu-form__radios--compact {
  gap: 0;
}

.ksu-form__checkbox,
.ksu-form__radio {
  align-items: center;
  display: flex;
  min-height: 2.75rem;
  padding-left: 2.75rem;
  position: relative;
}

.ksu-form__checkbox--compact,
.ksu-form__radio--compact,
.ksu-form__checkboxes--compact .ksu-form__checkbox,
.ksu-form__radios--compact .ksu-form__radio {
  margin-left: -0.625rem;
  padding-left: 2.75rem;
}

.ksu-form__checkbox-input,
.ksu-form__radio-input {
  cursor: pointer;
  height: 2.75rem;
  inset: 0 auto auto 0 !important;
  margin: 0;
  opacity: 0;
  position: absolute !important;
  width: 2.75rem;
  z-index: 1;
}

.ksu-form__checkbox--compact .ksu-form__checkbox-input,
.ksu-form__radio--compact .ksu-form__radio-input,
.ksu-form__checkboxes--compact .ksu-form__checkbox-input,
.ksu-form__radios--compact .ksu-form__radio-input {
  left: 0 !important;
}

.ksu-form__checkbox .ksu-form__checkbox-label,
.ksu-form__radio .ksu-form__radio-label {
  align-self: center;
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0.5rem 0 0.5rem calc(var(--ksu-rhythm-horizontal) / 2);
  position: static;
}

.ksu-form__checkbox--compact .ksu-form__checkbox-label,
.ksu-form__radio--compact .ksu-form__radio-label,
.ksu-form__checkboxes--compact .ksu-form__checkbox-label,
.ksu-form__radios--compact .ksu-form__radio-label {
  padding: 0 0 0 1px;
}

.ksu-form__checkbox-label::before,
.ksu-form__radio-label::before,
.ksu-form input[type=checkbox].ksu-form__checkbox-input + .ksu-form__checkbox-label::before,
.ksu-form input[type=radio].ksu-form__radio-input + .ksu-form__radio-label::before {
  background-color: #ffffff;
  border: 2px solid var(--ksu-purple-dark-50);
  box-sizing: border-box;
  content: "";
  height: 2.5rem;
  left: 0rem;
  position: absolute;
  top: 0.125rem;
  width: 2.5rem;
}

.ksu-form__checkbox--compact .ksu-form__checkbox-label::before,
.ksu-form__radio--compact .ksu-form__radio-label::before,
.ksu-form__checkboxes--compact .ksu-form__checkbox-label::before,
.ksu-form__radios--compact .ksu-form__radio-label::before,
.ksu-form__checkbox--compact input[type=checkbox].ksu-form__checkbox-input + .ksu-form__checkbox-label::before,
.ksu-form__radio--compact input[type=radio].ksu-form__radio-input + .ksu-form__radio-label::before,
.ksu-form__checkboxes--compact input[type=checkbox].ksu-form__checkbox-input + .ksu-form__checkbox-label::before,
.ksu-form__radios--compact input[type=radio].ksu-form__radio-input + .ksu-form__radio-label::before {
  height: 1.5rem;
  left: 0.625rem;
  top: 0.625rem;
  width: 1.5rem;
}

.ksu-form__radio-label::before {
  border-radius: 50%;
}

.ksu-form__checkbox-label::after,
.ksu-form input[type=checkbox].ksu-form__checkbox-input + .ksu-form__checkbox-label::after {
  background-color: transparent;
  border-color: var(--ksu-purple);
  border-bottom-width: 0.3125rem;
  border-left-width: 0.3125rem;
  border-right-width: 0;
  border-style: solid;
  border-top-width: 0;
  box-sizing: border-box;
  content: "";
  height: 0.75rem;
  left: 0.625rem;
  opacity: 0;
  position: absolute;
  top: 0.875rem;
  transform: rotate(-45deg);
  width: 1.375rem;
}

.ksu-form__checkbox--compact .ksu-form__checkbox-label::after,
.ksu-form__checkboxes--compact .ksu-form__checkbox-label::after,
.ksu-form__checkbox--compact input[type=checkbox].ksu-form__checkbox-input + .ksu-form__checkbox-label::after,
.ksu-form__checkboxes--compact input[type=checkbox].ksu-form__checkbox-input + .ksu-form__checkbox-label::after {
  border-bottom-width: 0.1875rem;
  border-left-width: 0.1875rem;
  height: 0.4375rem;
  left: 1rem;
  top: 1.0625rem;
  width: 0.75rem;
}

.ksu-form__radio-label::after,
.ksu-form input[type=radio].ksu-form__radio-input + .ksu-form__radio-label::after {
  background-color: var(--ksu-purple);
  border-radius: 50%;
  box-sizing: border-box;
  content: "";
  height: 1rem;
  left: 0.75rem;
  opacity: 0;
  position: absolute;
  top: 0.875rem;
  width: 1rem;
}

.ksu-form__radio--compact .ksu-form__radio-label::after,
.ksu-form__radios--compact .ksu-form__radio-label::after,
.ksu-form__radio--compact input[type=radio].ksu-form__radio-input + .ksu-form__radio-label::after,
.ksu-form__radios--compact input[type=radio].ksu-form__radio-input + .ksu-form__radio-label::after {
  height: 0.625rem;
  left: 1.0625rem;
  top: 1.0625rem;
  width: 0.625rem;
}

.ksu-form__checkbox-input:checked + .ksu-form__checkbox-label::after,
.ksu-form__radio-input:checked + .ksu-form__radio-label::after,
.ksu-form input[type=checkbox].ksu-form__checkbox-input:checked + .ksu-form__checkbox-label::after,
.ksu-form input[type=radio].ksu-form__radio-input:checked + .ksu-form__radio-label::after {
  opacity: 1;
}

.ksu-form__checkbox-input:disabled,
.ksu-form__checkbox-input:disabled + .ksu-form__checkbox-label,
.ksu-form__radio-input:disabled,
.ksu-form__radio-input:disabled + .ksu-form__radio-label {
  color: #6f777b;
  cursor: not-allowed;
}

.ksu-form__checkbox-input:disabled + .ksu-form__checkbox-label::before,
.ksu-form__radio-input:disabled + .ksu-form__radio-label::before,
.ksu-form input[type=checkbox].ksu-form__checkbox-input:disabled + .ksu-form__checkbox-label::before,
.ksu-form input[type=radio].ksu-form__radio-input:disabled + .ksu-form__radio-label::before {
  border-color: var(--ksu-gray-20);
}

.ksu-form__checkbox-input:disabled:checked + .ksu-form__checkbox-label::after,
.ksu-form input[type=checkbox].ksu-form__checkbox-input:disabled:checked + .ksu-form__checkbox-label::after {
  border-color: var(--ksu-gray-20);
}

.ksu-form__radio-input:disabled:checked + .ksu-form__radio-label::after,
.ksu-form input[type=radio].ksu-form__radio-input:disabled:checked + .ksu-form__radio-label::after {
  background-color: var(--ksu-gray-20);
}

.ksu-form__date-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ksu-rhythm-horizontal);
}

.ksu-form__date-input-item {
  max-width: 5rem;
}

.ksu-form__file {
  color: #000000;
  display: block;
  font: inherit;
  width: 100%;
}

.ksu-form__file:focus {
  outline: 3px solid var(--ksu-lavender);
  outline-offset: 3px;
}

.ksu-form__character-count {
  color: #505a5f;
  margin-top: calc(var(--ksu-rhythm-horizontal) / 3);
}

.ksu-form__character-count--error {
  color: #d4351c;
  font-weight: 700;
}

.ksu-form__button {
  background-color: var(--ksu-purple);
  border: 2px solid transparent;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  min-height: 2.75rem;
  padding: calc(var(--ksu-rhythm-horizontal) * 2 / 3) var(--ksu-rhythm-horizontal);
  text-align: center;
  text-decoration: none;
}

.ksu-form__button:hover {
  background-color: var(--ksu-purple-dark-25);
}

.ksu-form__button:focus {
  background-color: var(--ksu-lavender);
  color: #0b0c0c;
  outline: 3px transparent;
}

.ksu-form__button:disabled,
.ksu-form__button[aria-disabled=true] {
  cursor: not-allowed;
  opacity: 0.5;
}

.ksu-form__button--secondary {
  background-color: var(--ksu-gray-20);
  color: #000000;
}

.ksu-form__button--secondary:hover {
  background-color: var(--ksu-gray-40);
}

.ksu-form__button--warning {
  background-color: #d4351c;
}

.ksu-form__button--warning:hover {
  background-color: #aa2a16;
}

@media (forced-colors: active) {
  .ksu-form__checkbox-input:focus + .ksu-form__checkbox-label::before,
  .ksu-form__radio-input:focus + .ksu-form__radio-label::before {
    outline: 2px solid Highlight;
  }
  .ksu-form__checkbox-label::after,
  .ksu-form__radio-label::after {
    forced-color-adjust: none;
  }
  .ksu-form__radio-label::after {
    background-color: CanvasText;
  }
}
