/* Investor Profile Quiz — namespaced ipq- */
.ipq-wrap {
	max-width: 860px;
	margin: 0 auto;
	color: #1f2937;
	font-size: 16px;
	line-height: 1.55;
}

.ipq-title {
	font-size: 1.9rem;
	margin: 0 0 0.5rem;
	color: #111827;
}

.ipq-intro {
	color: #4b5563;
	margin: 0 0 1.5rem;
}

.ipq-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.25rem 1.4rem;
	margin: 0 0 1.1rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.ipq-question {
	border: 1px solid #e5e7eb;
}

.ipq-qtitle {
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0 0.4rem;
	color: #111827;
}

.ipq-qnum {
	display: inline-block;
	background: #1e3a8a;
	color: #ffffff;
	font-size: 0.8rem;
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
	margin-right: 0.45rem;
	vertical-align: 2px;
}

/* Personal details */
.ipq-personal-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.ipq-personal-field {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.ipq-personal-field label {
	font-weight: 600;
}

.ipq-optional {
	font-weight: 400;
	color: #6b7280;
}

.ipq-personal-field input[type="text"],
.ipq-personal-field input[type="date"] {
	padding: 0.55rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	color: inherit;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
}

.ipq-contact-method {
	margin-top: 0.9rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.ipq-cm-label {
	font-weight: 600;
}

.ipq-cm-opt {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
}

/* Meter */
.ipq-meter-card {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.10);
}
/* JS fallback when a theme's overflow rules defeat `position: sticky`. */
.ipq-meter-card.ipq-pinned {
	position: fixed;
	z-index: 60;
	margin-top: 0;
	margin-bottom: 0;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
.ipq-meter-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.4rem;
}

.ipq-meter-label {
	font-weight: 700;
}

.ipq-meter-value {
	font-weight: 700;
	color: #1e3a8a;
}

.ipq-meter {
	width: 100%;
	display: block;
	max-height: 480px; /* backstop: never run off-screen */
}
@media (max-width: 640px) {
	.ipq-meter { max-height: 320px; }
}}

.ipq-meter-hint {
	color: #6b7280;
	font-size: 0.9rem;
	margin: 0.4rem 0 0;
}

/* Option pills */
.ipq-options {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 0.8rem;
}

.ipq-opt {
	display: block;
	cursor: pointer;
}

.ipq-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ipq-pill {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ipq-opt:hover .ipq-pill {
	border-color: #93c5fd;
}

.ipq-radio:checked + .ipq-pill {
	border-color: #1e3a8a;
	background: #eff6ff;
	box-shadow: 0 0 0 1px #1e3a8a inset;
}

.ipq-radio:focus-visible + .ipq-pill {
	outline: 2px solid #1e3a8a;
	outline-offset: 2px;
}

.ipq-letter {
	flex: 0 0 auto;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: #e5e7eb;
	color: #374151;
	font-weight: 700;
	font-size: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.1rem;
}

.ipq-radio:checked + .ipq-pill .ipq-letter {
	background: #1e3a8a;
	color: #ffffff;
}

.ipq-opttext {
	flex: 1 1 auto;
}

/* Q8 chart */
.ipq-q8chart-wrap {
	margin-top: 1rem;
	border-top: 1px dashed #e5e7eb;
	padding-top: 0.8rem;
}

.ipq-q8chart {
	width: 100%;
	display: block;
	max-height: 480px; /* backstop: never run off-screen */
}
@media (max-width: 640px) {
	.ipq-q8chart { max-height: 320px; }
}}

/* Result card */
.ipq-result {
	border: 2px solid #1e3a8a;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	text-align: center;
}

.ipq-result-title {
	margin: 0 0 0.3rem;
	font-size: 1.15rem;
	color: #111827;
}

.ipq-result-name {
	font-size: 2rem;
	font-weight: 800;
	margin: 0.2rem 0;
}

.ipq-result-score {
	color: #4b5563;
	margin: 0 0 0.8rem;
}

.ipq-mixchart {
	width: 100%;
	display: block;
	margin: 0 auto;
	max-height: 480px; /* backstop: never run off-screen */
}
@media (max-width: 640px) {
	.ipq-mixchart { max-height: 320px; }
}}

.ipq-result-note {
	color: #6b7280;
	font-size: 0.9rem;
	margin: 0.8rem 0 0;
}

/* Buttons */
.ipq-actions {
	margin: 1.2rem 0;
}

.ipq-btn {
	display: inline-block;
	background: #1e3a8a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 0.7rem 1.4rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.ipq-btn:hover {
	background: #1e40af;
}

.ipq-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.ipq-report-msg,
.ipq-lead-msg {
	margin: 0.6rem 0 0;
	font-size: 0.95rem;
}

.ipq-report-msg[data-ipq-ok="0"],
.ipq-lead-msg[data-ipq-ok="0"] {
	color: #b91c1c;
}

.ipq-report-msg[data-ipq-ok="1"],
.ipq-lead-msg[data-ipq-ok="1"] {
	color: #166534;
}

/* Share links + QR code */
.ipq-share {
	display: flex;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
	margin: 1em 0;
	padding: 1em 1.25em;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fbfdff;
}

.ipq-qr {
	width: 132px;
	height: 132px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
}

.ipq-share-msg {
	font-weight: 600;
	color: #15803d;
	margin: 0;
	flex-basis: 100%;
}

.ipq-share-url {
	flex: 1 1 100%;
	font-size: 0.8em;
}

.ipq-ts-line {
	color: #6b7280;
	font-size: 0.8em;
	margin: 0.3em 0 0;
}

/* A stylesheet display:grid/flex can override the hidden attribute;
   keep hidden elements hidden inside the quiz (same fix as the other
   Taylor Wealth Designers calculators). */
.ipq-wrap [hidden] {
	display: none !important;
}

/* Lead form */
.ipq-lead {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.25rem 1.4rem;
	margin: 0 0 1.1rem;
}

.ipq-lead-title {
	margin: 0 0 0.3rem;
	font-size: 1.2rem;
}

.ipq-lead-sub {
	color: #4b5563;
	margin: 0 0 1rem;
}

.ipq-lead-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.ipq-lead-field {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: 0.8rem;
}

.ipq-lead-field label {
	font-weight: 600;
}

.ipq-lead-field input {
	padding: 0.55rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	width: 100%;
	box-sizing: border-box;
}

.ipq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ipq-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.4rem 0 1rem;
	cursor: pointer;
}

.ipq-lead-submit {
	width: 100%;
}

/* Footer */
.ipq-credit {
	margin: 1.5rem 0 0.5rem;
	font-size: 0.95rem;
}

.ipq-disclaimer {
	color: #6b7280;
	font-size: 0.85rem;
	margin: 0.4rem 0;
}

@media (max-width: 560px) {
	.ipq-card,
	.ipq-lead {
		padding: 1rem;
	}

	.ipq-title {
		font-size: 1.5rem;
	}

	.ipq-result-name {
		font-size: 1.6rem;
	}
}

/* On-screen copyright footer. */
.ipq-wrap .ipq-copyright { border-top: 1px solid #e2e8f0; margin: 1.5em 0 0; padding-top: 0.75em; text-align: center; color: #9ca3af; font-size: 0.8em; }

/* Province dropdown on the lead form. */
.ipq-wrap .ipq-lead-field select.ipq-lead-province {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 9px 11px;
	font-size: 1em;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #111827;
}
.ipq-wrap .ipq-lead-field select.ipq-lead-province:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}
.ipq-wrap .ipq-province-note {
	font-size: 0.85em;
	color: #6b7280;
	margin: 6px 0 0;
}
.ipq-wrap .ipq-province-note[hidden] { display: none !important; }

/* Calculator version stamp. */
.ipq-wrap .ipq-version { text-align: center; color: #9ca3af; font-size: 0.78em; margin: 0.25em 0 0; }
