/* CAPTCHA + submit messages for forms handled by js/forms.js */

.bc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bc-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.bc-captcha-image {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.bc-captcha-image img {
  display: block;
  width: 150px;
  height: 44px;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  background: #f0f4f8;
}
.bc-captcha-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid #d6dde6;
  border-radius: 50%;
  background: #fff;
  color: #16243e;
  cursor: pointer;
  transition: transform 0.3s;
}
.bc-captcha-refresh:hover {
  transform: rotate(90deg);
}
.bc-captcha .bc-captcha-input {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.bc-captcha .bc-captcha-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
}
.bc-form-message:empty {
  display: none;
}
.bc-form-message {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
}
.bc-form-message.is-success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}
.bc-form-message.is-error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

@media (max-width: 575px) {
  .bc-captcha {
    flex-wrap: wrap;
  }
  .bc-captcha .bc-captcha-input {
    flex-basis: 100%;
  }
}

/* Feedback modal: full-width form, captcha row aligned with the other 56px inputs */
.feedback-modal-content {
  max-height: 95vh;
  overflow-y: auto;
}
#feedbackForm {
  width: 100%;
}
/* nice-select floats the State dropdown left, which pulled the captcha up beside it */
#feedbackForm .nice-select {
  float: none;
}
#feedbackForm .bc-captcha {
  clear: both;
  width: 100%;
  margin-bottom: 16px;
}
#feedbackForm .bc-captcha-image img {
  height: 56px;
  width: auto;
}
#feedbackForm .bc-captcha .bc-captcha-input {
  width: auto !important;
  height: 56px;
}
#feedbackForm .bc-form-message {
  width: 100%;
}
