.smr-qf-wrap {
	--smr-accent: #2563eb;
	--smr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative;
	max-width: 460px;
	margin: 0 auto;
	padding: 28px 26px 32px;
	border-radius: 18px;
	overflow: hidden;
	isolation: isolate;
	backdrop-filter: blur(22px) saturate(180%);
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	box-shadow:
		0 20px 45px rgba(0, 0, 0, 0.30),
		0 2px 8px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 0 rgba(255, 255, 255, 0.08);
	font-family: var(--smr-font);
	box-sizing: border-box;
}
.smr-qf-wrap * {
	box-sizing: border-box;
}

/* Mirror-glass sheen: a broad diagonal highlight across the card, like light
   reflecting off a mirror/glass surface. Purely decorative, sits behind the
   actual form content. */
.smr-qf-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(125deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0) 42%),
		linear-gradient(300deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
		linear-gradient(200deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.06) 75%, rgba(255, 255, 255, 0) 100%);
}
/* A thin bright edge along the top, like the rim of a glass pane catching light. */
.smr-qf-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	left: 6%;
	right: 6%;
	height: 1px;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
}
.smr-qf-wrap > * {
	position: relative;
	z-index: 1;
}

/* Dark glass: light text, works well over photos / dark or colorful themes */
.smr-qf-wrap.smr-tint-dark {
	background: rgba(15, 23, 42, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
}
.smr-qf-wrap.smr-tint-dark .smr-qf-phone a {
	color: #e5edff;
}

/* Light glass: dark text, works well over plain white / light themes */
.smr-qf-wrap.smr-tint-light {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #111827;
}
.smr-qf-wrap.smr-tint-light .smr-qf-phone a {
	color: #1d4ed8;
}

.smr-qf-header {
	text-align: center;
	margin-bottom: 20px;
}
.smr-qf-header h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}
.smr-qf-phone {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	opacity: 0.9;
}
.smr-qf-phone a {
	text-decoration: none;
}

.smr-qf-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.smr-qf-row {
	display: flex;
	gap: 12px;
}
.smr-qf-row .smr-qf-field {
	flex: 1;
	min-width: 0;
}

.smr-qf-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	letter-spacing: 0.2px;
}
.smr-qf-field .req {
	color: #f87171;
}

.smr-qf-field input,
.smr-qf-field select,
.smr-qf-field textarea {
	width: 100%;
	padding: 11px 13px;
	border-radius: 9px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 40%),
		rgba(255, 255, 255, 0.92);
	color: #111827;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.smr-qf-field input::placeholder,
.smr-qf-field textarea::placeholder {
	color: #9ca3af;
}
.smr-qf-field input:focus,
.smr-qf-field select:focus,
.smr-qf-field textarea:focus {
	outline: none;
	border-color: var(--smr-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.smr-qf-field textarea {
	resize: vertical;
	min-height: 70px;
}

.smr-qf-group {
	display: none;
	flex-direction: column;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px dashed rgba(255, 255, 255, 0.25);
	position: relative;
}
.smr-tint-light .smr-qf-group {
	border-top-color: rgba(0, 0, 0, 0.12);
}
.smr-qf-group.is-active {
	display: flex;
}
.smr-qf-group.is-active::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 15%;
	right: 15%;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.smr-qf-submit-btn {
	margin-top: 6px;
	width: 100%;
	padding: 14px 20px;
	border: none !important;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #fff !important;
	cursor: pointer;
	background: var(--smr-accent) !important;
	background-image: linear-gradient(135deg, var(--smr-accent), var(--smr-accent)) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.smr-qf-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.smr-qf-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.smr-qf-response {
	margin-top: 4px;
	padding: 12px 14px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.smr-qf-response.success {
	background: rgba(34, 197, 94, 0.18);
	border: 1px solid rgba(34, 197, 94, 0.4);
	color: #16a34a;
}
.smr-tint-dark .smr-qf-response.success {
	color: #bbf7d0;
}
.smr-qf-response.error {
	background: rgba(239, 68, 68, 0.18);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: #dc2626;
}
.smr-tint-dark .smr-qf-response.error {
	color: #fecaca;
}

.smr-qf-estimate-box {
	margin-top: 4px;
	padding: 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px dashed rgba(255, 255, 255, 0.30);
	display: block !important;
	visibility: visible !important;
}
.smr-tint-light .smr-qf-estimate-box {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.15);
}
.smr-qf-estimate-btn {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: none !important;
	background: var(--smr-accent) !important;
	background-image: linear-gradient(135deg, var(--smr-accent), var(--smr-accent)) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.smr-qf-estimate-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.smr-qf-estimate-result {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.6;
}
.smr-qf-estimate-result.success strong {
	font-size: 15px;
}
.smr-qf-estimate-result.error {
	color: #fecaca;
}
.smr-tint-light .smr-qf-estimate-result.error {
	color: #b91c1c;
}
.smr-qf-estimate-note {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	opacity: 0.75;
	font-weight: 400;
}

@media (max-width: 480px) {
	.smr-qf-wrap {
		padding: 22px 18px 26px;
		border-radius: 14px;
	}
	.smr-qf-row {
		flex-direction: column;
	}
}

/* Custom service dropdown: replaces the browser's native mobile select popup so
   long service names can wrap onto a second line instead of being clipped. */
.smr-qf-wrap {
	overflow: visible;
}
.smr-service-field {
	position: relative;
	z-index: 20;
}
.smr-service-dropdown {
	position: relative;
	width: 100%;
}
.smr-service-dropdown .smr-service-select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}
.smr-service-toggle {
	position: relative;
	width: 100%;
	min-height: 44px;
	padding: 11px 42px 11px 13px;
	border-radius: 9px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 40%),
		rgba(255, 255, 255, 0.92);
	color: #111827;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.smr-service-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 15px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: translateY(-65%) rotate(45deg);
	transition: transform 0.15s ease;
}
.smr-service-dropdown.is-open .smr-service-toggle::after {
	transform: translateY(-25%) rotate(225deg);
}
.smr-service-toggle:focus {
	outline: none;
	border-color: var(--smr-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.smr-service-options {
	display: none;
	position: absolute;
	left: 0;
	top: calc(100% + 4px);
	width: 100%;
	max-height: min(330px, 55vh);
	overflow-y: auto;
	padding: 4px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	z-index: 1000;
}
.smr-service-dropdown.is-open .smr-service-options {
	display: block;
}
.smr-service-option {
	display: block;
	width: 100%;
	padding: 9px 13px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #71829f;
	font: inherit;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
}
.smr-service-option:hover,
.smr-service-option:focus,
.smr-service-option.is-selected {
	background: #f3f4f6;
	color: #111827;
	outline: none;
}
.smr-service-option.is-placeholder {
	color: #9ca3af;
}

@media (max-width: 480px) {
	.smr-service-options {
		max-height: min(300px, 52vh);
	}
	.smr-service-option {
		padding: 9px 13px;
		white-space: normal;
		word-break: normal;
		overflow-wrap: anywhere;
	}
}
