/**
 * Quick Quote sticky button + popup.
 * Colours follow the site's existing quote button: yellow #FEE438 on deep navy
 * #09354A, with the header red #EA222D reserved for the primary Contact button
 * so the two calls to action stay visually distinct.
 */

/* ---------- sticky trigger ---------- */

.sos-qq-trigger {
	position: fixed;
	right: 20px;
	bottom: 84px; /* clears the theme's scroll-to-top button */
	z-index: 9998;
	padding: 13px 22px;
	border: 0;
	border-radius: 4px;
	background: #FEE438;
	color: #09354A;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sos-qq-trigger:hover,
.sos-qq-trigger:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ---------- overlay + panel ---------- */

.sos-qq-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(9, 53, 74, 0.6);
}

.sos-qq-overlay[hidden] {
	display: none;
}

body.sos-qq-open {
	overflow: hidden;
}

.sos-qq-panel {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px 28px 26px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.sos-qq-close {
	position: absolute;
	top: 8px;
	right: 12px;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: #09354A;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.sos-qq-panel h2 {
	margin: 0 0 6px;
	color: #09354A;
	font-size: 24px;
	line-height: 1.25;
}

.sos-qq-lede {
	margin: 0 0 20px;
	color: #4a5a63;
	font-size: 15px;
	line-height: 1.5;
}

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

.sos-qq-field {
	margin-bottom: 15px;
}

.sos-qq-field label {
	display: block;
	margin-bottom: 5px;
	color: #333;
	font-size: 14px;
	font-weight: 700;
}

.sos-qq-field input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px; /* 16px keeps iOS from zooming the viewport on focus */
	box-sizing: border-box;
}

.sos-qq-field input:focus {
	border-color: #19A1E1;
	outline: 2px solid rgba(25, 161, 225, 0.35);
	outline-offset: 1px;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.sos-qq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sos-qq-error {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 4px;
	background: #fdeaea;
	color: #961c1c;
	font-size: 14px;
	line-height: 1.45;
}

.sos-qq-error[hidden] {
	display: none;
}

.sos-qq-submit {
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: 4px;
	background: #EA222D;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.sos-qq-submit:hover:not(:disabled) {
	background: #c31b25;
}

.sos-qq-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
	.sos-qq-trigger {
		right: 14px;
		bottom: 74px;
		padding: 11px 18px;
		font-size: 14px;
	}

	.sos-qq-panel {
		padding: 26px 20px 22px;
	}

	.sos-qq-panel h2 {
		font-size: 21px;
	}
}
