/* HubSpot Form Overrides */
.hs-form-frame {
  width: 100% !important;
}

.hs-form {
  width: 100% !important;
  max-width: 100% !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Labels */
.hs-form label {
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.hs-form .hs-form-field {
  margin-bottom: 16px !important;
}

/* Inputs */
.hs-input {
  width: 100% !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: #1e293b !important; /* Dark text for inputs */
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

.hs-input:focus {
  outline: none !important;
  border-color: #0ea5e9 !important; /* Primary blue */
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
  background-color: #ffffff !important;
}

/* Submit Button */
.hs-button {
  width: 100% !important;
  background-color: #f97316 !important; /* Orange accent */
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 12px 24px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.hs-button:hover {
  background-color: #ea580c !important; /* Darker orange */
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

/* Error messages */
.hs-error-msgs {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 0 !important;
}

.hs-error-msgs li {
  color: #ef4444 !important; /* Red error */
  font-size: 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* GDPR / Legal text */
.hs-rich-text, .hs-rich-text p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 12px !important;
}

/* Force all headings and paragraphs inside the form to be white */
.hs-form h3, .hs-form h2, .hs-form h1, .hs-form p, .hs-form span, .hs-form div {
  color: #ffffff !important;
}

/* Specifically target the rich text areas where the headline usually lives */
.hs-rich-text h1, .hs-rich-text h2, .hs-rich-text h3, .hs-rich-text p {
  color: #ffffff !important;
}

/* Ensure the subtext is also white */
.hs-form-field label span {
  color: #ffffff !important;
}

/* Hide the internal HubSpot form text (orange text) */
.hs-rich-text {
  display: none !important;
}

/* Ensure labels are white and visible */
.hs-form label {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Ensure the GDPR text is visible but subtle */
.hs-rich-text.hs-main-font-element {
  display: block !important; /* Re-enable for GDPR text if it shares the class */
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Specific fix for the header text container if it has a unique class */
.hs-form-786042-custom-style {
  display: none !important;
}
