/**
 * Feature Cards 4 Section Styles
 * Figma reference: Home - Desktop Feature cards 4 (1:280) and Mobile (2:1272)
 */

.section-font-finder {
	width: 100%;
	background-color: var(--color-bg-teal);
	padding: 0;
	margin: 0;
}

.section-font-finder__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 111px; /* Space between content and form (645 - 534) */
	padding: 50px 87px 80px 87px; /* Top, sides, 80px bottom */
	min-height: 554px;
	overflow: hidden;
}

/* Left Content */
.section-font-finder__content {
	width: 447px;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.section-font-finder__headline {
	/* Typography handled by .typog-h2 */
	margin: 0 0 29px 0; /* 173.89 - 92.89 - 52 = 29px gap */
	text-align: left;
	width: 100%;
}

.section-font-finder__description {
	/* Typography handled by .text-body */
	margin: 0 0 24px 0; /* 24px gap before button group */
	text-align: left;
	width: 447px;
}

.section-font-finder__link {
	color: var(--color-primary-text);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.section-font-finder__link:hover,
.section-font-finder__link:focus {
	color: var(--color-link-hover);
}

/* Group 433: Three button items */
.section-font-finder__button-group {
	position: relative;
	left: auto;
	top: auto;
	width: auto;
	height: auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	margin-left: -12px; /* Negative margin to be left flush with description minus 12px */
}

.section-font-finder__button-item {
	/* Typography handled by .text-body */
	padding: 8px 16px;
	margin: 0;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 41px;
	border-radius: 34px;
	border: 1px solid var(--color-primary-text);
	background: var(--color-bg-light-green);
	cursor: default; /* Non-clickable as per requirements */
	user-select: none;
	white-space: nowrap; /* Prevent text wrapping */
}

/* Right Content: Rectangle 251 (Form Container) */
.section-font-finder__form-container {
	width: 548px;
	flex: 0 0 auto;
	height: 332px; /* 362px - 30px from bottom */
	background-color: var(--color-bg-light-green);
	border-radius: 30px;
	padding: 28px 0 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

/* Contact Form Styles for section-font-finder variant */
.contact-form--section-font-finder {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

@media (min-width: 1024px) {
	.contact-form--section-font-finder {
		padding-top: 30px;
	}
}

.contact-form--section-font-finder .contact-form__headline {
	position: relative;
	left: auto;
	top: auto;
	width: 395px;
	height: auto;
	/* Typography handled by .text-heading-serif */
	margin: 0 0 12px 76px; /* 12px spacing before form, 76px left padding */
	text-align: left;
}

.contact-form--section-font-finder .contact-form__form {
	position: relative;
	left: auto;
	top: auto;
	width: 391px;
	margin-left: 76px; /* 76px left padding */
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact-form--section-font-finder .contact-form__fields {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 0;
}

.contact-form--section-font-finder .contact-form__field-wrapper {
	width: 100%;
	position: relative;
}

.contact-form--section-font-finder .contact-form__input {
	width: 100%;
	height: 50px;
	padding: 11.13px 26px;
	/* Typography handled by .text-form-input */
	background-color: var(--color-bg-white);
	border: 2px solid var(--color-teal);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.contact-form--section-font-finder .contact-form__input::placeholder {
		color: var(--color-placeholder);
}

.contact-form--section-font-finder .contact-form__input:focus {
	border-color: var(--color-teal-border);
	outline: none;
}

.contact-form--section-font-finder .contact-form__submit {
	width: 214px;
	height: 49px;
	margin-top: 0; /* Gap handles spacing */
	/* Typography handled by .text-button */
	color: var(--color-primary-text);
	background-color: var(--color-bg-teal);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-form--section-font-finder .contact-form__submit:hover {
	background-color: var(--color-teal-border);
}

.contact-form--section-font-finder .contact-form__submit:active {
	background-color: var(--color-teal-active);
}

/* Mobile Styles */
@media (max-width: 1023px) {
	.section-font-finder__inner {
		flex-direction: column;
		height: auto;
		min-height: 554px;
		padding: 40px 24px;
		align-items: center;
		justify-content: flex-start;
		gap: 40px;
	}

	.section-font-finder__content {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 447px;
		order: 1;
		align-items: center; /* Center align on mobile */
	}

	.section-font-finder__headline {
		/* Typography responsive handled by .typog-h2 */
		text-align: center;
		margin-bottom: 20px;
	}

	.section-font-finder__description {
		text-align: center;
		width: 100%;
		margin-bottom: 30px;
	}

	.section-font-finder__button-group {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 375px;
		margin: 0 auto;
		order: 2;
		margin-left: 0; /* Remove negative margin on mobile */
		flex-wrap: nowrap; /* Keep items side-by-side */
		justify-content: center;
		gap: 8px; /* Smaller gap for mobile to fit 3 items */
	}

	.section-font-finder__button-item {
		flex: 0 1 auto; /* Allow items to shrink if needed */
		padding: 6px 10px; /* Smaller padding for mobile */
		/* Typography: Mobile button items use 14px/700 - keeping for now as variant */
		font-family: 'Bricolage Grotesque', sans-serif;
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: 154%;
		letter-spacing: -0.07px;
		min-height: auto;
		white-space: nowrap;
	}

	.section-font-finder__form-container {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 548px;
		height: auto;
		/* No min-height - let content determine height */
		padding: 28px 0 28px 0; /* Symmetrical with top */
		order: 3;
	}

	.contact-form--section-font-finder {
		height: auto; /* Allow container padding to show when min-height removed */
	}

	.contact-form--section-font-finder .contact-form__headline {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 395px;
		height: auto;
		margin: 0 auto 12px;
		/* Typography responsive handled by .text-heading-serif */
		text-align: center;
		padding: 0 20px;
	}

	.contact-form--section-font-finder .contact-form__form {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 391px;
		margin: 0 auto;
		padding: 0 20px 0; /* No extra bottom - container handles it */
		gap: 8px;
	}

	.contact-form--section-font-finder .contact-form__fields {
		gap: 8px;
	}

	.contact-form--section-font-finder .contact-form__submit {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		margin-top: 0; /* Gap handles spacing */
	}
}

