/*
  BPT contact form - styles for the Interon Forms Service integration.

  Only two things here are functionally required:
    .contact-form-hp  hides the honeypot field from sighted users
    .form-alert       the status banner the script writes into

  Colours follow the site theme (#ED1B24 red, #232323 dark).
*/

/* Honeypot. Must stay hidden; bots fill it in and the service discards those. */
.contact-form-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 25px;
  border-left: 3px solid #232323;
  background: #f7f7f7;
  border-radius: 3px;
}

.form-alert.is-hidden {
  display: none;
}

.form-alert__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #232323;
}

.form-alert__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: #232323;
}

.form-alert__body {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
  color: #626262;
}

.form-alert__body:empty {
  display: none;
}

.form-alert--success {
  border-left-color: #2e7d32;
  background: #f1f8f2;
}

.form-alert--success .form-alert__icon,
.form-alert--success .form-alert__title {
  color: #2e7d32;
}

.form-alert--error {
  border-left-color: #ED1B24;
  background: #fdf2f2;
}

.form-alert--error .form-alert__icon,
.form-alert--error .form-alert__title {
  color: #ED1B24;
}

.form-alert--warning {
  border-left-color: #e08600;
  background: #fdf8f0;
}

.form-alert--warning .form-alert__icon,
.form-alert--warning .form-alert__title {
  color: #e08600;
}

.contact-form-box .is-hidden {
  display: none;
}

/* Fields the service rejected, marked by the script. */
.contact-form-box [aria-invalid="true"] {
  border-color: #ED1B24;
}
