/**
 * HubSpot developer-form skins (Interfor).
 *
 * Scope: .interfor-hs-form--dark | .interfor-hs-form--light
 * HubSpot --hsf-* vars (new forms) + classic .hs-form fallbacks.
 */

.interfor-hs-form {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.interfor-hs-form .hs-form-html,
.interfor-hs-form form,
.interfor-hs-form .hs-form,
.interfor-hs-form fieldset,
.interfor-hs-form .hs-form-field,
.interfor-hs-form .hs-form-field > .input,
.interfor-hs-form .field,
.interfor-hs-form .input {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.elementor-widget-interfor-hubspot-form {
	width: 100%;
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Dark (contact / confidential conversation on ink)
   ------------------------------------------------------------------------- */

.interfor-hs-form--dark {
	--hsf-global__font-family: var(--font-body);
	--hsf-global__font-size: 15px;
	--hsf-global__color: var(--color-cream-text);
	--hsf-global-error__color: var(--color-red-pale);

	--hsf-background__background-color: transparent;
	--hsf-background__padding: 0;
	--hsf-background__border-width: 0;

	--hsf-row__horizontal-spacing: 20px;
	--hsf-row__vertical-spacing: 1rem;
	--hsf-default-module__vertical-spacing: 10px;

	--hsf-field-label__font-family: var(--font-body);
	--hsf-field-label__font-size: 12px;
	--hsf-field-label__color: var(--color-cream-text);
	--hsf-field-label-requiredindicator__color: var(--color-red-pale);

	--hsf-field-description__font-family: var(--font-body);
	--hsf-field-description__color: var(--color-copy-on-dark);
	--hsf-field-footer__font-family: var(--font-body);
	--hsf-field-footer__color: var(--color-copy-on-dark);

	--hsf-field-input__font-family: var(--font-body);
	--hsf-field-input__color: var(--color-cream-text);
	--hsf-field-input__background-color: var(--color-ink);
	--hsf-field-input__placeholder-color: var(--color-placeholder-on-dark);
	--hsf-field-input__border-color: var(--color-border-dark);
	--hsf-field-input__border-width: 1px;
	--hsf-field-input__border-style: solid;
	--hsf-field-input__border-radius: 0;
	--hsf-field-input__padding: 14px 16px;

	--hsf-field-textarea__font-family: var(--font-body);
	--hsf-field-textarea__color: var(--color-cream-text);
	--hsf-field-textarea__background-color: var(--color-ink);
	--hsf-field-textarea__placeholder-color: var(--color-placeholder-on-dark);
	--hsf-field-textarea__border-color: var(--color-border-dark);
	--hsf-field-textarea__border-width: 1px;
	--hsf-field-textarea__border-style: solid;
	--hsf-field-textarea__border-radius: 0;
	--hsf-field-textarea__padding: 14px 16px;

	--hsf-field-checkbox__color: var(--color-cream-text);
	--hsf-field-checkbox__border-color: var(--color-border-dark);
	--hsf-field-radio__color: var(--color-cream-text);
	--hsf-field-radio__border-color: var(--color-border-dark);

	--hsf-button__font-family: var(--font-body);
	--hsf-button__font-size: 16px;
	--hsf-button__color: var(--color-cream-text);
	--hsf-button__background-color: var(--color-red-primary);
	--hsf-button__border-radius: 0;
	--hsf-button__padding: 14px 22px;
	--hsf-button__box-shadow: none;

	--hsf-erroralert__font-family: var(--font-body);
	--hsf-erroralert__color: var(--color-red-pale);
	--hsf-infoalert__font-family: var(--font-body);
	--hsf-infoalert__color: var(--color-copy-on-dark);

	--hsf-richtext__font-family: var(--font-body);
	--hsf-richtext__color: var(--color-copy-on-dark);
	--hsf-heading__font-family: var(--font-display);
	--hsf-heading__color: var(--color-cream-text);
}

/* -------------------------------------------------------------------------
   Light (cream / panel sections)
   ------------------------------------------------------------------------- */

.interfor-hs-form--light {
	--hsf-global__font-family: var(--font-body);
	--hsf-global__font-size: 15px;
	--hsf-global__color: var(--color-dark-text);
	--hsf-global-error__color: var(--color-red-primary);

	--hsf-background__background-color: transparent;
	--hsf-background__padding: 0;
	--hsf-background__border-width: 0;

	--hsf-row__horizontal-spacing: 20px;
	--hsf-row__vertical-spacing: 1rem;
	--hsf-default-module__vertical-spacing: 10px;

	--hsf-field-label__font-family: var(--font-body);
	--hsf-field-label__font-size: 12px;
	--hsf-field-label__color: var(--color-dark-text);
	--hsf-field-label-requiredindicator__color: var(--color-red-primary);

	--hsf-field-description__font-family: var(--font-body);
	--hsf-field-description__color: var(--color-muted-text);
	--hsf-field-footer__font-family: var(--font-body);
	--hsf-field-footer__color: var(--color-muted-text);

	--hsf-field-input__font-family: var(--font-body);
	--hsf-field-input__color: var(--color-dark-text);
	--hsf-field-input__background-color: var(--color-cream-text);
	--hsf-field-input__placeholder-color: var(--color-muted-text);
	--hsf-field-input__border-color: rgba(11, 17, 24, 0.16);
	--hsf-field-input__border-width: 1px;
	--hsf-field-input__border-style: solid;
	--hsf-field-input__border-radius: 0;
	--hsf-field-input__padding: 14px 16px;

	--hsf-field-textarea__font-family: var(--font-body);
	--hsf-field-textarea__color: var(--color-dark-text);
	--hsf-field-textarea__background-color: var(--color-cream-text);
	--hsf-field-textarea__placeholder-color: var(--color-muted-text);
	--hsf-field-textarea__border-color: rgba(11, 17, 24, 0.16);
	--hsf-field-textarea__border-width: 1px;
	--hsf-field-textarea__border-style: solid;
	--hsf-field-textarea__border-radius: 0;
	--hsf-field-textarea__padding: 14px 16px;

	--hsf-field-checkbox__color: var(--color-dark-text);
	--hsf-field-checkbox__border-color: rgba(11, 17, 24, 0.16);
	--hsf-field-radio__color: var(--color-dark-text);
	--hsf-field-radio__border-color: rgba(11, 17, 24, 0.16);

	--hsf-button__font-family: var(--font-body);
	--hsf-button__font-size: 16px;
	--hsf-button__color: var(--color-cream-text);
	--hsf-button__background-color: var(--color-red-primary);
	--hsf-button__border-radius: 0;
	--hsf-button__padding: 14px 22px;
	--hsf-button__box-shadow: none;

	--hsf-erroralert__font-family: var(--font-body);
	--hsf-erroralert__color: var(--color-red-primary);
	--hsf-infoalert__font-family: var(--font-body);
	--hsf-infoalert__color: var(--color-muted-text);

	--hsf-richtext__font-family: var(--font-body);
	--hsf-richtext__color: var(--color-muted-text);
	--hsf-heading__font-family: var(--font-display);
	--hsf-heading__color: var(--color-dark-text);
}

/* -------------------------------------------------------------------------
   Shared button + label polish (works with --hsf-* and classic markup)
   ------------------------------------------------------------------------- */

.interfor-hs-form .hs-submit,
.interfor-hs-form .hs-button-wrapper {
	width: 100%;
}

.interfor-hs-form .hs-button,
.interfor-hs-form input[type="submit"],
.interfor-hs-form .hs-submit input[type="submit"],
.interfor-hs-form button[type="submit"],
.interfor-hs-form .hs-submit .hs-button,
.interfor-hs-form [class*="hs-button"] {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: var(--hsf-button__font-family, var(--font-body));
	font-size: var(--hsf-button__font-size, 16px);
	font-weight: 600 !important; /* Semibold — HubSpot defaults often override */
	letter-spacing: 0.28px;
	text-transform: uppercase;
	text-align: left;
	color: var(--hsf-button__color, var(--color-cream-text));
	background-color: var(--hsf-button__background-color, var(--color-red-primary)) !important;
	background-image: url("../images/icon-arrow-right.svg");
	background-repeat: no-repeat;
	background-position: right 22px center;
	background-size: 11px 11px;
	border: 0;
	border-radius: var(--hsf-button__border-radius, 0);
	/* Extra right padding so label clears the 11px arrow + 22px edge inset */
	padding: 14px 44px 14px 22px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.interfor-hs-form .hs-button:hover,
.interfor-hs-form input[type="submit"]:hover,
.interfor-hs-form button[type="submit"]:hover {
	opacity: 1;
	background-color: var(--color-red-primary-hover, #580e0e) !important;
}

.interfor-hs-form .hs-button:focus,
.interfor-hs-form input[type="submit"]:focus,
.interfor-hs-form button[type="submit"]:focus,
.interfor-hs-form .hs-button:active,
.interfor-hs-form input[type="submit"]:active,
.interfor-hs-form button[type="submit"]:active {
	opacity: 1;
	outline: 2px solid var(--color-cream-text, #f8f0e6);
	outline-offset: 2px;
}

.interfor-hs-form .hs-button:focus:not(:focus-visible):not(:hover),
.interfor-hs-form input[type="submit"]:focus:not(:focus-visible):not(:hover),
.interfor-hs-form button[type="submit"]:focus:not(:focus-visible):not(:hover) {
	outline: none;
	background-color: var(--hsf-button__background-color, var(--color-red-primary)) !important;
}

.interfor-hs-form .hs-button:focus-visible,
.interfor-hs-form input[type="submit"]:focus-visible,
.interfor-hs-form button[type="submit"]:focus-visible {
	outline: 2px solid var(--color-cream-text, #f8f0e6);
	outline-offset: 2px;
}

/* Prefer arrow 8px after the label when HubSpot renders a real <button> */
.interfor-hs-form button.hs-button,
.interfor-hs-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	background-image: none;
	padding: var(--hsf-button__padding, 14px 22px);
	text-align: left;
}

.interfor-hs-form button.hs-button::after,
.interfor-hs-form button[type="submit"]::after {
	content: "";
	display: block;
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	margin-left: auto;
	background: url("../images/icon-arrow-right.svg") no-repeat center / 11px 11px;
}

.interfor-hs-form label,
.interfor-hs-form .hs-form-field > label {
	font-family: var(--hsf-field-label__font-family, var(--font-body));
	font-size: var(--hsf-field-label__font-size, 12px);
	font-weight: 400;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--hsf-field-label__color, inherit);
}

.interfor-hs-form .hs-form-field > label {
	display: block;
	margin-bottom: var(--hsf-module__vertical-spacing, var(--hsf-default-module__vertical-spacing));
}

.interfor-hs-form .hs-input,
.interfor-hs-form input.hs-input,
.interfor-hs-form textarea.hs-input,
.interfor-hs-form select.hs-input {
	font-family: var(--hsf-field-input__font-family, var(--font-body));
	font-size: 15px;
	color: var(--hsf-field-input__color, inherit);
	background-color: var(--hsf-field-input__background-color, transparent);
	border-color: var(--hsf-field-input__border-color, currentColor);
	border-width: var(--hsf-field-input__border-width, 1px);
	border-style: var(--hsf-field-input__border-style, solid);
	border-radius: var(--hsf-field-input__border-radius, 0);
	padding: var(--hsf-field-input__padding, 14px 16px);
	/* HubSpot injects ~95% on .form-columns-1 .hs-input after this sheet. */
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.interfor-hs-form--dark .hs-input::placeholder,
.interfor-hs-form--dark input::placeholder,
.interfor-hs-form--dark textarea::placeholder {
	color: rgba(245, 241, 232, 0.4); /* #F5F1E8 @ 40% */
	opacity: 1;
}

.interfor-hs-form--dark .hs-input::-webkit-input-placeholder,
.interfor-hs-form--dark input::-webkit-input-placeholder,
.interfor-hs-form--dark textarea::-webkit-input-placeholder {
	color: rgba(245, 241, 232, 0.4);
	opacity: 1;
}

.interfor-hs-form--dark .hs-input::-moz-placeholder,
.interfor-hs-form--dark input::-moz-placeholder,
.interfor-hs-form--dark textarea::-moz-placeholder {
	color: rgba(245, 241, 232, 0.4);
	opacity: 1;
}

.interfor-hs-form textarea.hs-input,
.interfor-hs-form textarea {
	height: 105px;
	min-height: 105px;
	/* HubSpot often keeps the resize grip despite resize:none — allow resize so UI matches */
	resize: vertical;
}

.interfor-hs-form ul.no-list,
.interfor-hs-form ul.inputs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.interfor-hs-form ul.hs-error-msgs,
.interfor-hs-form ul.no-list.hs-error-msgs,
.interfor-hs-form ul.no-list.hs-error-msgs.inputs-list {
	list-style: none;
	margin: 5px 0 0;
	padding: 0;
}

.interfor-hs-form .hs_error_rollup {
	margin-bottom: var(--hsf-row__vertical-spacing, 1rem);
}

.interfor-hs-form .hs_error_rollup ul.hs-error-msgs,
.interfor-hs-form .hs_error_rollup ul.no-list.hs-error-msgs.inputs-list {
	margin-top: 0;
}

.interfor-hs-form ul.hs-error-msgs li,
.interfor-hs-form ul.inputs-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.interfor-hs-form .hs-error-msgs,
.interfor-hs-form .hs-error-msg,
.interfor-hs-form ul.no-list.hs-error-msgs,
.interfor-hs-form .hs-error-msgs label,
.interfor-hs-form ul.hs-error-msgs label {
	color: var(--hsf-global-error__color, var(--color-red-primary));
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

.interfor-hs-form--dark .hs-form-required,
.interfor-hs-form--dark label .hs-form-required,
.interfor-hs-form--dark .hs-error-msgs,
.interfor-hs-form--dark .hs-error-msg,
.interfor-hs-form--dark ul.no-list.hs-error-msgs,
.interfor-hs-form--dark .hs-error-msgs label {
	color: var(--color-red-pale);
}

.interfor-hs-form .legal-consent-container,
.interfor-hs-form .hs-richtext,
.interfor-hs-form .hs-form-booleancheckbox-display {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--hsf-richtext__color, inherit);
}

/*
 * Inline thank-you (new embed: .hsfc-PostSubmit; classic: .submitted-message).
 * HubSpot defaults rich text to slate navy and injects BaseStyle into <head>
 * after this sheet — beat [data-hsfc-id=Renderer] .hsfc-RichText (0,2,0).
 * Do not style .hsfc-LiveRegionContent: HubSpot clips it as screen-reader only.
 */
.interfor-hs-form .hsfc-PostSubmit,
.interfor-hs-form .hsfc-PostSubmit .hsfc-RichText,
.interfor-hs-form .hsfc-PostSubmit .hsfc-RichText p,
.interfor-hs-form .hsfc-PostSubmit .hsfc-RichText span,
.interfor-hs-form .hsfc-PostSubmit .hsfc-RichText strong,
.interfor-hs-form .submitted-message {
	font-family: var(--hsf-global__font-family, var(--font-body));
	color: var(--hsf-global__color);
	background: transparent;
	border: 0;
}

.interfor-hs-form .hsfc-PostSubmit .hsfc-RichText p:last-child:not(:first-child):not(:has(span)):not(:has(strong)) {
	display: none;
}

.interfor-hs-form .hs-form-field {
	margin-bottom: var(--hsf-row__vertical-spacing, 1rem);
}

/*
 * Two HubSpot form runtimes share .interfor-hs-form:
 *
 * 1. New developer embed (.hs-form-html / .hsfc-Row) — footer contact.
 *    Layout is CSS grid + gap via --hsf-row__*. Do not float or flex these.
 *
 * 2. Legacy v2 embed (form.hs-form / fieldset.form-columns-N) — whitepapers.
 *    HubSpot injects floats + padding on the first column and a 95% input
 *    width. The 100% width hammer above stacks those columns; restore a
 *    row with flex and the same --hsf-row__horizontal-spacing as hsfc-Row.
 */
.interfor-hs-form [class*="hsfc-"] [class*="Row"],
.interfor-hs-form [class*="hsfc-Row"],
.interfor-hs-form .hsfc-Row {
	gap: var(--hsf-row__horizontal-spacing, 20px);
	column-gap: var(--hsf-row__horizontal-spacing, 20px);
}

.interfor-hs-form fieldset.form-columns-2,
.interfor-hs-form fieldset.form-columns-3,
.interfor-hs-form .hs-form fieldset.form-columns-2,
.interfor-hs-form .hs-form fieldset.form-columns-3 {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	gap: var(--hsf-row__horizontal-spacing, 20px);
	column-gap: var(--hsf-row__horizontal-spacing, 20px);
	float: none;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.interfor-hs-form fieldset.form-columns-2 > .hs-form-field,
.interfor-hs-form fieldset.form-columns-2 > .field,
.interfor-hs-form fieldset.form-columns-3 > .hs-form-field,
.interfor-hs-form fieldset.form-columns-3 > .field,
.interfor-hs-form .hs-form fieldset.form-columns-2 > .hs-form-field,
.interfor-hs-form .hs-form fieldset.form-columns-3 > .hs-form-field {
	float: none;
	flex: 1 1 0;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	padding-right: 0;
}

.interfor-hs-form fieldset {
	max-width: 100% !important;
}

.interfor-hs-form fieldset.form-columns-1 .input,
.interfor-hs-form fieldset.form-columns-2 .input,
.interfor-hs-form fieldset.form-columns-3 .input {
	margin-right: 0 !important;
}

.interfor-hs-form .hs-input[type="checkbox"],
.interfor-hs-form .hs-input[type="radio"],
.interfor-hs-form fieldset input[type="checkbox"],
.interfor-hs-form fieldset input[type="radio"] {
	width: auto !important;
	max-width: none !important;
}

.interfor-hs-form fieldset.form-columns-1 .hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-1 input.hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-1 .input input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-2 .hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-2 input.hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-2 .input input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-3 .hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-3 input.hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form fieldset.form-columns-3 .input input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form .hs-form fieldset.form-columns-1 .hs-input:not([type="checkbox"]):not([type="radio"]),
.interfor-hs-form .hs-form fieldset.form-columns-1 .input input:not([type="checkbox"]):not([type="radio"]) {
	width: 100% !important;
	max-width: 100% !important;
}

.interfor-hs-form .hs-fieldtype-intl-phone.hs-input > input.hs-input,
.interfor-hs-form .hs-fieldtype-intl-phone.hs-input > select.hs-input {
	max-width: none;
}

/*
 * HubSpot injects a GUID stylesheet after this file. Its mobile query uses
 * device-width (phones match even when CSS width > 400px) and
 * form.hs-form-*:not(.hs-video-form), which beats our earlier selectors.
 * Mirror that query and that form prefix.
 */
@media (max-width: 600px), (max-width: 400px), (min-device-width: 320px) and (max-device-width: 480px) {
	.interfor-hs-form fieldset.form-columns-2,
	.interfor-hs-form fieldset.form-columns-3,
	.interfor-hs-form .hs-form fieldset.form-columns-2,
	.interfor-hs-form .hs-form fieldset.form-columns-3,
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) fieldset.form-columns-2,
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) fieldset.form-columns-3 {
		flex-direction: column;
		max-width: 100% !important;
	}

	.interfor-hs-form fieldset.form-columns-2 > .hs-form-field,
	.interfor-hs-form fieldset.form-columns-2 > .field,
	.interfor-hs-form fieldset.form-columns-3 > .hs-form-field,
	.interfor-hs-form fieldset.form-columns-3 > .field,
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-2 .hs-form-field,
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-3 .hs-form-field,
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) fieldset.form-columns-2 .hs-form-field,
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) fieldset.form-columns-3 .hs-form-field {
		float: none !important;
		flex: 1 1 auto;
		width: 100% !important;
		max-width: 100% !important;
		padding-right: 0;
	}

	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-2 .hs-form-field .hs-input:not([type="checkbox"]):not([type="radio"]),
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-3 .hs-form-field .hs-input:not([type="checkbox"]):not([type="radio"]),
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) fieldset.form-columns-2 .hs-form-field .hs-input:not([type="checkbox"]):not([type="radio"]),
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) fieldset.form-columns-3 .hs-form-field .hs-input:not([type="checkbox"]):not([type="radio"]) {
		width: 100% !important;
		max-width: 100% !important;
	}

	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-2 .hs-form-field input[type="checkbox"],
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-2 .hs-form-field input[type="radio"],
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-3 .hs-form-field input[type="checkbox"],
	.interfor-hs-form form[class*="hs-form-"]:not(.hs-video-form) .form-columns-3 .hs-form-field input[type="radio"] {
		width: auto !important;
		max-width: none !important;
	}
}
