/* =========================================================
   ARTIZAN HOME RISK SCORECARD
   Brand:
   Red:       #DF2417
   Dark Gray: #2A3139
   Gray:      #4D5968
   White:     #FFFFFF
   ========================================================= */

.pmhrs-scorecard {
	--artizan-red: #DF2417;
	--artizan-dark: #2A3139;
	--artizan-gray: #4D5968;
	--artizan-white: #FFFFFF;

	--risk-green: #58C94A;
	--risk-yellow: #F4D64D;
	--risk-orange: #FF8A3D;
	--risk-red: #F43631;

	max-width: 950px;
	margin: 50px auto;
	padding: 0 20px;

	color: var(--artizan-dark);

	font-family:
		"Nunito Sans",
		Arial,
		sans-serif;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.pmhrs-card {
	background: var(--artizan-white);

	border-radius: 10px;

	padding: 48px 54px;

	box-shadow:
		0 12px 38px
		rgba(42, 49, 57, 0.10);

	border-top:
		6px solid
		var(--artizan-red);
}


/* =========================================================
   INTRO
   ========================================================= */

.pmhrs-intro {
	text-align: center;
}

.pmhrs-eyebrow {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 13px;

	font-weight: 600;

	text-transform: uppercase;

	letter-spacing: 1.8px;

	color: var(--artizan-gray);

	margin-bottom: 12px;
}

.pmhrs-card h2 {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 38px;

	line-height: 1.15;

	font-weight: 600;

	text-transform: uppercase;

	color: var(--artizan-dark);

	margin:
		10px
		0
		18px;
}

.pmhrs-intro p {
	max-width: 650px;

	margin:
		0
		auto
		28px;

	font-size: 18px;

	line-height: 1.6;

	color: var(--artizan-gray);
}


/* =========================================================
   PRIMARY BUTTONS
   ========================================================= */

.pmhrs-button {
	display: inline-block;

	background: var(--artizan-red);

	color: var(--artizan-white);

	border:
		2px solid
		var(--artizan-red);

	border-radius: 5px;

	padding:
		16px
		30px;

	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 16px;

	font-weight: 600;

	text-transform: uppercase;

	text-decoration: none;

	text-align: center;

	cursor: pointer;

	transition:
		background .2s ease,
		border-color .2s ease,
		transform .2s ease;
}

.pmhrs-button:hover,
.pmhrs-button:focus {
	background: var(--artizan-dark);

	border-color: var(--artizan-dark);

	color: var(--artizan-white);

	transform: translateY(-1px);
}


/* =========================================================
   QUIZ PROGRESS
   ========================================================= */

.pmhrs-progress-wrap {
	margin-bottom: 34px;
}

.pmhrs-progress-text {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 13px;

	font-weight: 600;

	text-transform: uppercase;

	letter-spacing: 1px;

	color: var(--artizan-gray);

	margin-bottom: 10px;
}

.pmhrs-progress {
	width: 100%;

	height: 8px;

	background: #E8EAED;

	border-radius: 100px;

	overflow: hidden;
}

.pmhrs-progress-bar {
	height: 100%;

	width: 0;

	background: var(--artizan-red);

	transition:
		width .25s ease;
}


/* =========================================================
   QUESTIONS
   ========================================================= */

.pmhrs-fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.pmhrs-question-title {
	display: block;

	width: 100%;

	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 28px;

	font-weight: 600;

	line-height: 1.3;

	color: var(--artizan-dark);

	margin-bottom: 26px;
}

.pmhrs-answers {
	display: grid;
	gap: 12px;
}


/* =========================================================
   ANSWER BUTTONS
   ========================================================= */

.pmhrs-answer {
	width: 100%;

	padding: 18px 20px;

	background: var(--artizan-white);

	border:
		1px solid #D9DDE1;

	border-radius: 6px;

	text-align: left;

	font-family:
		"Nunito Sans",
		Arial,
		sans-serif;

	font-size: 16px;

	font-weight: 700;

	color: var(--artizan-dark) !important;

	cursor: pointer;

	box-shadow:
		0 2px 8px
		rgba(42, 49, 57, .04);

	transition:
		background .15s ease,
		border-color .15s ease,
		color .15s ease,
		transform .15s ease;
}


/*
   Force these colors so Elementor / theme hover
   styles cannot make the answer text disappear.
*/

.pmhrs-scorecard .pmhrs-answer,
.pmhrs-scorecard .pmhrs-answer:hover,
.pmhrs-scorecard .pmhrs-answer:focus,
.pmhrs-scorecard .pmhrs-answer:active {
	color: var(--artizan-dark) !important;
}

.pmhrs-scorecard .pmhrs-answer:hover,
.pmhrs-scorecard .pmhrs-answer:focus {
	background: #FFF5F4 !important;

	border-color: var(--artizan-red) !important;

	color: var(--artizan-dark) !important;

	transform: translateY(-1px);
}

.pmhrs-scorecard .pmhrs-answer.is-selected {
	background: var(--artizan-red) !important;

	border-color: var(--artizan-red) !important;

	color: var(--artizan-white) !important;
}


/* =========================================================
   BACK / RETAKE
   ========================================================= */

.pmhrs-navigation {
	margin-top: 22px;
}

.pmhrs-back,
.pmhrs-restart {
	border: 0;

	background: transparent;

	color: var(--artizan-gray);

	font-family:
		"Nunito Sans",
		Arial,
		sans-serif;

	font-size: 14px;

	font-weight: 700;

	text-decoration: underline;

	cursor: pointer;
}

.pmhrs-back:hover,
.pmhrs-restart:hover {
	color: var(--artizan-red);
}


/* =========================================================
   RESULTS
   ========================================================= */

.pmhrs-results {
	text-align: center;
}


/* =========================================================
   RISK SPECTRUM
   ========================================================= */

.pmhrs-spectrum-wrap {
	margin:
		8px
		auto
		44px;
}

.pmhrs-spectrum {
	position: relative;

	width: 100%;

	height: 28px;

	border-radius: 100px;

	background:
		linear-gradient(
			to right,
			var(--risk-green) 0%,
			var(--risk-green) 24%,
			var(--risk-yellow) 25%,
			var(--risk-yellow) 49%,
			var(--risk-orange) 50%,
			var(--risk-orange) 74%,
			var(--risk-red) 75%,
			var(--risk-red) 100%
		);

	box-shadow:
		inset 0 1px 3px
		rgba(0, 0, 0, .12);
}


/* Segment separators */

.pmhrs-spectrum::before {
	content: "";

	position: absolute;

	inset: 0;

	pointer-events: none;

	background:
		linear-gradient(
			to right,
			transparent 24.8%,
			rgba(255,255,255,.85) 24.8%,
			rgba(255,255,255,.85) 25.2%,
			transparent 25.2%,
			transparent 49.8%,
			rgba(255,255,255,.85) 49.8%,
			rgba(255,255,255,.85) 50.2%,
			transparent 50.2%,
			transparent 74.8%,
			rgba(255,255,255,.85) 74.8%,
			rgba(255,255,255,.85) 75.2%,
			transparent 75.2%
		);
}


/* Marker */

.pmhrs-spectrum-marker {
	position: absolute;

	top: 50%;

	transform:
		translate(-50%, -50%);

	width: 24px;

	height: 24px;

	border-radius: 50%;

	background: var(--artizan-white);

	border:
		5px solid
		var(--artizan-dark);

	box-sizing: border-box;

	z-index: 2;
}

.pmhrs-spectrum-marker-score {
	position: absolute;

	left: 50%;

	bottom: 31px;

	transform:
		translateX(-50%);

	min-width: 38px;

	padding:
		4px
		8px;

	background: var(--artizan-dark);

	color: var(--artizan-white);

	border-radius: 4px;

	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 13px;

	font-weight: 600;
}


/* Spectrum labels */

.pmhrs-spectrum-labels {
	display: grid;

	grid-template-columns:
		repeat(4, 1fr);

	margin-top: 12px;
}

.pmhrs-spectrum-label {
	display: flex;

	flex-direction: column;

	gap: 2px;

	font-size: 13px;

	color: var(--artizan-gray);
}

.pmhrs-spectrum-label strong {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 14px;

	font-weight: 600;

	color: var(--artizan-dark);
}


/* =========================================================
   SCORE
   ========================================================= */

.pmhrs-score {
	display: flex;

	justify-content: center;

	align-items: baseline;

	gap: 4px;

	margin:
		0
		0
		12px;
}

.pmhrs-score-number {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 86px;

	font-weight: 600;

	line-height: 1;
}

.pmhrs-score-outof {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 45px;

	font-weight: 600;

	color: var(--artizan-dark);
}


/* Score colors */

.pmhrs-level-green .pmhrs-score-number {
	color: var(--risk-green);
}

.pmhrs-level-yellow .pmhrs-score-number {
	color: #D8B422;
}

.pmhrs-level-orange .pmhrs-score-number {
	color: #F47C20;
}

.pmhrs-level-red .pmhrs-score-number {
	color: var(--artizan-red);
}


/* =========================================================
   RESULT TITLE + DESCRIPTION
   ========================================================= */

.pmhrs-result-title {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 38px;

	line-height: 1.15;

	font-weight: 600;

	text-transform: uppercase;

	color: var(--artizan-dark);

	margin:
		0
		0
		14px;
}

.pmhrs-level-red .pmhrs-result-title {
	color: var(--artizan-red);
}

.pmhrs-result-description {
	max-width: 680px;

	margin:
		0
		auto
		34px;

	font-size: 18px;

	line-height: 1.6;

	color: var(--artizan-gray);
}


/* =========================================================
   FINDINGS
   ========================================================= */

.pmhrs-findings {
	max-width: 700px;

	margin:
		0
		auto
		34px;

	padding-top: 28px;

	border-top:
		1px solid #E0E3E6;

	text-align: left;
}

.pmhrs-findings-title {
	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 18px;

	font-weight: 600;

	text-transform: uppercase;

	letter-spacing: 1px;

	text-align: center;

	color: var(--artizan-dark);

	margin:
		0
		0
		20px;
}

.pmhrs-findings-list {
	list-style: none;

	padding: 0;

	margin: 0;
}

.pmhrs-findings-list li {
	position: relative;

	padding:
		14px
		15px
		14px
		46px;

	font-size: 17px;

	font-weight: 700;

	line-height: 1.4;

	color: var(--artizan-dark);

	border-bottom:
		1px solid #ECEEF0;
}

.pmhrs-findings-list li:last-child {
	border-bottom: 0;
}

.pmhrs-findings-list li::before {
	content: "✓";

	position: absolute;

	left: 12px;

	top: 13px;

	width: 24px;

	height: 24px;

	display: flex;

	align-items: center;

	justify-content: center;

	border-radius: 50%;

	background: #FFF1EF;

	color: var(--artizan-red);

	font-size: 14px;

	font-weight: 800;
}


/* =========================================================
   URGENT ELECTRICAL WARNING
   Burning smell / buzzing / unusual warmth
   ========================================================= */

.pmhrs-findings-list li.pmhrs-finding-urgent {
	background: #FFF0EE;

	border:
		2px solid
		var(--artizan-red);

	border-radius: 7px;

	color: var(--artizan-dark);

	margin:
		12px
		0;

	padding:
		20px
		20px
		20px
		58px;

	font-weight: 800;

	box-shadow:
		0 5px 16px
		rgba(223, 36, 23, .08);
}

.pmhrs-findings-list li.pmhrs-finding-urgent::before {
	content: "!";

	left: 16px;

	top: 18px;

	width: 28px;

	height: 28px;

	background: var(--artizan-red);

	color: var(--artizan-white);

	font-size: 18px;

	font-weight: 800;
}

.pmhrs-findings-list li.pmhrs-finding-urgent::after {
	content: "URGENT WARNING SIGN";

	display: block;

	margin-top: 7px;

	font-family:
		"Bai Jamjuree",
		Arial,
		sans-serif;

	font-size: 12px;

	font-weight: 600;

	letter-spacing: 1.1px;

	text-transform: uppercase;

	color: var(--artizan-red);
}


/* =========================================================
   SINGLE RESULTS CTA
   ========================================================= */

.pmhrs-results-cta {
	display: block;

	width:
		min(
			520px,
			100%
		);

	box-sizing: border-box;

	margin:
		12px
		auto
		0;

	padding:
		18px
		30px;

	font-size: 18px;
}


/* Red result CTA */

.pmhrs-level-red .pmhrs-results-cta {
	background: var(--artizan-red);

	border-color: var(--artizan-red);

	font-size: 19px;
}

.pmhrs-level-red .pmhrs-results-cta:hover,
.pmhrs-level-red .pmhrs-results-cta:focus {
	background: var(--artizan-dark);

	border-color: var(--artizan-dark);
}


/* =========================================================
   RETAKE
   ========================================================= */

.pmhrs-restart {
	display: block;

	width: fit-content;

	margin:
		24px
		auto
		0;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.pmhrs-button:focus-visible,
.pmhrs-answer:focus-visible,
.pmhrs-back:focus-visible,
.pmhrs-restart:focus-visible {
	outline:
		3px solid
		rgba(223, 36, 23, .35);

	outline-offset: 3px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

	.pmhrs-scorecard {
		margin: 25px auto;

		padding:
			0
			14px;
	}

	.pmhrs-card {
		padding:
			32px
			22px;
	}

	.pmhrs-card h2 {
		font-size: 29px;
	}

	.pmhrs-question-title {
		font-size: 23px;
	}

	.pmhrs-spectrum-wrap {
		margin-bottom: 34px;
	}

	.pmhrs-spectrum {
		height: 22px;
	}

	.pmhrs-spectrum-marker {
		width: 20px;
		height: 20px;
		border-width: 4px;
	}

	.pmhrs-spectrum-label strong {
		font-size: 12px;
	}

	.pmhrs-spectrum-label span {
		font-size: 11px;
	}

	.pmhrs-score-number {
		font-size: 62px;
	}

	.pmhrs-score-outof {
		font-size: 34px;
	}

	.pmhrs-result-title {
		font-size: 28px;
	}

	.pmhrs-result-description {
		font-size: 16px;
	}

	.pmhrs-findings-list li {
		font-size: 15px;

		padding-left: 42px;
	}

	.pmhrs-findings-list li.pmhrs-finding-urgent {
		padding:
			18px
			16px
			18px
			52px;
	}

	.pmhrs-results-cta {
		width: 100%;

		font-size: 16px;
	}

	.pmhrs-button {
		width: 100%;

		box-sizing: border-box;
	}
}


/* =========================================================
   WORDPRESS HIDDEN ATTRIBUTE
   ========================================================= */

[hidden] {
	display: none !important;
}

/* =========================================================
   LEAD CAPTURE SCREEN
   ========================================================= */

.pmhrs-lead-capture {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
}

.pmhrs-lead-title {
	font-family: "Bai Jamjuree", Arial, sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--artizan-dark);
	margin: 0 0 14px;
}

.pmhrs-lead-description {
	max-width: 560px;
	margin: 0 auto 30px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--artizan-gray);
}

.pmhrs-lead-form {
	text-align: left;
}

.pmhrs-form-group {
	margin-bottom: 18px;
}

.pmhrs-form-group label {
	display: block;
	margin-bottom: 7px;

	font-family: "Bai Jamjuree", Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;

	color: var(--artizan-dark);
}

.pmhrs-form-group input {
	width: 100%;
	box-sizing: border-box;

	padding: 14px 16px;

	background: #FFFFFF;
	border: 1px solid #D9DDE1;
	border-radius: 6px;

	font-family: "Nunito Sans", Arial, sans-serif;
	font-size: 16px;
	color: var(--artizan-dark);

	transition:
		border-color .15s ease,
		box-shadow .15s ease;
}

.pmhrs-form-group input:focus {
	outline: none;

	border-color: var(--artizan-red);

	box-shadow:
		0 0 0 3px
		rgba(223, 36, 23, .12);
}

.pmhrs-lead-submit {
	display: block;
	width: 100%;

	margin-top: 10px;

	padding: 17px 24px;

	font-size: 17px;
}

.pmhrs-lead-submit:disabled {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
}

.pmhrs-privacy-text {
	margin: 14px 0 0;

	font-size: 13px;
	line-height: 1.5;

	color: var(--artizan-gray);

	text-align: center;
}

.pmhrs-form-error {
	margin-bottom: 16px;

	padding: 12px 14px;

	background: #FFF0EE;

	border:
		1px solid
		var(--artizan-red);

	border-radius: 6px;

	color: var(--artizan-red);

	font-size: 14px;
	font-weight: 700;
}


/* =========================================================
   LEAD CAPTURE MOBILE
   ========================================================= */

@media (max-width: 700px) {

	.pmhrs-lead-title {
		font-size: 28px;
	}

	.pmhrs-lead-description {
		font-size: 16px;
	}

	.pmhrs-form-group input {
		font-size: 16px;
		padding: 14px;
	}

	.pmhrs-lead-submit {
		font-size: 16px;
	}

}