/* ===========================================================================
   Campaign short form
   ===========================================================================
   Reproduces the Colorlib "contact100" look of the live form the campaign
   pages used to iframe in from forms.thefundingdepartment.net
   (twinfold_closedwon_mca.php): label above a bottom-ruled input, and a
   gradient submit bar.

   Written from the source rules rather than vendored, because the original
   sheet is 96 KB and pulls a dozen Poppins/Montserrat font files for what is
   ultimately five inputs and a button. The system font stack renders the same
   shapes at these sizes.

   Scoped to .tfc-campaign like the rest of the campaign theme so it cannot
   reach the shared site chrome.
   =========================================================================== */

.tfc-campaign .contact100-form-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  text-align: center;
  padding-bottom: 28px;
}

.tfc-campaign .wrap-input100 {
  width: 100%;
  position: relative;
  border-bottom: 2px solid #d9d9d9;
  padding-bottom: 5px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}
.tfc-campaign .wrap-input100:focus-within { border-bottom-color: #0c5081; }

.tfc-campaign .label-input100 {
  display: block;
  font-size: 13px;
  color: #000;
  line-height: 1.5;
  padding-left: 5px;
}

.tfc-campaign .input100 {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #000;
  line-height: 1.2;
  padding: 4px 5px;
}
.tfc-campaign .input100:focus { outline: none; }
.tfc-campaign .input100::placeholder { color: #999; }

/* Invalid state. Applied by campaign-form.js from the server's field errors,
   so the styling is driven by real validation rather than the browser's. */
.tfc-campaign .wrap-input100.has-error { border-bottom-color: #c0392b; }
.tfc-campaign .field-error {
  display: block;
  margin: 4px 0 0 5px;
  font-size: 12px;
  color: #c0392b;
}

.tfc-campaign .form-error-summary {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid #c0392b;
  border-radius: 4px;
  background: #fdf1ef;
  font-size: 13px;
  color: #8a2318;
}

.tfc-campaign .accept-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 0.8em;
  line-height: 1.4;
}
.tfc-campaign .accept-terms input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
}

.tfc-campaign .container-contact100-form-btn { width: 100%; }

.tfc-campaign .wrap-contact100-form-btn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
}

/* The original animates a 300%-wide gradient across the button on hover. */
.tfc-campaign .contact100-form-bgbtn {
  position: absolute;
  z-index: -1;
  width: 300%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(to right, #0c5081, #166ba9, #00dbde, #d69538);
  transition: all 0.4s;
}
.tfc-campaign .wrap-contact100-form-btn:hover .contact100-form-bgbtn { left: 0; }

.tfc-campaign .contact100-form-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.tfc-campaign .contact100-form-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tfc-campaign .contact100-form-btn i { margin-left: 7px; }

.tfc-campaign .requirements-ssl {
  display: block;
  font-size: 12px;
  color: #8d97ad;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .tfc-campaign .contact100-form-bgbtn { transition: none; }
}
