/* Bull Contact - front office */
.bm-contact-popup-lock {
  overflow: hidden;
}

.bm-contact-popup {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  isolation: isolate;
  z-index: 2147483000;
}

.bm-contact-popup--open {
  display: flex;
}

.bm-contact-popup__backdrop {
  background: rgba(20, 31, 40, .56);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.bm-contact-popup__dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  max-height: calc(100vh - 40px);
  max-width: 760px;
  overflow: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.bm-contact-popup__header {
  align-items: center;
  border-bottom: 1px solid #e2e6e9;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
}

.bm-contact-popup__header h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0;
}

.bm-contact-popup__close {
  background: transparent;
  border: 0;
  color: #1f2a33;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0 4px;
}

.bm-contact-popup__body {
  padding: 24px;
}

.bm-contact-popup__body .bm-contact {
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
}

@media (max-width: 575px) {
  .bm-contact-popup {
    align-items: flex-end;
    padding: 0;
  }

  .bm-contact-popup__dialog {
    border-radius: 8px 8px 0 0;
    max-height: 94vh;
  }

  .bm-contact-popup__header,
  .bm-contact-popup__body {
    padding: 16px;
  }
}

.bm-contact {
  --bmc-bg: #ffffff;
  --bmc-surface: #f7f9fb;
  --bmc-border: #d9e1e7;
  --bmc-border-strong: #aebdc7;
  --bmc-text: #1f2a33;
  --bmc-muted: #667783;
  --bmc-primary: #1b6f8f;
  --bmc-primary-dark: #14566f;
  --bmc-primary-soft: #e8f4f8;
  --bmc-error: #a12820;
  --bmc-error-bg: #fff1ef;
  --bmc-success: #1f6a3a;
  --bmc-success-bg: #edf8f0;

  background: var(--bmc-bg);
  border: 1px solid var(--bmc-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 42, 51, .08);
  color: var(--bmc-text);
  max-width: 720px;
  padding: clamp(18px, 4vw, 34px);
}

.bm-contact,
.bm-contact * {
  box-sizing: border-box;
}

.bm-contact__form {
  display: grid;
  gap: 18px 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.bm-contact__row {
  grid-column: span 12;
  margin: 0;
}

.bm-contact__field--half {
  grid-column: span 6;
}

.bm-contact__field--third {
  grid-column: span 4;
}

.bm-contact__field--quarter {
  grid-column: span 3;
}

.bm-contact__field--two-thirds {
  grid-column: span 8;
}

.bm-contact__label {
  color: var(--bmc-text);
  display: block;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 7px;
}

.bm-contact__req {
  color: var(--bmc-error);
  font-weight: 700;
}

.bm-contact__input {
  background: var(--bmc-surface);
  border: 1px solid var(--bmc-border);
  border-radius: 8px;
  color: var(--bmc-text);
  display: block;
  font: inherit;
  min-height: 46px;
  outline: 0;
  padding: 11px 13px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}

.bm-contact__input::placeholder {
  color: #8b9aa5;
}

.bm-contact__input:hover {
  border-color: var(--bmc-border-strong);
}

.bm-contact__input:focus {
  background: #fff;
  border-color: var(--bmc-primary);
  box-shadow: 0 0 0 3px rgba(27, 111, 143, .14);
}

.bm-contact__input--error,
.bm-contact__input--error:hover,
.bm-contact__input--error:focus {
  background: var(--bmc-error-bg);
  border-color: var(--bmc-error);
  box-shadow: 0 0 0 3px rgba(161, 40, 32, .1);
}

.bm-contact__field-error {
  color: var(--bmc-error);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 0;
}

select.bm-contact__input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--bmc-muted) 50%),
    linear-gradient(135deg, var(--bmc-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 38px;
}

.bm-contact__input[type="file"] {
  background: #fff;
  cursor: pointer;
  padding: 9px 11px;
}

.bm-contact__input[type="file"]::file-selector-button {
  background: var(--bmc-primary-soft);
  border: 1px solid rgba(27, 111, 143, .22);
  border-radius: 6px;
  color: var(--bmc-primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-right: 12px;
  padding: 7px 10px;
}

.bm-contact__textarea {
  line-height: 1.5;
  min-height: 132px;
  resize: vertical;
}

.bm-contact__html {
  background: var(--bmc-surface);
  border-left: 3px solid var(--bmc-primary);
  border-radius: 8px;
  color: var(--bmc-muted);
  line-height: 1.55;
  padding: 12px 14px;
}

.bm-contact__row--choices .bm-contact__label {
  margin-bottom: 10px;
}

.bm-contact__choice,
.bm-contact__check {
  align-items: flex-start;
  background: var(--bmc-surface);
  border: 1px solid var(--bmc-border);
  border-radius: 8px;
  color: var(--bmc-text);
  cursor: pointer;
  display: flex;
  font-weight: 500;
  gap: 10px;
  line-height: 1.45;
  margin: 8px 0;
  padding: 11px 12px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.bm-contact__choice:hover,
.bm-contact__check:hover {
  background: #fff;
  border-color: var(--bmc-border-strong);
}

.bm-contact__choice:has(input:focus-visible),
.bm-contact__check:has(input:focus-visible) {
  border-color: var(--bmc-primary);
  box-shadow: 0 0 0 3px rgba(27, 111, 143, .14);
}

.bm-contact__row--error .bm-contact__choice,
.bm-contact__row--error .bm-contact__check {
  background: var(--bmc-error-bg);
  border-color: var(--bmc-error);
}

.bm-contact__choice input,
.bm-contact__check input {
  accent-color: var(--bmc-primary);
  flex: 0 0 auto;
  margin-top: 3px;
}

.bm-contact__row--submit {
  margin-top: 4px;
}

.bm-contact__response {
  width: 100%;
}

.bm-contact__response:empty {
  display: none;
}

.bm-contact__submit {
  align-items: center;
  background: var(--bmc-primary);
  border: 1px solid var(--bmc-primary);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(27, 111, 143, .22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  min-width: 150px;
  padding: 11px 18px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.bm-contact__submit:hover,
.bm-contact__submit:focus {
  background: var(--bmc-primary-dark);
  border-color: var(--bmc-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.bm-contact__submit:focus {
  box-shadow: 0 0 0 3px rgba(27, 111, 143, .18), 0 8px 20px rgba(27, 111, 143, .22);
  outline: 0;
}

.bm-contact__submit[disabled] {
  cursor: default;
  opacity: .65;
  transform: none;
}

.bm-contact__alert {
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 13px 15px;
}

.bm-contact__alert--success {
  background: var(--bmc-success-bg);
  border-color: #c7e8d0;
  color: var(--bmc-success);
}

.bm-contact__alert--error {
  background: var(--bmc-error-bg);
  border-color: #f0c4bf;
  color: var(--bmc-error);
}

.bm-contact__alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* Honeypot: keep it in the DOM but out of sight and out of the tab order */
.bm-contact__hp {
  height: 1px;
  left: -9999px !important;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}

@media (max-width: 640px) {
  .bm-contact {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(31, 42, 51, .07);
    padding: 18px;
  }

  .bm-contact__submit {
    width: 100%;
  }

  .bm-contact__field--half,
  .bm-contact__field--third,
  .bm-contact__field--quarter,
  .bm-contact__field--two-thirds {
    grid-column: span 12;
  }
}
