/* HubSpot raw-HTML forms, styled to match the site (Fluent form 4 on /consultation/ as the reference).
   Shared stylesheet: scoped to the .pl-hs-form target container, so it styles every HubSpot form the same way.
   Shipped site-wide by the pl-hubspot-forms mu-plugin (this folder is the local twin of the server copy).
   Scope is :is(.pl-hs-form, #pl-hs-form): it matches the class but carries ID weight (no element has that ID), so it beats
   the layout CSS HubSpot injects per form even in raw HTML mode (up to 0,5,1, e.g. fieldset.form-columns-2 .hs-form-field { width: 50% }). */
:is(.pl-hs-form, #pl-hs-form) .hs-form { font-family: Montserrat, sans-serif; font-size: 17px; line-height: 1.4; color: #202253; }
:is(.pl-hs-form, #pl-hs-form) .hs-form fieldset { border: 0; margin: 0; padding: 0; max-width: none; min-width: 0; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .form-columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-form-field { margin: 0 0 10px; float: none; width: auto; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-form-field > label { display: inline-block; margin: 0 0 5px; font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 500; line-height: 23.8px; color: #262b51; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-form-required { color: #c0392b; margin-left: 6px; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-field-desc { font-size: 12px; color: #262b51; margin: 0 0 5px; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .input { margin: 0; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-input {
  box-sizing: border-box; width: 100%; max-width: none; margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px; font-weight: 400; line-height: 16px; color: #262b51;
  background: #fff; border: 1px solid #746c6c; border-radius: 0; box-shadow: none;
  padding: 15px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
:is(.pl-hs-form, #pl-hs-form) .hs-form input.hs-input { height: 48px; }
:is(.pl-hs-form, #pl-hs-form) .hs-form select.hs-input { height: 48px; padding: 0 15px; appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; }
:is(.pl-hs-form, #pl-hs-form) .hs-form textarea.hs-input { height: 90px; min-height: 90px; resize: vertical; display: block; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-input::placeholder { color: #868e96; opacity: 1; }
/* Visible focus ring (WCAG 2.4.7) */
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-input:focus { outline: 2px solid #202253; outline-offset: 2px; border-color: #202253; }
/* Errors: #C0392B is 5.44:1 on white (AA at 12px) */
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-input.invalid.error { border-color: #c0392b; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-error-msgs { list-style: none; margin: 4px 0 0; padding: 0; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-error-msgs label,
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-error-msg { display: block; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 400; line-height: 23.8px; color: #c0392b; margin: 0; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs_error_rollup { display: none; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs_submit .actions { text-align: center; margin: 0; padding: 0; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-button {
  box-sizing: border-box; display: block; width: 100%; height: 50px; margin: 0;
  font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 500; line-height: 24px; text-transform: uppercase; letter-spacing: normal;
  color: #202253; background: #d5a230; border: 1px solid #d5a230; border-radius: 4px; padding: 12px 22px;
  cursor: pointer; box-shadow: none; -webkit-appearance: none;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out;
}
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-button:hover { color: #d5a230; background: #202253; border-color: #262b51; box-shadow: 0 15px 25px -7px rgba(0, 0, 0, .1); }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-button:focus-visible { outline: 2px solid #202253; outline-offset: 2px; }
/* reCAPTCHA badge hidden; Google's notice is added under the button instead (see hs-forms.js) */
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs_recaptcha { position: absolute; width: 1px; height: 1px; overflow: hidden; visibility: hidden; margin: 0; }
:is(.pl-hs-form, #pl-hs-form) .pl-recaptcha-notice { font-family: Montserrat, sans-serif; font-size: 12px; line-height: 1.5; color: #262b51; text-align: center; margin: 10px 0 0; }
:is(.pl-hs-form, #pl-hs-form) .pl-recaptcha-notice a { color: #202253; text-decoration: underline; }
:is(.pl-hs-form, #pl-hs-form) .submitted-message { font-family: Montserrat, sans-serif; font-size: 17px; color: #202253; text-align: center; }
/* HubSpot rich text (the contact form's "Send us a message" header): match the site's card heading and intro
   (Kadence heading on /contact/: Fraunces 400 30/28/26px, Montserrat 17px, #202253, 16px gaps).
   HubSpot writes fixed sizes, colors and borders inline, so these rules need !important to win. */
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext { margin: 0; font-family: Montserrat, sans-serif; font-size: 17px; line-height: 1.4; color: #202253; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext > * { margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; background: none !important; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext :is(h1, h2, h3, h4) { font-family: Fraunces, serif !important; font-size: 30px !important; font-weight: 400 !important; font-style: normal !important; line-height: 1.3 !important; letter-spacing: normal !important; text-transform: none !important; color: #202253 !important; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext :is(p, li) { font-family: Montserrat, sans-serif !important; font-size: 17px !important; font-weight: 400 !important; line-height: 1.4 !important; color: #202253 !important; }
:is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext .pl-hs-empty { display: none; }
@media (max-width: 1024px) {
  :is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext :is(h1, h2, h3, h4) { font-size: 28px !important; }
}
@media (max-width: 767px) {
  :is(.pl-hs-form, #pl-hs-form) .hs-form .form-columns-2 { grid-template-columns: 1fr; gap: 0; }
  :is(.pl-hs-form, #pl-hs-form) .hs-form .hs-richtext :is(h1, h2, h3, h4) { font-size: 26px !important; }
}
