/* Sealy mattress selector — quiz + recommendation (SG layout) */

.sms-selector-page #content,
.sms-selector-page .content-area {
	padding: 0;
	max-width: none;
}

.sms-selector-page .page-title-wrapper,
.sms-selector-page .page-header,
.sms-selector-page .page-title {
	display: none;
}

.sms-error {
	max-width: 720px;
	margin: 40px auto;
	padding: 16px 20px;
	background: #fde8e8;
	color: #8a1f1f;
	text-align: center;
}

.sms-page {
	--sms-teal: #155061;
	--sms-teal-soft: #15506163;
	--sms-brand: #1592cb;
	background: #fff;
}

.sms-intro {
	max-width: 860px;
	margin: 0 auto;
	padding: 80px 24px 24px;
	text-align: center;
}

.sms-intro h1 {
	font-family: "Playfair Display", "Be Vietnam Pro", Georgia, serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.25;
	color: #111;
	margin: 0 0 12px;
}

.sms-intro h2 {
	font-family: "Playfair Display", "Be Vietnam Pro", Georgia, serif;
	font-size: 23px;
	font-weight: 400;
	color: #444;
	margin: 0 0 22px;
}

.sms-intro p {
	font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #000;
	margin: 0 0 12px;
}

/* ——— Quiz ——— */
.sms-quiz {
	--sms-teal: #155061;
	--sms-teal-soft: #15506163;
	--sms-ring: #1550614f;
	--sms-brand: #1592cb;
	--sms-stage: min(560px, 92vw);
	position: relative;
	padding: 12px 16px 72px;
	background: #fff;
}

.sms-quiz__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
}

.sms-stage {
	position: relative;
	width: var(--sms-stage);
	height: var(--sms-stage);
	margin: 0 auto;
	border: 3px solid var(--sms-ring);
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
}

.sms-form {
	position: relative;
	z-index: 2;
}

.sms-steps {
	position: relative;
	z-index: 2;
	height: 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 56px 48px 40px;
	box-sizing: border-box;
}

.sms-step {
	flex: 1;
	min-height: 0;
	min-width: 0;
	width: 100%;
	display: none;
	flex-direction: column;
	padding-top: 0;
}

.sms-step.is-active {
	display: flex;
}

.sms-step[hidden] {
	display: none !important;
}

.sms-step__head {
	text-align: center;
	margin: 0 auto 8px;
	max-width: 340px;
	flex: 0 0 auto;
}

.sms-step__kicker {
	display: block;
	font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
	color: var(--sms-teal);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 10px;
}

.sms-step__title {
	font-family: "Playfair Display", "Be Vietnam Pro", Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.3;
	max-width: 340px;
	margin: 0 auto;
	color: #155061;
}

.sms-choices {
	position: relative;
	flex: 1;
	min-height: 0;
	min-width: 0;
	width: 100%;
	padding: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.sms-swiper {
	flex: 0 0 220px;
	width: 220px;
	max-width: 220px;
	min-width: 0;
	height: 300px;
	padding: 0;
	overflow: hidden;
}

.sms-choice {
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sms-choice input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.sms-choice label {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 190px;
	min-height: 260px;
	padding: 18px 14px 16px;
	position: relative;
	color: var(--sms-teal);
	font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 400;
}

.sms-choice.swiper-slide-active label::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #c5d0d4;
	border-radius: 18px;
	pointer-events: none;
}

.sms-choice label img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	margin-bottom: 12px;
}

.sms-quiz .swiper-button-prev,
.sms-quiz .swiper-button-next,
.sms-swiper-prev,
.sms-swiper-next {
	position: static !important;
	flex: 0 0 28px;
	width: 28px;
	height: 40px;
	margin: 0;
	top: auto;
	left: auto;
	right: auto;
	border: 0;
	background: transparent;
	background-image: none !important;
	cursor: pointer;
	color: var(--sms-teal);
	z-index: 3;
}

.sms-quiz .swiper-button-next::after {
	content: "next" !important;
	font-family: swiper-icons !important;
	font-size: 22px !important;
	color: var(--sms-teal) !important;
	background-image: none !important;
	width: auto;
	height: auto;
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}

.sms-quiz .swiper-button-prev::after {
	content: "prev" !important;
	font-family: swiper-icons !important;
	font-size: 22px !important;
	color: var(--sms-teal) !important;
	background-image: none !important;
	width: auto;
	height: auto;
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}

.sms-swiper-prev.swiper-button-disabled,
.sms-swiper-next.swiper-button-disabled {
	visibility: hidden;
}

.sms-weight,
.sms-firm {
	width: 100%;
	max-width: 280px;
	margin: 12px auto auto;
	text-align: center;
	padding-top: 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sms-weight__value {
	font-size: 28px;
	color: #122;
	margin-bottom: 18px;
}

.sms-weight__caption span {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 500;
}

.sms-firm__visual {
	margin-bottom: 24px;
}

.sms-firm__visual img {
	height: 150px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.sms-firm__caption {
	margin-top: 16px;
}

.sms-slider {
	margin: 0 auto;
	width: 100%;
}

.sms-quiz .noUi-horizontal {
	height: 10px;
}

.sms-quiz .noUi-connect {
	background: var(--sms-teal);
}

.sms-quiz .noUi-target {
	background: #c5d6db;
	border: 0;
	box-shadow: none;
}

.sms-quiz .noUi-handle {
	border: 1px solid var(--sms-teal);
	background: var(--sms-teal);
	box-shadow: none;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	right: -9px;
	top: -5px;
}

.sms-quiz .noUi-handle::before,
.sms-quiz .noUi-handle::after {
	display: none;
}

.sms-foot {
	display: grid;
	grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
	align-items: center;
	gap: 8px 20px;
	max-width: 820px;
	margin: 32px auto 0;
	padding: 0 12px;
	position: relative;
	z-index: 6;
}

.sms-nav__prev {
	grid-column: 1;
	justify-self: end;
	padding-left: 36px;
}

.sms-dots {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sms-foot__next {
	grid-column: 3;
	justify-self: start;
}

.sms-nav__btn {
	position: relative;
	background: transparent !important;
	border: 0;
	color: var(--sms-teal);
	font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 15px;
	cursor: pointer;
	padding: 12px 28px;
	box-shadow: none;
}

.sms-nav__btn[hidden] {
	display: none;
}

.sms-foot > .sms-nav__prev[hidden] {
	display: inline-block;
	visibility: hidden;
	pointer-events: none;
}

.sms-foot__next [hidden] {
	display: none;
}

.sms-nav__next,
.sms-nav__result {
	padding-right: 36px;
}

.sms-nav__prev::before,
.sms-nav__next::after,
.sms-nav__result::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 8px;
	top: 18px;
	background-image: var(--sms-arrow);
	background-repeat: no-repeat;
	background-size: contain;
}

.sms-nav__prev::before {
	left: 8px;
	transform: rotate(180deg);
}

.sms-nav__next::after,
.sms-nav__result::after {
	right: 8px;
}

.sms-dots li {
	margin: 0;
	padding: 0;
}

.sms-dot {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--sms-teal-soft);
	background: #fff;
	color: var(--sms-teal);
	font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

.sms-dot.is-active,
.sms-dot:hover {
	background: var(--sms-teal);
	border-color: var(--sms-teal);
	color: #fff;
}

/* ——— Result ——— */
.sms-result {
	--sms-teal: #155061;
	--sms-brand: #1592cb;
	padding: 48px 0 80px;
	background: #fff;
	font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
}

.sms-result__hero {
	text-align: center;
	max-width: 860px;
	margin: 0 auto 40px;
	padding: 0 20px;
}

.sms-result__kicker {
	font-size: 20px;
	color: #222;
	margin-bottom: 12px;
}

.sms-result__title {
	font-family: "Be Vietnam Pro", Barlow, "Helvetica Neue", Arial, sans-serif;
	font-size: 36px;
	font-weight: 400;
	color: #035768;
	line-height: 1.25;
	margin: 0 0 18px;
}

.sms-result__blurb {
	font-size: 18px;
	line-height: 1.6;
	color: #111;
	max-width: 700px;
	margin: 0 auto;
}

.sms-result__h {
	text-align: center;
	font-size: 28px;
	font-weight: 400;
	margin: 0 0 28px;
	color: #111;
}

.sms-why {
	list-style: none;
	margin: 0 auto;
	padding: 0 20px;
	max-width: 960px;
}

.sms-why__item {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-bottom: 28px;
}

.sms-why__media {
	width: 220px;
	flex-shrink: 0;
	text-align: center;
}

.sms-why__media img {
	height: 150px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	margin: 0 auto 8px;
}

.sms-why__media span {
	display: block;
	color: var(--sms-teal);
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

.sms-why__item p {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: #111;
}

.sms-result__note {
	max-width: 80%;
	margin: 20px auto 48px;
	padding: 36px 40px;
	background: #e7eeef;
	color: #020101;
	font-size: 24px;
	font-weight: 400;
	text-align: center;
	line-height: 1.4;
}

.sms-alt {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.sms-alt__media {
	width: 45%;
}

.sms-alt__media img {
	width: 100%;
	display: block;
	border-radius: 0 100px 100px 0;
}

.sms-alt__body {
	width: 55%;
	padding: 32px 48px 32px 64px;
	max-width: 700px;
}

.sms-alt__kicker {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	color: #111;
}

.sms-alt__body h3 {
	font-family: "Be Vietnam Pro", Barlow, "Helvetica Neue", Arial, sans-serif;
	color: var(--sms-teal);
	font-size: 50px;
	font-weight: 400;
	margin: 0 0 16px;
}

.sms-alt__body p {
	font-size: 17px;
	line-height: 1.55;
	margin: 0 0 20px;
}

.sms-btn {
	display: inline-block;
	padding: 10px 18px;
	background: var(--sms-teal);
	color: #fff !important;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.3;
	border-radius: 2px;
}

.sms-btn:hover {
	background: var(--sms-brand);
	color: #fff !important;
}

.sms-encourage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 24px;
	background: linear-gradient(90deg, #eef7fb 0%, #f7fbfc 55%, #fff 100%);
}

.sms-encourage__copy {
	flex: 1 1 420px;
}

.sms-encourage__copy h3 {
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 12px;
	color: #111;
}

.sms-encourage__copy > p {
	font-size: 17px;
	line-height: 1.55;
	margin: 0 0 22px;
}

.sms-cta {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sms-email {
	display: flex;
	flex-wrap: wrap;
	max-width: 480px;
}

.sms-email input[type="email"] {
	flex: 1 1 220px;
	border: 1px solid var(--sms-teal);
	background: transparent;
	padding: 12px 14px;
	min-width: 0;
}

.sms-email button {
	background: var(--sms-teal);
	color: #fff;
	border: 0;
	padding: 12px 16px;
	cursor: pointer;
	white-space: nowrap;
}

.sms-email__msg {
	margin-top: 12px;
	color: var(--sms-teal);
	font-size: 16px;
}

.sms-encourage__media {
	flex: 1 1 320px;
	text-align: center;
}

.sms-encourage__media img {
	max-width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: contain;
}

.sms-encourage__sku {
	margin: 8px 0 0;
	color: var(--sms-teal);
	font-size: 15px;
}

@media (max-width: 991px) {
	.sms-quiz {
		--sms-stage: min(480px, 92vw);
	}

	.sms-steps {
		padding: 44px 28px 28px;
	}

	.sms-swiper {
		flex-basis: 190px;
		width: 190px;
		max-width: 190px;
		height: 260px;
	}

	.sms-choice {
		height: 260px;
	}

	.sms-choice label {
		width: 160px;
		min-height: 220px;
	}

	.sms-dot {
		width: 42px;
		height: 42px;
		font-size: 14px;
	}

	.sms-alt__media,
	.sms-alt__body {
		width: 100%;
	}

	.sms-alt__media img {
		border-radius: 0;
	}

	.sms-alt__body {
		padding: 24px 20px;
	}

	.sms-result__title {
		font-size: 28px;
	}

	.sms-result__note {
		max-width: 100%;
		font-size: 18px;
		padding: 24px 16px;
		margin: 12px 16px 32px;
	}

	.sms-why__item {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 580px) {
	.sms-intro {
		padding: 40px 16px 8px;
	}

	.sms-intro h1 {
		font-size: 22px;
		line-height: 29px;
	}

	.sms-intro h2 {
		font-size: 16px;
	}

	.sms-quiz {
		--sms-stage: min(355px, 94vw);
		padding: 16px 10px 40px;
		min-height: 0;
	}

	.sms-steps {
		padding: 36px 16px 20px;
	}

	.sms-step__head {
		margin-bottom: 0;
		max-width: 88%;
	}

	.sms-step__title {
		font-size: 17px;
		max-width: 250px;
	}

	.sms-swiper {
		flex-basis: 140px;
		width: 140px;
		max-width: 140px;
		height: 200px;
	}

	.sms-choice {
		height: 200px;
	}

	.sms-choice label {
		width: 120px;
		min-height: 160px;
		padding: 10px 8px;
		font-size: 14px;
	}

	.sms-choice label img {
		height: 90px;
	}

	.sms-foot {
		grid-template-columns: 1fr;
		justify-items: center;
		margin-top: 20px;
	}

	.sms-nav__prev,
	.sms-foot__next {
		justify-self: center;
	}

	.sms-dots {
		gap: 6px;
		order: -1;
	}

	.sms-dot {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}

	.sms-nav__btn {
		position: static;
		transform: none;
		margin: 0 8px;
	}
}
