/* -------------------------------------------------------------------------
 * Let the section run the full width of the page. The theme drops single
 * pages into a narrow, left-aligned sidebar column and prints its own title
 * above the content; both are unwanted here, so they are neutralised on this
 * page only (body class added by the plugin).
 * ---------------------------------------------------------------------- */
body.lapapoe-apply-page #primary,
body.lapapoe-apply-page #primary.content-area,
body.lapapoe-apply-page .site-main,
body.lapapoe-apply-page .posts-entry,
body.lapapoe-apply-page .entry-content,
body.lapapoe-apply-page .elementor-container,
body.lapapoe-apply-page .elementor-column,
body.lapapoe-apply-page .elementor-widget-wrap {
	width: 100%;
	max-width: none;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

body.lapapoe-apply-page .entry-header,
body.lapapoe-apply-page #secondary,
body.lapapoe-apply-page .widget-area,
body.lapapoe-apply-page .sidebar {
	display: none;
}

/* -------------------------------------------------------------------------
 * The apply section
 * ---------------------------------------------------------------------- */
.lapply {
	/* Brand tokens, matching the live site's stylesheet. */
	--lp-purple: #660066;
	--lp-purple-dark: #330033;
	--lp-pink: #ee0e55;
	--lp-text-dark: #330033;
	--lp-text-body: #5b5468;
	--lp-tint: #f9f5f9;
	--lp-badge-tint: #f5e6f5;
	--lp-line: #e6d8e6;
	width: 100%;
	background: var(--lp-tint);
	font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--lp-text-dark);
}

.lapply *,
.lapply *::before,
.lapply *::after {
	box-sizing: border-box;
}

/* Banner ---------------------------------------------------------------- */
.lapply__banner {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
	background: var(--lp-purple-dark);
}

.lapply__banner-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 28%;
}

.lapply__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(51, 0, 51, 0.1) 0%, rgba(51, 0, 51, 0.55) 68%, var(--lp-tint) 100%);
}

/* Intro ----------------------------------------------------------------- */
.lapply__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px 72px;
}

.lapply__intro {
	margin-top: -20px;
	position: relative;
	z-index: 2;
	text-align: center;
}

.lapply__lede {
	margin: 0 auto;
	max-width: 30em;
	font-size: 1.22rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--lp-text-dark);
}

/* Who we're looking for -------------------------------------------------- */
.lapply__who {
	margin: 34px auto 0;
	max-width: 660px;
	padding: 26px 30px;
	border-radius: 18px;
	background: #ffffff;
}

.lapply__who-title {
	margin: 0 0 18px;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lp-purple);
	text-align: center;
}

.lapply .lapply__who-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 11px 26px;
}

.lapply .lapply__who-list li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--lp-text-dark);
}

.lapply .lapply__who-list li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 6px;
	width: 6px;
	height: 11px;
	border: solid var(--lp-pink);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(42deg);
}

.lapply__who-note {
	margin: 20px 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--lp-purple);
	text-align: center;
}

/* Card ------------------------------------------------------------------ */
.lapply__card {
	margin-top: 26px;
	padding: 44px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 60px -34px rgba(51, 0, 51, 0.45);
}

.lapply__card-title {
	margin: 0 0 30px;
	font-family: inherit;
	font-size: 1.55rem;
	font-weight: 700;
	color: var(--lp-purple);
	text-transform: none;
	letter-spacing: 0;
}

.lapply__notice {
	margin: 0 0 26px;
	padding: 16px 18px;
	border-radius: 12px;
	font-size: 0.98rem;
	line-height: 1.55;
}

.lapply__notice--ok {
	margin: 0;
	padding: 8px 0;
	text-align: center;
}

.lapply__notice--ok h2 {
	margin: 0 0 12px;
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--lp-purple);
	text-transform: none;
}

.lapply__notice--ok p {
	margin: 0 auto;
	max-width: 32em;
	color: var(--lp-text-body);
}

.lapply__notice--error {
	background: #fdeef2;
	border: 1px solid #f6c3d1;
	color: #8c0a33;
}

/* Form ------------------------------------------------------------------ */
.lapply__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.lapply__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.lapply__field--wide {
	grid-column: 1 / -1;
}

/* The theme uppercases and restyles form labels site-wide; not here. */
.lapply .lapply__field label,
.lapply .lapply__field legend {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lp-text-dark);
}

.lapply__optional {
	font-weight: 600;
	color: #8d8398;
}

.lapply__req {
	color: var(--lp-pink);
}

.lapply__hint {
	margin: -2px 0 9px;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--lp-text-body);
}

.lapply .lapply__field input[type="text"],
.lapply .lapply__field input[type="email"],
.lapply .lapply__field input[type="tel"],
.lapply .lapply__field textarea {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--lp-line);
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--lp-text-dark);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lapply .lapply__field textarea {
	resize: vertical;
	min-height: 128px;
}

.lapply .lapply__field input:focus,
.lapply .lapply__field textarea:focus,
.lapply__file:focus-visible,
.lapply__button:focus-visible {
	outline: none;
	border-color: var(--lp-purple);
	box-shadow: 0 0 0 3px rgba(102, 0, 102, 0.16);
}

.lapply__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lapply .lapply__field label.lapply__check,
.lapply__check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 11px 18px;
	border: 1.5px solid var(--lp-line);
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lp-text-dark);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lapply .lapply__field label.lapply__check:hover,
.lapply__check:hover {
	border-color: var(--lp-purple);
	background: var(--lp-tint);
}

.lapply .lapply__check input {
	width: 17px;
	height: 17px;
	margin: 0;
	flex: none;
	accent-color: var(--lp-purple);
}

.lapply__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Resume ---------------------------------------------------------------- */
.lapply__file {
	width: 100%;
	padding: 15px;
	border: 1.5px dashed var(--lp-line);
	border-radius: 12px;
	background: var(--lp-tint);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--lp-text-body);
	cursor: pointer;
}

.lapply__file::file-selector-button {
	margin-right: 14px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--lp-purple);
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.lapply__file::file-selector-button:hover {
	background: var(--lp-purple-dark);
}

/* Actions --------------------------------------------------------------- */
.lapply__actions {
	grid-column: 1 / -1;
	margin-top: 6px;
}

.lapply .lapply__button {
	display: inline-block;
	width: auto;
	padding: 17px 44px;
	border: 0;
	border-radius: 999px;
	background: var(--lp-purple);
	color: #fff;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.lapply .lapply__button:hover {
	background: var(--lp-purple-dark);
	transform: translateY(-1px);
}

/* Contact --------------------------------------------------------------- */
.lapply__contact {
	margin-top: 36px;
	text-align: center;
}

.lapply__contact-title {
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--lp-text-dark);
}

.lapply__contact ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
}

.lapply__contact li {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.lapply .lapply__contact a,
.lapply .lapply__notice a {
	color: var(--lp-purple);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lapply .lapply__contact a:hover,
.lapply .lapply__notice a:hover {
	color: var(--lp-pink);
}

/* Small screens --------------------------------------------------------- */
@media (max-width: 700px) {
	.lapply__banner {
		height: 210px;
	}

	.lapply__inner {
		padding: 0 16px 52px;
	}

	.lapply__lede {
		font-size: 1.08rem;
	}

	.lapply__who {
		margin-top: 24px;
		padding: 20px 18px;
	}

	.lapply .lapply__who-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.lapply__card {
		margin-top: 20px;
		padding: 24px 20px;
		border-radius: 16px;
	}

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

	.lapply .lapply__button {
		width: 100%;
	}
}
