/* Extracted from lib.css — loaded conditionally via functions.php */

/* ── Form / Lead magnet section ──────────────────────────────── */

.lib-form-section { background: var(--wp--preset--color--off-white); }

/* Two-column layout: form content left, resource image right */

.lib-form-cols {
	display: flex;
	align-items: center;
	gap: 3rem;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.lib-form-resource-img {
	flex: 0 0 auto;
	width: 260px;
	display: none;
	align-self: flex-end;
}

.lib-form-resource-img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px 16px 0 0;
}

@media (min-width: 900px) {
	.lib-form-resource-img { display: block; }
}

/* When two-column is active, remove padding from lib-form-section itself */

.lib-form-section:has(.lib-form-cols) { padding-left: 0; padding-right: 0; }

.lib-benefits {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 2rem !important;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.lib-benefits li {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	color: var(--wp--preset--color--primary);
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	line-height: 1.5;
}

.lib-benefits li::before {
	content: '' !important;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--salmon) url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center !important;
	margin-top: 1px;
}

/* Gravity Forms overrides */

.lib-form-section .gform_wrapper { margin: 0 !important; }

.lib-form-section .gform_wrapper .gfield { margin-bottom: 1rem !important; }

.lib-form-section .gform_wrapper .gfield_label,
.lib-form-section .gform_wrapper .ginput_complex label {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.83rem !important;
	font-weight: 600 !important;
	color: var(--wp--preset--color--primary) !important;
	margin-bottom: 0.4rem !important;
}

.lib-form-section .gform_wrapper input[type="text"],
.lib-form-section .gform_wrapper input[type="email"],
.lib-form-section .gform_wrapper input[type="tel"],
.lib-form-section .gform_wrapper select {
	width: 100% !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1rem !important;
	padding: 0.8rem 1rem !important;
	border: 1.5px solid rgba(58,58,58,0.2) !important;
	border-radius: 10px !important;
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--primary) !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.lib-form-section .gform_wrapper input:focus,
.lib-form-section .gform_wrapper select:focus {
	border-color: var(--wp--preset--color--salmon) !important;
	box-shadow: 0 0 0 3px var(--wp--preset--color--salmon-light) !important;
}

.lib-form-section .gform_wrapper input::placeholder { color: #b0b0b0 !important; }

.lib-form-section .gform_wrapper .gform_button,
.lib-form-section .gform_wrapper input[type="submit"] {
	width: 100% !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	padding: 1rem 2rem !important;
	background: var(--wp--preset--color--salmon) !important;
	color: var(--wp--preset--color--white) !important;
	border: none !important;
	border-radius: 12px !important;
	cursor: pointer !important;
	margin-top: 0.5rem !important;
	letter-spacing: -0.01em !important;
	transition: background 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.lib-form-section .gform_wrapper .gform_button:hover,
.lib-form-section .gform_wrapper input[type="submit"]:hover {
	background: var(--wp--preset--color--salmon-dark) !important;
	transform: translateY(-2px) !important;
}

.lib-form-section .gform_wrapper .gform_button:active,
.lib-form-section .gform_wrapper input[type="submit"]:active {
	transform: translateY(0) !important;
}

.lib-form-section .gform_wrapper .gfield_error input,
.lib-form-section .gform_wrapper .gfield_error select {
	border-color: #e53e3e !important;
}

.lib-form-section .gform_wrapper .validation_message,
.lib-form-section .gform_wrapper .gfield_validation_message {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.78rem !important;
	color: #e53e3e !important;
	margin-top: 0.25rem !important;
}

.lib-form-section .gform_wrapper .gform_confirmation_message {
	font-family: var(--wp--preset--font-family--body) !important;
	background: var(--wp--preset--color--salmon-light) !important;
	border-radius: 12px !important;
	padding: 1.5rem !important;
	text-align: center !important;
	color: var(--wp--preset--color--primary) !important;
}

.lib-form-section .gform_wrapper .ginput_complex .ginput_full,
.lib-form-section .gform_wrapper .ginput_complex .ginput_left,
.lib-form-section .gform_wrapper .ginput_complex .ginput_right {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

.lib-form-section .gform_wrapper .gform_title,
.lib-form-section .gform_wrapper .gform_description { display: none !important; }

.lib-form-cols .wp-block-group.lib-container {
	flex: 1 1 0;
	max-width: none !important;
	margin: 0;
	padding: 0;
}

@media (min-width: 900px) {
	.lib-form-section .lib-container { max-width: 960px; }
}
