/* BSG Service Wizard — launcher card + modal dialog.
   Matches the bsg2026 hero request-form language:
   navy glass #04224bf2, accent #4fc8ef, CTA gradient #075ddd→#087de5. */

/* ---------- hero launcher ---------- */

.bsg-launcher__lede {
	color: #cfe2f5;
	font-size: 13px;
	margin: 0 0 10px;
	text-align: center;
}

.bsg-launcher__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bsg-launcher__svc {
	background: linear-gradient(145deg, #536f82, #334f64);
	border: 1px solid #7890a1;
	border-radius: 8px;
	box-shadow: inset 0 1px 0 #ffffff24, 0 5px 13px #021a3c2b;
	color: #fff;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 750;
	justify-content: center;
	line-height: 1.25;
	min-height: 46px;
	padding: 8px 10px;
	text-align: center;
	text-decoration: none;
	transition: background .15s, border-color .15s, transform .1s;
}

.bsg-launcher__svc small {
	color: #d9efcc;
	font-size: 10.5px;
	font-weight: 800;
	margin-top: 3px;
	text-transform: uppercase;
}

.bsg-launcher__svc:hover,
.bsg-launcher__svc:focus-visible {
	background: #075ddd;
	border-color: #4fc8ef;
	color: #fff;
	transform: translateY(-1px);
}

.bsg-launcher__svc:hover small,
.bsg-launcher__svc:focus-visible small { color: #dff4ff; }

.bsg-launcher > small {
	color: #e3effa;
	display: block;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
	margin-top: 13px;
	text-align: center;
}

/* ---------- dialog shell ---------- */

.bsg-wizard {
	background: transparent;
	border: 0;
	margin: auto; /* restore native dialog centering — theme reset zeroes it */
	max-height: 100dvh;
	max-width: 100vw;
	padding: 18px;
}

.bsg-wizard::backdrop {
	background: #021a3cb8;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.bsg-wizard__frame {
	background: #04224bf7;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid #ffffff2e;
	border-radius: 14px;
	box-shadow: 0 26px 60px #021a3c99;
	color: #fff;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-height: min(86dvh, 760px);
	width: min(620px, calc(100vw - 36px));
}

.bsg-wizard__head {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	padding: 20px 22px 12px;
}

.bsg-wizard__kicker {
	color: #9fc8ed;
	font-size: 10px;
	letter-spacing: .08em;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.bsg-wizard__title {
	font-size: 22px;
	letter-spacing: -.03em;
	margin: 0;
}

.bsg-wizard__close {
	background: #ffffff14;
	border: 1px solid #ffffff2e;
	border-radius: 8px;
	color: #cfe2f5;
	cursor: pointer;
	font-size: 20px;
	height: 34px;
	line-height: 1;
	width: 34px;
}

.bsg-wizard__close:hover { background: #ffffff29; color: #fff; }

.bsg-wizard__progress {
	background: #ffffff1f;
	border-radius: 99px;
	height: 4px;
	margin: 0 22px 4px;
	overflow: hidden;
}

.bsg-wizard__progress span {
	background: linear-gradient(90deg, #075ddd, #4fc8ef);
	border-radius: 99px;
	display: block;
	height: 100%;
	transition: width .25s ease;
	width: 0;
}

.bsg-wizard__body {
	-webkit-overflow-scrolling: touch;
	flex: 1;
	overflow-y: auto;
	padding: 12px 22px 6px;
}

.bsg-wizard__nav {
	border-top: 1px solid #ffffff1f;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 14px 22px 18px;
}

.bsg-wizard__back {
	background: transparent;
	border: 1px solid #ffffff2e;
	border-radius: 7px;
	color: #cfe2f5;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	padding: 0 18px;
}

.bsg-wizard__back:disabled { opacity: .35; }

.bsg-wizard__next {
	background: linear-gradient(90deg, #075ddd, #087de5);
	border: 0;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	flex: 1;
	font-size: 12.5px;
	font-weight: 820;
	max-width: 300px;
	min-height: 46px;
	text-transform: uppercase;
}

.bsg-wizard__next:disabled { opacity: .6; }

/* ---------- step content ---------- */

.bsg-step-lede { color: #cfe2f5; font-size: 14px; margin: 2px 0 14px; }

.bsg-hint { color: #a8bad0; font-size: 11.5px; margin: 6px 0 10px; }
.bsg-hint a { color: #4fc8ef; text-decoration: underline; }

.bsg-svc-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding-bottom: 16px; }
.bsg-svc { min-height: 56px; }

.bsg-svc {
	background: linear-gradient(145deg, #536f82, #334f64);
	border-color: #7890a1;
	box-shadow: inset 0 1px 0 #ffffff1f;
}

.bsg-f { display: block; margin-bottom: 12px; }

.bsg-f > span,
.bsg-chips-wrap legend {
	color: #cfe2f5;
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 5px;
}

.bsg-f em { color: #4fc8ef; font-style: normal; }

.bsg-f input,
.bsg-f textarea {
	background: #fff;
	border: 1px solid #ffffff47;
	border-radius: 6px;
	color: #102948;
	font-size: 14px;
	outline: 0;
	padding: 11px 12px;
	width: 100%;
}

.bsg-f input:focus,
.bsg-f textarea:focus {
	border-color: #4fc8ef;
	box-shadow: 0 0 0 3px #4fc8ef3d;
}

.bsg-f textarea { resize: vertical; }

.bsg-chips-wrap { border: 0; margin: 0 0 12px; padding: 0; }

.bsg-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.bsg-chip {
	background: #ffffff14;
	border: 1px solid #ffffff2e;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 600;
	min-height: 42px;
	padding: 8px 14px;
	transition: background .15s, border-color .15s;
}

.bsg-chip:hover { border-color: #4fc8ef; }

.bsg-chip.is-on {
	background: #075ddd;
	border-color: #4fc8ef;
	box-shadow: 0 0 0 3px #4fc8ef2e;
}

.bsg-grid2 { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr; }

.bsg-warn {
	background: #fff7e0;
	border: 1px solid #f2dd9b;
	border-radius: 8px;
	color: #7a5b00;
	font-size: 12.5px;
	margin: 4px 0 12px;
	padding: 9px 12px;
}

.bsg-error {
	background: #fdecec;
	border: 1px solid #f3bcbc;
	border-radius: 8px;
	color: #8f1d1d;
	font-size: 12.5px;
	margin: 0 0 12px;
	padding: 9px 12px;
}

.bsg-price-preview {
	align-items: center;
	background: #f3faee;
	border: 1px solid #9ac97b;
	border-radius: 10px;
	color: #173b1e;
	display: grid;
	gap: 2px 14px;
	grid-template-columns: auto 1fr;
	margin: 0 0 16px;
	padding: 13px 15px;
}

.bsg-price-preview small { color: #4b713d; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.bsg-price-preview strong { color: #2f8a2f; font-size: 25px; grid-row: span 2; }
.bsg-price-preview span { color: #4c6250; font-size: 11px; line-height: 1.4; }

/* quote panel */

.bsg-quote {
	background: #ffffff0f;
	border: 1px solid #ffffff24;
	border-radius: 10px;
	margin: 4px 0 14px;
	padding: 14px 16px;
}

.bsg-quote__loading, .bsg-quote p { color: #cfe2f5; font-size: 13px; margin: 0; }

.bsg-quote__sheet { display: block; margin: 0 0 12px; }

.bsg-quote__sheet img {
	border-radius: 8px;
	display: block;
	height: auto;
	max-width: 100%;
}

.bsg-quote__lines { list-style: none; margin: 0; padding: 0; }

.bsg-quote__lines li {
	color: #cfe2f5;
	display: flex;
	font-size: 12.5px;
	justify-content: space-between;
	padding: 3px 0;
}

.bsg-quote__total {
	border-top: 1px solid #ffffff24;
	display: flex;
	font-size: 13.5px;
	justify-content: space-between;
	margin: 8px 0 0;
	padding-top: 9px;
}

.bsg-quote__total strong { color: #4fc8ef; font-size: 17px; }

.bsg-quote__saved { font-size: 14px !important; }
.bsg-quote__saved strong { color: #6ee7a0; }

/* review + terms */

.bsg-review { margin: 0 0 14px; }

.bsg-review div {
	border-bottom: 1px solid #ffffff17;
	display: flex;
	font-size: 12.5px;
	gap: 12px;
	justify-content: space-between;
	padding: 7px 0;
}

.bsg-review dt { color: #9fc8ed; flex: 0 0 auto; }
.bsg-review dd { margin: 0; text-align: right; }

.bsg-terms {
	background: #ffffff0f;
	border: 1px solid #ffffff24;
	border-radius: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
}

.bsg-terms summary { color: #4fc8ef; cursor: pointer; font-size: 12.5px; font-weight: 700; }

.bsg-terms p { color: #cfe2f5; font-size: 12px; line-height: 1.55; margin: 8px 0 0; }

/* done */

.bsg-done { padding: 18px 0 26px; text-align: center; }

.bsg-done__check {
	align-items: center;
	background: #16a34a;
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 30px;
	height: 62px;
	justify-content: center;
	margin: 0 auto 14px;
	width: 62px;
}

.bsg-done__stop {
	align-items: center;
	background: #d97706;
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 30px;
	font-weight: 800;
	height: 62px;
	justify-content: center;
	margin: 0 auto 14px;
	width: 62px;
}

.bsg-done h3 { font-size: 20px; margin: 0 0 8px; }
.bsg-done p { color: #cfe2f5; font-size: 13.5px; margin: 0 0 10px; }
.bsg-done .bsg-wizard__next { margin-top: 12px; padding: 0 34px; }

/* ---------- mobile: full-screen sheet ---------- */

@media (max-width: 640px) {
	.bsg-wizard { height: 100dvh; padding: 0; width: 100vw; }

	.bsg-wizard__frame {
		border: 0;
		border-radius: 0;
		height: 100dvh;
		max-height: none;
		width: 100vw;
	}

	.bsg-wizard__nav { padding-bottom: max(18px, env(safe-area-inset-bottom)); }

	.bsg-grid2 { grid-template-columns: 1fr; }

	.bsg-svc-grid { grid-template-columns: 1fr; }

	.bsg-launcher__grid { grid-template-columns: 1fr 1fr; }
}
