/* RDP: "Enquire Now" tab + smart lead popup (2026-11-07, inc/rdp-lead.php, assets/rdp-lead.js). Theme blue #1b4d89,
   navy #0e2a4c; no green. */

/* the old home "Enquire Now" slide-in (code block on page 190 only): replaced by the tab + popup below */
#form-scroll,
.dsu-form {
	display: none !important;
}

/* ---------- "Enquire Now" tab: right edge, opens the Inquire Now popup ---------- */
.rdp-lead-tab {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	color: #ffffff !important;
	background: #1b4d89;
	border-radius: 10px 0 0 10px;
	box-shadow: 0 6px 18px rgba(14, 42, 76, 0.28);
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	transition: background-color 0.15s ease, padding 0.15s ease;
}
.rdp-lead-tab svg {
	transform: rotate(90deg);
}
.rdp-lead-tab:hover {
	padding-right: 13px;
	background: #163f70;
}
.rdp-lead-tab:focus-visible {
	outline: 3px solid #9cc3f0;
	outline-offset: 2px;
}
/* out of the way while a popup is open */
html:has(.awb-off-canvas-wrap.awb-show) .rdp-lead-tab {
	visibility: hidden;
}
@media (max-width: 767px) {
	/* phones: a small round button low on the right, above Avada's "to top" button */
	.rdp-lead-tab {
		top: auto;
		right: 12px;
		bottom: 76px;
		padding: 0;
		width: 48px;
		height: 48px;
		justify-content: center;
		border-radius: 50%;
		transform: none;
		writing-mode: horizontal-tb;
	}
	.rdp-lead-tab svg {
		width: 22px;
		height: 22px;
		transform: none;
	}
	.rdp-lead-tab span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.rdp-lead-tab:hover {
		padding: 0;
	}
	/* product pages B already have a "Get a quote / Call now" bar at the bottom of the screen on phones */
	html:has(.rdp-pdb-mbar) .rdp-lead-tab {
		display: none;
	}
}

/* ---------- lead popup ---------- */
.rdp-lead-oc .awb-off-canvas {
	overflow: hidden;
	border-radius: 16px;
}
.rdp-lead-oc .awb-off-canvas-inner {
	padding: 0 !important;
}
.rdp-lead-oc .off-canvas-close {
	z-index: 3;
	top: 12px !important;
	right: 12px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #3d4855 !important;
	background: #f3f6fa !important;
	border-radius: 50%;
}
.rdp-lead-inner > .fusion-builder-row {
	align-items: stretch !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
.rdp-lead-inner .fusion-layout-column {
	margin: 0 !important;
}
.rdp-lead-side > .fusion-column-wrapper {
	height: 100%;
	margin: 0 !important;
	padding: 30px 28px 26px !important;
	color: rgba(255, 255, 255, 0.82);
	background: linear-gradient(160deg, #0b2342 0%, #123864 60%, #0d2a4d 100%) !important;
}
.rdp-lead-main > .fusion-column-wrapper {
	justify-content: center !important;
	height: 100%;
	margin: 0 !important;
	padding: 30px 30px 18px !important;
}
.rdp-lead-oc p {
	margin: 0;
}
.rdp-lead-kicker {
	margin-bottom: 10px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9cc3f0;
}
.rdp-lead-title {
	margin-bottom: 10px !important;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}
.rdp-lead-text {
	margin-bottom: 12px !important;
	font-size: 14.5px;
	line-height: 1.5;
}
.rdp-lead-starts {
	display: grid;
	gap: 8px;
	margin: 0 0 16px !important;
	padding: 0 !important;
	list-style: none !important;
}
.rdp-lead-starts li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14.5px;
	font-weight: 600;
	color: #ffffff;
}
.rdp-lead-ico {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #ffffff;
	background: #2f6db5;
	border-radius: 8px;
}
.rdp-lead-trust {
	padding-top: 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.rdp-lead-formt {
	padding-right: 40px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: #1b4d89;
}
.rdp-lead-formsub {
	margin: 4px 0 14px !important;
	font-size: 14px;
	line-height: 1.5;
	color: #5b6573;
}
.rdp-lead-or {
	margin-top: 6px !important;
	font-size: 14px;
	text-align: center;
	color: #5b6573;
}
.rdp-lead-or a {
	font-weight: 700;
	color: #1b4d89;
}
.rdp-lead-no {
	margin-top: 8px !important;
	text-align: center;
}
.rdp-lead-dismiss {
	padding: 6px 10px;
	font: inherit;
	font-size: 13px;
	color: #5b6573;
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	cursor: pointer;
}
.rdp-lead-dismiss:hover {
	color: #1b4d89;
}
.rdp-lead-dismiss:focus-visible {
	outline: 2px solid #1b4d89;
	outline-offset: 2px;
	border-radius: 4px;
}
/* tablets and small laptops: one column, the dark part on top and shorter */
@media (max-width: 860px) {
	.rdp-lead-inner .fusion-layout-column {
		width: 100% !important;
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
	.rdp-lead-side > .fusion-column-wrapper {
		padding: 22px 20px 16px !important;
	}
	.rdp-lead-starts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 0 !important;
	}
	.rdp-lead-trust {
		display: none;
	}
	.rdp-lead-main > .fusion-column-wrapper {
		padding: 20px 20px 12px !important;
	}
	.rdp-lead-oc .off-canvas-close {
		color: #ffffff !important;
		background: rgba(255, 255, 255, 0.16) !important;
	}
}
/* phones: a sheet from the bottom of the screen, the form within thumb reach */
@media (max-width: 767px) {
	.rdp-lead-oc.awb-off-canvas-wrap {
		align-items: flex-end !important;
		padding: 0 !important;
	}
	.rdp-lead-oc .awb-off-canvas {
		width: 100% !important;
		max-width: 100% !important;
		max-height: 92svh;
		margin: 0 !important;
		border-radius: 18px 18px 0 0;
		overflow-y: auto;
	}
	/* compact (user, 2026-11-07: "Yes, make it smaller"): about half the screen, so it does not cover the page Google
	   judges on phones. A dark title strip, one line, the 2 fields, the button, call + "No thanks"; the four ways to
	   start and the longer text stay on computers and tablets */
	.rdp-lead-kicker,
	.rdp-lead-text,
	.rdp-lead-starts,
	.rdp-lead-trust,
	.rdp-lead-formt {
		display: none !important;
	}
	.rdp-lead-side > .fusion-column-wrapper {
		padding: 15px 58px 14px 18px !important;
	}
	.rdp-lead-title {
		margin: 0 !important;
		font-size: 19px;
		line-height: 1.25;
	}
	.rdp-lead-oc .off-canvas-close {
		top: 9px !important;
		right: 10px !important;
		width: 34px;
		height: 34px;
		margin: 0 !important; /* Avada adds 20 px */
	}
	.rdp-lead-main > .fusion-column-wrapper {
		padding: 12px 18px 6px !important;
	}
	.rdp-lead-formsub {
		margin: 0 0 8px !important;
		font-size: 13.5px;
		line-height: 1.45;
	}
	.rdp-lead-or {
		margin-top: 2px !important;
		font-size: 13.5px;
	}
	.rdp-lead-no {
		margin-top: 0 !important;
	}
	.rdp-lead-dismiss {
		padding: 4px 10px 8px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rdp-lead-tab {
		transition: none;
	}
}
