/* Moather Careers — Frontend
 * Copyright (c) 2026 DevRift. All rights reserved.
 */
.mc-careers svg {
	display: block;
	width: 24px;
	height: 24px;
	max-width: 100%;
}

.mc-careers,
.mc-careers * {
	box-sizing: border-box;
}

.mc-careers {
	--mc-accent: #f97316;
	--mc-ink: #111827;
	--mc-muted: #667085;
	--mc-line: #e6e8ec;
	--mc-surface: #ffffff;
	--mc-soft: #f7f8fa;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	max-width: 980px;
	margin: 40px auto;
	padding: clamp(24px, 5vw, 56px);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96)),
		radial-gradient(circle at top right, color-mix(in srgb, var(--mc-accent) 16%, transparent), transparent 34%);
	box-shadow: 0 28px 80px rgba(17, 24, 39, 0.10);
	color: var(--mc-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mc-careers__glow {
	position: absolute;
	z-index: -1;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mc-accent) 12%, transparent);
	filter: blur(70px);
	pointer-events: none;
}

.mc-careers__glow--one {
	top: -130px;
	right: -90px;
}

.mc-careers__glow--two {
	bottom: -170px;
	left: -120px;
	opacity: .55;
}

.mc-careers__header {
	max-width: 700px;
	margin-bottom: 38px;
}

.mc-careers__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 13px;
	padding: 7px 12px;
	border: 1px solid color-mix(in srgb, var(--mc-accent) 30%, #fff);
	border-radius: 999px;
	background: color-mix(in srgb, var(--mc-accent) 8%, #fff);
	color: color-mix(in srgb, var(--mc-accent) 84%, #111);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mc-careers__header h2 {
	margin: 0 0 12px;
	color: var(--mc-ink);
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.mc-careers__header p {
	max-width: 680px;
	margin: 0;
	color: var(--mc-muted);
	font-size: 16px;
	line-height: 1.75;
}

.mc-careers__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.mc-field--full {
	grid-column: 1 / -1;
}

.mc-field > label {
	display: block;
	margin-bottom: 9px;
	color: #303846;
	font-size: 13px;
	font-weight: 750;
}

.mc-field > label span {
	color: var(--mc-accent);
}

.mc-input-wrap {
	position: relative;
}

.mc-input-wrap > svg {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	fill: none;
	stroke: #8a94a3;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
	transition: stroke .2s ease;
}

.mc-careers input[type="text"],
.mc-careers input[type="email"],
.mc-careers input[type="tel"],
.mc-careers select {
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 0 44px 0 48px;
	border: 1px solid var(--mc-line);
	border-radius: 14px;
	outline: none;
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.02);
	color: var(--mc-ink);
	font: inherit;
	font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
	appearance: none;
}

.mc-careers select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237b8492' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: calc(100% - 17px) 50%;
	background-size: 12px 8px;
	background-repeat: no-repeat;
}

.mc-careers input::placeholder {
	color: #a0a8b4;
}

.mc-careers input:focus,
.mc-careers select:focus {
	border-color: color-mix(in srgb, var(--mc-accent) 75%, #fff);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc-accent) 12%, transparent);
}

.mc-input-wrap:focus-within > svg {
	stroke: var(--mc-accent);
}

.mc-upload {
	display: flex !important;
	align-items: center;
	gap: 16px;
	min-height: 116px;
	margin: 0 !important;
	padding: 20px;
	border: 1.5px dashed #cfd4dc;
	border-radius: 18px;
	background: linear-gradient(180deg, #fbfcfd, #f7f8fa);
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.mc-upload:hover,
.mc-upload.is-dragging,
.mc-upload.has-file {
	border-color: var(--mc-accent);
	background: color-mix(in srgb, var(--mc-accent) 5%, #fff);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc-accent) 9%, transparent);
	transform: translateY(-1px);
}

.mc-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.mc-upload__icon {
	display: grid;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 15px;
	background: color-mix(in srgb, var(--mc-accent) 10%, #fff);
	color: var(--mc-accent);
}

.mc-upload__icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mc-upload__copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.mc-upload__copy strong {
	color: var(--mc-ink);
	font-size: 14px;
}

.mc-upload__copy small {
	color: var(--mc-muted);
	font-size: 12px;
	font-weight: 500;
}

.mc-upload__button {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 1px solid var(--mc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--mc-ink);
	font-size: 12px;
	font-weight: 750;
	box-shadow: 0 2px 7px rgba(17, 24, 39, 0.05);
}

.mc-upload__filename {
	margin-top: 9px;
	color: var(--mc-accent);
	font-size: 12px;
	font-weight: 700;
}

.mc-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 22px 0 0;
	color: var(--mc-muted);
	font-size: 12px;
	line-height: 1.55;
	cursor: pointer;
}

.mc-consent input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--mc-accent);
}

.mc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	margin-top: 22px;
	padding: 0 22px;
	border: 0;
	border-radius: 15px;
	background: var(--mc-ink);
	box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.mc-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
}

.mc-submit:disabled {
	cursor: not-allowed;
	opacity: .72;
}

.mc-submit > svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mc-submit__loader {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mc-spin .7s linear infinite;
}

.mc-submit.is-loading .mc-submit__loader {
	display: block;
}

.mc-submit.is-loading > svg {
	display: none;
}

.mc-submit--secondary {
	width: auto;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--mc-line);
	box-shadow: none;
	color: var(--mc-ink);
}

.mc-careers__privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
	color: #87909d;
	font-size: 11px;
	text-align: center;
}

.mc-careers__privacy svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mc-careers__message {
	display: none;
	margin-bottom: 20px;
	padding: 13px 15px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 650;
}

.mc-careers__message.is-visible {
	display: block;
}

.mc-careers__message.is-error {
	border: 1px solid #fecaca;
	background: #fff1f2;
	color: #b42318;
}

.mc-careers__message.is-success {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #067647;
}

.mc-careers__success {
	padding: 42px 18px;
	text-align: center;
}

.mc-success-icon {
	display: grid;
	width: 78px;
	height: 78px;
	margin: 0 auto 20px;
	place-items: center;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mc-accent) 10%, #fff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc-accent) 22%, #fff);
	color: var(--mc-accent);
}

.mc-success-icon svg {
	width: 39px;
	height: 39px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mc-careers__success h3 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -.035em;
}

.mc-careers__success p {
	max-width: 540px;
	margin: 0 auto;
	color: var(--mc-muted);
	line-height: 1.7;
}



.mc-success-home {
	width: max-content;
	min-width: 230px;
	margin: 24px auto 0;
	text-decoration: none;
}

.mc-success-home:hover,
.mc-success-home:focus {
	color: var(--mc-ink);
	text-decoration: none;
}

.mc-success-home svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mc-careers[dir="rtl"] .mc-success-home svg,
html[dir="rtl"] .mc-careers .mc-success-home svg {
	order: -1;
}

.mc-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@keyframes mc-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
	.mc-careers {
		margin: 20px auto;
		padding: 24px 18px;
		border-radius: 22px;
	}

	.mc-careers__grid {
		grid-template-columns: 1fr;
		gap: 17px;
	}

	.mc-field--full {
		grid-column: auto;
	}

	.mc-upload {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.mc-upload__copy {
		padding-top: 3px;
	}

	.mc-upload__button {
		width: 100%;
		text-align: center;
	}

	.mc-careers__header {
		margin-bottom: 28px;
	}
}



/* Country-aware mobile field */
.mc-phone {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 54px;
	border: 1px solid var(--mc-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.02);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.mc-phone:focus-within,
.mc-phone.is-open {
	border-color: color-mix(in srgb, var(--mc-accent) 75%, #fff);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc-accent) 12%, transparent);
}

.mc-country-trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	min-width: 108px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-inline-end: 1px solid var(--mc-line);
	border-radius: 14px 0 0 14px;
	outline: none;
	background: #f8f9fb;
	color: var(--mc-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	direction: ltr;
	unicode-bidi: isolate;
	cursor: pointer;
}

.mc-country-trigger svg {
	width: 14px;
	height: 14px;
	margin-inline-start: auto;
	fill: none;
	stroke: #7b8492;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}

.mc-phone.is-open .mc-country-trigger svg {
	transform: rotate(180deg);
}

.mc-country-dial {
	direction: ltr;
	unicode-bidi: isolate;
	white-space: nowrap;
}

.mc-country-flag,
.mc-country-option__flag {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 19px;
	line-height: 1;
}

.mc-phone > input[type="tel"] {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 15px !important;
	border: 0 !important;
	border-radius: 0 14px 14px 0 !important;
	box-shadow: none !important;
	direction: ltr;
	text-align: left;
}

.mc-country-menu {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 9px);
	inset-inline-start: 0;
	width: min(390px, calc(100vw - 48px));
	overflow: hidden;
	border: 1px solid #e0e4e9;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 22px 50px rgba(17, 24, 39, 0.18);
}

.mc-country-menu[hidden] {
	display: none !important;
}

.mc-country-search {
	position: relative;
	padding: 11px;
	border-bottom: 1px solid #eef0f2;
	background: #fafbfc;
}

.mc-country-search svg {
	position: absolute;
	top: 50%;
	inset-inline-start: 25px;
	width: 17px;
	height: 17px;
	transform: translateY(-50%);
	fill: none;
	stroke: #8992a0;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.mc-country-search input[type="search"] {
	width: 100%;
	min-height: 42px;
	padding: 0 13px 0 40px;
	border: 1px solid #e1e5ea;
	border-radius: 10px;
	outline: none;
	background: #fff;
	color: var(--mc-ink);
	font: inherit;
	font-size: 13px;
	-webkit-appearance: none;
}

.mc-country-search input[type="search"]:focus {
	border-color: color-mix(in srgb, var(--mc-accent) 65%, #fff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc-accent) 10%, transparent);
}

.mc-country-list {
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	scrollbar-width: thin;
}

.mc-country-option {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 7px 9px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--mc-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.mc-country-option:hover,
.mc-country-option[aria-selected="true"] {
	background: color-mix(in srgb, var(--mc-accent) 8%, #fff);
}

.mc-country-option[aria-selected="true"] .mc-country-option__name,
.mc-country-option[aria-selected="true"] .mc-country-option__dial {
	color: color-mix(in srgb, var(--mc-accent) 86%, #111);
	font-weight: 750;
}

.mc-country-option__name {
	overflow: hidden;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mc-country-option__dial {
	color: #667085;
	font-size: 11px;
	font-weight: 650;
	direction: ltr;
}

.mc-country-empty {
	padding: 24px 12px;
	color: #8992a0;
	font-size: 12px;
	text-align: center;
}

.mc-country-detected {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	min-height: 17px;
	margin-top: 7px;
	color: #8a94a3;
	font-size: 11px;
	line-height: 1.4;
}

.mc-country-detected.is-ready {
	color: #667085;
}

.mc-country-detected__identity {
	font-weight: 650;
}

.mc-country-detected__code {
	direction: ltr;
	unicode-bidi: isolate;
	white-space: nowrap;
	font-weight: 700;
}

/* Native RTL support for Arabic and other right-to-left languages */
.mc-careers[dir="rtl"],
html[dir="rtl"] .mc-careers {
	direction: rtl;
	text-align: right;
}

.mc-careers[dir="rtl"] .mc-careers__header,
html[dir="rtl"] .mc-careers .mc-careers__header {
	margin-right: 0;
	margin-left: auto;
}

.mc-careers[dir="rtl"] .mc-input-wrap > svg,
html[dir="rtl"] .mc-careers .mc-input-wrap > svg {
	right: 16px;
	left: auto;
}

.mc-careers[dir="rtl"] input[type="text"],
.mc-careers[dir="rtl"] input[type="email"],
.mc-careers[dir="rtl"] input[type="tel"]:not(.mc-phone > input),
.mc-careers[dir="rtl"] select,
html[dir="rtl"] .mc-careers input[type="text"],
html[dir="rtl"] .mc-careers input[type="email"],
html[dir="rtl"] .mc-careers input[type="tel"]:not(.mc-phone > input),
html[dir="rtl"] .mc-careers select {
	padding-right: 48px;
	padding-left: 44px;
	text-align: right;
}

.mc-careers[dir="rtl"] select,
html[dir="rtl"] .mc-careers select {
	background-position: 17px 50%;
}

.mc-careers[dir="rtl"] .mc-phone,
html[dir="rtl"] .mc-careers .mc-phone {
	direction: rtl;
}

.mc-careers[dir="rtl"] .mc-country-trigger,
html[dir="rtl"] .mc-careers .mc-country-trigger {
	border-right: 0;
	border-left: 1px solid var(--mc-line);
	border-radius: 0 14px 14px 0;
	direction: ltr;
	text-align: left;
}

.mc-careers[dir="rtl"] .mc-phone > input[type="tel"],
html[dir="rtl"] .mc-careers .mc-phone > input[type="tel"] {
	border-radius: 14px 0 0 14px !important;
	direction: ltr;
	text-align: right;
	unicode-bidi: plaintext;
}

.mc-careers[dir="rtl"] .mc-country-search input[type="search"],
html[dir="rtl"] .mc-careers .mc-country-search input[type="search"] {
	padding-right: 40px;
	padding-left: 13px;
	text-align: right;
}

.mc-careers[dir="rtl"] .mc-upload,
.mc-careers[dir="rtl"] .mc-consent,
.mc-careers[dir="rtl"] .mc-careers__privacy,
html[dir="rtl"] .mc-careers .mc-upload,
html[dir="rtl"] .mc-careers .mc-consent,
html[dir="rtl"] .mc-careers .mc-careers__privacy {
	text-align: right;
}



.mc-careers[dir="rtl"] .mc-country-detected,
html[dir="rtl"] .mc-careers .mc-country-detected {
	direction: rtl;
	justify-content: flex-start;
	text-align: right;
}

.mc-careers[dir="rtl"] .mc-country-option,
html[dir="rtl"] .mc-careers .mc-country-option {
	direction: rtl;
	text-align: right;
}

.mc-careers[dir="rtl"] .mc-country-option__dial,
html[dir="rtl"] .mc-careers .mc-country-option__dial {
	direction: ltr;
	text-align: left;
}


@media (min-width: 721px) {
	.mc-careers[dir="rtl"] .mc-careers__grid > .mc-field:nth-child(3),
	html[dir="rtl"] .mc-careers .mc-careers__grid > .mc-field:nth-child(3) {
		grid-column: 2 / 3;
		grid-row: 2;
	}

	.mc-careers[dir="rtl"] .mc-careers__grid > .mc-field:nth-child(4),
	html[dir="rtl"] .mc-careers .mc-careers__grid > .mc-field:nth-child(4) {
		grid-column: 1 / 2;
		grid-row: 2;
	}
}

@media (max-width: 520px) {
	.mc-country-trigger {
		min-width: 96px;
		padding-inline: 10px;
	}

	.mc-country-menu {
		width: min(360px, calc(100vw - 36px));
	}

	.mc-country-dial {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-careers *,
	.mc-careers *::before,
	.mc-careers *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation-duration: .001ms !important;
	}
}
