.globalbhs-core-form-wrap {
  width: 100%;
  margin-block: 2rem 1rem;
}

.globalbhs-core-form__title {
  margin-block: 0 1.5rem;
  color: #007d76;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.globalbhs-core-form__required-note {
  margin: 0;
  color: #4f4f4f;
  font-size: 0.875rem;
}

.globalbhs-core-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.globalbhs-core-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.globalbhs-core-form__field--wide {
  grid-column: 1 / -1;
}

.globalbhs-core-form__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.globalbhs-core-form input:not([type="checkbox"]):not([type="radio"]),
.globalbhs-core-form select,
.globalbhs-core-form textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 9px;
  background: #ffffff;
  color: #555555;
  font-weight: 600;
  box-shadow: none;
}

.globalbhs-core-form input:not([type="checkbox"]):not([type="radio"]),
.globalbhs-core-form select {
  min-height: 50px;
  padding: 0.72rem 0.8rem;
}

.globalbhs-core-form textarea {
  min-height: 235px;
  padding: 0.85rem 0.8rem;
  resize: vertical;
}

.globalbhs-core-form input::placeholder,
.globalbhs-core-form textarea::placeholder {
  color: #5e5e5e;
  opacity: 1;
}

.globalbhs-core-form input:focus-visible,
.globalbhs-core-form select:focus-visible,
.globalbhs-core-form textarea:focus-visible {
  border-color: #007d76;
  outline: 3px solid rgba(0, 125, 118, 0.2);
  outline-offset: 1px;
}

.globalbhs-core-form__help {
  align-self: flex-end;
  margin: -0.15rem 0 0.4rem;
  color: #775a50;
  font-size: 0.75rem;
  line-height: 1.2;
  text-decoration: none;
}

.globalbhs-core-form__help:hover,
.globalbhs-core-form__help:focus-visible {
  color: #007d76;
  text-decoration: underline;
}

.globalbhs-core-form__field [aria-invalid="true"] {
  border-color: #a12622;
  box-shadow: 0 0 0 1px #a12622;
}

.globalbhs-core-form__field-error {
  margin-top: 0.3rem;
  color: #8b1d19;
  font-size: 0.875rem;
  font-weight: 600;
}

.globalbhs-core-form__notice {
  margin-block: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #d2d2d2;
  border-left-width: 5px;
  background: #fafafa;
}

.globalbhs-core-form__notice--success {
  border-left-color: #238636;
}

.globalbhs-core-form__notice--error {
  border-left-color: #a12622;
}

.globalbhs-core-form__notice--warning {
  border-left-color: #d6a21f;
}

.globalbhs-core-form__notice > :last-child {
  margin-bottom: 0;
}

.globalbhs-core-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.globalbhs-core-form .globalbhs-core-form__submit {
  width: auto;
  min-width: 89px;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 7px;
  background: #347fbd;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.globalbhs-core-form .globalbhs-core-form__submit:hover,
.globalbhs-core-form .globalbhs-core-form__submit:focus-visible {
  background: #246da9;
  color: #ffffff;
}

.globalbhs-core-form__trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 47.99rem) {
  .globalbhs-core-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .globalbhs-core-form__field--wide {
    grid-column: auto;
  }

  .globalbhs-core-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .globalbhs-core-form .globalbhs-core-form__submit {
    width: 100% !important;
    justify-content: center;
  }

  .globalbhs-core-form textarea {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .globalbhs-core-form *,
  .globalbhs-core-form *::before,
  .globalbhs-core-form *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
