/* Theme presentation for the existing Fluent Forms form 1 only.
   Retain the plugin's base styles, hidden controls, error states and scripts. */
.bfc-contact-form .bfa-live-form {
  min-width: 0;
  scroll-margin-top: 28px;
}

.bfc-contact-form .fluent_form_1 {
  margin: 0;
  color: var(--ink, #163a35);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.bfc-contact-form :where(.fluent_form_1) .ff-el-group {
  margin-bottom: 18px;
}

.bfc-contact-form :where(.fluent_form_1) .ff-el-input--label {
  margin-bottom: 7px;
  color: var(--ink, #163a35);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.bfc-contact-form :where(.fluent_form_1) .ff-el-input--label label {
  margin-bottom: 0;
  font: inherit;
}

.bfc-contact-form :where(.fluent_form_1) .ff-el-form-control:where(
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="url"], input[type="search"], input[type="number"],
  input:not([type]), textarea, select
) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #aebfb7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #163a35);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.bfc-contact-form :where(.fluent_form_1) textarea.ff-el-form-control {
  min-height: 132px;
  resize: vertical;
}

.bfc-contact-form :where(.fluent_form_1) .ff-el-form-control::placeholder {
  color: #64766e;
  opacity: 1;
}

/* Keep validation border colours under Fluent Forms' control when focused. */
.bfc-contact-form :where(.fluent_form_1) .ff-el-form-control:focus {
  outline: 3px solid #b27700;
  outline-offset: 2px;
  box-shadow: none;
}

.bfc-contact-form :where(.fluent_form_1) .ff-el-form-control[aria-invalid="true"] {
  border-color: #a0251c;
}

.bfc-contact-form :where(.fluent_form_1) .ff_submit_btn_wrapper {
  margin-bottom: 0;
}

.bfc-contact-form #fluentform_1 .ff-btn-submit {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--yellow, #f4dc32);
  color: #18372e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.bfc-contact-form #fluentform_1 .ff-btn-submit:hover:not(:disabled) {
  background: #ffe854;
  border-color: transparent;
  color: #18372e;
  box-shadow: 0 4px 14px #002b271f;
}

.bfc-contact-form #fluentform_1 .ff-btn-submit:focus-visible {
  outline: 3px solid #b27700;
  outline-offset: 4px;
}

.bfc-contact-form #fluentform_1 .ff-btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

/* Preserve plugin column/visibility rules; only give visible cells room to shrink. */
.bfc-contact-form :where(.fluent_form_1) .ff-t-cell {
  min-width: 0;
}

@media (max-width: 640px) {
  .bfc-contact-form #fluentform_1 .ff-btn-submit {
    min-height: 48px;
  }
}

@media (forced-colors: active) {
  .bfc-contact-form :where(.fluent_form_1) .ff-el-form-control {
    border-color: CanvasText;
  }
  .bfc-contact-form #fluentform_1 .ff-btn-submit,
  .bfc-contact-form #fluentform_1 .ff-btn-submit:hover:not(:disabled) {
    border-color: ButtonText;
  }
}
