.sfr-tq-widget {
	--sfr-blue: #005299;
	--sfr-orange: #FA8334;
	/* Fluid type scale, matching the site's heading scale. */
	--sfr-font-h3: clamp(1.522rem, calc(1.369rem + 0.908vw), 1.991rem);
	--sfr-font-body: clamp(1rem, calc(1rem + 0vw), 1rem);
	--sfr-font-button: clamp(1.088rem, calc(1.068rem + 0.122vw), 1.148rem);
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px;
	background: #fff;
	border: 1px solid #e4e8ee;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 82, 153, 0.08);
	font-family: 'Poppins', sans-serif;
	font-size: var(--sfr-font-body);
	color-scheme: light;
}

.sfr-tq-heading {
	margin: 0 0 18px;
	font-family: 'Baloo 2', sans-serif;
	font-size: var(--sfr-font-h3);
	font-weight: 700;
	color: var(--sfr-blue);
}

.sfr-tq-test-mode-banner {
	background: #fff8ec;
	border: 1px solid var(--sfr-orange);
	color: #7a4d00;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 18px;
}

.sfr-tq-field {
	margin-bottom: 16px;
}

.sfr-tq-field-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.sfr-tq-field-row .sfr-tq-field {
	flex: 1 1 160px;
}

.sfr-tq-field label {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #33475b;
	margin-bottom: 5px;
}
.sfr-tq-optional {
	font-weight: 400;
	color: #8492a6;
}

.sfr-tq-field select,
.sfr-tq-field input,
.sfr-tq-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d3dae3;
	border-radius: 8px;
	font-size: var(--sfr-font-body);
	background: #fff;
	box-sizing: border-box;
}
.sfr-tq-field select:focus,
.sfr-tq-field input:focus,
.sfr-tq-field textarea:focus {
	outline: none;
	border-color: var(--sfr-blue);
	box-shadow: 0 0 0 3px rgba(0, 82, 153, 0.12);
}
.sfr-tq-field select:disabled {
	background: #f3f5f8;
	color: #a3adb8;
}

.sfr-tq-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 18px;
	border-bottom: 1px solid #e4e8ee;
}
.sfr-tq-tab {
	flex: 1 1 auto;
	text-align: center;
	padding: 10px 8px;
	font-weight: 700;
	font-size: 1rem;
	color: #8492a6;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.sfr-tq-tab input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}
.sfr-tq-tab:has(input:checked) {
	color: var(--sfr-blue);
	border-bottom-color: var(--sfr-orange);
}
.sfr-tq-tab.sfr-tq-tab-active {
	color: var(--sfr-blue);
	border-bottom-color: var(--sfr-orange);
}
.sfr-tq-tab:hover {
	color: var(--sfr-blue);
}

.sfr-tq-tab-subtitle {
	margin: -10px 0 18px;
	font-size: 0.95rem;
	color: #8492a6;
}

.sfr-tq-fee-note {
	font-size: 0.9rem;
	color: #8492a6;
	margin-top: 6px;
	line-height: 1.5;
}

.sfr-tq-category-content {
	background: #fbfbfb;
	border: 1px solid #e4e8ee;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.95rem;
	color: #33475b;
	margin-bottom: 14px;
	line-height: 1.6;
}
.sfr-tq-category-content strong {
	color: var(--sfr-blue);
}

.sfr-tq-terms-field {
	margin-top: 4px;
}
.sfr-tq-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.95rem;
	color: #33475b;
	cursor: pointer;
}
.sfr-tq-checkbox-label input[type="checkbox"] {
	width: auto;
	margin-top: 2px;
}
.sfr-tq-checkbox-label a {
	color: var(--sfr-blue);
	font-weight: 600;
}

.sfr-tq-autocomplete-container,
.sfr-tq-autocomplete-container gmp-place-autocomplete {
	width: 100%;
	color-scheme: light;
	--gmp-place-autocomplete-input-height: 42px;
}
.sfr-tq-autocomplete-container.sfr-tq-disabled {
	opacity: 0.55;
	pointer-events: none;
}
.sfr-tq-autocomplete-container input[disabled] {
	background: #f3f5f8;
	color: #a3adb8;
	cursor: not-allowed;
}

.sfr-tq-stops {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 4px;
}
.sfr-tq-stop-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 0;
}
.sfr-tq-stop-row label {
	flex: 0 0 52px;
	padding-top: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #33475b;
}
.sfr-tq-stop-input-wrap {
	flex: 1 1 auto;
}
.sfr-tq-stop-input-wrap input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d3dae3;
	border-radius: 8px;
	font-size: var(--sfr-font-body);
	box-sizing: border-box;
}
.sfr-tq-stop-remove {
	flex: 0 0 auto;
	margin-top: 6px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #d3dae3;
	background: #fff;
	color: #c0392b;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}
.sfr-tq-stop-remove:hover {
	background: #fdecea;
}
.sfr-tq-add-stop {
	padding: 8px 16px;
	font-size: 0.95rem;
}
.sfr-tq-add-stop:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sfr-tq-btn {
	display: inline-block;
	padding: 12px 22px;
	border: none;
	border-radius: 10px;
	font-size: var(--sfr-font-button);
	font-weight: 700;
	cursor: pointer;
	margin-right: 10px;
	margin-top: 4px;
	transition: transform 0.05s ease, opacity 0.15s ease;
}
.sfr-tq-btn:active {
	transform: scale(0.98);
}
.sfr-tq-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.sfr-tq-btn-primary {
	background: var(--sfr-orange);
	color: #fff;
}
.sfr-tq-btn-primary:hover:not(:disabled) {
	background: #dc732e;
}
.sfr-tq-btn-secondary {
	background: transparent;
	color: var(--sfr-blue);
	border: 1px solid #cdd9e5;
}
.sfr-tq-btn-secondary:hover {
	background: #f2f7fc;
}

.sfr-tq-error {
	color: #c0392b;
	font-size: 0.95rem;
	margin-top: 10px;
	min-height: 16px;
}
.sfr-tq-note {
	color: #8492a6;
	font-size: 0.9rem;
	margin-top: 14px;
	line-height: 1.5;
}

.sfr-tq-trip-summary {
	background: #f2f7fc;
	border: 1px solid #dbe6f2;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 1rem;
	color: #33475b;
	margin-bottom: 16px;
	line-height: 1.6;
}
.sfr-tq-trip-summary strong {
	color: var(--sfr-blue);
}

.sfr-tq-route-list {
	margin: 6px 0 2px;
}
.sfr-tq-route-row {
	display: flex;
	gap: 10px;
}
.sfr-tq-route-marker-col {
	flex: 0 0 auto;
	width: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.sfr-tq-route-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8492a6;
	flex: 0 0 auto;
	margin-top: 4px;
}
.sfr-tq-route-dot-start {
	background: var(--sfr-blue);
}
.sfr-tq-route-dot-end {
	background: var(--sfr-orange);
}
.sfr-tq-route-connector {
	flex: 1 1 auto;
	width: 1px;
	min-height: 14px;
	background: #c9d6e3;
	margin-top: 2px;
}
.sfr-tq-route-text {
	flex: 1 1 auto;
	min-width: 0;
	padding-bottom: 10px;
}
.sfr-tq-route-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--sfr-blue);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 2px;
}
.sfr-tq-route-value {
	display: block;
	font-size: 0.95rem;
	color: #33475b;
	line-height: 1.4;
	word-break: break-word;
}
.sfr-tq-route-meta {
	font-size: 0.9rem;
	color: #8492a6;
	margin-top: 2px;
}

.sfr-tq-vehicle-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 18px;
}

.sfr-tq-vehicle-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border: 1px solid #d3dae3;
	border-radius: 10px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sfr-tq-vehicle-card:hover {
	border-color: var(--sfr-orange);
	box-shadow: 0 2px 10px rgba(249, 155, 31, 0.15);
}
.sfr-tq-vehicle-photo {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	background: #f2f7fc;
}
.sfr-tq-vehicle-info {
	flex: 1 1 auto;
	min-width: 0;
}
.sfr-tq-vehicle-name {
	font-weight: 700;
	color: #1c2b3a;
}
.sfr-tq-vehicle-meta {
	font-size: 0.95rem;
	color: #8492a6;
	margin-top: 2px;
}
.sfr-tq-vehicle-savings {
	font-size: 0.9rem;
	font-weight: 700;
	color: #2e7d32;
	margin-top: 4px;
}
.sfr-tq-vehicle-price {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--sfr-blue);
	white-space: nowrap;
}

.sfr-tq-step-success {
	text-align: center;
	padding: 10px 0;
}
.sfr-tq-success-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: var(--sfr-blue);
	color: #fff;
	font-size: 1.9rem;
	margin: 0 auto 14px;
}

/* Honeypot: hidden from real visitors (not just visually - off-screen so
   screen readers skip it too), but present in the DOM for bots to fill. */
.sfr-tq-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sfr-tq-whatsapp-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #128C7E;
	text-decoration: none;
	margin-bottom: 16px;
}
.sfr-tq-whatsapp-link:hover {
	text-decoration: underline;
}
.sfr-tq-whatsapp-icon {
	font-size: var(--sfr-font-body);
}

#sfr-self-drive-section iframe {
	display: block;
	width: 100%;
	border: none;
	border-radius: 8px;
}

@media (max-width: 480px) {
	.sfr-tq-widget {
		padding: 18px;
	}
	.sfr-tq-field-row {
		flex-direction: column;
		gap: 0;
	}
}
