.hs-form-field {
	margin-bottom: 1.6rem;

	ul.hs-error-msgs {
		margin: 0.5rem 0 0;
		list-style: none;

		label.hs-error-msg {
			color: var(--error-text);
		}

		li {
			margin: 0;
			&::before {
				display: none;
			}
		}
	}

	input[type="text"],
	input[type="number"],
	input[type="tel"],
	input[type="url"],
	input[type="email"],
	input[type="password"],
	textarea,
	select {
		margin-top: 0.6rem;
		width: 100%;
	}
}

.hs-fieldtype-booleancheckbox {
	ul {
		list-style: none;
	}
}

.hs_recaptcha {
	margin-top: 1.6rem;
}

.hs-submit {
	margin-top: 4rem;

	input[type="submit"] {
		min-width: 158px;
		padding: 0;
		transition: 0.5s ease-in-out;
		&:hover {
			background-color: var(--button-primary-hover-bg-color);
		}
	}
}

.hs-richtext {
	margin-top: 3rem;
}

.hs-main-font-element {
	margin-top: 0;
	margin-bottom: 1.6rem;
}

.hs-form-container {
	background-color: var(--color-white);
	padding: 3.2rem;
	box-shadow: var(--default-box-shadow);
	border: 1px solid var(--default-border-color);
	&.has-no-border {
		box-shadow: none;
		border: none;
		padding: 0;
	}

	ul {
		list-style: none;
		li {
			margin: 0 !important;
			&::before {
				display: none;
			}
			label > input {
				margin-right: 0.6rem;
			}
		}
	}

	.input {
		margin-right: 0 !important;
	}

	select.is-placeholder {
		color: rgba(var(--color-rgb-gray-dark), 0.4);
	}

	&.dark {
		background: transparent;
		padding: 0;
		border: 0;
		box-shadow: none;
		p,
		legend {
			color: #fff;
		}
		.form-columns-0 {
			display: none;
		}
		input,
		select,
		textarea {
			margin: 0;
			background-color: transparent;
			height: 6rem;
			color: #fff;
			border-color: #5d6974;
			&::placeholder {
				color: #fff;
			}
		}
		select {
			background-image: var(--form-select-arrow-white-img);
			option {
				background-color: #000;
			}
		}
		input[type="radio"],
		input[type="checkbox"],
		input[type="submit"] {
			height: auto;
		}
		input[type="checkbox"] {
			flex-shrink: 0;
		}
		input:-webkit-autofill {
			-webkit-box-shadow: 0 0 0px 100px #000 inset !important;
			box-shadow: 0 0 0px 100px #000 inset !important;
			-webkit-text-fill-color: #fff !important;
			caret-color: #fff !important;
		}
		label {
			span {
				font-size: 16px;
			}
			+ .input {
				margin-top: 8px;
			}
		}
		ul {
			li {
				label {
					display: flex;
					align-items: center;
					gap: 6px;
					font-size: 16px;
				}
				& + li {
					margin-top: 8px !important;
				}
			}
		}
		a {
			color: #fff !important;
		}
		.submitted-message {
			color: #fff;
		}
		.hs-button {
			letter-spacing: 0;
			position: relative;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			padding: 0.8rem 1.4rem;
			width: 15.8rem;
			height: 4rem;
			border: none;
			font-size: 1.6rem;
			line-height: 2.2rem;
			font-weight: 500;
			text-decoration: none;
			background: #fff;
			color: #000;
			-webkit-appearance: none;
			appearance: none;
			outline: 0;
			overflow: hidden;
			cursor: pointer;
			font-family: var(--font-moderat);
			transition: all 0.2s ease-in-out;

			span {
				position: relative;
				z-index: 1;
				color: #000;
			}

			&:hover {
				background: #dc150b;
				color: #fff;
			}
		}
	}
}

.hs-form-container .legal-consent-container {
	.hs-form-booleancheckbox-display > span {
		margin-left: 0;
	}

	.hs-form-booleancheckbox-display {
		display: flex;
	}
}

fieldset.form-columns-2 {
	display: flex;
	gap: 1.6rem;
	.hs-form-field {
		width: auto;
	}
	.input {
		margin-right: 0 !important;
	}
}
