/* BestMonitor lead forms. Use inside Elementor with shortcode widgets. */
.bm-lead-form-wrap {
  width: 100%;
}

.bm-lead-form-title {
  margin: 0 0 18px;
}

.bm-lead-form {
  width: 100%;
}

.bm-lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.bm-lead-field {
  min-width: 0;
}

.bm-lead-field--wide {
  grid-column: 1 / -1;
}

.bm-lead-field label:not(.bm-checkbox-line):not(.bm-file-drop),
.bm-lead-field > label:first-child {
  display: block;
  margin: 0 0 8px;
  color: var(--bm-heading, #071A3D);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.bm-lead-field input[type="text"],
.bm-lead-field input[type="email"],
.bm-lead-field input[type="tel"],
.bm-lead-field input[type="date"],
.bm-lead-field select,
.bm-lead-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--bm-input-border, #D8E2F0);
  border-radius: var(--bm-radius-sm, 6px);
  background: #fff;
  color: var(--bm-text, #10213F);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.bm-lead-field textarea {
  min-height: 128px;
  resize: vertical;
}

.bm-lead-field input::placeholder,
.bm-lead-field textarea::placeholder {
  color: var(--bm-muted-light, #7B8798);
}

.bm-lead-field input:focus,
.bm-lead-field select:focus,
.bm-lead-field textarea:focus {
  border-color: var(--bm-input-focus, #0057FF);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.12);
}

.bm-required {
  color: var(--bm-error, #E53935);
}

.bm-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.bm-checkbox-group label,
.bm-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--bm-text, #10213F);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.bm-checkbox-group input,
.bm-checkbox-line input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--bm-primary, #0057FF);
}

.bm-checkbox-line a {
  color: var(--bm-primary, #0057FF);
  font-weight: 600;
}

.bm-file-drop {
  display: flex !important;
  min-height: 148px;
  padding: 26px 22px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1.5px dashed var(--bm-primary-border, #AFC8FF);
  border-radius: var(--bm-radius-lg, 12px);
  background: var(--bm-primary-soft-2, #F3F7FF);
  color: var(--bm-text, #10213F);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.bm-file-drop:hover,
.bm-file-drop.is-dragover {
  border-color: var(--bm-primary, #0057FF);
  background: var(--bm-primary-soft, #EAF2FF);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.10);
}

.bm-file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bm-file-drop__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--bm-primary-border, #AFC8FF);
  border-radius: 50%;
  color: var(--bm-primary, #0057FF);
  font-size: 28px;
  line-height: 1;
}

.bm-file-drop__title {
  color: var(--bm-heading, #071A3D);
  font-size: 16px;
  font-weight: 700;
}

.bm-file-drop__help,
.bm-file-drop__selected {
  display: block;
  color: var(--bm-muted, #5D6B82);
  font-size: 12px;
  line-height: 1.5;
}

.bm-lead-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.bm-lead-form__submit {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bm-primary, #0057FF);
  border-radius: var(--bm-radius-md, 8px);
  background: var(--bm-primary, #0057FF);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.bm-lead-form__submit:hover,
.bm-lead-form__submit:focus {
  background: var(--bm-primary-hover, #0047D6);
  border-color: var(--bm-primary-hover, #0047D6);
  transform: translateY(-1px);
  box-shadow: var(--bm-shadow-sm, 0 6px 18px rgba(7, 26, 61, 0.08));
}

.bm-lead-form__submit[disabled] {
  opacity: .7;
  cursor: wait;
}

.bm-form-message {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: var(--bm-radius-md, 8px);
  font-size: 14px;
  line-height: 1.6;
}

.bm-form-message ul {
  margin: 8px 0 0 20px;
}

.bm-form-message--success {
  border: 1px solid var(--bm-success-border, #BCEBD8);
  background: var(--bm-success-bg, #EAF8F2);
  color: var(--bm-success, #12A36A);
}

.bm-form-message--error {
  border: 1px solid var(--bm-error-border, #F6C6C4);
  background: var(--bm-error-bg, #FDEEEE);
  color: var(--bm-error, #E53935);
}

.bm-form-download-link {
  margin: -6px 0 18px;
}

.bm-form-download-link a {
  font-weight: 700;
}

@media (max-width: 767px) {
  .bm-lead-form__grid,
  .bm-checkbox-group {
    grid-template-columns: 1fr;
  }
}

.bm-lead-field.is-invalid input[type="text"],
.bm-lead-field.is-invalid input[type="email"],
.bm-lead-field.is-invalid input[type="tel"],
.bm-lead-field.is-invalid input[type="date"],
.bm-lead-field.is-invalid select,
.bm-lead-field.is-invalid textarea {
  border-color: var(--bm-error, #E53935);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.10);
}

.bm-lead-field.is-invalid .bm-file-drop {
  border-color: var(--bm-error, #E53935);
  background: var(--bm-error-bg, #FDEEEE);
}

.bm-field-error {
  margin-top: 7px;
  color: var(--bm-error, #E53935);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

/* Simple captcha */
.bm-lead-field--captcha {
  grid-column: 1 / -1;
}

.bm-captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bm-captcha-question {
  display: inline-flex;
  min-height: 46px;
  min-width: 104px;
  padding: 11px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bm-border-soft, #E8EEF7);
  border-radius: var(--bm-radius-sm, 6px);
  background: var(--bm-card-soft, #F3F7FF);
  color: var(--bm-heading, #071A3D);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.bm-captcha-row input[type="number"] {
  max-width: 140px;
}

@media (max-width: 480px) {
  .bm-captcha-row {
    align-items: stretch;
    flex-direction: column;
  }

  .bm-captcha-row input[type="number"] {
    max-width: none;
  }
}
