/* ==========================================================================
   TeamCNF consultation (the "Consultation banner" block)
   A dark banner over a texture photo: the info column on the left, the
   booking form card on the right. Steps are numbered by a CSS counter.
   Every value comes from the theme tokens (theme.json): --wp--preset--* and
   --wp--custom--*.
   ========================================================================== */
.tcnf-consult__banner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--glass--border);
	border-radius: var(--wp--custom--radius--xl);
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--float);
}

.tcnf-consult__banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--custom--overlay--fade-left);
	pointer-events: none;
}

.tcnf-consult .tcnf-consult__texture {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tcnf-consult__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--70);
}

/* ---- Info column -------------------------------------------------------- */
.tcnf-consult__info {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	align-content: start;
	justify-items: start;
}

.tcnf-consult__info > * {
	margin: 0;
}

.tcnf-consult__info .tcnf-eyebrow {
	color: var(--wp--custom--text--secondary);
}

.tcnf-consult__steps {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tcnf-consult;
}

.tcnf-consult__steps li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: start;
	margin: 0;
	counter-increment: tcnf-consult;
}

.tcnf-consult__steps li::before {
	content: counter(tcnf-consult);
	display: inline-grid;
	place-items: center;
	width: var(--wp--custom--size--control-sm);
	height: var(--wp--custom--size--control-sm);
	border: 1px solid var(--wp--custom--glass--border);
	border-radius: 50%;
	background: var(--wp--custom--glass--fill);
	color: var(--wp--custom--text--primary);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.tcnf-consult__steps strong {
	display: block;
	color: var(--wp--custom--text--primary);
	font-weight: 600;
}

.tcnf-consult__steps span {
	font-size: var(--wp--preset--font-size--small);
}

.tcnf-consult__alt {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.tcnf-consult__alt .wp-block-button {
	margin: 0;
}

.tcnf-consult .tcnf-consult__contact {
	justify-self: stretch;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--custom--glass--border-subtle);
}

/* ---- Form card ---------------------------------------------------------- */
/* Scoped under .tcnf-consult so the padding and radius win over .tcnf-glass */
.tcnf-consult .tcnf-consult__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--xl);
}

.tcnf-consult__form-head {
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

.tcnf-consult__form-head > * {
	margin: 0;
}

.tcnf-consult__form-head h3 {
	font-size: var(--wp--preset--font-size--xx-large);
}

.tcnf-consult__form-head p {
	font-size: var(--wp--preset--font-size--small);
}

.tcnf-consult__form-body > :first-child {
	margin-top: 0;
}

.tcnf-consult__form-body > :last-child {
	margin-bottom: 0;
}

/* Shown until the form plugin's shortcode is set in the block */
.tcnf-consult__placeholder {
	margin: 0;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	border: 1px dashed var(--wp--custom--glass--border-strong);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--custom--text--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-align: center;
}

.tcnf-consult__note {
	margin: 0;
	color: var(--wp--custom--text--tertiary);
	font-size: var(--wp--preset--font-size--x-small);
}

.tcnf-consult__note a {
	color: var(--wp--custom--text--secondary);
}

.tcnf-consult__note a:hover {
	color: var(--wp--custom--text--primary);
}

@media (min-width: 640px) {
	.tcnf-consult__banner {
		padding: var(--wp--preset--spacing--60);
	}

	.tcnf-consult .tcnf-consult__form {
		padding: var(--wp--preset--spacing--50);
	}
}

@media (min-width: 1100px) {
	.tcnf-consult__banner {
		padding: var(--wp--preset--spacing--70);
	}

	.tcnf-consult__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: var(--wp--preset--spacing--80);
		align-items: start;
	}

	.tcnf-consult .tcnf-consult__form {
		padding: var(--wp--preset--spacing--70);
	}
}

/* Editor placeholder when the block has no content yet */
.tcnf-consult-empty {
	padding: var(--wp--preset--spacing--50);
	border: 1px dashed var(--wp--custom--glass--border);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--custom--text--meta);
	font-size: var(--wp--preset--font-size--small);
}
