.buform {
  font: 400 16px/1em bio-sans, arial, sans-serif;
  max-width: 500px;
}

.buform__theme--centered {
  margin: 0 auto;
}

.buform__theme--dark {
  color: #fff;
}

.buform__theme--dark :is(h1,h2,h3,h4,h5,h6,legend),
.buform.buform__theme--dark .form_question.form_h2 > .form_label /* slate */ {
  color: var(--universityGold) !important;
}

.buform * {
  box-sizing: border-box;
}

.buform .form-wrapper {
  position: relative;
  margin: 0 0 1rem 0;
}

.buform .form-item {
  display: flow-root;
  margin: 0 0 .4rem 0;
  position: relative;
}

.buform fieldset {
  border: 0;
  margin: 20px 0;
  padding: 0;
}

.buform legend, /* drupal */
.buform .form_question.form_h2 > .form_label /* slate */ {
  font-weight: 700;
  color: var(--baylorGreen);
  font-size: 20px;
  margin: 0 0 15px 0;
  letter-spacing: -0.01rem;
}


.buform input:not([type=button]):not([type=submit]):not([type=radio]):not([type=checkbox]),
.buform textarea {
  font: 400 16px/1.3em bio-sans, arial, sans-serif;
  letter-spacing: -.01em;
  width: 100%;
  height: 3.9rem;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.5);
  padding: 1.1rem 1rem 0 1rem;
  appearance: none;
  background: rgba(255,255,255,.8);
  color: #000;
}

.buform textarea {
  padding-top: 2rem;
  height: 100px;
  resize:vertical;
}

.buform :is(input, textarea)::placeholder {
  color: transparent;
}


.buform select {
  font: 400 16px/1.3em bio-sans, arial, sans-serif;
  width: 100%;
  appearance: none;
  text-overflow: ellipsis;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.5);
  padding: 1.1rem 1rem 0 1rem;
  height: 3.9rem;
  overflow: hidden;
  background: rgba(255,255,255,.8)
}

.buform :is(p,div):has(> select)::after {
  position: absolute;
  right: 1rem;
  top: 1.55rem;
  height: 20px;
  content: "\f078";
  position: absolute;
  font: 400 17px/1em Font Awesome\ 5 Pro;
  color: var(--charcoal);
  pointer-events: none;
}

.buform select[multiple='multiple'] {
  height: auto;
  padding: 2rem .8rem .8rem .8rem;
  line-height: 2em;
}

.buform select[multiple='multiple'] option {
  padding: 4px 0;
}

.buform :is(p,div):has(> select[multiple='multiple'])::after {
  content: "";
}

.buform label:has(+ input:not([type=button]):not([type=submit]):not([type=radio]):not([type=checkbox])),
.buform label:has(+ select),
.buform label:has(+ div textarea),
.buform label:has(+ div input:not([type=button]):not([type=submit]):not([type=radio]):not([type=checkbox])), /* slate */
.buform label:has(+ div select) /* slate */ {
  position: absolute;
  pointer-events: none;
  transition-timing-function: ease-in;
  transition-duration: .125s;
  top: 1.24rem;
  white-space: nowrap;
  overflow: hidden;
  left: 1rem;
  font-size: 17px;
  line-height: 1.3em;
  letter-spacing: -.01em;
  color: var(--charcoal);
}

.buform label.form-required::after {
  content: "*";
}

.buform .description,
.buform .form-item + .text-full {
  margin: .5rem 0 0 0;
  font-size: .85em;
  margin-left: 1rem;
  color: var(--charcoal);
  padding-bottom: .6em;
}

.buform input[type=checkbox] {
  float: left;
  margin-top: .3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 1px;
}

.buform input[type=checkbox] + label {
  display: block;
  margin-left: 1.8rem;
  line-height: 1.4em;
}

.buform input:not(:empty) {
  background: red !important;
}

.buform label:has(+ input:focus),
.buform label:has(+ input.buform__input--filled),
.buform label:has(+ select:focus),
.buform label:has(+ select),
.buform label:has(+ div textarea:focus),
.buform label:has(+ div textarea.buform__input--filled),
.buform label:has(+ div input:focus), /* slate */
.buform label:has(+ div input.buform__input--filled), /* slate */
.buform label:has(+ div select:focus), /* slate */
.buform label:has(+ div select) /* slate */ {
  font-size: 12px !important;
  line-height: 1.3em !important;
  top: 0.7rem !important;
}

.buform :is(input,select,textarea):focus,
.buform :is(input,select,textarea):active {
  border-color: #154734;
  box-shadow: 0 0 0 4px rgba(255, 184, 28, .8);
  outline: none;
}

.buform .form-actions {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,.3);
  padding-top: 1.5rem;
}

.buform__theme--dark .form-actions {
  border-top-color: rgba(255,255,255,.5);
}

.buform input[type=submit],
.buform button {
  border: 0;
  background: var(--universityGold);
  padding: .8rem 2rem .95rem 2rem;
  width: 100%;
  text-align: center;
  font: 400 17px/1em bio-sans, sans-serif;
  border-radius: 5px;
  text-shadow: 1px 1px 2px rgba(255,255,255,.2);
  border: 0;
  transition: all .25s ease;
  cursor: pointer;
  color: #000;
  outline: none;
}

.buform.buform__theme--gold input[type=submit],
.buform.buform__theme--gold button {
  background: var(--baylorGreen);
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.2);

}

.buform input[type=submit]:hover,
.buform input[type=submit]:active,
.buform input[type=submit]:focus,
.buform button:hover,
.buform button:active,
.buform button:focus {
  background: #ffd31c;
  border: 0;
  color: #000;

}

.buform input[type=submit]:active,
.buform input[type=submit]:focus-visible,
.buform button:active,
.buform button:focus-visible {
  box-shadow: 0 0 0 2px #ffd31c;
  border: 0;
  color: #000;
}

.buform.buform__theme--gold :is(input[type=submit]:hover, input[type=submit]:active),
.buform.buform__theme--gold :is(button:hover, button:active) {
  background: #006a52;
  border: 0;
  color: #fff;
}

.buform__theme--gold .buform input[type=submit]:active,
.buform.buform__theme--gold button:active {
  box-shadow: 0 0 0 2px #006a52;
  border: 0;
}

/* Error Styles */

.buform .form_question.required label,
.buform label:has(+ input:invalid:focus),
.buform label:has(+ select:invalid:focus),
.buform label:has(+ div textarea:invalid:focus),
.buform label:has(+ div input:invalid:focus),
.buform label:has(+ div select:invalid:focus),
.buform label:has(+ div textarea.error),
.buform label:has(+ div input.error),
.buform label:has(+ div select.error) {
  color: var(--alertRed) !important;
}

.buform .form_question.required input,
.buform .form_question.required select,
.buform input.error,
.buform select.error,
.buform input.error,
.buform textarea.error,
.buform input:invalid:focus,
.buform select:invalid:focus,
.buform div textarea:invalid:focus,
.buform div input:invalid:focus,
.buform div select:invalid:focus  {
  border-color: var(--alertRed) !important;
  background-color: #fae9e9 !important;
}

.buform .form_question.required label::after {
  color: var(--alertRed) !important;
}

/* Drupal Error Box */

div[data-drupal-messages]:has(+ .buform) {
  margin: 0 0 2rem 0;
}

div[data-drupal-messages]:has(+ .buform) div[role="alert"] {
  border-left-width: 60px;
  font: 400 16px/1.4em bio-sans, arial, sans-serif;
  padding: 22px 25px 22px 70px;
  background: #eee;
  position: relative;
}

div[data-drupal-messages]:has(+ .buform) div[role="alert"]::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  bottom: 0;
  width: 52px;
  background: #a60000;
}

div[data-drupal-messages]:has(+ .buform) div[role="alert"]::after {
  position: absolute;
  left: 0;
  width: 52px;
  top: 50%;
  margin-top: -10px;
  font-size: 20px;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1em;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Pro";
  text-align: center;
  content: "\f071";
  color: #fff;
  font-weight: 500;
}

div[data-drupal-messages]:has(+ .buform) div[role="alert"] * {
  box-sizing: border-box;
}

div[data-drupal-messages]:has(+ .buform) div[role="alert"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

div[data-drupal-messages]:has(+ .buform) div[role="alert"] li {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Slate Modals */

.dialog_host div {
  font: 400 18px/1.2em bio-sans !important;
}

.dialog_host .dialog > div {
  padding-top: 80px !important;
}

.dialog_host > div > div::before {
  content: "\f071";
  top: 30px;
  left: 0;
  right: 0;
  position: absolute;
  text-align: center;
  font: 700 24px/1em Font Awesome\ 5 Pro;
  color: var(--alertRed)
}
