/**
 * HERSpace Membership - form and admin styling.
 *
 * Colours are declared as custom properties so the theme can override them
 * without editing this file.
 */

.hsm-form-wrap {
	--hsm-ink: #1c1a1e;
	--hsm-muted: #6b6570;
	--hsm-line: #d9d3dd;
	--hsm-accent: #6d4a7a;
	--hsm-bg: #ffffff;
	--hsm-ok-bg: #eef6ef;
	--hsm-ok-line: #7ba57f;
	--hsm-err-bg: #fdf0ef;
	--hsm-err-line: #c07a72;

	max-width: 34rem;
	margin: 0 auto;
	color: var(--hsm-ink);
	/* Inherit the theme typography rather than imposing a font. */
	font-size: 1rem;
	line-height: 1.55;
}

.hsm-form-wrap * {
	box-sizing: border-box;
}

/* --- Notices ---------------------------------------------------------- */

.hsm-notice {
	padding: 1rem 1.15rem;
	margin: 0 0 1.5rem;
	border-left: 3px solid var(--hsm-line);
	background: #f7f5f8;
	border-radius: 3px;
}

.hsm-notice p:last-child,
.hsm-notice ul:last-child {
	margin-bottom: 0;
}

.hsm-notice ul {
	margin: 0;
	padding-left: 1.1rem;
}

.hsm-notice-success {
	background: var(--hsm-ok-bg);
	border-left-color: var(--hsm-ok-line);
}

.hsm-notice-error {
	background: var(--hsm-err-bg);
	border-left-color: var(--hsm-err-line);
}

.hsm-notice-admin {
	background: #fff8e5;
	border-left-color: #d4a72c;
	font-size: 0.9rem;
}

/* --- Fields ------------------------------------------------------------ */

.hsm-field {
	margin: 0 0 1.35rem;
}

.hsm-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.hsm-required {
	color: var(--hsm-accent);
}

.hsm-field input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--hsm-line);
	border-radius: 4px;
	background: var(--hsm-bg);
	color: inherit;
	font: inherit;
}

.hsm-field input:focus {
	outline: 2px solid var(--hsm-accent);
	outline-offset: 1px;
	border-color: var(--hsm-accent);
}

.hsm-hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85rem;
	color: var(--hsm-muted);
}

.hsm-privacy {
	font-size: 0.85rem;
	color: var(--hsm-muted);
	border-top: 1px solid var(--hsm-line);
	padding-top: 1rem;
}

.hsm-submit button {
	width: 100%;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 4px;
	background: var(--hsm-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.hsm-submit button:hover,
.hsm-submit button:focus {
	filter: brightness(1.12);
}

/* --- Honeypot ----------------------------------------------------------
 * Moved off-screen rather than display:none, because some bots skip inputs
 * that are explicitly hidden but happily fill ones that are merely positioned
 * away.
 */

.hsm-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* --- Admin screens ----------------------------------------------------- */

.hsm-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 9px;
	background: #e6e2e9;
	color: #43394a;
	font-size: 11px;
	line-height: 1.7;
	white-space: nowrap;
}

.hsm-badge-ok {
	background: #e2efe3;
	color: #2f5133;
}

.hsm-badge-warn {
	background: #fbeadf;
	color: #8a4b1d;
}

.hsm-status {
	font-weight: 600;
}

.hsm-status-pending {
	color: #8a6d1d;
}

.hsm-status-approved {
	color: #2f5133;
}

.hsm-status-rejected {
	color: #8a2f2f;
}

.hsm-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.hsm-row-actions .button-link-delete {
	color: #b32d2e;
}
