/* ═══════════════════════════════════════════════════════════════
   HubSpot embedded form styling overrides
   Scoped to .hs-form-frame so it can't affect anything else.
   Append this to the end of your existing styles.css
   ═══════════════════════════════════════════════════════════════ */

.hubspot-form-wrap { margin-top: 1.5rem; }

/* Top-level form container */
.hs-form-frame {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1A1A1A;
}

/* Field labels */
.hs-form-frame label {
  display: block;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1A1A1A !important;
  margin-bottom: 0.4rem;
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Required field asterisks */
.hs-form-frame label .hs-form-required {
  color: #3D5C3A;
  margin-left: 0.2rem;
}

/* All text inputs, selects, textareas */
.hs-form-frame input[type="text"],
.hs-form-frame input[type="email"],
.hs-form-frame input[type="tel"],
.hs-form-frame input[type="number"],
.hs-form-frame select,
.hs-form-frame textarea {
  width: 100% !important;
  padding: 0.85rem 1rem !important;
  font-size: 1rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  color: #1A1A1A !important;
  background: #ffffff !important;
  border: 1px solid #D9D1BF !important;
  border-radius: 4px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
}

.hs-form-frame input:focus,
.hs-form-frame select:focus,
.hs-form-frame textarea:focus {
  border-color: #3D5C3A !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(61, 92, 58, 0.12) !important;
}

.hs-form-frame textarea {
  min-height: 120px !important;
  resize: vertical;
}

/* Field spacing */
.hs-form-frame .hs-form-field,
.hs-form-frame .legal-consent-container,
.hs-form-frame .hs-richtext {
  margin-bottom: 1.1rem !important;
}

/* Submit button */
.hs-form-frame input[type="submit"],
.hs-form-frame button[type="submit"],
.hs-form-frame .hs-button {
  background: #3D5C3A !important;
  color: #F2EDE4 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 0.9rem 2rem !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
  margin-top: 0.5rem !important;
  text-transform: none !important;
  width: auto !important;
}

.hs-form-frame input[type="submit"]:hover,
.hs-form-frame button[type="submit"]:hover,
.hs-form-frame .hs-button:hover {
  background: #2B4128 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -6px rgba(43, 65, 40, 0.35);
}

/* Checkboxes (consent) */
.hs-form-frame input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #3D5C3A;
}

.hs-form-frame .legal-consent-container,
.hs-form-frame .hs-richtext p {
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
  color: #4a4a4a !important;
}

/* Error messages */
.hs-form-frame .hs-error-msgs label,
.hs-form-frame .hs-error-msg {
  color: #c0392b !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  margin-top: 0.3rem !important;
}

/* Two-column layout when HubSpot does side-by-side fields */
.hs-form-frame .hs-form-field.hs-fieldtype-text,
.hs-form-frame .hs-form-field.hs-fieldtype-phonenumber,
.hs-form-frame .hs-form-field.hs-fieldtype-textarea,
.hs-form-frame .hs-form-field.hs-fieldtype-select {
  display: block;
}

/* Success message after submit */
.hs-form-frame .submitted-message {
  padding: 1.5rem;
  background: rgba(184, 217, 184, 0.18);
  border-left: 3px solid #3D5C3A;
  border-radius: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1A1A1A;
}
