/* Contained components for Free profile recommendations and explicit enquiry consent. */
.single-directory_dir_ltg .free-listing > section.amtr-profile-details {
	display: flow-root;
	float: none;
	clear: both;
	padding-bottom: 8px;
}
.listing-detailed-view section.amtr-related-teachers {
	display: flow-root;
	float: none;
	clear: both;
	padding: 16px 0 40px;
	background: #f4f8f6;
}
.amtr-related-teachers > .content-wrap { display: flow-root; float: none; }
.amtr-related-teachers h2 { float: none; margin: 0; padding: 0 0 12px; }
.amtr-related-teachers .content-wrap > p { float: none; margin: 0; padding: 0 0 20px; }
.amtr-related-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.amtr-related-cards .amtr-related-card {
	display: flow-root;
	float: none;
	margin: 0;
	padding: 20px;
	border: 1px solid #cee0d7;
	border-radius: 12px;
	background: #fff;
	min-width: 0;
	overflow-wrap: anywhere;
}
.amtr-related-card h3 { float: none; margin: 0; padding: 10px 0; font-size: 1.15rem; line-height: 1.4; }
.amtr-related-card h3 a { color: #056449; text-decoration: underline; }
.amtr-related-card p { float: none; margin: 0; padding: 0 0 8px; font-size: .9rem; line-height: 1.5; }
.amtr-related-card p:last-child { padding-bottom: 0; }
.amtr-related-tier { display: inline-block; color: #056449; font-size: .8rem; font-weight: 700; }
#gform_2 fieldset.amtr-related-consent {
	display: flow-root;
	clear: both;
	box-sizing: border-box;
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	margin: 0 0 20px;
	padding: 16px 20px 20px;
	border: 1px solid #cee0d7;
	border-radius: 10px;
	background: #f4f8f6;
}
#gform_2 .amtr-related-consent legend { float: none; width: auto; margin: 0; padding: 0 8px; font-size: 1rem; font-weight: 700; }
#gform_2 .amtr-related-consent p { float: none; width: 100%; margin: 0; padding: 0 0 12px; line-height: 1.5; }
#gform_2 .amtr-related-consent ul { display: block; float: none; box-sizing: border-box; width: 100%; margin: 0; padding: 0 0 16px 22px; list-style: disc outside; }
#gform_2 .amtr-related-consent ul > li { display: list-item; list-style: disc outside; float: none; margin: 0; padding: 0 0 8px; line-height: 1.5; }
#gform_2 .amtr-related-consent .amtr-related-choice {
	display: flex;
	float: none;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-weight: 700;
	cursor: pointer;
}
#gform_2 .amtr-related-choice input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; }
#gform_2 .amtr-related-message { display: flow-root; clear: both; }
#gform_2 .amtr-related-message-guidance { display: flow-root; clear: both; padding: 0 0 12px; }
#gform_2 .amtr-related-message-guidance[hidden],
#gform_2 #amtr-related-message-review[hidden] { display: none; }
#gform_2 .amtr-related-message-guidance p,
#gform_2 .amtr-related-no-script { float: none; width: 100%; margin: 0; padding: 0; line-height: 1.5; font-size: .95rem; }
#gform_2 #amtr-related-message-review { margin: 0; padding: 12px 0 0; font-weight: 700; color: #056449; }
@media (max-width: 799.98px) {
	.amtr-related-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 539.98px) {
	.amtr-related-cards { grid-template-columns: minmax(0, 1fr); }
	.listing-detailed-view section.amtr-related-teachers { padding: 16px 0 30px; }
	#gform_2 fieldset.amtr-related-consent { padding: 12px 14px 16px; }
}
