/*
 * NextMoveGen quote form.
 *
 * Design: a deep-navy panel that sits on NextMoveGen's dark hero. Across the top runs a
 * departures board ("Your next move"): From / To / Size / Date tiles that flip and fill in
 * as the visitor types, and switch to "Request sent" at the end. Move sizes are picked
 * from load meters. The main button is NextMoveGen yellow.
 *
 * Colors from nextmovegen.com: navy #011e42, blue #026aea, yellow #ffc300, light blue
 * #b1d4fe. Type: Manrope (SIL OFL 1.1, bundled, so no request goes to a font service).
 *
 * Every color can be overridden with the --malp-* variables below. The button color comes
 * from Settings → Iframe → Button color.
 */

@font-face {
	font-family: "MALP Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "MALP Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.malp {
	--malp-navy: #011e42;            /* panel */
	--malp-navy-deep: #00142e;       /* board */
	--malp-field: #0a2b55;           /* inputs */
	--malp-field-hover: #0e3463;
	--malp-line: #1d4271;
	--malp-line-strong: #2f5a8f;
	--malp-text: #fefeff;
	--malp-soft: #b1d4fe;            /* labels, hints */
	--malp-mute: #8fa9c9;
	--malp-blue: #026aea;            /* selection */
	--malp-blue-soft: rgba(2, 106, 234, 0.18);
	--malp-yellow: #ffc300;          /* board characters, status */
	--malp-error: #ff9a8a;
	--malp-error-bg: rgba(255, 105, 85, 0.12);

	/* Button (set from the plugin settings) */
	--malp-accent: #ffc300;
	--malp-accent-hover: #e6b000;
	--malp-accent-text: #011e42;
	--malp-accent-soft: rgba(255, 195, 0, 0.12);
	--malp-accent-ring: rgba(255, 195, 0, 0.35);

	--malp-font: "MALP Manrope", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--malp-radius: 4px;
	--malp-pad: 32px;

	box-sizing: border-box;
	max-width: 680px;
	margin: 0 auto;
	font-family: var(--malp-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--malp-text);
	text-align: left;
	color-scheme: dark;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.malp *,
.malp *::before,
.malp *::after {
	box-sizing: inherit;
}

.malp [hidden] {
	display: none !important;
}

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

/* ---------- Panel ---------- */

.malp-card {
	position: relative;
	padding: 30px var(--malp-pad) 28px;
	background: var(--malp-navy);
	border: 1px solid #0f325e;
	border-top: 3px solid var(--malp-yellow);
	border-radius: var(--malp-radius);
	box-shadow: 0 24px 60px -24px rgba(0, 10, 30, 0.6);
}

.malp .malp-title {
	margin: 0;
	padding: 0;
	font-family: var(--malp-font);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
	color: var(--malp-text);
	text-transform: none;
}

.malp .malp-sub {
	max-width: 52ch;
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--malp-soft);
}

/* ---------- Departures board ---------- */

.malp-board {
	margin: 24px calc(-1 * var(--malp-pad)) 0;
	padding: 14px var(--malp-pad) 0;
	background: var(--malp-navy-deep);
	border-top: 1px solid #0b2a52;
	border-bottom: 1px solid #0b2a52;
}

.malp-board-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--malp-mute);
}

.malp-board-status {
	color: var(--malp-yellow);
	font-weight: 700;
}

.malp-board-status:not(:empty)::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	vertical-align: 1px;
	background: var(--malp-yellow);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.2);
}

.malp-board-row {
	display: grid;
	grid-template-columns: 1.6fr 1.6fr 0.9fr 0.9fr;
	gap: 6px;
}

.malp-cell {
	display: block;
	min-width: 0;
	padding: 8px 10px 9px;
	background: #001a3a;
	border: 1px solid #0d2c55;
	border-radius: 3px;
	/* The split line across the middle of a flap. */
	background-image: linear-gradient(to bottom, transparent calc(50% + 6px), rgba(0, 0, 0, 0.35) calc(50% + 6px), rgba(0, 0, 0, 0.35) calc(50% + 7px), transparent calc(50% + 7px));
}

.malp-cell-k {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--malp-mute);
}

.malp-cell-v {
	display: block;
	min-height: 26px;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: 0.02em;
	color: var(--malp-yellow);
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	transform-origin: 50% 60%;
}

.malp-cell-v:empty::before {
	content: "– – –";
	color: #29476f;
	letter-spacing: 0.08em;
}

.malp-cell-v.malp-flip {
	animation: malp-flip 0.42s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@keyframes malp-flip {
	0% {
		transform: perspective(200px) rotateX(-88deg);
		opacity: 0.2;
	}
	60% {
		transform: perspective(200px) rotateX(12deg);
		opacity: 1;
	}
	100% {
		transform: none;
	}
}

/* Three-part progress under the board. */
.malp-steps-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 12px;
	padding-bottom: 14px;
}

.malp-steps-bar i {
	display: block;
	height: 3px;
	background: #12355f;
	border-radius: 2px;
	transition: background-color 0.3s ease;
}

.malp[data-step="1"] .malp-steps-bar i:nth-child(-n+1),
.malp[data-step="2"] .malp-steps-bar i:nth-child(-n+2),
.malp[data-step="3"] .malp-steps-bar i:nth-child(-n+3),
.malp[data-step="done"] .malp-steps-bar i,
.malp-is-done .malp-steps-bar i {
	background: var(--malp-yellow);
}

/* ---------- Steps ---------- */

.malp-form {
	margin: 0;
}

.malp-step,
.malp-success {
	margin-top: 26px;
}

.malp-js .malp-step:not([hidden]) {
	animation: malp-step-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes malp-step-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.malp-step-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.malp .malp-step-title {
	margin: 0;
	padding: 0;
	font-family: var(--malp-font);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--malp-text);
	text-transform: none;
}

.malp .malp-step-title:focus {
	outline: none;
}

.malp .malp-count {
	flex: none;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--malp-mute);
	font-variant-numeric: tabular-nums;
}

/* ---------- Fields ---------- */

.malp-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 20px;
}

@media (min-width: 560px) {
	.malp-row--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.malp-panel .malp-row {
	row-gap: 14px;
}

.malp-field {
	position: relative;
	min-width: 0;
	margin: 0 0 16px;
}

.malp .malp-field > label {
	display: block;
	margin: 0 0 7px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--malp-soft);
}

.malp .malp-opt {
	font-weight: 400;
	color: var(--malp-mute);
}

.malp-loc {
	min-width: 0;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
}

.malp .malp-loc-legend {
	float: left;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 14px;
	padding: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--malp-text);
	border-bottom: 1px solid var(--malp-line);
}

.malp .malp-loc > :not(legend) {
	clear: both;
}

/* Origin: hollow ring. Destination: filled yellow. */
.malp .malp-loc-legend::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.malp .malp-loc-legend--from::before {
	border: 2px solid var(--malp-soft);
}

.malp .malp-loc-legend--to::before {
	background: var(--malp-yellow);
}

.malp-pair {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 0 10px;
}

.malp input[type="text"],
.malp input[type="email"],
.malp input[type="tel"],
.malp input[type="date"],
.malp select {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: var(--malp-text);
	background-color: var(--malp-field);
	border: 1px solid var(--malp-line);
	border-radius: var(--malp-radius);
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.malp 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 d='M1 1.5l5 5 5-5' fill='none' stroke='%23b1d4fe' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
}

.malp select option {
	color: var(--malp-text);
	background: var(--malp-navy);
}

.malp input[type="date"] {
	padding-right: 12px;
}

.malp input::-webkit-calendar-picker-indicator {
	opacity: 0.8;
	cursor: pointer;
}

.malp input::placeholder {
	color: #6f8db2;
	opacity: 1;
}

.malp input:hover,
.malp select:hover {
	background-color: var(--malp-field-hover);
	border-color: var(--malp-line-strong);
}

.malp input:focus,
.malp select:focus {
	background-color: var(--malp-field-hover);
	border-color: var(--malp-yellow);
	box-shadow: 0 0 0 3px var(--malp-accent-ring);
}

.malp input[aria-invalid="true"],
.malp select[aria-invalid="true"] {
	background-color: var(--malp-error-bg);
	border-color: var(--malp-error);
}

.malp .malp-hint {
	margin: 7px 0 0;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--malp-mute);
}

.malp .malp-error {
	margin: 7px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--malp-error);
}

.malp .malp-error:empty {
	display: none;
}

.malp .malp-loc > .malp-error {
	margin: -6px 0 10px;
}

.malp-field--date {
	max-width: 300px;
	margin-top: 22px;
}

/* ---------- Move type: Within the USA / International ---------- */

.malp-modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin: 0 0 24px;
	padding: 4px;
	background: var(--malp-navy-deep);
	border: 1px solid var(--malp-line);
	border-radius: 6px;
}

.malp-mode {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.malp-mode input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.malp-mode-body {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 11px 14px;
	color: var(--malp-mute);
	border-radius: 4px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.malp-mode:hover .malp-mode-body {
	color: var(--malp-soft);
}

.malp-mode input:checked + .malp-mode-body {
	color: var(--malp-yellow);
	background: var(--malp-field-hover);
	box-shadow: inset 0 0 0 1px var(--malp-line-strong);
}

.malp-mode input:focus-visible + .malp-mode-body {
	box-shadow: 0 0 0 3px var(--malp-accent-ring);
}

.malp-mode-icon {
	flex: none;
	display: block;
	width: 28px;
	height: 28px;
}

.malp-mode-text {
	display: block;
	min-width: 0;
}

.malp-mode-name {
	display: block;
	font-size: 15.5px;
	font-weight: 750;
	line-height: 1.25;
	color: var(--malp-text);
}

.malp-mode-hint {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--malp-mute);
}

.malp-mode input:checked + .malp-mode-body .malp-mode-hint {
	color: var(--malp-soft);
}

/* ---------- Move-size tiles with load meters ---------- */

.malp-sizes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.malp-tile {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.malp-tile:last-child {
	grid-column: span 2;
}

.malp-tile input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.malp-tile-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: 14px 14px 12px;
	background: var(--malp-field);
	border: 1px solid var(--malp-line);
	border-radius: var(--malp-radius);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.malp-tile:hover .malp-tile-body {
	background: var(--malp-field-hover);
	border-color: var(--malp-line-strong);
}

.malp-tile input:checked + .malp-tile-body {
	background: var(--malp-field-hover);
	border-color: var(--malp-yellow);
	box-shadow: inset 0 0 0 1px var(--malp-yellow);
}

.malp-tile input:focus-visible + .malp-tile-body {
	box-shadow: 0 0 0 3px var(--malp-accent-ring);
}

.malp-sizes[aria-invalid="true"] .malp-tile-body {
	border-color: rgba(255, 154, 138, 0.55);
}

.malp-meter {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	width: 100%;
	max-width: 76px;
	height: 30px;
	margin: 0 0 12px;
}

.malp-meter i {
	flex: 1;
	height: var(--h);
	background: #1f4677;
	border-radius: 1px;
	transition: background-color 0.2s ease;
}

.malp-meter i.on {
	background: var(--malp-soft);
}

.malp-tile input:checked + .malp-tile-body .malp-meter i.on {
	background: var(--malp-yellow);
}

.malp-tile-name {
	display: block;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	color: var(--malp-text);
}

.malp-tile-hint {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--malp-mute);
	font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.malp-step-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 28px;
}

.malp-step-foot .malp-btn--back {
	margin-right: auto;
}

.malp .malp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-family: inherit;
	text-transform: none;
	text-decoration: none;
	background-image: none;
	cursor: pointer;
}

.malp .malp-btn--sign {
	gap: 12px;
	min-width: 170px;
	height: 54px;
	padding: 0 26px;
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	color: var(--malp-accent-text);
	background-color: var(--malp-accent);
	border: 0;
	border-radius: var(--malp-radius);
	box-shadow: 0 10px 24px -12px var(--malp-accent-ring);
	transition: background-color 0.15s ease, transform 0.08s ease;
}

/* An arrow that nudges forward on hover. */
.malp .malp-btn--sign::after {
	content: "";
	width: 16px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6h13M9.5 1.5L14 6l-4.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6h13M9.5 1.5L14 6l-4.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s ease;
}

.malp .malp-btn--sign:hover {
	color: var(--malp-accent-text);
	background-color: var(--malp-accent-hover);
}

.malp .malp-btn--sign:hover::after {
	transform: translateX(3px);
}

.malp .malp-btn--sign:active {
	transform: translateY(1px);
}

.malp .malp-btn--sign:focus-visible {
	outline: 3px solid var(--malp-accent-ring);
	outline-offset: 3px;
}

.malp .malp-btn--sign[disabled] {
	cursor: progress;
	opacity: 0.8;
}

.malp .malp-btn--sign[disabled]::after {
	display: none;
}

.malp .malp-submit {
	min-width: 250px;
}

.malp .malp-btn--back {
	gap: 8px;
	height: 44px;
	padding: 0 12px 0 8px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1;
	color: var(--malp-soft);
	background: none;
	border: 0;
	border-radius: var(--malp-radius);
	box-shadow: none;
}

.malp .malp-btn--back::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -1px;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg);
}

.malp .malp-btn--back:hover {
	color: var(--malp-text);
	background: var(--malp-field);
}

.malp .malp-btn--back:focus-visible {
	outline: 2px solid var(--malp-yellow);
	outline-offset: 2px;
}

/* ---------- Notices, consent, success ---------- */

.malp .malp-notice {
	margin: 10px 0 0;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--malp-error);
	background: var(--malp-error-bg);
	border: 1px solid rgba(255, 154, 138, 0.4);
	border-radius: var(--malp-radius);
}

.malp .malp-notice ul {
	margin: 6px 0 0 18px;
	padding: 0;
	font-weight: 500;
}

.malp .malp-consent {
	margin: 18px 0 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--malp-mute);
}

.malp .malp-consent a {
	color: var(--malp-soft);
	text-decoration: underline;
}

.malp-success:focus {
	outline: none;
}

.malp .malp-success-msg {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--malp-soft);
}

.malp .malp-summary {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0;
	margin: 20px 0 0;
	padding: 0;
	font-size: 15px;
}

.malp .malp-summary dt,
.malp .malp-summary dd {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--malp-line);
}

.malp .malp-summary dt {
	padding-right: 24px;
	color: var(--malp-mute);
}

.malp .malp-summary dd {
	font-weight: 700;
	color: var(--malp-text);
}

/* ---------- Spam trap ---------- */

.malp .malp-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Without JavaScript: every step shows, the step buttons hide ---------- */

.malp:not(.malp-js) [data-malp-next],
.malp:not(.malp-js) [data-malp-back],
.malp:not(.malp-js) .malp-count,
.malp:not(.malp-js) .malp-steps-bar {
	display: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
	.malp {
		--malp-pad: 18px;
	}

	.malp-card {
		padding: 24px var(--malp-pad) 22px;
	}

	.malp .malp-title {
		font-size: 27px;
	}

	.malp .malp-step-title {
		font-size: 19px;
	}

	.malp-board-row {
		grid-template-columns: 1fr 1fr;
	}

	.malp-cell-v {
		font-size: 14px;
		letter-spacing: 0;
	}

	.malp-step-head {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 2px;
		margin-bottom: 16px;
	}

	.malp-sizes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.malp-modes {
		margin-bottom: 20px;
	}

	.malp-mode-body {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 10px 12px;
	}

	.malp-mode-icon {
		width: 24px;
		height: 24px;
	}

	.malp-field--date {
		max-width: none;
	}

	.malp-step-foot {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 6px;
	}

	.malp-step-foot .malp-btn--back {
		align-self: flex-start;
		margin-right: 0;
	}

	.malp .malp-btn--sign {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.malp-cell-v.malp-flip,
	.malp-js .malp-step:not([hidden]) {
		animation: none;
	}

	.malp-steps-bar i,
	.malp-meter i,
	.malp .malp-btn--sign,
	.malp .malp-btn--sign::after {
		transition: none;
	}
}
