/* folia/b2b-enquiry — form + section styling for the B2B ("Dla firm") page.
   Loaded only on singular pages that contain the block (see functions.php). */

/* Honeypot: visually and from AT hidden, still submitted by bots. */
.folia-b2b-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.folia-b2b-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.folia-b2b-field > span {
	font-size: 0.95rem;
	color: #1e1e1e;
}
.folia-b2b-form input[type="text"],
.folia-b2b-form input[type="email"],
.folia-b2b-form input[type="tel"],
.folia-b2b-form select,
.folia-b2b-form textarea {
	width: 100%;
	border: 1px solid #d8d5d8;
	background: #fff;
	color: #1e1e1e;
	padding: 12px 14px;
	font-size: 1rem;
	line-height: 1.4;
	border-radius: 0;
	transition: border-color 0.15s ease;
}
.folia-b2b-form textarea {
	resize: vertical;
	min-height: 120px;
}
.folia-b2b-form input:focus,
.folia-b2b-form select:focus,
.folia-b2b-form textarea:focus {
	outline: none;
	border-color: #1e1e1e;
}
/* Only flag a field red once the user has interacted and left it invalid —
   not on first paint (required + no placeholder would otherwise match :invalid). */
.folia-b2b-form input:user-invalid,
.folia-b2b-form textarea:user-invalid {
	border-color: #c0563f;
}

.folia-b2b-submit {
	background: #1e1e1e;
	color: #fff;
	border: 1px solid #1e1e1e;
	align-self: flex-start;
	cursor: pointer;
}
.folia-b2b-submit:hover {
	background: #fff;
	color: #1e1e1e;
}
.folia-b2b-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.folia-b2b-form__status {
	min-height: 1.4em;
	font-size: 1rem;
}
.folia-b2b-form__status.is-ok {
	color: #2f7d43;
}
.folia-b2b-form__status.is-err {
	color: #c0563f;
}

/* Sections built as wp:html on the page (Tailwind arbitrary classes that live
   only in DB content are NOT compiled, so these sections are styled here). */
.folia-b2b-section {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.folia-b2b-section > h2 {
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.2;
	color: #1e1e1e;
}
.folia-b2b-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 768px) {
	.folia-b2b-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

/* Services + advantages + roadmap cards (used by the page's wp:html sections). */
.folia-b2b-card {
	background: #f4f4f4;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
}
.folia-b2b-card h3 {
	font-size: 1.35rem;
	line-height: 1.3;
	color: #1e1e1e;
}
.folia-b2b-card p {
	font-size: 1.05rem;
	line-height: 1.55;
	color: #1e1e1e;
	font-weight: 300;
}
.folia-b2b-roadmap {
	border: 1px solid #e0dde0;
	padding: 1.75rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.folia-b2b-roadmap .folia-b2b-roadmap__tag {
	display: inline-block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #71717a;
	margin-right: 0.5rem;
}
