/* Al Fayomi careers form — follows the theme colors and fonts. */
.alf-careers {
	--alf-c-ink: var(--wp--preset--color--espresso, #2e2019);
	--alf-c-line: color-mix(in srgb, currentColor 22%, transparent);
	--alf-c-error: #b3261e;
	--alf-c-ok: #1f6f43;
	max-width: 880px;
	margin-inline: auto;
	scroll-margin-top: 120px;
}

.alf-careers__title {
	margin: 0 0 .5rem;
}

.alf-careers__intro {
	margin: 0 0 1.25rem;
}

.alf-careers__note {
	margin: 0 0 1rem;
	font-size: .875em;
	opacity: .8;
}

.alf-careers__req {
	color: var(--alf-c-error);
	font-weight: 700;
}

.alf-careers__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 1.5rem;
}

.alf-careers__field {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	min-width: 0;
}

.alf-careers__field--wide {
	grid-column: 1 / -1;
}

.alf-careers__field > label {
	font-weight: 600;
}

.alf-careers input[type="text"],
.alf-careers input[type="tel"],
.alf-careers input[type="email"],
.alf-careers input[type="file"],
.alf-careers select,
.alf-careers textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: .7rem .9rem;
	border: 1px solid var(--alf-c-line);
	border-radius: 12px;
	background: #fff;
	color: var(--alf-c-ink);
	font: inherit;
	font-size: 16px; /* no zoom on iOS */
	line-height: 1.4;
}

.alf-careers input[dir="ltr"] {
	text-align: right;
}

.alf-careers input[dir="ltr"]::placeholder {
	text-align: right;
}

.alf-careers input[type="file"] {
	padding: .55rem .7rem;
	cursor: pointer;
}

.alf-careers textarea {
	min-height: 120px;
	resize: vertical;
}

.alf-careers input:focus-visible,
.alf-careers select:focus-visible,
.alf-careers textarea:focus-visible {
	outline: 2px solid var(--alf-c-ink);
	outline-offset: 2px;
	border-color: var(--alf-c-ink);
}

.alf-careers .has-error input,
.alf-careers .has-error select,
.alf-careers .has-error textarea {
	border-color: var(--alf-c-error);
}

.alf-careers__help {
	margin: 0;
	font-size: .85em;
	opacity: .75;
}

.alf-careers__error {
	margin: 0;
	color: var(--alf-c-error);
	font-size: .9em;
	font-weight: 600;
}

.alf-careers__consent {
	margin: 1.25rem 0 0;
}

.alf-careers__consent label {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	cursor: pointer;
}

.alf-careers__consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: .15rem 0 0;
	accent-color: var(--alf-c-ink);
}

.alf-careers__consent a {
	color: inherit;
	text-decoration: underline;
}

.alf-careers__actions {
	margin-top: 1.5rem;
}

.alf-careers__submit {
	min-height: 48px;
	cursor: pointer;
	border: 0;
}

.alf-careers__submit[disabled] {
	opacity: .7;
	cursor: progress;
}

.alf-careers__alert,
.alf-careers__success {
	margin: 0 0 1.25rem;
	padding: .9rem 1.1rem;
	border-radius: 12px;
	font-weight: 600;
}

.alf-careers__alert {
	border: 1px solid var(--alf-c-error);
	color: var(--alf-c-error);
	background: color-mix(in srgb, var(--alf-c-error) 7%, #fff);
}

.alf-careers__success {
	border: 1px solid var(--alf-c-ok);
	color: var(--alf-c-ok);
	background: color-mix(in srgb, var(--alf-c-ok) 8%, #fff);
}

.alf-careers__success p {
	margin: 0;
}

/* Honeypot: off screen for people, still present for bots. */
.alf-careers__hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 700px) {
	.alf-careers__grid {
		grid-template-columns: 1fr;
	}

	.alf-careers__submit {
		width: 100%;
	}

	.alf-careers__actions {
		width: 100%;
	}
}
