/*
 * Homepage Get Free Compliance Resources
 *
 * Panel width matches --qehs-container-max exactly (measured: spans
 * the full 1248px content width at 1440px viewport — not a separate
 * width value). Background reuses --qehs-primary, button reuses
 * --qehs-secondary — both existing tokens, no new colors introduced.
 */

.qehs-free-resources {
	padding-top: var(--qehs-space-lg);
	padding-bottom: var(--qehs-space-2xl);
	background-color: var(--qehs-accent-blue-tint);
}

.qehs-free-resources__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--qehs-space-xl);
	background-color: var(--qehs-primary);
	border-radius: var(--qehs-radius-lg);
	padding: var(--qehs-space-xl) var(--qehs-space-2xl);
}

.qehs-free-resources__intro {
	display: flex;
	align-items: center;
	gap: var(--qehs-space-lg);
	flex: 1 1 auto;
	min-width: 0;
}

.qehs-free-resources__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background-color: var(--qehs-accent-blue);
}

.qehs-free-resources__copy {
	min-width: 0;
}

.qehs-free-resources__title {
	margin: 0 0 var(--qehs-space-xs);
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
}

.qehs-free-resources__subtitle {
	margin: 0;
	font-style: italic;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.qehs-free-resources__form {
	display: flex;
	align-items: center;
	gap: var(--qehs-space-md);
	flex: 0 0 auto;
}

.qehs-free-resources__input {
	width: 380px;
	max-width: 100%;
	padding: var(--qehs-space-md) var(--qehs-space-lg);
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--qehs-text);
	background-color: var(--qehs-background);
}

.qehs-free-resources__input::placeholder {
	color: var(--qehs-text-muted);
}

.qehs-free-resources__input:focus-visible {
	outline: 3px solid var(--qehs-secondary);
	outline-offset: 2px;
}

.qehs-free-resources__submit {
	flex-shrink: 0;
	padding: var(--qehs-space-md) var(--qehs-space-xl);
	border: none;
	border-radius: 999px;
	background-color: var(--qehs-secondary);
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.qehs-free-resources__submit:hover {
	filter: brightness(1.08);
}

.qehs-free-resources__submit:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

/* --- Tablet: reduce spacing, keep the horizontal layout while it
   still fits, matching the site's existing 1024px breakpoint. --- */
@media (max-width: 1024px) {
	.qehs-free-resources__panel {
		gap: var(--qehs-space-lg);
		padding: var(--qehs-space-lg);
	}

	.qehs-free-resources__input {
		width: 260px;
	}
}

/* --- Mobile: stack — intro first, form below, per spec. --- */
@media (max-width: 768px) {
	.qehs-free-resources__panel {
		flex-direction: column;
		align-items: stretch;
	}

	.qehs-free-resources__form {
		flex-direction: column;
		align-items: stretch;
	}

	.qehs-free-resources__input {
		width: 100%;
	}

	.qehs-free-resources__submit {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.qehs-free-resources {
		padding-top: var(--qehs-space-md);
		padding-bottom: var(--qehs-space-xl);
	}

	.qehs-free-resources__intro {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--qehs-space-md);
	}

	.qehs-free-resources__title {
		font-size: 1.25rem;
	}
}
