/* TRH Four Pillar Leads — public styles.
   Deliberately distinct from the news site's own visual language (a warm
   navy/teal "consulting" palette vs. the newsroom's own colors) so readers
   can tell TRH News and Four Pillar Marketing apart at a glance, while still
   feeling like part of the same family of pages: rounded cards, generous
   spacing, system font stack matching the rest of the site. */

.tfpl {
	--tfpl-navy: #0f2a3d;
	--tfpl-teal: #0d8a7e;
	--tfpl-teal-dark: #086a61;
	--tfpl-bg: #f4f8f8;
	--tfpl-border: #d8e3e2;
	--tfpl-text: #1c2b30;
	--tfpl-muted: #5b6d70;
	box-sizing: border-box;
}
.tfpl *, .tfpl *::before, .tfpl *::after { box-sizing: inherit; }

.tfpl-card {
	background: #fff;
	border: 1px solid var(--tfpl-border);
	border-radius: 14px;
	padding: 20px;
	max-width: 720px;
	margin: 24px auto;
	box-shadow: 0 1px 3px rgba(15,42,61,0.06);
}
@media (min-width: 640px) {
	.tfpl-card { padding: 32px; }
}

.tfpl-form-head { margin-bottom: 18px; }
.tfpl-h1 {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 8px;
	color: var(--tfpl-navy);
	font-weight: 800;
}
.tfpl-h2 {
	font-size: 1.35rem;
	margin: 0 0 10px;
	color: var(--tfpl-navy);
	font-weight: 800;
}
.tfpl-h3 {
	font-size: 1.15rem;
	margin: 0 0 12px;
	color: var(--tfpl-navy);
	font-weight: 700;
}
.tfpl-sub {
	color: var(--tfpl-muted);
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
}

.tfpl-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-bottom: 14px;
}
@media (min-width: 560px) {
	.tfpl-grid { grid-template-columns: 1fr 1fr; }
}

.tfpl-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.tfpl-field span { font-size: 0.85rem; font-weight: 600; color: var(--tfpl-navy); }
.tfpl-field input[type=text],
.tfpl-field input[type=email],
.tfpl-field input[type=tel],
.tfpl-field select,
.tfpl-field textarea {
	width: 100%;
	font-size: 16px; /* prevents iOS zoom-on-focus */
	padding: 11px 12px;
	border: 1px solid var(--tfpl-border);
	border-radius: 8px;
	background: var(--tfpl-bg);
	color: var(--tfpl-text);
	font-family: inherit;
}
.tfpl-field input:focus,
.tfpl-field select:focus,
.tfpl-field textarea:focus {
	outline: 2px solid var(--tfpl-teal);
	outline-offset: 1px;
	background: #fff;
}
.tfpl-field textarea { resize: vertical; min-height: 70px; }

.tfpl-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 16px;
}
.tfpl-fieldset legend {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--tfpl-navy);
	padding: 0 0 8px;
	width: 100%;
}

.tfpl-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tfpl-chip {
	position: relative;
	display: inline-flex;
}
.tfpl-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tfpl-chip span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--tfpl-border);
	border-radius: 999px;
	font-size: 0.88rem;
	color: var(--tfpl-text);
	background: var(--tfpl-bg);
	cursor: pointer;
	transition: background .12s, border-color .12s, color .12s;
}
.tfpl-chip input:checked + span {
	background: var(--tfpl-teal);
	border-color: var(--tfpl-teal);
	color: #fff;
}
.tfpl-chip input:focus-visible + span { outline: 2px solid var(--tfpl-navy); outline-offset: 2px; }

.tfpl-yesno-set { display: flex; flex-direction: column; gap: 4px; }
.tfpl-yesno-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tfpl-border);
}
@media (min-width: 560px) {
	.tfpl-yesno-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.tfpl-yesno-label { font-size: 0.95rem; color: var(--tfpl-text); }
.tfpl-yesno-opts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.9rem; }
.tfpl-yesno-opts label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

.tfpl-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--tfpl-muted);
	margin: 16px 0;
	line-height: 1.4;
}
.tfpl-consent input { margin-top: 3px; }

.tfpl-btn {
	display: inline-block;
	font-weight: 700;
	font-size: 1rem;
	padding: 13px 22px;
	border-radius: 9px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: transform .08s, box-shadow .12s, background .12s;
	width: 100%;
}
@media (min-width: 560px) { .tfpl-btn { width: auto; } }
.tfpl-btn-primary { background: var(--tfpl-teal); color: #fff; }
.tfpl-btn-primary:hover { background: var(--tfpl-teal-dark); color: #fff; }
.tfpl-btn-primary:active { transform: translateY(1px); }
.tfpl-btn-outline { background: transparent; border-color: var(--tfpl-navy); color: var(--tfpl-navy); }
.tfpl-btn-outline:hover { background: var(--tfpl-navy); color: #fff; }
.tfpl-btn[disabled] { opacity: 0.6; cursor: default; }

.tfpl-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; }
.tfpl-status.is-error { color: #b32d2e; }
.tfpl-status.is-success { color: var(--tfpl-teal-dark); }
.tfpl-fine { font-size: 0.75rem; color: var(--tfpl-muted); margin: 10px 0 0; }

.tfpl-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Hub page */
.tfpl-hub { max-width: 920px; margin: 24px auto; display: flex; flex-direction: column; gap: 20px; }
.tfpl-hub-section {
	background: #fff;
	border: 1px solid var(--tfpl-border);
	border-radius: 14px;
	padding: 22px;
}
.tfpl-hub-trh { border-left: 5px solid var(--tfpl-navy); }
.tfpl-hub-4pm { border-left: 5px solid var(--tfpl-teal); }
.tfpl-service-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px 16px;
	list-style: none;
	padding: 0;
	margin: 14px 0 18px;
}
@media (min-width: 560px) { .tfpl-service-list { grid-template-columns: 1fr 1fr; } }
.tfpl-service-list li {
	font-size: 0.92rem;
	color: var(--tfpl-text);
	padding-left: 20px;
	position: relative;
}
.tfpl-service-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--tfpl-teal);
	font-weight: 700;
}
.tfpl-hub-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Small CTA box (footer + article + directory) */
.tfpl-cta-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: linear-gradient(135deg, var(--tfpl-navy), #163c54);
	color: #fff;
	border-radius: 14px;
	padding: 20px;
	max-width: 720px;
	margin: 28px auto;
}
@media (min-width: 560px) {
	.tfpl-cta-box { flex-direction: row; align-items: center; justify-content: space-between; }
}
.tfpl-cta-copy { display: flex; flex-direction: column; gap: 4px; }
.tfpl-cta-copy strong { font-size: 1.05rem; }
.tfpl-cta-copy span { font-size: 0.88rem; color: #cfe4e0; }
.tfpl-cta-box .tfpl-btn-primary { flex-shrink: 0; }

.tfpl-footer-cta { padding: 0 16px; }

/* Growth Score (Phase 2) */
.tfpl-score-ring { display: flex; align-items: center; justify-content: center; margin: 8px 0 18px; }
.tfpl-score-num { font-size: 2.4rem; font-weight: 800; color: var(--tfpl-navy); }
.tfpl-progress-bar { background: var(--tfpl-border); border-radius: 999px; height: 8px; overflow: hidden; margin: 6px 0 18px; }
.tfpl-progress-fill { background: var(--tfpl-teal); height: 100%; transition: width .2s; }
