/* Membership plugin — form styling. Inherits theme tokens from theme.json. */

.gfm-application-form,
.gfm-auth-form,
.gfm-account-form {
	max-width: 720px;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
}

.gfm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 1.25rem;
}

.gfm-field-wide { grid-column: 1 / -1; }

@media (max-width: 640px) {
	.gfm-grid { grid-template-columns: 1fr; }
}

.gfm-field { display: flex; flex-direction: column; }

.gfm-field label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--slate);
	margin-bottom: 0.4rem;
}

.gfm-field input[type="text"],
.gfm-field input[type="email"],
.gfm-field input[type="url"],
.gfm-field input[type="password"],
.gfm-field select,
.gfm-field textarea {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.7rem 0.85rem;
	background: var(--wp--preset--color--parchment);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 0;
	line-height: 1.4;
}

.gfm-field input:focus,
.gfm-field select:focus,
.gfm-field textarea:focus {
	outline: 2px solid var(--wp--preset--color--claret);
	outline-offset: 1px;
}

.gfm-field textarea {
	resize: vertical;
	font-family: var(--wp--preset--font-family--serif);
}

.gfm-hint {
	color: var(--wp--preset--color--slate);
	font-size: 0.85rem;
	margin-top: 0.3rem;
	font-family: var(--wp--preset--font-family--serif);
}

.gfm-inline label {
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--ink);
	font-size: 0.95rem;
	font-family: var(--wp--preset--font-family--serif);
}

.gfm-actions {
	margin-top: 2rem;
}

.gfm-fineprint {
	margin-top: 1.25rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--slate);
}

.gfm-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	overflow: hidden !important;
}

.gfm-status[hidden] { display: none; }
.gfm-status {
	display: block;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border: 1px solid var(--wp--preset--color--rule);
	font-family: var(--wp--preset--font-family--serif);
}
.gfm-status.is-error { border-color: var(--wp--preset--color--claret); color: var(--wp--preset--color--claret); }
.gfm-status.is-ok { background: var(--wp--preset--color--vellum); }

.gfm-error {
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--claret);
	color: var(--wp--preset--color--claret);
	margin-bottom: 1.5rem;
}

.gfm-success {
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--vellum);
	border: 1px solid var(--wp--preset--color--rule);
	margin-bottom: 1.5rem;
}
