.et_pb_newsletter_field input.is-typing-placeholder::placeholder,
#gform_wrapper_2 input.is-typing-placeholder::placeholder {
	color: transparent !important;
	opacity: 0 !important;
}

.et_pb_newsletter_field.badia-newsletter-typing-field,
#gform_wrapper_2 .ginput_container_email.badia-newsletter-typing-field {
	position: relative;
}

.et_pb_newsletter_field.badia-newsletter-typing-field .badia-newsletter-typed-placeholder,
#gform_wrapper_2 .ginput_container_email.badia-newsletter-typing-field .badia-newsletter-typed-placeholder {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 8px;
	right: 14px;
	height: 47px;
	display: flex;
	align-items: center;
	color: #696969;
	font-family: "Outfit", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
}

/*
 * Newsletter Gravity Form (form 2).
 * It intentionally mirrors the existing Divi Email Optin while remaining
 * isolated from the site's contact form and any future Gravity Forms.
 */
#gform_wrapper_2 {
	position: relative;
	width: 100%;
	margin: 0 !important;
}

#gform_wrapper_2:has(.gfield_error) {
	padding-bottom: 27px;
}

#gform_wrapper_2 .gform_heading,
#gform_wrapper_2 .gfield_label {
	position: absolute !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

#gform_wrapper_2 form {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	width: 100%;
	min-height: 61px;
	margin: 0 !important;
	padding: 6px 7px 6px 34px !important;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #b8b8b8;
	border-radius: 22px;
	box-sizing: border-box;
}

#gform_wrapper_2 .gform-body,
#gform_wrapper_2 .gform_fields,
#gform_wrapper_2 .gfield,
#gform_wrapper_2 .ginput_container_email {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

#gform_wrapper_2 .gform-body {
	flex: 1 1 auto;
}

#gform_wrapper_2 .gform_fields {
	display: block !important;
}

#gform_wrapper_2 input[type="email"] {
	position: relative;
	display: block;
	width: 100% !important;
	height: 47px !important;
	min-height: 47px !important;
	margin: 0 !important;
	padding: 0 14px 0 8px !important;
	color: #5f5f5f !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: "Outfit", sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	box-sizing: border-box;
}

#gform_wrapper_2 input[type="email"]:focus {
	outline: none !important;
	box-shadow: none !important;
}

#gform_wrapper_2 input[type="email"]::placeholder {
	color: #696969 !important;
	opacity: 1;
}

#gform_wrapper_2 .gform-footer {
	display: block;
	flex: 0 0 145px;
	width: 145px;
	margin: 0 !important;
	padding: 0 !important;
}

#gform_wrapper_2 .gform_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 47px !important;
	min-height: 47px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	color: #ffffff !important;
	background: #e30613 !important;
	border: 0 !important;
	border-radius: 18px !important;
	box-shadow: none !important;
	font-family: "Oswald", sans-serif !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 200ms ease, transform 200ms ease !important;
}

#gform_wrapper_2 .gform_button:hover,
#gform_wrapper_2 .gform_button:focus-visible {
	color: #ffffff !important;
	background: #c9000b !important;
	transform: translateY(-1px);
}

#gform_wrapper_2 .gform_button::after {
	content: "";
	display: inline-block;
	flex: 0 0 14px;
	width: 14px;
	height: 12px;
	margin-left: 8px;
	background-image: url("/wp-content/plugins/divi-forge/modules/pick-your-flavor/button-arrow.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

#gform_wrapper_2 .gform_ajax_spinner {
	position: absolute;
	right: 12px;
	width: 18px;
	height: 18px;
	margin: 0;
}

#gform_submit_button_2.is-badia-sending,
#gform_submit_button_2[aria-busy="true"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0 !important;
	cursor: wait;
	pointer-events: none;
}

#gform_submit_button_2.is-badia-sending::before,
#gform_submit_button_2[aria-busy="true"]::before {
	content: "Sending…";
	color: #ffffff;
	font-family: "Oswald", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

#gform_submit_button_2.is-badia-sending::after,
#gform_submit_button_2[aria-busy="true"]::after {
	content: "";
	display: inline-block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 0;
	background: none;
	border: 1.5px dotted currentColor;
	border-radius: 50%;
	animation: badia-newsletter-spin 0.8s linear infinite;
}

@keyframes badia-newsletter-spin {
	to {
		transform: rotate(360deg);
	}
}

#gform_confirmation_wrapper_2,
#gform_confirmation_message_2 {
	width: 100%;
}

/* Keep newsletter validation compact instead of showing GF's large alert. */
#gform_wrapper_2 .gform_validation_errors {
	position: absolute !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

#gform_wrapper_2 .gfield.gfield_error {
	position: relative;
	display: flex;
	flex-direction: column;
}

#gform_wrapper_2 .gfield_error .ginput_container_email {
	order: 1;
}

#gform_wrapper_2 .gfield_error .gfield_validation_message {
	position: absolute;
	z-index: 2;
	top: calc(100% + 11px);
	left: 8px;
	right: 14px;
	order: 2;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: #b42318 !important;
	font-family: "Outfit", sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	text-align: left;
}

.badia-newsletter-success {
	width: 100%;
	padding: 18px 20px;
	color: #000000;
	text-align: center;
	box-sizing: border-box;
}

.badia-newsletter-success:focus {
	outline: none;
}

.badia-newsletter-success__title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	color: #408854 !important;
	font-family: "Oswald", sans-serif !important;
	font-size: 40px !important;
	font-weight: 600 !important;
	line-height: 1.2em !important;
	text-transform: uppercase;
}

.badia-newsletter-success__message {
	margin: 0 !important;
	padding: 0 !important;
	color: #000000 !important;
	font-family: "Outfit", sans-serif !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1.2em !important;
}

@media (max-width: 767px) {
	.et_pb_newsletter_field.badia-newsletter-typing-field .badia-newsletter-typed-placeholder {
		font-size: 15px;
	}

	#gform_wrapper_2 .ginput_container_email.badia-newsletter-typing-field .badia-newsletter-typed-placeholder {
		font-size: 15px;
	}

	#gform_wrapper_2 .gform-footer {
		flex-basis: 132px;
		width: 132px;
	}

	#gform_wrapper_2 .gform_button {
		font-size: 15px !important;
	}
}

@media (max-width: 479px) {
	#gform_wrapper_2:has(.gfield_error) {
		padding-bottom: 0;
	}

	.et_pb_newsletter_field.badia-newsletter-typing-field .badia-newsletter-typed-placeholder,
	#gform_wrapper_2 .ginput_container_email.badia-newsletter-typing-field .badia-newsletter-typed-placeholder {
		left: 24px;
		right: 24px;
		height: 60px;
		justify-content: center;
		font-size: 18px;
		text-align: center;
	}

	#gform_wrapper_2 form {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		padding: 0 !important;
		gap: 10px;
		background: transparent;
		border: 0;
		border-radius: 0;
	}

	#gform_wrapper_2 input[type="email"] {
		height: 60px !important;
		min-height: 60px !important;
		padding: 0 24px !important;
		background: #ffffff !important;
		border: 1px solid #e7e7e7 !important;
		border-radius: 20px !important;
		font-size: 18px !important;
		text-align: center;
	}

	#gform_wrapper_2 .gform-footer {
		width: 100%;
	}

	#gform_wrapper_2 .gform_button {
		height: 60px !important;
		min-height: 60px !important;
		border-radius: 20px !important;
		font-size: 18px !important;
	}

	#gform_wrapper_2 .gfield_error .gfield_validation_message {
		position: static;
		margin: 6px 12px 0 !important;
		font-size: 12px !important;
		text-align: center;
	}

	.badia-newsletter-success {
		padding: 14px 8px;
	}

	.badia-newsletter-success__title {
		margin-bottom: 10px !important;
		font-size: 40px !important;
	}

	.badia-newsletter-success__message {
		font-size: 24px !important;
		line-height: 1.2em !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	#gform_submit_button_2.is-badia-sending::after,
	#gform_submit_button_2[aria-busy="true"]::after {
		animation-duration: 1.5s;
	}
}
