/**
 * Dealer lead funnel.
 *
 * Every rule that targets a button or a link is scoped under .tfw-site,
 * because the theme's own `.tfw-site button` and `.tfw-site a` selectors sit
 * at (0,1,1) and silently outrank a plain class at (0,1,0).
 */

/* ---------------------------------------------------------------- 1. Card */

.tfw-site .tfw-price-card {
	background: #ffffff;
	border: 1px solid #e1dfdd;
	border-radius: 6px;
	padding: 18px 18px 16px;
	margin: 0 0 20px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.09 ), 0 0 2px rgba( 0, 0, 0, 0.08 );
}

.tfw-site .tfw-price-card__label {
	font: 400 12px/16px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #616161;
	margin: 0 0 2px;
}

.tfw-site .tfw-price-card__value {
	font: 600 28px/36px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #242424;
	letter-spacing: -0.01em;
	margin: 0 0 4px;
}

.tfw-site .tfw-price-card__note,
.tfw-site .tfw-price-card__disclosure {
	font: 400 12px/17px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #616161;
	margin: 0;
}

.tfw-site .tfw-price-card__note {
	margin-bottom: 14px;
}

.tfw-site .tfw-price-card__disclosure {
	margin-top: 12px;
}

.tfw-site .tfw-price-card__cta {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: #c43e00;
	color: #ffffff;
	font: 600 15px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	text-align: center;
	cursor: pointer;
	transition: background-color 100ms cubic-bezier( 0.33, 0, 0.67, 1 );
}

.tfw-site .tfw-price-card__cta:hover {
	background-color: #a63400;
	color: #ffffff;
}

.tfw-site .tfw-price-card__alt {
	display: block;
	width: 100%;
	min-height: 36px;
	margin-top: 8px;
	padding: 7px 16px;
	border: 1px solid #adadad;
	border-radius: 4px;
	background-color: #ffffff;
	color: #242424;
	font: 600 14px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
}

.tfw-site .tfw-price-card__alt:hover {
	background-color: #f5f5f5;
	color: #242424;
	text-decoration: none;
}

/* Hero mirror, so phones meet the offer before the rail. */
.tfw-site .tfw-hero-lead-cta {
	min-height: 36px;
	padding: 7px 18px;
	margin-right: 8px;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: #c43e00;
	color: #ffffff;
	font: 600 14px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	cursor: pointer;
}

.tfw-site .tfw-hero-lead-cta:hover {
	background-color: #a63400;
	color: #ffffff;
}

/* --------------------------------------------------------------- 2. Modal */

body.tfw-lead-open {
	overflow: hidden;
}

.tfw-lead-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.44 );
}

.tfw-lead-modal[hidden] {
	display: none;
}

.tfw-lead-panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 26px 26px 22px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 16px rgba( 0, 0, 0, 0.14 ), 0 0 2px rgba( 0, 0, 0, 0.12 );
}

.tfw-site .tfw-lead-close,
.tfw-lead-close {
	position: absolute;
	top: 12px;
	right: 12px;
	min-height: 32px;
	padding: 5px 12px;
	border: 1px solid #d1d1d1;
	border-radius: 4px;
	background-color: #ffffff;
	color: #424242;
	font: 600 13px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	cursor: pointer;
}

.tfw-lead-title {
	margin: 0 0 6px;
	font: 600 22px/30px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #242424;
}

.tfw-lead-sub {
	margin: 0 0 18px;
	font: 400 14px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #616161;
}

.tfw-lead-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.tfw-lead-field {
	margin-bottom: 12px;
}

.tfw-lead-field label {
	display: block;
	margin-bottom: 4px;
	font: 600 12px/16px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #424242;
}

.tfw-lead-field input,
.tfw-lead-field textarea {
	display: block;
	width: 100%;
	min-height: 34px;
	padding: 6px 10px;
	box-sizing: border-box;
	border: 1px solid #d1d1d1;
	border-bottom: 1px solid #616161;
	border-radius: 4px;
	background-color: #ffffff;
	color: #242424;
	font: 400 14px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.tfw-lead-field textarea {
	min-height: 74px;
	resize: vertical;
}

.tfw-lead-field input:focus,
.tfw-lead-field textarea:focus {
	outline: none;
	border-bottom: 2px solid #0f6cbd;
	padding-bottom: 5px;
}

.tfw-lead-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tfw-lead-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 14px;
}

.tfw-lead-consent input {
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.tfw-lead-consent label {
	font: 400 13px/19px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #424242;
}

.tfw-site .tfw-lead-submit,
.tfw-lead-submit {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: #c43e00;
	color: #ffffff;
	font: 600 15px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	cursor: pointer;
}

.tfw-site .tfw-lead-submit:hover,
.tfw-lead-submit:hover {
	background-color: #a63400;
	color: #ffffff;
}

.tfw-lead-submit:disabled {
	background-color: #c8c6c4;
	color: #ffffff;
	cursor: default;
}

.tfw-lead-status {
	margin: 0 0 10px;
	font: 400 13px/19px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #616161;
}

.tfw-lead-status.is-error {
	color: #a4262c;
}

.tfw-lead-fine {
	margin: 12px 0 0;
	font: 400 12px/17px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #616161;
}

.tfw-lead-done h3 {
	margin: 0 0 6px;
	font: 600 18px/24px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #107c10;
}

.tfw-lead-done p {
	margin: 0;
	font: 400 14px/20px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	color: #424242;
}

/* Visible focus is never removed without a replacement. */
.tfw-lead-panel :focus-visible,
.tfw-site .tfw-price-card__cta:focus-visible,
.tfw-site .tfw-price-card__alt:focus-visible,
.tfw-site .tfw-hero-lead-cta:focus-visible {
	outline: 2px solid #0f6cbd;
	outline-offset: 1px;
}

@media ( max-width: 720px ) {
	.tfw-lead-panel {
		padding: 22px 18px 18px;
	}

	.tfw-lead-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
