.newsletter-form,
.newsletter-form * {
	box-sizing: border-box;
}

.newsletter-form {
	width: 100%;
	padding: 0 30px;
	background: var(--newsletter-section-background, #eaf1fa);
	color: #333;
}

.newsletter-form__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	max-width: 1380px;
	min-height: 510px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.newsletter-form__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 24px;
	min-width: 0;
	padding: 48px 24px;
	order: 1;
}

.newsletter-form__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 532px;
}

.newsletter-form__heading {
	width: 100%;
	margin: 0;
	color: #000;
	font-size: 52px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -1.56px;
}

.newsletter-form__heading-main,
.newsletter-form__heading-highlight {
	display: inline;
}

.newsletter-form__heading-main::after {
	content: ' ';
}

.newsletter-form__heading-highlight {
	background: linear-gradient(90deg, #5130f1 0%, #c783d6 35%, #ff8666 65%, #fe3803 100%);
	background-clip: text;
	color: transparent;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.newsletter-form__description {
	width: 100%;
	max-width: 532px;
	color: #333;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.newsletter-form__description p {
	margin: 0;
}

.newsletter-form__media {
	position: relative;
	min-width: 0;
	min-height: 510px;
	overflow: hidden;
	border-radius: 0 8px 8px 0;
	order: 2;
}

.newsletter-form__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.newsletter-form__form {
	width: 100%;
	max-width: 340px;
}

.newsletter-form__form > div {
	margin: 0 !important;
}

.newsletter-form__form div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li input+label {
	padding-inline-start: 0;
}

.newsletter-form__form div.wpforms-container-full input[type=checkbox]+label, 
.newsletter-form__form div.wpforms-container-full input[type=radio]+label {
	vertical-align: unset;
}

/* WPForms wrapper */
.newsletter-form__form .wpforms-container {
	width: 100%;
	margin: 0;
}

.newsletter-form__form .wpforms-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* Remove default field spacing */
.newsletter-form__form .wpforms-field-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.newsletter-form__form .wpforms-field {
	width: 100%;
	margin: 0;
	padding: 0 !important;
}

/* Hide regular labels where placeholder text is used */
.newsletter-form__form .wpforms-field:not(.wpforms-field-checkbox) > label.wpforms-field-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.wpforms-confirmation-container-full {
    background-color: #EFF6FF !important; /* Light blue fill */
    border: 1px solid #2563EB !important; /* Blue outline */
    color: #1E3A8A !important;            /* Dark blue text */
    border-radius: 8px;
    padding: 15px;
}
/* Email input */
.newsletter-form__form input[type='email'],
.newsletter-form__form input[type='text'] {
	width: 100% !important;
	max-width: none !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid #eaf1fa !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #333 !important;
	font: inherit !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
}

.newsletter-form__form input::placeholder {
	color: rgba(51, 51, 51, 0.6);
	opacity: 1;
}

.newsletter-form__form input:focus {
	border-color: #1169ec !important;
	outline: none !important;
	box-shadow: 0 0 0 1px #1169ec !important;
}

/* Privacy checkbox */
.newsletter-form__form .wpforms-field-checkbox ul,
.newsletter-form__form .wpforms-field-checkbox li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.newsletter-form__form .wpforms-field-checkbox li {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
}

.newsletter-form__form .wpforms-field-checkbox input[type='checkbox'] {
	flex: 0 0 16px;
	width: 16px !important;
	height: 16px !important;
	margin: 1px 0 0 !important;
	accent-color: #1169ec;
}

.newsletter-form__form .wpforms-field-checkbox label {
	margin: 0 !important;
	color: #333 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}

.newsletter-form__form .wpforms-field-checkbox label a {
	color: inherit;
	text-decoration: underline;
}

/* Submit container */
.newsletter-form__form .wpforms-submit-container {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

/* Submit button */
.newsletter-form__form button[type='submit'],
.newsletter-form__form input[type='submit'] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 33px !important;
	margin: 0 !important;
	padding: 6px 16px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #1169ec !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		opacity 0.2s ease;
}

.newsletter-form__form button[type='submit']:hover,
.newsletter-form__form button[type='submit']:focus-visible,
.newsletter-form__form input[type='submit']:hover,
.newsletter-form__form input[type='submit']:focus-visible {
	background: #0e5dcc !important;
	color: #fff !important;
}

/* WPForms errors */
.newsletter-form__form .wpforms-error {
	color: #d63638 !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
}

.newsletter-form__form em.wpforms-error {
	display: block;
	margin-top: 4px;
}

.newsletter-form__form .wpforms-confirmation-container-full {
	margin: 0;
	padding: 16px;
	border: 0;
	border-radius: 8px;
	background: #eaf1fa;
	color: #333;
}

.newsletter-form__editor-placeholder {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	padding: 16px;
	border: 1px dashed #1169ec;
	border-radius: 8px;
	background: #f7faff;
	color: #333;
}

.newsletter-form__editor-placeholder strong {
	font-size: 14px;
	font-weight: 600;
}

.newsletter-form__editor-placeholder span {
	font-size: 13px;
	word-break: break-word;
}

.newsletter-form__editor-placeholder small {
	color: rgba(51, 51, 51, 0.7);
	font-size: 12px;
}

.newsletter-form__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #eaf1fa;
	color: #333;
	text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
	.newsletter-form__heading {
		font-size: 44px;
	}

	.newsletter-form__inner,
	.newsletter-form__media {
		min-height: 460px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.newsletter-form {
		padding: 32px 16px;
	}

	.newsletter-form__inner {
		display: flex;
		flex-direction: column;
		width: 100%;
		min-height: 0;
		border-radius: 8px;
	}

	.newsletter-form__media {
		width: 100%;
		min-height: 0;
		aspect-ratio: 358 / 240;
		border-radius: 8px 8px 0 0;
		order: 1;
	}

	.newsletter-form__media img {
		object-position: center;
	}

	.newsletter-form__content {
		width: 100%;
		gap: 24px;
		padding: 24px;
		border-radius: 0 0 8px 8px;
		order: 2;
	}

	.newsletter-form__copy {
		gap: 24px;
		max-width: none;
	}

	.newsletter-form__heading {
		font-size: 32px;
		line-height: 1.1;
		letter-spacing: -0.96px;
	}

	.newsletter-form__description {
		max-width: none;
	}

	.newsletter-form__form {
		max-width: none;
	}

	.newsletter-form__form .wpforms-form,
	.newsletter-form__form .wpforms-field-container {
		gap: 16px;
	}
}