/* US lead form design (Settings > Lead Form picks one-step or two-step).
   .rlp-glass-form  = shared look, used by both modes.
   .rlp-two-step-form = step layout only (tracker, Next/Back). */
.rlp-glass-form {
	--rlp-blue: #0069d9;
	--rlp-blue-dark: #0056b2;
	--rlp-ink: #16233b;
	--rlp-line: #cdd5e3;
	--rlp-soft: #eef3fb;
}

.rlp-two-step-form .rlp-form-step {
	display: none;
}
.rlp-two-step-form .rlp-form-step.rlp-step-active {
	display: block;
	animation: rlp-step-in .28s ease-out;
}
@keyframes rlp-step-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rlp-two-step-form .rlp-form-step.rlp-step-active { animation: none; }
}

/* Card: light frosted glass with a thin border */
.card.glass-effect:has(.rlp-glass-form) {
	background: rgba(255, 255, 255, .30) !important;
	border: 1px solid rgba(255, 255, 255, .95) !important;
	box-shadow: 0 10px 30px rgba(22, 35, 59, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(20px) saturate(1.5);
	backdrop-filter: blur(20px) saturate(1.5);
}

/* Step tracker (two-step only) */
.rlp-step-progress {
	margin-bottom: 22px;
}
.rlp-stepper {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}
.rlp-stepper li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #5f6e87;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.rlp-stepper li + li::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 0 12px;
	background: var(--rlp-line);
	border-radius: 2px;
}
.rlp-stepper li.is-done + li::before,
.rlp-stepper li.is-active + li::before {
	background: var(--rlp-blue);
}
.rlp-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	border: 2px solid var(--rlp-line);
	color: #5f6e87;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.rlp-stepper li.is-active { color: var(--rlp-ink); }
.rlp-stepper li.is-active .rlp-step-num {
	background: var(--rlp-blue);
	border-color: var(--rlp-blue);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(0, 105, 217, .16);
}
.rlp-stepper li.is-done { color: var(--rlp-blue); }
.rlp-stepper li.is-done .rlp-step-num {
	background: var(--rlp-soft);
	border-color: var(--rlp-blue);
	color: var(--rlp-blue);
}
.rlp-step-heading {
	display: block;
	color: var(--rlp-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

/* Fields: neutral translucent glass */
.rlp-glass-form .form-control,
.rlp-glass-form .form-select,
.rlp-glass-form select,
.rlp-glass-form textarea,
.rlp-glass-form .select2-container--default .select2-selection--single {
	border: 1px solid rgba(22, 35, 59, .22) !important;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, .50) !important;
	color: var(--rlp-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 3px rgba(22, 35, 59, .08);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.rlp-glass-form .form-control,
.rlp-glass-form select,
.rlp-glass-form .select2-container--default .select2-selection--single {
	min-height: 47px;
}
.rlp-glass-form select:not(.country-code),
.rlp-glass-form .form-select:not(.country-code) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316233b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	padding-right: 38px;
}
.rlp-glass-form .form-control:focus,
.rlp-glass-form select:focus,
.rlp-glass-form textarea:focus,
.rlp-glass-form .select2-container--open .select2-selection--single,
.rlp-glass-form .select2-container--focus .select2-selection--single {
	outline: none;
	border-color: var(--rlp-blue) !important;
	background-color: rgba(255, 255, 255, .92) !important;
	box-shadow: 0 0 0 3px rgba(0, 105, 217, .20);
}
.rlp-glass-form input::placeholder,
.rlp-glass-form textarea::placeholder {
	background: transparent !important;
	color: #5f6e87;
	opacity: 1;
}
.rlp-glass-form textarea {
	min-height: 84px;
	resize: vertical;
}
.rlp-glass-form .input-group select.country-code {
	border-radius: 8px 0 0 8px !important;
}
.rlp-glass-form .input-group input[name="phone"] {
	border-radius: 0 8px 8px 0 !important;
}

/* Consent box */
.rlp-glass-form .form-group.px-3 {
	padding-left: 5px;
	padding-right: 5px;
}
.rlp-glass-form .form-check {
	background: rgba(255, 255, 255, .40);
	border: 1px solid rgba(22, 35, 59, .16);
	border-radius: 8px;
	padding: 12px 14px 12px 38px;
	margin-bottom: 0;
}
.rlp-glass-form .form-check .form-check-input {
	margin-top: 4px;
}
.rlp-glass-form .form-check-label {
	font-size: 13px;
	line-height: 1.45;
	letter-spacing: 0;
	margin-bottom: 0;
}

/* Buttons */
.rlp-step-nav {
	margin-top: 6px;
	margin-bottom: 4px;
}
.rlp-step-nav .form-group {
	margin-bottom: 0;
}
.rlp-step-btn,
.rlp-glass-form .customfrmsubmit {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.rlp-step-next,
.rlp-glass-form .customfrmsubmit {
	background-color: var(--rlp-blue);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 105, 217, .32);
}
.rlp-step-next:hover,
.rlp-step-next:focus,
.rlp-glass-form .customfrmsubmit:hover,
.rlp-glass-form .customfrmsubmit:focus {
	background-color: var(--rlp-blue-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 105, 217, .4);
}
.rlp-step-nav-back {
	margin-top: 0;
	margin-bottom: 0;
}
.rlp-step-back {
	width: auto;
	min-height: 0;
	margin: 0 auto;
	padding: 6px 8px;
	background: transparent;
	color: var(--rlp-blue);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
}
.rlp-step-back:hover,
.rlp-step-back:focus {
	background: transparent;
	color: var(--rlp-blue-dark);
	text-decoration: underline;
}

@media (max-width: 480px) {
	.rlp-stepper li + li::before { width: 28px; margin: 0 8px; }
	.rlp-step-heading { font-size: 18px; }
}
