/* Contact Form 7 — restyled to match the original CrispHorizon lead form 1:1.
   CF7 wraps each control in <span class="wpcf7-form-control-wrap"> and loads its
   own stylesheet, so we force the original .form-group input / .form-submit-btn
   look with high specificity and neutralise CF7's chrome + spacing. */

.hero-form-card .wpcf7 { margin: 0; }
.hero-form-card .wpcf7 form { margin: 0; }

/* Field wrapper must not add height/spacing; keep the original .form-group rhythm. */
.hero-form-card .form-group { margin-bottom: 14px; }
.hero-form-card .wpcf7-form-control-wrap { display: block; margin: 0; padding: 0; line-height: 0; }

/* Inputs + textarea: exactly the original .form-group input styling. */
.hero-form-card .form-group input.wpcf7-form-control,
.hero-form-card .form-group textarea.wpcf7-form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--surface-3);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-1);
  outline: none;
  font-family: inherit;
  margin: 0;
  box-sizing: border-box;
  transition: var(--transition-fast);
}
.hero-form-card .form-group input.wpcf7-form-control:focus,
.hero-form-card .form-group textarea.wpcf7-form-control:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14, 183, 122, 0.08);
}
.hero-form-card .form-group textarea.wpcf7-form-control { height: 90px; resize: vertical; }

/* Submit button: exactly the original .form-submit-btn. */
.hero-form-card input.wpcf7-submit,
.hero-form-card .form-submit-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
}
.hero-form-card input.wpcf7-submit:hover,
.hero-form-card .form-submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 183, 122, 0.35);
}

/* Validation + response output match the original .heroLeadForm__msg. */
.hero-form-card .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-form-card .wpcf7 form.sent .wpcf7-response-output {
  background: rgba(10, 150, 99, 0.10);
  color: var(--accent-dark, #0a9663);
}
.hero-form-card .wpcf7 form.invalid .wpcf7-response-output,
.hero-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.hero-form-card .wpcf7 form.failed .wpcf7-response-output,
.hero-form-card .wpcf7 form.aborted .wpcf7-response-output {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}
.hero-form-card .wpcf7-not-valid-tip {
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}
.hero-form-card .wpcf7-form-control.wpcf7-not-valid { border-color: #b91c1c !important; }
.hero-form-card .wpcf7-spinner { margin: 10px auto 0; display: block; }

/* CF7's hidden housekeeping fields must not add vertical space. */
.hero-form-card .wpcf7 .hidden-fields-container,
.hero-form-card .wpcf7 [hidden] { display: none !important; }
