/* Lead form styles (homepage Final Expense form + /get-a-quote/ multi-vertical
   form). Class names are unchanged from the previous build — only the visual
   treatment changed, so the form markup and fields stay exactly as they were. */

.nblg-funnel {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #E2EBEA;
	border-radius: 24px;
	padding: 36px;
	box-shadow: 0 40px 80px -30px rgba(14, 42, 59, .30), 0 10px 24px rgba(14, 42, 59, .06);
	font-family: inherit;
}

.nblg-funnel__header h2 {
	font-size: 1.32rem;
	font-weight: 800;
	letter-spacing: -.015em;
	margin: 0 0 8px;
	color: #0E2A3B;
	line-height: 1.3;
}

.nblg-funnel__header p {
	color: #3D5568;
	margin: 0 0 20px;
	line-height: 1.55;
	font-size: .98rem;
}

.nblg-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.nblg-row {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.nblg-row--half {
	grid-column: span 1;
}

.nblg-row label {
	font-weight: 700;
	font-size: .9rem;
	color: #0E2A3B;
}

.nblg-row input,
.nblg-row select {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1.5px solid #CFDDDB;
	border-radius: 12px;
	font-size: 1.02rem; /* >=16px stops iOS zooming into the field */
	background: #fff;
	color: #0E2A3B;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nblg-row input:hover,
.nblg-row select:hover {
	border-color: #9FC9C2;
}

.nblg-row select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230B7A6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5 L10 12.5 L15 7.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	padding-right: 42px;
}

.nblg-row input::placeholder {
	color: #8A9BA8;
}

.nblg-row input:focus,
.nblg-row select:focus {
	outline: none;
	border-color: #0B7A6E;
	box-shadow: 0 0 0 4px rgba(11, 122, 110, .16);
	background: #FBFEFD;
}

.nblg-vertical-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 10px;
	margin-top: 4px;
}

.nblg-vertical {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	background: #fff;
	border: 1.5px solid #E2EBEA;
	border-radius: 16px;
	cursor: pointer;
	font-family: inherit;
	color: #0E2A3B;
	transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.nblg-vertical:hover {
	border-color: #9FC9C2;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -10px rgba(14, 42, 59, .3);
}

.nblg-vertical[aria-checked="true"] {
	border-color: #0B7A6E;
	background: #E8F6F3;
	box-shadow: 0 0 0 3px rgba(11, 122, 110, .14);
}

.nblg-vertical__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #E8F6F3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: .92rem;
	color: #0B7A6E;
	transition: background .15s ease, color .15s ease;
}

.nblg-vertical[aria-checked="true"] .nblg-vertical__icon {
	background: #0B7A6E;
	color: #fff;
}

.nblg-vertical__label {
	font-size: .8rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
}

.nblg-vertical-hint {
	font-size: .8rem;
	color: #5B6F80;
	margin: 8px 0 0;
}

.nblg-consent {
	margin-top: 6px;
}

.nblg-checkbox {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: .84rem;
	font-weight: 500 !important;
	line-height: 1.6;
	color: #3D5568 !important;
	background: #F4F9F8;
	border: 1px solid #E2EBEA;
	border-radius: 14px;
	padding: 14px;
	cursor: pointer;
}

.nblg-checkbox a {
	color: #0B7A6E;
	font-weight: 700;
}

/* Custom checkbox — appearance:none + a hand-drawn checkmark, so sizing is
   identical across browsers instead of relying on native checkbox styling. */
.nblg-checkbox input {
	appearance: none;
	-webkit-appearance: none;
	margin: 2px 0 0;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	max-width: 22px;
	max-height: 22px;
	padding: 0;
	border: 2px solid #9FB3BF;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	position: relative;
	box-sizing: border-box;
	transition: background .15s ease, border-color .15s ease;
}

.nblg-checkbox input:checked {
	background: #0B7A6E;
	border-color: #0B7A6E;
}

.nblg-checkbox input:checked::after {
	content: "";
	position: absolute;
	left: 5.5px;
	top: 1.5px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.nblg-checkbox input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(11, 122, 110, .25);
}

.nblg-submit {
	grid-column: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #CF3F2A;
	color: #fff;
	border: none;
	min-height: 58px;
	padding: 15px 22px;
	border-radius: 100px;
	font-size: 1.12rem;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 14px 28px -12px rgba(207, 63, 42, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
	margin-top: 4px;
}

.nblg-submit::after {
	content: "→";
	transition: transform .2s ease;
}

.nblg-submit:hover {
	background: #B3321F;
	transform: translateY(-2px);
	box-shadow: 0 18px 32px -12px rgba(207, 63, 42, .65);
}

.nblg-submit:hover::after {
	transform: translateX(4px);
}

.nblg-submit:disabled {
	background: #C9D3D9;
	color: #4A5B67;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.nblg-submit:disabled::after {
	content: none;
}

.nblg-disclaimer {
	grid-column: span 2;
	font-size: .8rem;
	color: #5B6F80;
	margin: 0;
	text-align: center;
}

.nblg-response {
	grid-column: span 2;
	text-align: center;
	font-weight: 700;
}

.nblg-response:empty {
	display: none;
}

.nblg-response.nblg-success {
	color: #067647;
	background: #ECFDF3;
	border: 1px solid #ABEFC6;
	border-radius: 14px;
	padding: 14px 16px;
}

.nblg-response.nblg-error {
	color: #B42318;
	background: #FEF3F2;
	border: 1px solid #FECDCA;
	border-radius: 14px;
	padding: 12px 16px;
}

/* ---------- Form nested in a page card ----------
   .nb-form-card already provides the card framing, so strip the form's own
   duplicate card styling (card-in-a-card). */
.nb-form-card {
	position: relative;
	background: #fff;
	border: 1px solid #E2EBEA;
	border-radius: 28px;
	padding: 30px 30px 24px;
	box-shadow: 0 50px 90px -40px rgba(14, 42, 59, .38), 0 12px 28px rgba(14, 42, 59, .07);
}

.nb-form-card::before {
	content: "";
	position: absolute;
	left: 28px;
	right: 28px;
	top: -1px;
	height: 5px;
	border-radius: 0 0 6px 6px;
	background: linear-gradient(90deg, #17B3A3, #FFB547, #FF7A5C);
}

.nb-form-card .nblg-funnel {
	background: none;
	border: none;
	padding: 0;
	box-shadow: none;
	margin: 0;
	max-width: none;
}

.nb-form-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.nb-form-card__top .nb-kicker {
	margin: 0;
}

.nb-form-card__time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .86rem;
	font-weight: 700;
	color: #5B6F80;
}

.nb-form-card__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #E2EBEA;
	font-size: .84rem;
	font-weight: 600;
	color: #5B6F80;
	text-align: center;
}

@media (max-width: 520px) {
	.nblg-funnel {
		padding: 26px 18px;
	}
	.nb-form-card {
		padding: 24px 16px 18px;
		border-radius: 22px;
	}
	.nblg-form {
		grid-template-columns: 1fr;
	}
	.nblg-row,
	.nblg-row--half,
	.nblg-submit,
	.nblg-disclaimer,
	.nblg-response {
		grid-column: span 1;
	}
}
