/* MCE Fast Application. Sits on the site's navy page background; everything is scoped to .mce-app. */
.mce-app {
	--mce-bg: #191d3e;
	--mce-card: #22274f;
	--mce-line: rgba(255, 255, 255, 0.14);
	--mce-text: #ffffff;
	--mce-muted: #c3c7e0;
	--mce-blue: #204ce5;
	--mce-blue-hi: #3a63f0;
	--mce-sky: #2aa7e8;
	--mce-ok: #34c38f;
	--mce-err: #ff6b6b;
	--mce-input-bg: #ffffff;
	--mce-input-text: #112337;
	--mce-radius: 10px;
	color: var(--mce-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	max-width: 900px;
	margin: 0 auto;
	text-align: left;
}
.mce-app *, .mce-app *::before, .mce-app *::after { box-sizing: border-box; }
.mce-app [hidden] { display: none !important; }
.mce-app a { color: var(--mce-sky); text-decoration: underline; }
.mce-app__loading { padding: 40px 0; color: var(--mce-muted); }

/* header */
.mce-head { margin-bottom: 18px; }
.mce-head__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mce-step { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mce-status { font-size: 13px; color: var(--mce-muted); }
.mce-status.is-saved::before { content: "✓ "; color: var(--mce-ok); }
.mce-status.is-offline { color: #ffd166; }
.mce-progress { height: 6px; background: var(--mce-line); border-radius: 99px; margin: 10px 0 22px; overflow: hidden; }
.mce-progress span { display: block; height: 100%; background: var(--mce-blue); border-radius: 99px; transition: width 0.3s ease; }
.mce-title { font-family: Archivo, Inter, sans-serif; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0; color: var(--mce-text); outline: none; }
.mce-welcome { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--mce-radius); background: rgba(52, 195, 143, 0.14); color: #c9f5e4; font-size: 14px; }

/* step dots */
.mce-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 26px; }
.mce-steps li { margin: 0; padding: 0; }
.mce-steps button {
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--mce-line); background: transparent;
	color: var(--mce-muted); font: 600 13px/1 Inter, sans-serif; cursor: pointer; padding: 0;
}
.mce-steps button:disabled { cursor: default; opacity: 0.55; }
.mce-steps .is-done button { border-color: var(--mce-blue); color: var(--mce-text); opacity: 1; }
.mce-steps .is-current button { background: var(--mce-blue); border-color: var(--mce-blue); color: #fff; opacity: 1; }

/* fields */
.mce-body { display: flex; flex-wrap: wrap; gap: 22px 4%; border-top: 1px solid var(--mce-line); padding-top: 26px; }
.mce-field { flex: 1 1 100%; min-width: 0; border: 0; padding: 0; margin: 0; }
.mce-field--half { flex-basis: 48%; }
.mce-field--section, .mce-field--html { flex-basis: 100%; }
.mce-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; padding: 0; color: var(--mce-text); float: none; width: auto; }
.mce-req { color: var(--mce-err); font-weight: 700; }
.mce-desc, .mce-hint { color: var(--mce-muted); font-size: 14px; margin: -2px 0 8px; }
.mce-hint { margin: 6px 0 0; font-size: 13px; }
.mce-desc p, .mce-html p { margin: 0 0 0.8em; }
.mce-sublabel { display: block; font-size: 13px; color: var(--mce-muted); margin-bottom: 4px; }

.mce-input {
	display: block; width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px;
	color: var(--mce-input-text); background: var(--mce-input-bg); border: 1px solid #b8bdc9; border-radius: var(--mce-radius);
	box-shadow: none; margin: 0;
}
.mce-input:focus { outline: 3px solid rgba(42, 167, 232, 0.55); outline-offset: 1px; border-color: var(--mce-sky); }
.mce-input--date { max-width: 240px; }
.mce-textarea { min-height: 110px; resize: vertical; }
.mce-select { appearance: auto; }

.mce-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.mce-sub--name { grid-template-columns: 1fr 2fr 2fr 2fr; }
.mce-sub--address .mce-sub__item--1, .mce-sub--address .mce-sub__item--2 { grid-column: 1 / -1; }

.mce-section { padding-top: 8px; }
.mce-section__title { font-family: Archivo, Inter, sans-serif; font-size: 22px; margin: 0 0 4px; color: var(--mce-text); }
.mce-html { background: var(--mce-card); border: 1px solid var(--mce-line); border-radius: var(--mce-radius); padding: 18px 20px; color: #e6e8f5; font-size: 15px; }
.mce-html h1, .mce-html h2, .mce-html h3, .mce-html h4 { color: var(--mce-text); font-family: Archivo, Inter, sans-serif; margin: 0 0 10px; font-size: 20px; }
.mce-html ul, .mce-html ol { margin: 0 0 0.8em 1.2em; padding: 0; }
.mce-html > *:last-child { margin-bottom: 0; }

/* choices */
.mce-choices { display: flex; flex-direction: column; gap: 8px; }
.mce-choices--pills { flex-direction: row; flex-wrap: wrap; }
.mce-choice {
	display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 12px 16px; border-radius: var(--mce-radius);
	border: 1px solid var(--mce-line); background: rgba(255, 255, 255, 0.04); font-size: 15px; margin: 0; color: var(--mce-text);
}
.mce-choices--pills .mce-choice { min-width: 96px; justify-content: center; align-items: center; }
.mce-choice input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--mce-blue); }
.mce-choices--pills .mce-choice input { margin-top: 0; }
.mce-choice:has(input:checked) { border-color: var(--mce-blue-hi); background: rgba(32, 76, 229, 0.28); }
.mce-choice:has(input:focus-visible) { outline: 3px solid rgba(42, 167, 232, 0.55); }
.mce-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 14px 16px; border-radius: var(--mce-radius); border: 1px solid var(--mce-line); background: rgba(255, 255, 255, 0.04); font-weight: 600; }
.mce-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--mce-blue); }
.mce-consent:has(input:checked) { border-color: var(--mce-blue-hi); background: rgba(32, 76, 229, 0.28); }

/* files */
.mce-file { position: relative; }
.mce-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mce-file__drop {
	display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: var(--mce-radius);
	cursor: pointer; color: var(--mce-muted); background: rgba(255, 255, 255, 0.03); margin: 0;
}
.mce-file__drop:hover, .mce-file__input:focus-visible + .mce-file__drop { border-color: var(--mce-sky); color: var(--mce-text); }
.mce-file__drop strong { color: var(--mce-text); }
.mce-file__icon { font-size: 22px; line-height: 1; }
.mce-file__row {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--mce-radius);
	border: 1px solid var(--mce-line); background: rgba(255, 255, 255, 0.05);
}
.mce-file__row.is-done { border-color: rgba(52, 195, 143, 0.6); }
.mce-file__tick { color: var(--mce-ok); font-weight: 700; }
.mce-file__name { font-weight: 600; word-break: break-all; flex: 1 1 160px; }
.mce-file__meta { color: var(--mce-muted); font-size: 13px; }
.mce-file__bar { flex: 1 1 100%; height: 5px; background: var(--mce-line); border-radius: 99px; overflow: hidden; }
.mce-file__bar span { display: block; height: 100%; background: var(--mce-sky); transition: width 0.15s linear; }
.mce-file__error { color: var(--mce-err); font-size: 14px; margin-top: 6px; }

/* errors */
.mce-field.is-invalid .mce-input { border-color: var(--mce-err); box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.35); }
.mce-field.is-invalid .mce-choice, .mce-field.is-invalid .mce-consent, .mce-field.is-invalid .mce-file__drop { border-color: var(--mce-err); }
.mce-error { color: var(--mce-err); font-size: 14px; font-weight: 600; margin-top: 6px; }

/* buttons */
.mce-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--mce-line); flex-wrap: wrap; }
.mce-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 8px;
	font: 600 16px/1.2 Inter, sans-serif; cursor: pointer; border: 1px solid transparent; text-decoration: none; margin: 0;
}
.mce-btn:disabled { opacity: 0.6; cursor: progress; }
.mce-btn--primary { background: var(--mce-blue); color: #fff; }
.mce-btn--primary:hover:not(:disabled) { background: var(--mce-blue-hi); }
.mce-btn--ghost { background: transparent; color: var(--mce-text); border-color: var(--mce-line); }
.mce-btn--ghost:hover { border-color: var(--mce-text); }
.mce-btn--link { background: none; color: var(--mce-sky); text-decoration: underline; padding: 12px 6px; }
.mce-btn--small { min-height: 36px; padding: 6px 14px; font-size: 14px; }

.mce-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mce-test { display: block; margin: 0 0 18px; padding: 10px 14px; border-radius: var(--mce-radius); background: rgba(255, 209, 102, 0.14); color: #ffe7a8; font-size: 14px; }

/* modal */
.mce-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 10, 30, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Inter, system-ui, sans-serif; }
.mce-modal__card { background: #fff; color: #112337; border-radius: 14px; padding: 26px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.mce-modal__card h3 { margin: 0 0 8px; font-family: Archivo, Inter, sans-serif; font-size: 22px; color: #112337; }
.mce-modal__card p { margin: 0 0 14px; font-size: 15px; }
.mce-modal__card .mce-label { color: #112337; margin-top: 8px; }
.mce-modal__card .mce-hint { color: #5b6275; }
.mce-modal__card .mce-btn--ghost { color: #112337; border-color: #c8ccd6; }
.mce-modal__row { display: flex; gap: 8px; margin-bottom: 10px; }
.mce-modal__row .mce-input { flex: 1; min-width: 0; font-size: 14px; }
.mce-modal__row .mce-btn { flex: none; padding: 10px 16px; font-size: 15px; }
.mce-modal__msg { min-height: 1.4em; font-size: 14px; color: #204ce5; }
.mce-modal__foot { text-align: right; }

/* done */
.mce-done { text-align: center; padding: 40px 0; }
.mce-done__tick { width: 72px; height: 72px; line-height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--mce-ok); color: #fff; font-size: 38px; font-weight: 700; }
.mce-done__msg { color: var(--mce-muted); max-width: 560px; margin: 14px auto 0; }

@media (max-width: 700px) {
	.mce-field--half { flex-basis: 100%; }
	.mce-sub, .mce-sub--name { grid-template-columns: 1fr 1fr; }
	.mce-sub--name .mce-sub__item--2 { grid-column: 1 / -1; max-width: 50%; }
	.mce-input--date { max-width: none; }
	.mce-actions { position: sticky; bottom: 0; background: var(--mce-bg); margin-left: -16px; margin-right: -16px; padding: 12px 16px; z-index: 5; }
	.mce-actions .mce-btn--primary { flex: 1 1 auto; }
	.mce-actions .mce-btn--link { order: 3; flex-basis: 100%; padding: 4px; min-height: 0; font-size: 14px; }
	.mce-steps button { width: 28px; height: 28px; font-size: 12px; }
	.mce-modal__row { flex-direction: column; }
}

/* Keep the theme's global button styles (gradients, shadows, uppercase) off our buttons. */
.mce-app button.mce-btn, .mce-app label.mce-btn, .mce-modal button.mce-btn, .mce-app .mce-steps button {
	background-image: none; box-shadow: none; text-transform: none; letter-spacing: normal; text-shadow: none; transform: none;
}
.mce-app button.mce-btn--primary, .mce-modal button.mce-btn--primary { background-color: var(--mce-blue, #204ce5); color: #fff; border-color: transparent; }
.mce-app button.mce-btn--primary:hover:not(:disabled), .mce-modal button.mce-btn--primary:hover:not(:disabled) { background-color: #3a63f0; color: #fff; }
.mce-app button.mce-btn--ghost, .mce-app label.mce-btn--ghost { background-color: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.mce-app button.mce-btn--ghost:hover, .mce-app label.mce-btn--ghost:hover { background-color: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; }
.mce-modal button.mce-btn--ghost { background-color: #fff; color: #112337; border: 1px solid #c8ccd6; }
.mce-modal button.mce-btn--ghost:hover { background-color: #f1f3f8; color: #112337; }
.mce-app button.mce-btn--link { background-color: transparent; color: #2aa7e8; border: 0; text-decoration: underline; }
.mce-app button.mce-btn--link:hover { background-color: transparent; color: #fff; }
.mce-app .mce-steps button { background-color: transparent; }
.mce-app .mce-steps .is-current button { background-color: #204ce5; }
