/* Offer form. Inherits colour and type from theme.json; only layout lives here. */

.tof-form {
	--tof-border: var(--wp--preset--color--border, #ded9d2);
	--tof-muted: var(--wp--preset--color--muted, #5f5c57);
	--tof-accent: var(--wp--preset--color--accent, #c8102e);
	max-width: 44rem;
}

.tof-fieldset {
	border: 1px solid var(--tof-border);
	border-radius: 3px;
	padding: 1.25rem 1.25rem 0.5rem;
	margin: 0 0 1.5rem;
}

.tof-fieldset > legend {
	padding: 0 0.5rem;
	font-weight: 650;
}

.tof-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 1rem;
}

.tof-field label {
	font-size: 0.9rem;
	font-weight: 550;
}

.tof-field input[type="text"],
.tof-field input[type="email"],
.tof-field input[type="tel"],
.tof-field input[type="number"],
.tof-field select,
.tof-field textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--tof-border);
	border-radius: 2px;
	background: #fff;
	font: inherit;
	color: inherit;
}

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

.tof-field--check {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
}

.tof-field--check input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.tof-field--check label {
	font-weight: 400;
}

.tof-hint {
	font-size: 0.8rem;
	color: var(--tof-muted);
}

.tof-req {
	color: var(--tof-accent);
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.tof-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tof-actions {
	margin: 0 0 1rem;
}

.tof-submit {
	padding: 0.75rem 1.75rem;
	border: 0;
	border-radius: 2px;
	background: var(--tof-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tof-submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.tof-status {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-left: 3px solid var(--tof-border);
	border-radius: 2px;
	background: var(--wp--preset--color--surface, #f4f2ef);
}

.tof-status--error {
	border-left-color: var(--tof-accent);
}

.tof-status--success {
	border-left-color: #116611;
}

.tof-notice {
	padding: 0.8rem 1rem;
	border: 1px dashed var(--tof-accent);
	border-radius: 2px;
}

@media (min-width: 40em) {
	.tof-field--inline {
		flex-direction: row;
		align-items: center;
	}
}
