/**
 * The HubSpot form, wearing the build's own form design.
 *
 * The build ships an empty <div class="itemize-hubspot-form"> and styles a form
 * it calls `.itemize-lead-form` (assets/itemize-formspree.css: a two-column
 * grid, 44px fields, 8px radius, #0c3568 button). The embed is created with
 * that same class, so the grid comes from the build; what follows dresses
 * HubSpot's own markup (.hs-form-field, .hs-input, .hs-button) with the same
 * values, so the form reads as part of the page and not as an embed.
 *
 * Every rule is scoped to .itemize-hubspot-form: nothing here can reach the
 * rest of the site.
 */

.itemize-hubspot-form .hs-form-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.itemize-hubspot-form .hs-form-field > label {
	font-size: 13px;
	font-weight: 700;
	color: #173251;
	line-height: 1.35;
}

.itemize-hubspot-form .hs-form-required {
	color: #a32626;
	margin-left: 2px;
}

.itemize-hubspot-form .hs-field-desc {
	margin: 0;
	color: #6b7a8d;
	font-size: 12.5px;
	line-height: 1.5;
}

.itemize-hubspot-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #c6d3e2;
	border-radius: 8px;
	background: #fff;
	color: #172b43;
	font: inherit;
	font-size: 15px;
}

.itemize-hubspot-form textarea.hs-input {
	min-height: 104px;
	resize: vertical;
}

.itemize-hubspot-form .hs-input:focus-visible {
	outline: 2px solid #1464ba;
	outline-offset: 2px;
}

.itemize-hubspot-form .hs-input.invalid,
.itemize-hubspot-form .hs-input.error {
	border-color: #a32626;
}

/* The wide rows of the build's grid. */
.itemize-hubspot-form .hs_subject,
.itemize-hubspot-form .hs_content,
.itemize-hubspot-form .hs_message,
.itemize-hubspot-form .hs_submit,
.itemize-hubspot-form .hs_recaptcha,
.itemize-hubspot-form .hs-richtext,
.itemize-hubspot-form .legal-consent-container,
.itemize-hubspot-form .hs_error_rollup,
.itemize-hubspot-form .submitted-message {
	grid-column: 1 / -1;
}

.itemize-hubspot-form .hs_submit {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 2px;
}

.itemize-hubspot-form .hs-button,
.itemize-hubspot-form input[type="submit"].hs-button {
	min-height: 46px;
	padding: 13px 24px;
	border: 0;
	border-radius: 8px;
	background: #0c3568;
	color: #fff;
	font: 700 14px/1.2 inherit;
	cursor: pointer;
	transition: background .18s ease;
}

.itemize-hubspot-form .hs-button:hover {
	background: #0a2a53;
}

.itemize-hubspot-form .hs-button:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.itemize-hubspot-form .hs-error-msgs,
.itemize-hubspot-form .hs_error_rollup ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.itemize-hubspot-form .hs-error-msg,
.itemize-hubspot-form .hs-main-font-element {
	color: #a32626;
	font-size: 13px;
	line-height: 1.5;
}

/* The message HubSpot leaves in place of the form after a submission. */
.itemize-hubspot-form .submitted-message {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid rgba( 32, 199, 149, .28 );
	border-radius: 12px;
	background: #effbf7;
	color: #17664f;
	font-size: 14px;
	line-height: 1.55;
}

.itemize-hubspot-form .submitted-message p:last-child {
	margin-bottom: 0;
}

/* Until the embed answers, the card must not collapse to nothing. */
.itemize-hubspot-form:empty {
	min-height: 220px;
}

.itemize-hubspot-form .itemize-hubspot-fallback {
	margin: 16px 0 0;
	color: #314c67;
	font-size: 14px;
	line-height: 1.55;
}
