/* Seemleius multi-step quote form. Uses theme design tokens (loaded globally). */

.sm-qf {
	padding-block: var(--sm-space-16, 4rem);
	background: var(--sm-lightgrey, #f4f5f7);
	min-height: 70vh;
}
.sm-qf__shell {
	width: 100%;
	max-width: 940px;
	margin-inline: auto;
	padding-inline: var(--sm-page-pad, 1rem);
}

/* Progress */
.sm-qf__progress {
	display: flex;
	list-style: none;
	margin: 0 0 var(--sm-space-6);
	padding: 0;
}
.sm-qf__progress li {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-family: var(--sm-font-display);
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--sm-muted);
}
.sm-qf__progress li::before {
	content: "";
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--sm-border);
	z-index: 0;
}
.sm-qf__progress li:first-child::before {
	display: none;
}
.sm-qf__progress li.is-active::before,
.sm-qf__progress li.is-done::before {
	background: var(--sm-green);
}
.sm-qf__dot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--sm-white);
	border: 2px solid var(--sm-border);
	font-weight: 700;
	color: var(--sm-muted);
	transition: background var(--sm-dur-base) var(--sm-ease), border-color var(--sm-dur-base) var(--sm-ease), color var(--sm-dur-base) var(--sm-ease);
}
.sm-qf__progress li.is-active {
	color: var(--sm-navy);
}
.sm-qf__progress li.is-active .sm-qf__dot {
	background: var(--sm-green);
	border-color: var(--sm-green);
	color: #fff;
}
.sm-qf__progress li.is-done .sm-qf__dot {
	background: var(--sm-navy);
	border-color: var(--sm-navy);
	color: #fff;
}

/* Card */
.sm-qf__form,
.sm-qf__success {
	background: var(--sm-white);
	border-radius: var(--sm-radius-lg);
	box-shadow: var(--sm-shadow-lg);
	padding: var(--sm-space-8);
}
.sm-qf__step {
	border: 0;
	margin: 0;
	padding: 0;
	display: none;
	animation: sm-qf-in var(--sm-dur-slow) var(--sm-ease);
}
.sm-qf__step.is-active {
	display: block;
}
@keyframes sm-qf-in {
	from { opacity: 0; transform: translateX(14px); }
	to   { opacity: 1; transform: translateX(0); }
}
.sm-qf__legend {
	padding: 0;
	margin-bottom: var(--sm-space-6);
}
.sm-qf__kicker {
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sm-navy);
}
.sm-qf__title {
	font-size: var(--sm-h4);
	margin: 6px 0 4px;
}
.sm-qf__lead {
	margin: 0;
	color: var(--sm-muted);
	font-size: 0.9375rem;
	line-height: var(--sm-lh-relaxed);
}
.sm-qf__subtitle {
	font-size: var(--sm-h6);
	margin: var(--sm-space-6) 0 var(--sm-space-3);
}

/* Choice cards */
.sm-qf__choices {
	display: grid;
	gap: var(--sm-space-3);
}
.sm-qf__choices--two {
	grid-template-columns: 1fr 1fr;
}
.sm-qf__choice {
	cursor: pointer;
}
.sm-qf__choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.sm-qf__choice-body {
	display: flex;
	align-items: center;
	gap: var(--sm-space-3);
	padding: var(--sm-space-4);
	border: 2px solid var(--sm-border);
	border-radius: var(--sm-radius-md);
	transition: border-color var(--sm-dur-base) var(--sm-ease), background var(--sm-dur-base) var(--sm-ease);
}
.sm-qf__choice:hover .sm-qf__choice-body {
	border-color: var(--sm-green);
}
.sm-qf__choice input:checked + .sm-qf__choice-body {
	border-color: var(--sm-green);
	background: var(--sm-green-tint);
}
.sm-qf__choice input:focus-visible + .sm-qf__choice-body {
	outline: 2px solid var(--sm-green);
	outline-offset: 2px;
}
.sm-qf__choice-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--sm-radius-sm);
	background: var(--sm-navy-tint);
	color: var(--sm-navy);
}
.sm-qf__choice input:checked + .sm-qf__choice-body .sm-qf__choice-icon {
	background: var(--sm-green);
	color: #fff;
}
.sm-qf__choice-icon svg {
	width: 22px;
	height: 22px;
}
.sm-qf__choice-text {
	display: flex;
	flex-direction: column;
}
.sm-qf__choice-text strong {
	font-family: var(--sm-font-display);
	color: var(--sm-navy);
	font-size: 1rem;
}
.sm-qf__choice-text em {
	font-style: normal;
	color: var(--sm-muted);
	font-size: 0.875rem;
}

/* Fields */
.sm-qf__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sm-space-4);
}
.sm-qf__field {
	display: flex;
	flex-direction: column;
}
.sm-qf__field--full {
	grid-column: 1 / -1;
}
.sm-qf__opt {
	color: var(--sm-muted);
	font-weight: 400;
}
.sm-qf__grouplabel {
	font-family: var(--sm-font-display);
	font-weight: 600;
	color: var(--sm-navy);
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}
.sm-qf__checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sm-space-2);
}
.sm-qf__check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.8rem;
	border: 1.5px solid var(--sm-border);
	border-radius: var(--sm-radius-sm);
	cursor: pointer;
	font-size: 0.9375rem;
	transition: border-color var(--sm-dur-fast) var(--sm-ease);
}
.sm-qf__check:hover {
	border-color: var(--sm-green);
}
.sm-qf__check input {
	width: 18px;
	height: 18px;
	accent-color: var(--sm-green);
	flex-shrink: 0;
}

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

/* Nav */
.sm-qf__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sm-space-3);
	margin-top: var(--sm-space-8);
}
.sm-btn--ghost {
	background: transparent;
	color: var(--sm-muted);
	border-color: transparent;
}
.sm-btn--ghost:hover {
	color: var(--sm-navy);
	background: var(--sm-lightgrey);
}
.sm-qf__error {
	margin: var(--sm-space-4) 0 0;
	padding: 0.75rem 1rem;
	background: #fdeaea;
	color: #a33;
	border-radius: var(--sm-radius-sm);
	font-size: 0.875rem;
}

/* Success */
.sm-qf__success {
	text-align: center;
}
.sm-qf__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: var(--sm-green);
	color: #fff;
	margin-bottom: var(--sm-space-4);
}
.sm-qf__success-icon svg {
	width: 32px;
	height: 32px;
}
.sm-qf__ref {
	color: var(--sm-green-dark);
	font-family: var(--sm-font-display);
}
.sm-qf__next {
	text-align: left;
	background: var(--sm-lightgrey);
	border-radius: var(--sm-radius-md);
	padding: var(--sm-space-6);
	margin: var(--sm-space-6) 0;
}
.sm-qf__next h3 {
	margin: 0 0 var(--sm-space-3);
	font-size: var(--sm-h6);
}
.sm-qf__next ol {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--sm-muted);
}
.sm-qf__next li {
	margin-bottom: 0.5rem;
	line-height: var(--sm-lh-relaxed);
}
.sm-qf__success-actions {
	display: flex;
	gap: var(--sm-space-3);
	justify-content: center;
	flex-wrap: wrap;
}

/* Aside */
.sm-qf__aside {
	margin-top: var(--sm-space-5);
	text-align: center;
}
.sm-qf__aside-line {
	margin: 0;
	font-size: 0.875rem;
	color: var(--sm-muted);
}
.sm-qf__aside-line a {
	font-weight: 600;
}

.sm-qf__submit.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Responsive — web-app feel on mobile */
@media (max-width: 600px) {
	.sm-qf {
		padding-block: var(--sm-space-8);
	}
	.sm-qf__form,
	.sm-qf__success {
		padding: var(--sm-space-6);
	}
	.sm-qf__steplabel {
		display: none;
	}
	.sm-qf__grid,
	.sm-qf__choices--two,
	.sm-qf__checks {
		grid-template-columns: 1fr;
	}
	.sm-qf__nav .sm-btn {
		flex: 1;
	}
	.sm-qf__success-actions .sm-btn {
		flex: 1 1 auto;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sm-qf__step {
		animation: none;
	}
}

/* ===================== Compact quick form (location pages) ===================== */
.sm-quick {
	background: var(--sm-white);
	border-radius: var(--sm-radius-lg);
	box-shadow: var(--sm-shadow-lg);
	border: 1px solid var(--sm-border);
	overflow: hidden;
}
.sm-quick__form {
	padding: var(--sm-space-6);
}
.sm-quick__head {
	margin-bottom: var(--sm-space-5);
}
.sm-quick__title {
	font-size: var(--sm-h5);
	margin: 0;
}
.sm-quick__dest {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: var(--sm-space-2);
	padding: 0.3rem 0.7rem;
	border-radius: var(--sm-radius-pill);
	background: var(--sm-green-tint);
	color: var(--sm-green-dark);
	font-size: 0.8125rem;
	font-weight: 600;
}
.sm-quick__dest svg {
	color: var(--sm-green);
}
.sm-quick__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sm-space-3);
	margin-bottom: var(--sm-space-4);
}
.sm-quick__grid .sm-field {
	display: flex;
	flex-direction: column;
}
.sm-quick__error {
	margin: 0 0 var(--sm-space-3);
	padding: 0.7rem 0.9rem;
	background: #fdeaea;
	color: #a33;
	border-radius: var(--sm-radius-sm);
	font-size: 0.8125rem;
}
.sm-quick__submit {
	width: 100%;
}
.sm-quick__submit.is-loading {
	opacity: 0.7;
	pointer-events: none;
}
.sm-quick__note {
	margin: var(--sm-space-3) 0 0;
	font-size: 0.75rem;
	color: var(--sm-muted);
	text-align: center;
	line-height: var(--sm-lh-base);
}
.sm-quick__note a {
	font-weight: 600;
	white-space: nowrap;
}
.sm-quick__success {
	padding: var(--sm-space-8) var(--sm-space-6);
	text-align: center;
}
.sm-quick__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: var(--sm-green);
	color: #fff;
	margin-bottom: var(--sm-space-3);
}
.sm-quick__success-icon svg {
	width: 26px;
	height: 26px;
}
.sm-quick__success h3 {
	font-size: var(--sm-h5);
	margin: 0 0 var(--sm-space-2);
}
.sm-quick__success p {
	margin: 0;
	color: var(--sm-muted);
	font-size: 0.9375rem;
	line-height: var(--sm-lh-relaxed);
}
.sm-quick__ref {
	color: var(--sm-green-dark);
	font-family: var(--sm-font-display);
}
@media (max-width: 480px) {
	.sm-quick__grid {
		grid-template-columns: 1fr;
	}
}

/* ===================== Field tooltips ("?" legends) ===================== */
.sm-field__label-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.4rem;
}
.sm-field__label-row label {
	margin-bottom: 0;
}
.sm-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	border: none;
	border-radius: 999px;
	background: var(--sm-navy-tint);
	color: var(--sm-navy);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background var(--sm-dur-fast) var(--sm-ease), color var(--sm-dur-fast) var(--sm-ease);
}
.sm-tip:hover,
.sm-tip:focus-visible {
	background: var(--sm-green);
	color: #fff;
	outline: none;
}
.sm-tip__bubble {
	position: absolute;
	bottom: calc(100% + 9px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	width: 250px;
	max-width: min(72vw, calc(100vw - 32px));
	background: var(--sm-navy);
	color: #fff;
	font-family: var(--sm-font-body);
	font-weight: 400;
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: left;
	padding: 0.7rem 0.85rem;
	border-radius: var(--sm-radius-sm);
	box-shadow: var(--sm-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--sm-dur-fast) var(--sm-ease), transform var(--sm-dur-fast) var(--sm-ease), visibility var(--sm-dur-fast);
	z-index: 60;
	pointer-events: none;
}
/* On very narrow viewports the centered tooltip can overflow when its
   trigger sits near the right edge. Right-anchor it so it always stays
   inside the viewport. */
@media (max-width: 480px) {
	.sm-tip__bubble {
		left: auto;
		right: 0;
		transform: translateY(4px);
		width: auto;
		max-width: calc(100vw - 32px);
	}
	.sm-tip__bubble::after {
		left: auto;
		right: 10px;
		transform: none;
	}
}
.sm-tip__bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--sm-navy);
}
@media (hover: hover) {
	.sm-tip:hover .sm-tip__bubble,
	.sm-tip:focus-visible .sm-tip__bubble {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}
}
@media (hover: none) {
	.sm-tip__bubble {
		display: none;
	}
}
.sm-tip-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(26, 58, 107, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--sm-dur-base) var(--sm-ease), visibility var(--sm-dur-base);
}
.sm-tip-modal.is-open {
	opacity: 1;
	visibility: visible;
}
.sm-tip-modal__panel {
	background: #fff;
	border-radius: var(--sm-radius-lg) var(--sm-radius-lg) 0 0;
	padding: var(--sm-space-6);
	width: 100%;
	max-width: 520px;
	transform: translateY(100%);
	transition: transform var(--sm-dur-base) var(--sm-ease-out);
}
.sm-tip-modal.is-open .sm-tip-modal__panel {
	transform: translateY(0);
}
.sm-tip-modal__title {
	font-size: var(--sm-h6);
	margin: 0 0 var(--sm-space-2);
}
.sm-tip-modal__body {
	margin: 0 0 var(--sm-space-5);
	color: var(--sm-muted);
	line-height: var(--sm-lh-relaxed);
	font-size: 0.9375rem;
}
.sm-tip-modal__close {
	width: 100%;
}
@media (min-width: 600px) {
	.sm-tip-modal {
		align-items: center;
	}
	.sm-tip-modal__panel {
		border-radius: var(--sm-radius-lg);
	}
}

/* ===================== Freight choice + destination services + survey ===================== */
.sm-qf__choices--freight {
	grid-template-columns: 1fr 1fr;
}
.sm-qf__choice-tag {
	display: block;
	font-size: 0.8125rem;
	color: var(--sm-muted);
	font-style: normal;
	margin-top: 0.15rem;
}
.sm-qf__svc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sm-space-2);
}
.sm-qf__conditional {
	margin-top: var(--sm-space-5);
	padding-top: var(--sm-space-5);
	border-top: 1px dashed var(--sm-border);
}
.sm-qf__conditional[hidden] {
	display: none;
}
/* Survey slot picker */
.sm-survey-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sm-space-3);
	margin-bottom: var(--sm-space-5);
}
.sm-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: var(--sm-space-2);
}
.sm-slot {
	position: relative;
}
.sm-slot input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.sm-slot__btn {
	display: block;
	text-align: center;
	padding: 0.6rem 0.4rem;
	border: 1.5px solid var(--sm-border);
	border-radius: var(--sm-radius-sm);
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: var(--sm-font-display);
	color: var(--sm-navy);
	cursor: pointer;
	transition: border-color var(--sm-dur-fast) var(--sm-ease), background var(--sm-dur-fast) var(--sm-ease);
}
.sm-slot input:checked + .sm-slot__btn {
	border-color: var(--sm-green);
	background: var(--sm-green-tint);
	color: var(--sm-green-dark);
}
.sm-slot input:disabled + .sm-slot__btn {
	background: var(--sm-lightgrey);
	color: #b9bcc4;
	cursor: not-allowed;
	border-color: transparent;
	text-decoration: line-through;
}
.sm-slot__day {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--sm-muted);
}
.sm-slot input:disabled + .sm-slot__btn .sm-slot__day {
	color: #c4c6cd;
}

/* ===================== Consent + WhatsApp opt-in ===================== */
.sm-qf__consent,
.sm-quick__consent {
	margin-top: var(--sm-space-5);
}
.sm-qf__check--consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--sm-border);
	border-radius: var(--sm-radius-sm);
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--sm-text);
	cursor: pointer;
	transition: border-color var(--sm-dur-fast) var(--sm-ease);
}
.sm-qf__check--consent:hover {
	border-color: var(--sm-green);
}
.sm-qf__check--consent + .sm-qf__check--consent {
	margin-top: var(--sm-space-2);
}
.sm-qf__check--consent input {
	margin-top: 0.1rem;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--sm-green);
}
.sm-qf__check--consent a {
	font-weight: 600;
	color: var(--sm-green-dark);
}
.sm-quick__sub {
	margin: var(--sm-space-2) 0 0;
	font-size: 0.8125rem;
	color: var(--sm-muted);
	line-height: 1.5;
}
.sm-quick--service .sm-quick__dest {
	background: var(--sm-navy-tint);
	color: var(--sm-navy);
}
.sm-quick--service .sm-quick__dest svg {
	color: var(--sm-navy);
}

/* ===== 4-step form additions ===== */

/* International phone — dial-code select + number */
.sm-qf__phone {
	display: flex;
	gap: 0.5rem;
}
.sm-qf__dial {
	flex: 0 0 auto;
	max-width: 11rem;
	padding: 0.7rem 0.6rem;
	border: 1px solid var(--sm-border, #D8DBE6);
	border-radius: 10px;
	background: #fff;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--sm-navy, #1A3A6B);
}
.sm-qf__phone input[type="tel"] {
	flex: 1 1 auto;
	min-width: 0;
}

/* Country dropdowns (From / To) — native select with a custom chevron so it
   reads consistently with the rest of the form across browsers. */
.sm-qf__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231A3A6B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.95rem center;
	background-size: 15px;
	padding-right: 2.75rem;
	cursor: pointer;
}
.sm-qf__select:invalid {
	color: var(--sm-muted, #6B6B6B);
}

/* Places autocomplete — first-party suggestion dropdown (places.js). */
.sm-places__field {
	position: relative;
}
.sm-places {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 50;
	margin-top: 4px;
	max-height: 256px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--sm-border, #D8DBE6);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(26, 58, 107, 0.16);
}
.sm-places[hidden] {
	display: none;
}
.sm-places__item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 0.8rem;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--sm-navy, #1A3A6B);
	cursor: pointer;
}
.sm-places__item + .sm-places__item {
	border-top: 1px solid var(--sm-border, #EEF0F4);
}
.sm-places__item:hover,
.sm-places__item.is-active {
	background: var(--sm-navy-tint, #E9EFF7);
}
.sm-places__item svg {
	flex: 0 0 auto;
	color: var(--sm-navy, #1A3A6B);
}
.sm-places__txt strong {
	font-weight: 600;
}
.sm-places__txt span {
	color: var(--sm-muted, #6B6B6B);
}
.sm-places__attr {
	display: flex;
	justify-content: flex-end;
	padding: 0.4rem 0.8rem;
	border-top: 1px solid var(--sm-border, #EEF0F4);
	background: #fff;
}
.sm-places__attr img {
	display: block;
	height: 14px;
	width: auto;
	opacity: 0.8;
}

/* Date-window chips */
.sm-qf__choices--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.sm-qf__chip {
	flex: 1 1 8.5rem;
	position: relative;
	cursor: pointer;
}
.sm-qf__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.sm-qf__chip span {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--sm-border, #D8DBE6);
	border-radius: 10px;
	transition: border-color 150ms ease, background 150ms ease;
}
.sm-qf__chip span strong {
	font-size: 0.9rem;
	color: var(--sm-navy, #1A3A6B);
}
.sm-qf__chip span em {
	font-style: normal;
	font-size: 0.75rem;
	color: var(--sm-muted, #5F6479);
}
.sm-qf__chip input:checked + span {
	border-color: var(--sm-green, #7BC144);
	background: var(--sm-green-tint, #EFF8E6);
}
.sm-qf__chip input:focus-visible + span {
	outline: 2px solid var(--sm-navy, #1A3A6B);
	outline-offset: 2px;
}

/* Exact-date toggle */
.sm-qf__exact-toggle {
	margin-top: 0.6rem;
	background: none;
	border: none;
	padding: 0.2rem 0;
	color: var(--sm-green-dark, #6BAB39);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sm-qf__exact-toggle.is-on {
	color: var(--sm-navy, #1A3A6B);
}
.sm-qf__exact {
	margin-top: 0.6rem;
}

/* Volume calculator wrapper inside the form */
.sm-qf__volume {
	margin-bottom: var(--sm-space-4, 1rem);
}

/* Required-field asterisk on labels — clear visual that a field is mandatory. */
.sm-qf__req {
	color: #d04545;
	font-weight: 700;
	margin-left: 2px;
}

/* Auto-detected scope badge — lights up once both From + To countries are set. */
.sm-qf__scope-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.85rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	font-family: var(--sm-font-display, system-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	background: var(--sm-navy-tint, #E9EFF7);
	color: var(--sm-navy, #1A3A6B);
	border: 1px solid rgba(26, 58, 107, 0.18);
}
.sm-qf__scope-badge[data-scope="international"] {
	background: var(--sm-green-tint, #EFF8E6);
	color: var(--sm-green-dark, #5B9335);
	border-color: rgba(91, 147, 53, 0.25);
}
.sm-qf__scope-badge svg {
	flex: none;
}
.sm-qf__scope-badge[hidden] {
	display: none;
}

/* .sm-field--full is emitted by class-form.php for the fields that should run
   the whole width of the two-column quick-quote grid (the date row, and the
   service select on service pages), but the modifier had no rule behind it —
   so the field stayed in one column and left a dead half-row beside it on the
   home hero form and on every service and location page. 2026-09-05 QA. */
.sm-quick__grid .sm-field--full { grid-column: 1 / -1; }

/* ── B2B freight RFQ (/contact/) ────────────────────────────────────────────
   Replaced the Fluent Forms build 2026-09-08. Fluent Forms shipped its own
   control styling; the native form inherited nothing and rendered as raw
   browser defaults — 21px-tall inputs with inset borders. These rules match
   the quick form exactly (52px controls, 1px #E4E6EB, 12px radius, 16px text)
   so the two forms read as one system. */

.sm-rfq {
	background: #fff;
	border: 1px solid var(--sm-border, #E4E6EB);
	border-radius: var(--sm-radius-lg, 16px);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.sm-rfq__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	margin-bottom: 1rem;
}
.sm-rfq__grid .sm-field,
.sm-rfq .sm-field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.sm-rfq .sm-field--full { grid-column: 1 / -1; }

.sm-rfq label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--sm-ink-700, #1A1A1A);
	line-height: 1.3;
}
.sm-rfq .sm-qf__req { color: #c0392b; margin-left: 2px; }

/* The controls. `font: inherit` first — selects and textareas otherwise fall
   back to the OS font at 13.3px, which is what made the form look broken. */
.sm-rfq input[type="text"],
.sm-rfq input[type="email"],
.sm-rfq input[type="tel"],
.sm-rfq input[type="date"],
.sm-rfq select,
.sm-rfq textarea {
	font: inherit;
	font-size: 1rem;
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--sm-border, #E4E6EB);
	border-radius: var(--sm-radius-md, 12px);
	background: #fff;
	color: var(--sm-ink-900, #0E1029);
	appearance: none;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}
.sm-rfq textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.sm-rfq select {
	/* Re-add the chevron that appearance:none removes. */
	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 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}

.sm-rfq input:focus-visible,
.sm-rfq select:focus-visible,
.sm-rfq textarea:focus-visible {
	outline: none;
	border-color: var(--sm-green-500, #7BC144);
	box-shadow: 0 0 0 3px rgba(123, 193, 68, 0.22);
}
.sm-rfq input::placeholder,
.sm-rfq textarea::placeholder { color: var(--sm-ink-400, #9AA0A6); }

.sm-rfq__error {
	margin: 0 0 1rem;
	padding: 0.7rem 0.9rem;
	background: #fdeaea;
	color: #a33;
	border-radius: var(--sm-radius-sm, 8px);
	font-size: 0.8125rem;
}
.sm-rfq__submit { width: 100%; margin-top: 0.25rem; }
.sm-rfq__submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.sm-rfq__note {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: var(--sm-ink-500, #6B6B6B);
	text-align: center;
}
.sm-rfq__success { text-align: center; padding: 1rem 0; }
.sm-rfq__success h3 { margin: 0 0 0.5rem; }

/* Consent checkboxes reuse the quick form's block, but it needs the spacing
   the grid above does not provide. */
.sm-rfq .sm-qf__check { margin-top: 0.75rem; }

/* Honeypot — off-screen, never focusable. */
.sm-rfq .sm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
	.sm-rfq__grid { grid-template-columns: 1fr; }
}

/* ── Control baseline, scoped to the plugin's own forms ────────────────────
   The quick form and the funnel used to inherit their input styling from the
   theme's consumer/overrides.css, which is only enqueued on consumer
   templates. The moment a form appeared on /about/, /faq/ or /insights/ it
   rendered with raw browser controls — 21px tall, inset borders — while
   looking perfectly fine everywhere it had been tested.

   A plugin's form must not depend on a theme stylesheet it cannot guarantee.
   These rules are scoped to .sm-quick / .sm-qf so they restyle nothing else,
   and every value carries a literal fallback so they hold even if the theme's
   custom properties are absent entirely. */

.sm-quick input[type="text"],
.sm-quick input[type="email"],
.sm-quick input[type="tel"],
.sm-quick input[type="number"],
.sm-quick input[type="date"],
.sm-quick select,
.sm-quick textarea,
.sm-qf input[type="text"],
.sm-qf input[type="email"],
.sm-qf input[type="tel"],
.sm-qf input[type="number"],
.sm-qf input[type="date"],
.sm-qf select,
.sm-qf textarea {
	font: inherit;
	font-size: 1rem;
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--sm-border, #E4E6EB);
	border-radius: var(--sm-radius-md, 12px);
	background: var(--sm-white, #fff);
	color: var(--sm-text, #0E1029);
	appearance: none;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}
.sm-quick textarea,
.sm-qf textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.sm-quick select,
.sm-qf 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 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}
.sm-quick input:focus-visible,
.sm-quick select:focus-visible,
.sm-quick textarea:focus-visible,
.sm-qf input:focus-visible,
.sm-qf select:focus-visible,
.sm-qf textarea:focus-visible {
	outline: none;
	border-color: var(--sm-green-500, #7BC144);
	box-shadow: 0 0 0 3px rgba(123, 193, 68, 0.22);
}
/* Checkboxes must not inherit the 52px min-height above. */
.sm-quick input[type="checkbox"],
.sm-qf input[type="checkbox"] {
	width: auto;
	min-height: 0;
	padding: 0;
	appearance: auto;
}

/* ── Tap target for the field help buttons ────────────────────────────────
   The "?" renders at 17x17 so it sits neatly beside a label, but that is the
   whole button — well under the 24px WCAG 2.2 minimum and nowhere near the
   44px a thumb wants. Since this is on /get-quote/, it is the paid-traffic
   form where a mis-tap costs a lead.

   The dot keeps its 17px look; an invisible ::before extends the hit area to
   44x44 around it. No layout shift, because the pseudo-element is absolutely
   positioned and the button stays inline-flex at its original size. */
.sm-tip::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
}
/* Keep the bubble above the enlarged hit area rather than behind it. */
.sm-tip__bubble { z-index: 2; }

/* Consent and terms links sit inside a checkbox label and rendered 17-18px tall
   — the smallest real targets on the quote form, and the ones a user must hit to
   read what they are agreeing to. Padding lifts them past the 24px floor without
   moving the label text. */
@media (max-width: 1024px) {
	.sm-qf a,
	.sm-quick a,
	.sm-rfq a {
		display: inline-block;
		padding-block: 4px;
	}
}
