/* Blog Hub CTA — matches reference: dark card, copy left, email + Subscribe right, HubSpot overrides */

.agp-blog-hub-cta-widget {
	--agp-cta-teal: #1aa18c;
	--agp-cta-teal-hover: #148a77;
	--agp-cta-navy: #0d1b2a;
	--agp-cta-navy-input: rgba(255, 255, 255, 0.08);
	--agp-cta-border: rgba(255, 255, 255, 0.15);
	--agp-cta-muted: rgba(255, 255, 255, 0.55);
	--agp-cta-note: rgba(255, 255, 255, 0.3);
	--agp-cta-radius: 20px;
	--agp-cta-field-radius: 100px;
	font-family: Sora, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 48px 80px;
}

.agp-blog-hub-cta-widget .newsletter {
	background: var(--agp-cta-navy);
	border-radius: var(--agp-cta-radius);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 52px 60px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.agp-blog-hub-cta-widget .nl-col-text {
	min-width: 0;
}

.agp-blog-hub-cta-widget .nl-col-form {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.agp-blog-hub-cta-widget .newsletter h2 {
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px 0;
	line-height: 1.25;
}

.agp-blog-hub-cta-widget .newsletter .nl-lead {
	font-size: 14px;
	color: var(--agp-cta-muted);
	line-height: 1.65;
	margin: 0;
	max-width: 36em;
}

/* Placeholder / static form — row: email + Subscribe */
.agp-blog-hub-cta-widget .nl-form {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.agp-blog-hub-cta-widget .nl-input {
	flex: 1 1 200px;
	min-width: 0;
	background: var(--agp-cta-navy-input);
	border: 1px solid var(--agp-cta-border);
	border-radius: var(--agp-cta-field-radius);
	padding: 12px 18px;
	font-family: inherit;
	font-size: 14px;
	color: #fff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.agp-blog-hub-cta-widget .nl-input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.agp-blog-hub-cta-widget .nl-input:hover {
	border-color: rgba(255, 255, 255, 0.28);
}

.agp-blog-hub-cta-widget .nl-input:focus {
	border-color: var(--agp-cta-teal);
	box-shadow: 0 0 0 2px rgba(26, 161, 140, 0.25);
}

.agp-blog-hub-cta-widget .nl-btn {
	flex: 0 0 auto;
	background: var(--agp-cta-teal);
	color: #fff;
	border: none;
	border-radius: var(--agp-cta-field-radius);
	padding: 12px 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease;
	box-sizing: border-box;
}

.agp-blog-hub-cta-widget .nl-btn:hover {
	background: var(--agp-cta-teal-hover);
}

.agp-blog-hub-cta-widget .nl-btn:active {
	transform: translateY(1px);
}

.agp-blog-hub-cta-widget .nl-note {
	font-size: 11px;
	color: var(--agp-cta-note);
	margin: 10px 0 0 0;
	line-height: 1.45;
}

/* --- HubSpot embed (scoped) --- */
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed {
	width: 100%;
	color: rgba(255, 255, 255, 0.85);
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .submitted-message,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form__submitted-message {
	color: inherit;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .submitted-message p,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .submitted-message div,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .submitted-message span {
	color: inherit;
	margin: 0;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .submitted-message a {
	color: var(--agp-cta-teal);
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed form.hs-form {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	grid-template-columns: 2fr 1fr;
	/* flex-direction: row; */
	/* flex-wrap: wrap; */
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form fieldset {
	border: none;
	margin: 0;
	padding: 0;
	flex: 1 1 200px;
	min-width: 0;
	max-width: 100%;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form fieldset.form-columns-1,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form fieldset.form-columns-2 {
	width: auto !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-form-field {
	margin-bottom: 0 !important;
	width: auto;
}

/* Visually hide HubSpot field labels (email-only newsletter); keep legal/consent visible */
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form label:not(.hs-error-msg) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .legal-consent-container label,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-form-booleancheckbox label,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-richtext label {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0 8px 0 !important;
	overflow: visible !important;
	clip: auto !important;
	white-space: normal !important;
	color: var(--agp-cta-muted) !important;
	font-size: 12px !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-input,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input[type='text'],
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input[type='email'],
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form textarea {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	background: var(--agp-cta-navy-input) !important;
	border: 1px solid var(--agp-cta-border) !important;
	border-radius: var(--agp-cta-field-radius) !important;
	padding: 12px 18px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	color: #fff !important;
	min-height: 44px !important;
	height: auto !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-input::placeholder,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input::placeholder {
	color: rgba(255, 255, 255, 0.35) !important;
	opacity: 1 !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-input:focus,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input:focus {
	border-color: var(--agp-cta-teal) !important;
	box-shadow: 0 0 0 2px rgba(26, 161, 140, 0.25) !important;
	outline: none !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs_submit {
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	display: flex;
	align-items: stretch;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs_submit .actions {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: stretch;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input.hs-button,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-button {
	background: var(--agp-cta-teal) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--agp-cta-field-radius) !important;
	padding: 12px 22px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-shadow: none !important;
	line-height: 1.4 !important;
	min-height: 44px !important;
	transition: background 0.15s ease !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input.hs-button:hover,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-button:hover {
	background: var(--agp-cta-teal-hover) !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-error-msgs label,
.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-error-msg {
	color: #fca5a5 !important;
	font-size: 12px !important;
}

.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-error-msgs {
	margin-top: 6px !important;
}

@media (max-width: 860px) {
	.agp-blog-hub-cta-widget {
		padding: 0 24px 64px;
	}

	.agp-blog-hub-cta-widget .newsletter {
		grid-template-columns: 1fr;
		padding: 36px;
		gap: 28px;
	}

	.agp-blog-hub-cta-widget .nl-form,
	.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form,
	.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed form.hs-form {
		flex-direction: column;
		align-items: stretch;
	}

	.agp-blog-hub-cta-widget .nl-btn,
	.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form input.hs-button,
	.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs-button {
		width: 100%;
	}

	.agp-blog-hub-cta-widget .agp-blog-hub-cta-embed .hs-form .hs_submit {
		width: 100%;
	}
}
