/* Employer Registration block -- wcb/employer-registration */

/* `.wcb-hidden` is the canonical Interactivity API hide utility,
 * defined globally in `assets/css/frontend-components.css`. No
 * per-block override needed. */

.wcb-employer-reg {
	max-width: 480px;
	margin: 0 auto;
	font-family: inherit;
}

.wcb-reg-title {
	font-size: var(--wcb-text-2xl);
	font-weight: var(--wcb-font-bold);
	margin: 0 0 var(--wcb-space-xs);
}

.wcb-reg-subtitle {
	color: var(--wcb-text-secondary);
	margin: 0 0 var(--wcb-space-2xl);
}

.wcb-reg-link {
	color: var(--wcb-primary);
	text-decoration: underline;
}

.wcb-reg-form {
	display: flex;
	flex-direction: column;
	gap: var(--wcb-space-lg);
}

.wcb-reg-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--wcb-space-lg);
}

.wcb-reg-error {
	color: var(--wcb-danger);
	font-size: var(--wcb-text-base);
	margin: 0;
}

.wcb-reg-terms {
	font-size: var(--wcb-text-xs);
	color: var(--wcb-text-secondary);
	margin: 0;
}

.wcb-reg-terms a {
	color: inherit;
	text-decoration: underline;
}

.wcb-reg-notice {
	display: flex;
	align-items: center;
	gap: var(--wcb-space-sm);
}

.wcb-reg-success {
	text-align: center;
	padding: var(--wcb-space-3xl) 0;
}

.wcb-reg-success-title {
	font-size: var(--wcb-text-2xl);
	font-weight: var(--wcb-font-bold);
	margin: 0 0 var(--wcb-space-sm);
}

/* -- Role picker -- */
.wcb-role-prompt {
	font-size: var(--wcb-text-base);
	font-weight: var(--wcb-font-medium);
	color: var(--wcb-contrast);
	margin-bottom: var(--wcb-space-lg);
}

.wcb-role-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--wcb-space-lg);
}

.wcb-role-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wcb-space-sm);
	padding: var(--wcb-space-2xl) var(--wcb-space-lg);
	border: 2px solid var(--wcb-border);
	border-radius: var(--wcb-radius-xl);
	background: var(--wcb-base);
	cursor: pointer;
	transition: border-color var(--wcb-transition-fast), background-color var(--wcb-transition-fast), transform var(--wcb-transition-fast), box-shadow var(--wcb-transition-fast);
	text-align: center;
}

.wcb-role-card:hover {
	border-color: var(--wcb-primary);
	background: var(--wcb-info-bg);
	transform: translateY(-2px);
	box-shadow: var(--wcb-shadow-md);
}

.wcb-role-card:focus-visible {
	outline: 2px solid var(--wcb-primary);
	outline-offset: 2px;
}

.wcb-role-icon {
	font-size: var(--wcb-text-3xl);
	line-height: 1;
}

.wcb-role-label {
	font-size: var(--wcb-text-base);
	font-weight: var(--wcb-font-semibold);
	color: var(--wcb-contrast);
}

.wcb-role-desc {
	font-size: var(--wcb-text-sm);
	color: var(--wcb-text-secondary);
	line-height: 1.4;
}

.wcb-reg-header-row {
	display: flex;
	align-items: flex-start;
	gap: var(--wcb-space-md);
	margin-bottom: var(--wcb-space-2xl);
}

.wcb-reg-header-row .wcb-reg-title {
	margin-bottom: var(--wcb-space-xs);
}

/* `[class*="wp-block-..."] button.wcb-reg-back` selector lands at (0,2,2)
 * which beats Astra's `.entry-content button` cascade (0,2,1) outright.
 * Property-level `!important` flags are no longer needed - the per-class
 * rule wins on its own. Both Free and Pro block class roots covered. */
[class*="wp-block-wp-career-board"] button.wcb-reg-back,
[class*="wp-block-wcb-"] button.wcb-reg-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wcb-space-3xl);
	height: var(--wcb-space-3xl);
	padding: 0;
	border: 1px solid var(--wcb-border);
	border-radius: var(--wcb-radius-sm);
	background: var(--wcb-base);
	color: var(--wcb-text-secondary);
	cursor: pointer;
	font-size: var(--wcb-text-md);
	font-family: inherit;
	line-height: 1;
	flex-shrink: 0;
	margin-top: var(--wcb-space-xs);
	transition: border-color var(--wcb-transition-fast), color var(--wcb-transition-fast);
}

[class*="wp-block-wp-career-board"] button.wcb-reg-back:hover,
[class*="wp-block-wcb-"] button.wcb-reg-back:hover {
	border-color: var(--wcb-primary);
	color: var(--wcb-primary);
}

.wcb-reg-back:focus-visible {
	outline: 2px solid var(--wcb-primary);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.wcb-reg-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.wcb-role-options {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcb-role-card {
		transition: none;
	}

	.wcb-role-card:hover {
		transform: none;
	}
}

/*
 * Side-by-side fields use the shared `.wcb-field-row` grid defined in
 * `assets/css/frontend-components.css` (minmax(0, 1fr) minmax(0, 1fr), auto-stacks at <=600px).
 * `.wcb-field-half` is retained for backwards-compatibility on existing
 * markup but is now a no-op grid item.
 */
.wcb-field-half {
	min-width: 0;
}
