/* =====================================================================
 * TNUSA -- homepage hero teaser
 *
 * Three question steps sitting in the homepage hero, where the ten-step
 * Contact Form 7 form used to be. The hero is a dark photograph with an eagle
 * watermark at bottom right, so the block is width-capped to stay clear of it
 * and carries the z-index the old form rule set for the same reason.
 *
 * Option cards are white on the dark hero, and deliberately look like the
 * wizard's own .selectable-box: the visitor is walking into the same flow, and
 * it should not feel like a handover.
 * ===================================================================== */

.tnusa-teaser {
	font-family: 'Montserrat', sans-serif;
	max-width: 720px;
	padding: 6px 0 120px;
	position: relative;
	z-index: 1;
}

.teaser-lead {
	color: #fff;
	font-size: 17px;
	line-height: 1.5;
	margin: 0 0 22px;
}

/* ---- progress ---- */

.teaser-progress {
	background-color: rgba(255, 255, 255, 0.25);
	border-radius: 3px;
	height: 6px;
	margin: 0 0 22px;
	max-width: 420px;
	overflow: hidden;
}

.teaser-progress-bar {
	background-color: #B52022;
	border-radius: 3px;
	display: block;
	height: 100%;
	transition: width 0.3s ease;
	width: 6%;
}

/* ---- back ---- */

.teaser-back {
	align-items: center;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	display: inline-flex;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	margin: 0 0 14px;
	padding: 4px 0;
}

/* Drawn with borders rather than a glyph, same as the wizard's back button:
 * a font escape is at the mercy of whatever the visitor has installed. */
.teaser-back-arrow {
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	height: 8px;
	transform: rotate(45deg);
	width: 8px;
}

.teaser-back:hover,
.teaser-back:focus {
	color: #fff;
	text-decoration: underline;
}

/* ---- steps ---- */

.teaser-step {
	display: none;
}

.teaser-step.active-step {
	display: block;
}

.teaser-question {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 20px;
}

/* ---- options ---- */

.teaser-options {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, 1fr);
}

/* Yes/No reads better as two wide cards than three narrow columns. */
.teaser-options-pair {
	grid-template-columns: repeat(2, 1fr);
	max-width: 420px;
}

/* Filing statuses are long enough that side-by-side would wrap awkwardly. */
.teaser-options-list {
	grid-template-columns: 1fr;
	max-width: 520px;
}

.teaser-option {
	background-color: #fff;
	border: 2px solid transparent;
	border-radius: 5px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
	color: #14223d;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	min-height: 62px;
	padding: 14px 16px;
	text-align: center;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.teaser-option.full-width {
	grid-column: 1 / -1;
}

.teaser-options-list .teaser-option {
	text-align: left;
}

.teaser-option:hover,
.teaser-option:focus {
	border-color: #0075E1;
	outline: none;
	transform: translateY(-2px);
}

.teaser-option.selected {
	border-color: #0075E1;
	box-shadow: 0 3px 13px rgba(3, 84, 162, 0.16);
}

/* ---- hand-off ---- */

.teaser-handoff-text {
	color: #fff;
	font-size: 19px;
	font-weight: 600;
	margin: 10px 0 0;
	padding: 24px 0;
}

/* ---- responsive ---- */

@media (max-width: 991px) {
	.tnusa-teaser {
		padding-bottom: 80px;
	}

	.teaser-question {
		font-size: 23px;
	}
}

@media (max-width: 767px) {
	.tnusa-teaser {
		padding-bottom: 50px;
	}

	.teaser-lead {
		font-size: 15px;
	}

	.teaser-question {
		font-size: 21px;
	}

	.teaser-options {
		gap: 10px;
		grid-template-columns: repeat(2, 1fr);
	}

	.teaser-options-list {
		grid-template-columns: 1fr;
	}

	.teaser-option {
		font-size: 14px;
		min-height: 56px;
		padding: 12px;
	}
}

/* =====================================================================
 * Option icons
 *
 * The same artwork the old Contact Form 7 form used for these three
 * questions, from the theme's own icon set. Keyed off data-field and
 * data-value so a renamed value loses its icon visibly rather than quietly
 * showing the wrong one.
 * ===================================================================== */

.teaser-option {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.teaser-option:before {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: '';
	flex: 0 0 auto;
}

/* ---- amount owed: icon above the label ---- */

.teaser-step[data-field="amount_owed"] .teaser-option {
	min-height: 104px;
}

.teaser-step[data-field="amount_owed"] .teaser-option:before {
	height: 44px;
	width: 74px;
}

.teaser-option[data-value="unsure"]:before {
	background-image: url(../assets/images/icons/unsure-new.svg);
}

.teaser-option[data-value="10k_25k"]:before {
	background-image: url(../assets/images/icons/s1-2.svg);
}

.teaser-option[data-value="25k_50k"]:before {
	background-image: url(../assets/images/icons/s1-3.svg);
}

.teaser-option[data-value="50k_100k"]:before {
	background-image: url(../assets/images/icons/s1-4.svg);
}

.teaser-option[data-value="100k_500k"]:before {
	background-image: url(../assets/images/icons/s1-5.svg);
}

/* INTERIM: no seventh money-stack icon exists -- the set runs s1-2 to s1-6 --
   so the $500k-$1M band borrows the top one and the two look alike. Add a
   seventh SVG to assets/images/icons/ and split this rule. */
.teaser-option[data-value="500k_1m"]:before,
.teaser-option[data-value="1m_5m"]:before {
	background-image: url(../assets/images/icons/s1-6.svg);
}

/* ---- un-filed returns: Yes/No, icon above the label ----
   Keyed off data-icon, not data-value. This question's values are crossed
   against its labels, so data-value="no" is the button reading "Yes" -- an
   icon following the value would put the cross on it. */

.teaser-options-pair .teaser-option {
	min-height: 104px;
}

.teaser-options-pair .teaser-option:before {
	height: 46px;
	width: 46px;
}

.teaser-options-pair .teaser-option[data-icon="yes"]:before {
	background-image: url(../assets/images/icons/yes.svg);
}

.teaser-options-pair .teaser-option[data-icon="no"]:before {
	background-image: url(../assets/images/icons/no.svg);
}

/* ---- filing status: single column, so the icon sits inline to the left ---- */

.teaser-options-list .teaser-option {
	flex-direction: row;
	gap: 14px;
	justify-content: flex-start;
}

.teaser-options-list .teaser-option:before {
	height: 40px;
	width: 40px;
}

.teaser-option[data-value="single"]:before {
	background-image: url(../assets/images/icons/s3-1.svg);
}

.teaser-option[data-value="head_of_household"]:before {
	background-image: url(../assets/images/icons/s3-2.svg);
}

.teaser-option[data-value="married_filing_separately"]:before {
	background-image: url(../assets/images/icons/s3-3.svg);
}

.teaser-option[data-value="married_filing_jointly"]:before {
	background-image: url(../assets/images/icons/s3-4.svg);
}

.teaser-options-list .teaser-option[data-value="unsure"]:before {
	background-image: url(../assets/images/icons/unsure.svg);
	height: 40px;
	width: 40px;
}

@media (max-width: 767px) {
	.teaser-step[data-field="amount_owed"] .teaser-option,
	.teaser-options-pair .teaser-option {
		min-height: 92px;
	}

	.teaser-step[data-field="amount_owed"] .teaser-option:before {
		height: 36px;
		width: 62px;
	}

	.teaser-options-pair .teaser-option:before {
		height: 38px;
		width: 38px;
	}
}
