/**
 * HubSpot Form HTML Fix — anti-flash and layout styles.
 *
 * Hides only form label text (never inputs, never the checkbox itself) for
 * the moment between HubSpot painting raw tags and the script repairing them.
 * The .hs-form-html-fix-ready class is added by JS and by a 3-second fail-safe
 * timer, so text can never stay hidden.
 */

.hs-form-html-fix-hide .hbspt-form label,
.hs-form-html-fix-hide .hbspt-form legend,
.hs-form-html-fix-hide .hbspt-form .hs-richtext,
.hs-form-html-fix-hide .hbspt-form .hs-field-desc,
.hs-form-html-fix-hide form.hs-form label,
.hs-form-html-fix-hide form.hs-form legend,
.hs-form-html-fix-hide form.hs-form .hs-richtext,
.hs-form-html-fix-hide form.hs-form .hs-field-desc {
	visibility: hidden;
}

.hs-form-html-fix-ready.hs-form-html-fix-hide .hbspt-form label,
.hs-form-html-fix-ready.hs-form-html-fix-hide .hbspt-form legend,
.hs-form-html-fix-ready.hs-form-html-fix-hide .hbspt-form .hs-richtext,
.hs-form-html-fix-ready.hs-form-html-fix-hide .hbspt-form .hs-field-desc,
.hs-form-html-fix-ready.hs-form-html-fix-hide form.hs-form label,
.hs-form-html-fix-ready.hs-form-html-fix-hide form.hs-form legend,
.hs-form-html-fix-ready.hs-form-html-fix-hide form.hs-form .hs-richtext,
.hs-form-html-fix-ready.hs-form-html-fix-hide form.hs-form .hs-field-desc,
[data-hs-html-fixed] {
	visibility: visible;
}

/* A repaired paragraph inside a label must not break onto its own line. */
[data-hs-html-fixed] p {
	display: inline;
	margin: 0;
}

/* Keep the re-attached required marker consistent with HubSpot's styling. */
[data-hs-html-fixed] .hs-form-required {
	color: #f2545b;
	margin-left: 2px;
}

/* Repaired consent labels sit alongside the checkbox, not under it. */
.legal-consent-container [data-hs-html-fixed] {
	display: inline;
}
