/**
 * FJ Contact — front end styles.
 *
 * Deliberately minimal and mostly inherited. The theme sets the typography
 * and palette; this file only handles layout, states, and hiding the honeypot.
 */

.fjc-wrap {
	max-width: 36rem;
}

.fjc-title {
	margin: 0 0 0.75rem;
}

/* Honeypot. Off screen rather than display:none, which some bots skip. */
.fjc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.fjc-field {
	margin-bottom: 1rem;
}

.fjc-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}

.fjc-req {
	color: #b32d2e;
}

.fjc-field input,
.fjc-field textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	box-sizing: border-box;
}

.fjc-field textarea {
	resize: vertical;
	min-height: 8rem;
}

.fjc-field input:focus,
.fjc-field textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.fjc-submit {
	font: inherit;
	cursor: pointer;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 3px;
	background: #111;
	color: #fff;
}

.fjc-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.fjc-status {
	margin: 0.9rem 0 0;
	min-height: 1.2em;
	font-size: 0.95rem;
}

.fjc-status.is-ok {
	color: #1a7f37;
}

.fjc-status.is-error {
	color: #b32d2e;
}

@media (prefers-color-scheme: dark) {
	.fjc-field input,
	.fjc-field textarea {
		background: rgba(255, 255, 255, 0.06);
		border-color: rgba(255, 255, 255, 0.3);
		color: inherit;
	}

	.fjc-submit {
		background: #f5f5f5;
		color: #111;
	}
}
