/* ==========================================================================
   FixHire Forms
   Field-level styling for [fixhire_contact_form], [fixhire_newsletter_form],
   and [fixhire_learning_signup_form]. Depends on fixhire-design-system.css
   for tokens. Structural form layout (.fh-form-card / .fh-form-row) lives there.
   ========================================================================== */

.fh-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fh-ink);
}
.fh-form-label .fh-required { color: var(--fh-red); margin-left: 2px; }
.fh-form-optional { font-weight: 400; color: var(--fh-muted); margin-left: 4px; }
.fh-form fieldset { border: 0; margin: 0; padding: 0; }
.fh-form legend { padding: 0; margin-bottom: 10px; }

.fh-form-input,
.fh-form-textarea,
.fh-form-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-family: var(--fh-font);
  font-size: 15px;
  color: var(--fh-ink);
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-xs);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fh-form-input::placeholder,
.fh-form-textarea::placeholder { color: var(--fh-muted); }

.fh-form-textarea { min-height: 160px; resize: vertical; padding-top: 12px; }

.fh-form-input:focus,
.fh-form-textarea:focus,
.fh-form-select:focus {
  outline: none;
  border-color: var(--fh-accent);
  box-shadow: var(--fh-focus);
}

/* Checkbox / interest groups */
.fh-form-checkbox-group { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.fh-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fh-text);
}
.fh-form-checkbox input { width: 18px; height: 18px; accent-color: var(--fh-accent); }

/* Submit */
.fh-form-submit {
  width: 100%;
  min-height: 52px;
}

/* Honeypot: visually hidden, kept in DOM for bots */
.fh-form-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* Messages */
.fh-form-message { border-radius: var(--fh-radius-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.fh-form-message--success { background: #EEF8F0; color: var(--fh-success); border: 1px solid color-mix(in srgb, var(--fh-success) 30%, transparent); }
.fh-form-message--error { background: #fff5f6; color: var(--fh-danger); border: 1px solid color-mix(in srgb, var(--fh-danger) 30%, transparent); }

.fh-form-field--error .fh-form-input,
.fh-form-field--error .fh-form-textarea,
.fh-form-field--error .fh-form-select { border-color: var(--fh-danger); }
.fh-form-field__error { font-size: 13px; color: var(--fh-danger); }

@media (max-width: 767px) {
  .fh-form-checkbox-group { grid-template-columns: 1fr; }
}
