/* Form finder — public decision-tree UI */

.te-form-assistant {
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #030a00;
	font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 27px;
}

/* Match theme content blocks (form-notice / page-header right column). */
.te-form-assistant-block {
	margin: 0 0 70px;
}

.te-form-assistant-block .container {
	display: grid;
	grid-template-columns: 25.546875% minmax(0, 620px);
	column-gap: 40px;
}

.te-form-assistant-block .te-form-assistant {
	grid-column: 2;
	max-width: none;
}

@media only screen and (max-width: 1024px) {
	.te-form-assistant-block .container {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-form-assistant-block .te-form-assistant {
		grid-column: 1;
	}
}

.te-form-assistant-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.te-form-assistant-heading {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	color: #030a00;
}

.te-form-assistant-live {
	position: relative;
	min-height: 0;
	font-size: 0.95rem;
	color: #b00020;
}

.te-form-assistant-live:empty {
	display: none;
}

.te-form-assistant-error {
	color: #b00020;
	margin: 0;
}

.te-form-assistant-step {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Question */

.te-form-assistant-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
}

.te-form-assistant-form fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	width: 100%;
	min-width: 0;
}

.te-form-assistant-question-title {
	display: block;
	margin: 0 0 24px;
	padding: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 47px;
	letter-spacing: -0.36px;
	color: #403e3e;
}

.te-form-assistant-body {
	margin: 0 0 16px;
}

.te-form-assistant-body:last-of-type {
	margin-bottom: 24px;
}

.te-form-assistant-help {
	margin: 0 0 16px;
	font-size: 16px;
	color: #555;
}

.te-form-assistant-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.te-form-assistant-option {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.te-form-assistant-option-input {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin: 11px 0 0;
	border: 2px solid #1d2327;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.te-form-assistant-option-input:checked {
	border-width: 7px;
	border-color: #008835;
}

.te-form-assistant-option-input:focus-visible {
	outline: 2px solid #004b6c;
	outline-offset: 3px;
}

.te-form-assistant-option-label {
	flex: 1 1 0;
	min-width: 0;
	padding: 10px 0;
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: -0.187px;
	color: #000;
	cursor: pointer;
}

.te-form-assistant-option-hint {
	flex: 1 1 100%;
	margin: -4px 0 0 36px;
	font-size: 0.9rem;
	color: #555;
}

/* Buttons & links */

.te-form-assistant-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 52px;
	border: 0;
	border-radius: 50px;
	background: #a5eeb9;
	color: #000;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	text-decoration: none;
	text-align: center;
}

.te-form-assistant-button:hover,
.te-form-assistant-button:focus-visible {
	background: #8de3a6;
	color: #000;
	text-decoration: none;
}

.te-form-assistant-button:focus-visible {
	outline: 2px solid #004b6c;
	outline-offset: 3px;
}

.te-form-assistant-button:disabled,
.te-form-assistant-button[disabled] {
	opacity: 0.38;
	cursor: not-allowed;
}

.te-form-assistant-link-button {
	appearance: none;
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #008835;
	cursor: pointer;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	text-decoration: underline;
	text-underline-position: from-font;
}

.te-form-assistant-link-button:hover,
.te-form-assistant-link-button:focus-visible {
	color: #006628;
}

.te-form-assistant-link-button:focus-visible {
	outline: 2px solid #004b6c;
	outline-offset: 2px;
}

/* Result */

.te-form-assistant-result-title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 47px;
	letter-spacing: -0.36px;
	color: #403e3e;
}

.te-form-assistant-result-summary,
.te-form-assistant-result-item-summary {
	font-size: 18px;
	line-height: 27px;
	color: #000;
}

.te-form-assistant-result-summary p,
.te-form-assistant-result-item-summary p {
	margin: 0 0 12px;
}

.te-form-assistant-result-summary p:last-child,
.te-form-assistant-result-item-summary p:last-child {
	margin-bottom: 0;
}

.te-form-assistant-result-summary ul,
.te-form-assistant-result-summary ol,
.te-form-assistant-result-item-summary ul,
.te-form-assistant-result-item-summary ol {
	margin: 0 0 12px;
	padding-left: 1.25em;
}

.te-form-assistant-result-summary li::marker,
.te-form-assistant-result-item-summary li::marker {
	color: #008835;
}

.te-form-assistant-result-summary a,
.te-form-assistant-result-item-summary a {
	color: #008835;
	text-decoration: underline;
}

.te-form-assistant-results {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.te-form-assistant-result-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

.te-form-assistant-result-item + .te-form-assistant-result-item {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #dcdcde;
}

.te-form-assistant-result-item-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
	color: #403e3e;
}

.te-form-assistant-cta {
	align-self: flex-start;
	gap: 10px;
}

.te-form-assistant-cta .external-link {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Caveat */

.te-form-assistant-caveat {
	box-sizing: border-box;
	width: 100%;
	padding: 20px 16px 16px;
	border-top: 2px solid #d97706;
	border-radius: 0 0 8px 8px;
	background: #fffbeb;
}

.te-form-assistant-caveat-header {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 20px;
}

.te-form-assistant-caveat-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.te-form-assistant-caveat-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.te-form-assistant-caveat-title {
	margin: 0;
	padding-top: 2px;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: #403e3e;
}

.te-form-assistant-caveat-body {
	font-size: 18px;
	line-height: 27px;
	color: rgba(0, 0, 0, 0.8);
}

.te-form-assistant-caveat-body p,
.te-form-assistant-caveat-body ul,
.te-form-assistant-caveat-body ol {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 27px;
}

.te-form-assistant-caveat-body p:last-child,
.te-form-assistant-caveat-body ul:last-child,
.te-form-assistant-caveat-body ol:last-child {
	margin-bottom: 0;
}

/* The theme resets every list to list-style: none, so markers have to be set here. */
.te-form-assistant-caveat-body ul,
.te-form-assistant-caveat-body ol {
	margin-left: 0;
	padding-left: 1.35em;
}

.te-form-assistant-caveat-body ul {
	list-style: disc outside;
}

.te-form-assistant-caveat-body ol {
	list-style: decimal outside;
}

.te-form-assistant-caveat-body li {
	display: list-item;
	margin: 0 0 8px;
	padding: 0;
	font-size: 18px;
	line-height: 27px;
}

.te-form-assistant-caveat-body ul li {
	list-style: disc outside;
}

.te-form-assistant-caveat-body ol li {
	list-style: decimal outside;
}

.te-form-assistant-caveat-body li:last-child {
	margin-bottom: 0;
}

.te-form-assistant-caveat-body li::before {
	content: none;
}

.te-form-assistant-caveat-body li::marker {
	color: #008835;
}

/* Your answers */

.te-form-assistant-answers {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
	padding: 40px 0 0;
	border: 0;
	border-top: 1px solid #dcdcde;
	border-radius: 0;
	background: transparent;
}

.te-form-assistant-answers-heading {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 36px;
	color: #030a00;
}

.te-form-assistant-answers-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.te-form-assistant-answers-item {
	display: grid;
	grid-template-columns: minmax(140px, 180px) 1fr auto;
	gap: 24px 40px;
	align-items: start;
	padding-bottom: 24px;
	border-bottom: 1px solid #e8e8e8;
}

.te-form-assistant-answers-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.te-form-assistant-answers-question {
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: #000;
}

.te-form-assistant-answers-value {
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	color: #000;
}

.te-form-assistant-answers-change {
	white-space: nowrap;
	justify-self: end;
}

@media (max-width: 640px) {
	.te-form-assistant-question-title,
	.te-form-assistant-result-title {
		font-size: 28px;
		line-height: 36px;
	}

	.te-form-assistant-result-item-title {
		font-size: 22px;
		line-height: 28px;
	}

	.te-form-assistant-answers-item {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.te-form-assistant-answers-change {
		justify-self: start;
	}

	.te-form-assistant-button {
		padding-left: 36px;
		padding-right: 36px;
	}
}
