/* Employment application ([ewpi_employment_application]). */

.ewpi-app {
	--app-navy: #163454;
	--app-green: #007a5e;
	--app-blue: #3ebedb;
	--app-orange: #f58120;
	--app-line: #c9d3d8;
	--app-error: #b42318;
	max-width: 860px;
	margin: 0 auto;
	color: var(--app-navy);
	font-size: 17px;
	line-height: 1.45;
}

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

.ewpi-app [hidden] {
	display: none !important;
}

/* Honeypot */
.ewpi-app__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Progress */
.ewpi-app__progress {
	display: none;
	list-style: none;
	margin: 0 0 32px !important;
	padding: 0 !important;
	counter-reset: none;
	gap: 8px;
}

.ewpi-app.is-enhanced .ewpi-app__progress {
	display: flex;
}

.ewpi-app__progress-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #7d8b94;
	list-style: none !important;
}

.ewpi-app__progress-item::before {
	content: "";
	display: block;
	height: 6px;
	background: var(--app-line);
}

.ewpi-app__progress-item.is-done::before {
	background: var(--app-green);
}

.ewpi-app__progress-item.is-current::before {
	background: var(--app-orange);
}

.ewpi-app__progress-item.is-current,
.ewpi-app__progress-item.is-done {
	color: var(--app-navy);
}

.ewpi-app__progress-num {
	display: none;
}

/* Steps */
.ewpi-app__step + .ewpi-app__step {
	margin-top: 48px;
}

.ewpi-app.is-enhanced .ewpi-app__step + .ewpi-app__step {
	margin-top: 0;
}

.ewpi-app__step-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 2.1em;
	font-weight: 900;
	line-height: 1.1;
	color: var(--app-navy);
	outline: none;
}

.ewpi-app__step-count {
	display: block;
	margin-bottom: 6px;
	font-size: 0.42em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--app-green);
}

.ewpi-app__group {
	padding: 20px 0 4px;
}

.ewpi-app__group + .ewpi-app__group {
	border-top: 1px solid var(--app-line);
}

.ewpi-app__group-intro {
	margin: 0 0 4px;
	padding: 0;
	font-weight: 700;
}

.ewpi-app__group-title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 1.15em;
	font-weight: 800;
	color: var(--app-green);
}

/* Grid */
.ewpi-app__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px 20px;
}

.ewpi-app__field {
	grid-column: span 12;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

@media (min-width: 640px) {
	.ewpi-app__field--half { grid-column: span 6; }
	.ewpi-app__field--third { grid-column: span 4; }
	.ewpi-app__field--twothirds { grid-column: span 8; }
	.ewpi-app__field--quarter { grid-column: span 3; }
	/* First / MI / Last on one row. */
	.ewpi-app__field--first,
	.ewpi-app__field--last { grid-column: span 5; }
	.ewpi-app__field--mi { grid-column: span 2; }
}

@media (max-width: 639px) {
	/* Short fields share a row on phones too. */
	.ewpi-app__field--quarter { grid-column: span 6; }
	/* First name + MI share a row; last name below. */
	.ewpi-app__field--first { grid-column: span 9; }
	.ewpi-app__field--mi { grid-column: span 3; }
}

/*
 * Fields sharing a row keep their inputs level even when one label wraps:
 * the label absorbs the extra height and sits its text right above the input.
 */
div.ewpi-app__field {
	display: flex;
	flex-direction: column;
}

div.ewpi-app__field > .ewpi-app__label {
	flex: 1 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	align-content: flex-end;
	column-gap: 0.3em;
}

.ewpi-app__label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--app-navy);
}

.ewpi-app__req {
	color: var(--app-orange);
}

.ewpi-app__opt {
	font-weight: 400;
	font-size: 0.85em;
	color: #66757e;
}

.ewpi-app input[type="text"],
.ewpi-app input[type="email"],
.ewpi-app input[type="tel"],
.ewpi-app input[type="date"],
.ewpi-app select,
.ewpi-app textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 2px solid var(--app-line);
	border-radius: 0;
	background: #fff;
	color: var(--app-navy);
	font: inherit;
	font-size: 17px; /* ≥16px stops iOS zooming on focus */
	line-height: 1.3;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.ewpi-app select {
	padding-right: 40px;
	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 fill='%23F58120' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.ewpi-app textarea {
	min-height: 110px;
	resize: vertical;
}

.ewpi-app input:focus,
.ewpi-app select:focus,
.ewpi-app textarea:focus {
	outline: 3px solid rgba(62, 190, 219, 0.45);
	outline-offset: 0;
	border-color: var(--app-navy);
}

.ewpi-app ::placeholder {
	color: #8c99a1;
	opacity: 1;
}

/* Choices */
.ewpi-app__choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ewpi-app__choices--inline {
	flex-direction: row;
	flex-wrap: wrap;
}

.ewpi-app__choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	border: 2px solid var(--app-line);
	background: #fff;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
}

.ewpi-app__choices--inline .ewpi-app__choice {
	flex: 0 1 auto;
	min-width: 110px;
}

.ewpi-app__choice:has(input:checked) {
	border-color: var(--app-green);
	background: #eef8f4;
}

.ewpi-app__choice:has(input:focus-visible) {
	outline: 3px solid rgba(62, 190, 219, 0.45);
}

.ewpi-app__choice input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--app-green);
}

.ewpi-app__field--confirm .ewpi-app__choice {
	align-items: flex-start;
	font-weight: 700;
}

.ewpi-app__field--confirm .ewpi-app__choice input {
	margin-top: 1px;
}

.ewpi-app__help {
	margin: -2px 0 8px;
	padding: 0;
	font-size: 0.9em;
	color: #56656e;
}

.ewpi-app__note {
	margin: 10px 0 12px;
	padding: 12px 14px;
	border-left: 4px solid var(--app-blue);
	background: #eef6f9;
	font-size: 0.88em;
	line-height: 1.45;
	color: #33454f;
}

.ewpi-app__note a {
	color: var(--app-green);
	text-decoration: underline;
}

/* Errors */
.ewpi-app__error {
	margin: 6px 0 0;
	padding: 0;
	font-size: 0.9em;
	font-weight: 700;
	color: var(--app-error);
}

.ewpi-app__error:empty {
	display: none;
}

.ewpi-app .has-error input[type="text"],
.ewpi-app .has-error input[type="email"],
.ewpi-app .has-error input[type="tel"],
.ewpi-app .has-error input[type="date"],
.ewpi-app .has-error select,
.ewpi-app .has-error textarea,
.ewpi-app .has-error .ewpi-app__choice {
	border-color: var(--app-error);
}

.ewpi-app__form-error {
	margin: 20px 0 0;
	padding: 14px 16px;
	background: #fdecea;
	border-left: 4px solid var(--app-error);
	font-weight: 700;
	color: var(--app-error);
}

/* Buttons */
.ewpi-app__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
}

.ewpi-app__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 0;
	border-radius: 0;
	background: var(--app-orange);
	color: #fff !important;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.ewpi-app__btn:hover,
.ewpi-app__btn:focus-visible {
	background: var(--app-blue);
	color: var(--app-green) !important;
}

.ewpi-app__btn:focus-visible {
	outline: 3px solid var(--app-navy);
	outline-offset: 2px;
}

.ewpi-app__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ewpi-app__btn--next,
.ewpi-app__btn--submit {
	margin-left: auto;
}

.ewpi-app__btn--back {
	background: transparent;
	color: var(--app-navy) !important;
	border: 2px solid var(--app-navy);
}

.ewpi-app__btn--back:hover,
.ewpi-app__btn--back:focus-visible {
	background: var(--app-navy);
	color: #fff !important;
}

@media (max-width: 479px) {
	.ewpi-app__nav {
		flex-direction: column-reverse;
	}

	.ewpi-app__btn {
		width: 100%;
	}

	.ewpi-app__progress-label {
		font-size: 0;
	}

	.ewpi-app__progress-item.is-current .ewpi-app__progress-label {
		font-size: 13px;
		white-space: nowrap;
	}

	.ewpi-app__step-title {
		font-size: 1.75em;
	}

	.ewpi-app__success {
		padding: 32px 20px;
	}
}

/* Small print */
.ewpi-app__eeo,
.ewpi-app__recaptcha {
	margin: 28px 0 0;
	padding: 0;
	font-size: 0.8em;
	line-height: 1.45;
	color: #56656e;
}

.ewpi-app__recaptcha {
	margin-top: 10px;
}

.ewpi-app__recaptcha a {
	color: inherit;
	text-decoration: underline;
}

/* reCAPTCHA badge: hidden, with the required text shown above instead. */
body:has(.ewpi-app) .grecaptcha-badge {
	visibility: hidden;
}

/* Success */
.ewpi-app__success {
	padding: 40px 32px;
	background: var(--app-navy);
	color: #fff;
	text-align: center;
	outline: none;
}

.ewpi-app__success h2 {
	margin: 0 0 12px;
	padding: 0;
	font-size: clamp(1.6em, 7vw, 2.2em);
	overflow-wrap: break-word;
	font-weight: 900;
	color: var(--app-blue);
}

.ewpi-app__success p {
	margin: 0 auto 20px;
	padding: 0;
	max-width: 520px;
	font-size: 1.15em;
	color: #fff;
}

.ewpi-app__success p:last-child {
	margin-bottom: 0;
}
