/* Shared by the three HubSpot lead forms, both inline and in legacy iframes. */
body .elementor .elementor-element:is(.elementor-element-35f8043, .elementor-element-9dae0d2, .elementor-element-6b21f49) {
	max-width: 100%;
	min-width: 0;
}

form[id].hs-form.mybites-lead-form {
	width: 100%;
	max-width: 100%;
	font-family: Rubik, Arial, sans-serif;
	font-size: 16px !important;
	line-height: 24px !important;
	color: #1f2126;
	text-align: left;
}

form[id].hs-form.mybites-lead-form fieldset {
	display: flex;
	flex-direction: column;
	gap: 0 20px;
	max-width: 100% !important;
}

form[id].hs-form.mybites-lead-form .hs-form-field {
	margin-bottom: 20px;
	min-width: 0;
}

form[id].hs-form.mybites-lead-form fieldset > .hs-form-field {
	flex: 1 1 auto;
	width: 100% !important;
	float: none;
}

form[id].hs-form.mybites-lead-form .input {
	margin: 0;
}

form[id].hs-form.mybites-lead-form label {
	display: block !important;
	margin: 0 0 8px !important;
	color: #39445a;
	font-family: Rubik, Arial, sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px !important;
	text-align: left;
}

form[id].hs-form.mybites-lead-form .hs-form-required {
	margin-inline-start: 3px;
	color: #b42318;
}

/* Important properties override the existing Demo page's important rules. */
form[id].hs-form.mybites-lead-form :where(input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	height: 50px !important;
	min-height: 50px !important;
	margin: 0;
	padding: 12px 16px !important;
	border: 1px solid #aab4c5 !important;
	border-radius: 16px !important;
	background: #fff !important;
	color: #1f2126;
	font-family: Rubik, Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 24px !important;
	text-align: left;
	box-shadow: none;
}

/* Native selects center their own text. Input-style vertical padding can
   clip the selected value in iOS Safari, especially with a fixed height. */
form[id].hs-form.mybites-lead-form select {
	padding: 0 16px !important;
	line-height: normal !important;
	-webkit-appearance: menulist;
	appearance: auto;
}

form[id].hs-form.mybites-lead-form textarea {
	height: 120px !important;
	min-height: 120px !important;
	resize: vertical;
}

form[id].hs-form.mybites-lead-form ::placeholder {
	color: #657087;
	opacity: 1;
}

form[id].hs-form.mybites-lead-form .hs-fieldtype-intl-phone {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
}

form[id].hs-form.mybites-lead-form .hs-fieldtype-intl-phone > :is(input, select) {
	float: none;
}

form[id].hs-form.mybites-lead-form :is(input[type="checkbox"], input[type="radio"]) {
	display: inline-block;
	flex: 0 0 auto;
	width: 18px !important;
	height: 18px;
	margin: 3px 8px 0 0;
	padding: 0;
	appearance: auto;
}

form[id].hs-form.mybites-lead-form .hs-form-booleancheckbox-display {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
}

form[id].hs-form.mybites-lead-form .actions {
	margin: 4px 0 0;
	padding: 0;
	text-align: left;
}

form[id].hs-form.mybites-lead-form :is(input[type="submit"], button[type="submit"]) {
	box-sizing: border-box;
	width: 100%;
	height: 50px !important;
	min-height: 50px !important;
	margin: 0;
	padding: 12px 24px !important;
	border: 0;
	border-radius: 16px !important;
	background: linear-gradient(90deg, #103590, #1252fa);
	color: #fff !important;
	font-family: Rubik, Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 500;
	line-height: 24px !important;
	text-align: center;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
}

form[id].hs-form.mybites-lead-form :is(input, select, textarea, button):focus-visible {
	outline: 3px solid #1745e8;
	outline-offset: 3px;
}

/* HubSpot owns validation; keep its field and submission errors visible. */
form[id].hs-form.mybites-lead-form .hs-error-msgs {
	display: block;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

form[id].hs-form.mybites-lead-form .hs-error-msgs label {
	display: block !important;
	margin: 0 !important;
	color: #b42318;
	font-size: 14px;
}

form[id].hs-form.mybites-lead-form :is(input, select, textarea):is(.error, .invalid, [aria-invalid="true"]),
form[id].hs-form.mybites-lead-form .hs-form-field:has(.hs-error-msg) :is(input, select, textarea) {
	border-color: #b42318 !important;
}
