/**
 * Smooth Quote — multi-step quote form
 *
 * Everything is scoped under .smq and every property the theme could reach is
 * declared explicitly. Astra styles bare `button`, `input` and `.entry-content a`,
 * so anything left to inherit will drift.
 */

.smq {
	--smq-accent: #ef207a;
	--smq-accent-ink: #ffffff;
	--smq-accent-soft: rgba(239, 32, 122, 0.08);
	--smq-ink: #0f0f0f;
	--smq-muted: #6b6b6b;
	--smq-surface: #ffffff;
	--smq-field: #ffffff;
	--smq-line: #e2e2e2;
	--smq-line-strong: #0f0f0f;
	--smq-error: #c81e3c;
	--smq-radius: 14px;
	--smq-shadow: 0 24px 60px -28px rgba(15, 15, 15, 0.45);
	--smq-display: "Oswald", "Barlow Semi Condensed", system-ui, sans-serif;
	--smq-body: "Inter", system-ui, -apple-system, sans-serif;

	box-sizing: border-box;
	max-width: 620px;
	margin: 0 auto;
	font-family: var(--smq-body);
	color: var(--smq-ink);
	text-align: left;
}

.smq--dark {
	--smq-ink: #ffffff;
	--smq-muted: #a5a5a5;
	--smq-surface: #141414;
	--smq-field: #1d1d1d;
	--smq-line: #333333;
	--smq-line-strong: #ffffff;
	--smq-accent-soft: rgba(239, 32, 122, 0.16);
	--smq-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}

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

/* The explicit display rules below beat the UA stylesheet's [hidden] rule,
   so the attribute needs its own declaration to keep working. */
.smq [hidden] {
	display: none !important;
}

.smq__card {
	background: var(--smq-surface);
	border-radius: var(--smq-radius);
	box-shadow: var(--smq-shadow);
	overflow: hidden;
}

/* ---------------------------------------------------------------- header */

.smq__head {
	padding: 26px 26px 0;
}

.smq__title {
	font-family: var(--smq-display);
	font-weight: 700;
	font-size: clamp(26px, 6vw, 34px);
	line-height: 1.05;
	letter-spacing: -0.5px;
	margin: 0 0 6px;
	color: var(--smq-ink);
	text-transform: none;
}

.smq__intro {
	font-size: 15px;
	line-height: 1.5;
	color: var(--smq-muted);
	margin: 0;
}

.smq__meter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 0;
}

.smq__track {
	position: relative;
	flex: 1;
	height: 6px;
	border-radius: 99px;
	background: var(--smq-line);
	overflow: hidden;
}

.smq__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 20%;
	border-radius: 99px;
	background: var(--smq-accent);
	transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.smq__count {
	font-family: var(--smq-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--smq-muted);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ body */

.smq__body {
	padding: 22px 26px 26px;
}

.smq__step {
	animation: smq-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.smq__step[data-dir="back"] {
	animation-name: smq-in-back;
}

@keyframes smq-in {
	from {
		opacity: 0;
		transform: translate3d(18px, 0, 0);
	}
}

@keyframes smq-in-back {
	from {
		opacity: 0;
		transform: translate3d(-18px, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.smq__step,
	.smq__fill,
	.smq__opt {
		animation: none !important;
		transition: none !important;
	}
}

.smq__legend {
	display: block;
	font-family: var(--smq-display);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.2;
	margin: 0 0 4px;
	padding: 0;
	color: var(--smq-ink);
}

.smq__hint {
	font-size: 14px;
	color: var(--smq-muted);
	margin: 0 0 16px;
	line-height: 1.45;
}

.smq__fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* --------------------------------------------------------- option cards */

.smq__opts {
	display: grid;
	gap: 10px;
}

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

@media (max-width: 400px) {
	.smq__opts--half {
		grid-template-columns: 1fr;
	}
}

.smq__opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 15px 16px;
	margin: 0;
	text-align: left;
	font-family: var(--smq-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--smq-ink);
	background: var(--smq-field);
	border: 1.5px solid var(--smq-line);
	border-radius: 11px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.smq__opt:hover {
	border-color: var(--smq-line-strong);
}

.smq__opt:active {
	transform: scale(0.99);
}

.smq__opt[aria-pressed="true"] {
	border-color: var(--smq-accent);
	background: var(--smq-accent-soft);
}

.smq__opt-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	color: var(--smq-accent);
}

.smq__opt-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.smq__opt-text {
	display: block;
}

.smq__opt-sub {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--smq-muted);
	margin-top: 2px;
}

/* -------------------------------------------------------------- fields */

.smq__grid {
	display: grid;
	gap: 14px;
}

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

@media (max-width: 460px) {
	.smq__grid--2 {
		grid-template-columns: 1fr;
	}
}

.smq__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.smq__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--smq-ink);
	text-transform: none;
}

.smq__req {
	color: var(--smq-accent);
}

.smq .smq__input,
.smq .smq__textarea,
.smq .smq__select {
	width: 100%;
	padding: 13px 14px;
	font-family: var(--smq-body);
	font-size: 16px; /* 16px or iOS Safari zooms the page on focus */
	line-height: 1.3;
	color: var(--smq-ink);
	background: var(--smq-field);
	border: 1.5px solid var(--smq-line);
	border-radius: 10px;
	box-shadow: none;
	transition: border-color 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.smq .smq__select {
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.smq .smq__textarea {
	min-height: 96px;
	resize: vertical;
}

.smq .smq__input:focus,
.smq .smq__textarea:focus,
.smq .smq__select:focus,
.smq .smq__opt:focus-visible,
.smq .smq__btn:focus-visible,
.smq .smq__back:focus-visible {
	outline: 2px solid var(--smq-accent);
	outline-offset: 2px;
	border-color: var(--smq-accent);
}

.smq .smq__input::placeholder,
.smq .smq__textarea::placeholder {
	color: var(--smq-muted);
	opacity: 1;
}

.smq__field--error .smq__input,
.smq__field--error .smq__select {
	border-color: var(--smq-error);
}

.smq__error {
	font-size: 13px;
	font-weight: 500;
	color: var(--smq-error);
}

.smq__note {
	font-size: 13px;
	color: var(--smq-muted);
	line-height: 1.45;
	margin: 0;
}

/* --------------------------------------------------------------- toggle */

.smq__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--smq-muted);
	cursor: pointer;
}

.smq .smq__check input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--smq-accent);
}

/* ------------------------------------------------------------- estimate */

.smq__estimate {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 16px;
	margin: 0 0 16px;
	border: 1.5px dashed var(--smq-accent);
	border-radius: 11px;
	background: var(--smq-accent-soft);
}

.smq__estimate-value {
	font-family: var(--smq-display);
	font-weight: 700;
	font-size: 24px;
	color: var(--smq-ink);
}

.smq__estimate-note {
	font-size: 13px;
	color: var(--smq-muted);
}

/* ------------------------------------------------------------------ nav */

.smq__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.smq .smq__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
	min-height: 54px;
	padding: 15px 22px;
	font-family: var(--smq-display);
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.smq .smq__btn--primary {
	background: var(--smq-accent);
	color: var(--smq-accent-ink);
}

.smq .smq__btn--primary:hover {
	background: #d5176a;
}

.smq .smq__btn:active {
	transform: scale(0.99);
}

.smq .smq__btn[disabled] {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

.smq .smq__back {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 54px;
	padding: 0 6px;
	font-family: var(--smq-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--smq-muted);
	background: none;
	border: 0;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.smq .smq__back:hover {
	color: var(--smq-ink);
}

.smq__spinner {
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: smq-spin 700ms linear infinite;
}

@keyframes smq-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------------- trust */

.smq__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--smq-line);
	font-size: 13px;
	color: var(--smq-muted);
}

.smq__trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.smq__trust svg {
	width: 15px;
	height: 15px;
	stroke: var(--smq-accent);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------- success */

.smq__done {
	text-align: center;
	padding: 10px 0 4px;
	animation: smq-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.smq__done-mark {
	width: 62px;
	height: 62px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--smq-accent);
	display: grid;
	place-items: center;
}

.smq__done-mark svg {
	width: 30px;
	height: 30px;
	stroke: #fff;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.smq__done .smq__title {
	margin-bottom: 8px;
}

.smq__done p {
	color: var(--smq-muted);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 auto 18px;
	max-width: 380px;
}

.smq__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 15px 28px;
	font-family: var(--smq-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.03em;
	color: var(--smq-accent-ink);
	background: var(--smq-ink);
	border-radius: 10px;
	text-decoration: none;
}

.smq--dark .smq__call {
	background: var(--smq-accent);
}

/* ------------------------------------------------------------- noscript */

.smq__noscript {
	padding: 26px;
	background: var(--smq-surface);
	border-radius: var(--smq-radius);
	text-align: center;
}

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