/**
 * @file
 * Forms Styles.
 */

/* ===== GENERAL WEBFORM (BLOCK) STYLES ===== */
.block-webform-block {
  padding: 1rem;
}

/* ===== GLOBAL FORM ELEMENT STYLES ===== */
form label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}

@media only screen and (max-width: 600px) {
  form label {
    font-size: 13px;
  }
}

form input.button {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  background-color: #36707e;
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 3px rgb(0 0 0 / 0.5);
  transition: background-color 0.25s ease-in-out;
}

form input.button:hover {
  background-color: #3bc3ee;
}

form input.form-text,
form input.form-email,
form input.form-tel,
form textarea {
  padding: 1rem 1.25rem;
  border: 1px solid #dedede;
  border-radius: 5px;
  max-width: 80%;
  color: #666 !important;
  font-size: 18px;
  background: #f6f6f6;
}

form textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

form input.short-width {
  max-width: 20%;
}

form .form-actions.webform-actions {
  border-top: 1px solid #ccc;
  padding: 1rem 0 0 0;
  margin: 1.5rem 0 0 0;
}

@media only screen and (max-width: 600px) {
  form input.form-text,
  form input.form-email,
  form input.form-tel,
  form textarea,
  form select {
    width: 100%;
  }
}

form select {
  padding: 1rem;
  font-size: 16px;
  background: #f6f6f6;
  cursor: pointer;
  border: 1px solid #cccccc;
  border-radius: 5px;
  min-width: 200px;
}

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;
}

/* Webform (Thank You) Confirmation Modal Styles */
.ui-dialog.ui-widget {
  padding: 0 !important;
}

.ui-dialog.ui-widget .ui-dialog-titlebar {
  padding: 0.5rem 1rem;
  margin: 0;
  color: #fff;
  background: #69951c;
  background: linear-gradient(
    180deg,
    rgba(105, 149, 28, 1) 0%,
    rgba(31, 76, 3, 1) 100%
  );
}

.ui-dialog.ui-widget .ui-dialog-title {
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
}

.ui-dialog.ui-widget .ui-dialog-content {
  padding: 1.5rem;
}

.ui-widget-overlay {
  background: #000 !important;
  opacity: 0.5 !important;
}

/* Webform Tooltip Overrides.*/
.webform-submission-form .tippy-box {
  padding: 0.5rem;
  text-transform: none;
  border-radius: 10px;
  font-size: 12px;
}

/* 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;
}

#edit-captcha-response--description {
  display: none;
}

.captcha__description {
  font-size: 14px;
}

.user-login-form {
  max-width: 550px;
  margin: 6rem auto;
}
