/*
 * Consultation form styling. Uses the host theme's design tokens
 * (theme.json --wp--preset--* custom properties) when present, and falls
 * back to sensible neutrals so the form still reads correctly on any theme.
 */

.fcs-consultation-form {
	--fcs-ink: var(--wp--preset--color--ink, #1c1b19);
	--fcs-ink-soft: var(--wp--preset--color--ink-soft, #57534a);
	--fcs-paper: var(--wp--preset--color--paper, #f7f5f0);
	--fcs-line: var(--wp--preset--color--line, #ddd6c5);
	--fcs-accent: var(--wp--preset--color--accent, #1f6f63);
	max-width: 42rem;
}

.fcs-notice {
	border: 1px solid var(--fcs-line);
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	color: var(--fcs-ink);
}

.fcs-notice--success {
	border-color: var(--fcs-accent);
	background: color-mix(in srgb, var(--fcs-accent) 8%, transparent);
}

.fcs-notice--error {
	border-color: #b3261e;
	background: color-mix(in srgb, #b3261e 6%, transparent);
}

.fcs-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fcs-form__row {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.fcs-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.fcs-field {
	margin: 0 0 1.25rem;
}

.fcs-field label {
	display: block;
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--fcs-ink);
}

.fcs-field input[type='text'],
.fcs-field input[type='email'],
.fcs-field select,
.fcs-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--fcs-ink);
	background: var(--fcs-paper);
	border: 1px solid var(--fcs-line);
	border-radius: 2px;
}

.fcs-field textarea {
	resize: vertical;
}

.fcs-field input:focus-visible,
.fcs-field select:focus-visible,
.fcs-field textarea:focus-visible {
	outline: 2px solid var(--fcs-accent);
	outline-offset: 1px;
	border-color: var(--fcs-accent);
}

.fcs-form__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

.fcs-button {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--fcs-ink);
	background: var(--fcs-ink);
	color: var(--fcs-paper);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.8rem 1.5rem;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fcs-button:hover,
.fcs-button:focus-visible {
	background: var(--fcs-accent);
	border-color: var(--fcs-accent);
}

.fcs-mailto-link {
	font-size: 0.9rem;
	color: var(--fcs-ink-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fcs-block-editor-preview {
	border: 1px dashed var(--fcs-line, #ddd6c5);
	padding: 1rem;
}
