/**
 * @file
 * Visual styles for form components.
 */

form .field-multiple-table {
  margin: 0;
}
form .field-multiple-table .field-multiple-drag {
  width: 30px;
  padding-right: 0; /* LTR */
}
[dir="rtl"] form .field-multiple-table .field-multiple-drag {
  padding-left: 0;
}
form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0.5em; /* LTR */
}
[dir="rtl"] form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0;
  padding-left: 0.5em;
}
form .field-add-more-submit {
  margin: 0.5em 0 0;
}

/**
 * Markup generated by Form API.
 */
.form-item,
.form-actions {
  margin-top: 1em;
  margin-bottom: 1em;
}
tr.odd .form-item,
tr.even .form-item {
  margin-top: 0;
  margin-bottom: 0;
}
.form-composite > .fieldset-wrapper > .description,
.form-item .description {
  font-size: 0.85em;
}

label.option {
  display: inline;
  font-weight: normal;
}
.form-composite > legend,
.label {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: bold;
}
.form-checkboxes .form-item,
.form-radios .form-item {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.form-type-radio .description,
.form-type-checkbox .description {
  margin-left: 2.4em; /* LTR */
}
[dir="rtl"] .form-type-radio .description,
[dir="rtl"] .form-type-checkbox .description {
  margin-right: 2.4em;
  margin-left: 0;
}
.marker {
  color: #e00;
}
.form-required::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.3em;
  content: "";
  vertical-align: super;
  /* Use a background image to prevent screen readers from announcing the text. */
  background-image: url(../../images/icons/required.svg);
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
abbr.tabledrag-changed,
abbr.ajax-changed {
  border-bottom: none;
}
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
  border: 2px solid red;
}

/* Inline error messages. */
.form-item--error-message::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  content: "";
  vertical-align: sub;
  background: url(../../images/icons/error.svg) no-repeat;
  background-size: contain;
}

/* Added for MacEwan Theme */

label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type=text], input[type=tel], input[type=email] {
  display: block;
  width: 60%;
  border: 0;
  background-color: var(--bg-gray);
}

textarea {
  width: 60%;
}

fieldset {
  padding: 0;
  margin: 18px 2px;
  border: none;
}

.fieldset-legend {
  font-weight: bold;
}

fieldset input[type=text], fieldset input[type=tel], fieldset input[type=email], fieldset textarea, .webform-multiple-table {
  width: 60%;
}

.webform-multiple-table {
  margin-bottom: 20px;
}

input[type=submit] {
  background-color: var(--bg-red);
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 18px 70px;
  border: 0;
  cursor: pointer;
}

#scfwid > form {
  gap: 0 !important;
}

#scfsearchparam, .search-form input.form-search {
  background-color: white !important;
  border: 1px solid var(--border-gray) !important;
  height: 48px !important;
  width: 60% !important;
  padding: 0 10px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 1.375rem !important;
}

#scfsearchparam:focus, .search-form input.form-search:focus {
  border: 1px solid var(--bg-red) !important;
  border-radius: 0 !important;
}

#scfsearch, .search-form input.form-submit {
  background-color: var(--bg-red);
  color: white;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  padding: 18px 70px !important;
  border: 0 !important;
  height: 50px !important;
  cursor: pointer;
  border-radius: 0px !important;
}

.search-form > .container-inline {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  height: 50px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.search-form > .container-inline input.form-search {
  width: auto !important;
}

.search-form > .container-inline input.form-submit {
  height: 48px !important;
  line-height: 12px;
}

.search-form > .container-inline .form-item {
  margin-top: 0;
  margin-bottom: 0;
}

.form-composite.webform-fieldset--title-inline legend {
  float: none;
}

input[type="date"] {
}

/* RO@M Form Specific */

table[id^="edit-macewan-student-collaborators-items"] thead {
  display: none;
}

#edit-macewan-student-collaborators #edit-macewan-student-collaborators-add-submit {
  margin-bottom: 5px;
  padding: 10px 30px;
}

@media screen and (max-width: 958px) {
fieldset input[type=text], fieldset input[type=tel], fieldset input[type=email], fieldset textarea, .webform-multiple-table {
  width: 100%;
}

input[type=text], input[type=tel], input[type=email] {
  width: 100%;
}

textarea {
  width: 100%;
}

}

