/* Exit Readiness Assessment (tools/divi/layouts/assessment.php; the step-by-step
   behaviour is assets/js/assessment.js). The questions, answers, colours of the
   send button and the thank-you are Divi settings on the Contact Form. This file holds
   what those settings cannot say: answers as pills that a keyboard can reach (Divi
   hides the round buttons themselves), the progress bar, Back / Next, and the hidden
   suggested-starting-point field. */

/* The answers: pills in a row that wraps. */
.qc-assess-form .et_pb_contact_field_options_title {
	margin-bottom: 14px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: #171d64;
}
.qc-assess-form .et_pb_contact_field_options_list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.qc-assess-form .et_pb_contact_field_radio,
.qc-assess-form .et_pb_contact_field_checkbox {
	position: relative;
	flex: 0 1 auto;
	width: auto !important;
	margin: 0 !important;
}
/* The round and square buttons stay in the page, invisible, so Tab and the arrow keys
   reach them; the pill (their label) shows the state. */
.qc-assess-form .et_pb_contact_field_radio input,
.qc-assess-form .et_pb_contact_field_checkbox input {
	display: block !important;
	position: absolute;
	top: 50%;
	left: 18px;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}
.qc-assess-form .et_pb_contact_field_radio label,
.qc-assess-form .et_pb_contact_field_checkbox label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	border: 1px solid #d5dbe0;
	border-radius: 8px;
	background: #fff;
	font-size: 15px !important;
	line-height: 1.35;
	color: #232746;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.qc-assess-form .et_pb_contact_field_radio label:hover,
.qc-assess-form .et_pb_contact_field_checkbox label:hover {
	border-color: #009ad9;
}
.qc-assess-form .et_pb_contact_field_radio label i,
.qc-assess-form .et_pb_contact_field_checkbox label i {
	position: relative;
	flex: none;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	border: 1.5px solid #9aa6b0;
	background: #fff !important;
	top: 0 !important;
}
.qc-assess-form .et_pb_contact_field_checkbox label i {
	border-radius: 4px;
}
.qc-assess-form input:checked + label {
	border-color: #009ad9;
	background: #e9f6fd;
	color: #171d64;
	font-weight: 500;
}
.qc-assess-form input:checked + label i {
	border-color: #005f9f;
	background: #005f9f !important;
	box-shadow: inset 0 0 0 3px #fff;
}
.qc-assess-form .et_pb_contact_field_checkbox input:checked + label i {
	box-shadow: inset 0 0 0 2.5px #fff;
}
.qc-assess-form input:focus-visible + label {
	outline: 2px solid #005f9f;
	outline-offset: 2px;
}
/* Divi's own dot inside its round button. */
.qc-assess-form .et_pb_contact_field_radio label i::before,
.qc-assess-form .et_pb_contact_field_checkbox label i::before {
	display: none !important;
}

/* The suggested starting point: filled in for the team, never shown. */
.qc-assess-hidden {
	display: none !important;
}

/* With the script: one step at a time. Steps not shown are hidden from view only
   (assessment.js explains why not display: none). */
.qc-assess-off {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}
.qc-assess-js .et_pb_contact_form {
	position: relative;
	row-gap: 30px;
}
.qc-assess-step {
	flex: 0 0 100%;
	margin: 0;
	padding: 0;
	font-family: "Helvetica Neue LT W05_43 Lt Ex", Archivo, "Helvetica Neue", Arial, sans-serif;
	font-weight: 300;
	font-size: 28px;
	line-height: 1.2;
	color: #171d64;
	outline: none;
}
.qc-assess-step span {
	display: block;
	margin-bottom: 8px;
	font: 600 12px/1.4 Montserrat, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #0074ad;
}
.qc-assess-nav {
	display: flex;
	flex: 0 0 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 6px;
	padding-top: 26px;
	border-top: 1px solid #e3e6e8;
}
.qc-assess-nav button {
	padding: 13px 26px;
	border-radius: 6px;
	font: 600 15px/1 Montserrat, "Helvetica Neue", Arial, sans-serif;
	cursor: pointer;
}
.qc-assess-nav button[hidden] {
	display: none;
}
.qc-assess-next {
	margin-left: auto;
	border: 0;
	background: linear-gradient(135deg, #005f9f 0%, #007cb9 100%);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 95, 159, .3);
}
.qc-assess-back {
	border: 1.5px solid #005f9f;
	background: #fff;
	color: #005f9f;
}
.qc-assess-nav button:focus-visible {
	outline: 2px solid #005f9f;
	outline-offset: 3px;
}
.qc-assess-note {
	flex: 1 1 200px;
	margin: 0;
	padding: 0 !important;
	font-size: 14px;
	color: #b42318;
}
.qc-assess-note:empty {
	display: none;
}
.qc-assess-missing .et_pb_contact_field_options_title {
	color: #b42318;
}
.qc-assess-missing .et_pb_contact_field_radio label,
.qc-assess-missing .et_pb_contact_field_checkbox label {
	border-color: #e5a29b;
}
/* The sum and the send button each stay on one line. */
.qc-assess-form .et_contact_bottom_container {
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
.qc-assess-form .et_pb_contact_right {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
}
.qc-assess-form .et_pb_contact_right p,
.qc-assess-form .et_pb_contact_right label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	white-space: nowrap;
}
.qc-assess-form .et_pb_contact_submit {
	white-space: nowrap;
	margin: 0 !important;
}

/* The last step: Back beside the sum and the send button. */
.qc-assess-last .qc-assess-nav {
	flex: 0 0 auto;
	padding-top: 0;
	border-top: 0;
}
.qc-assess-last .et_contact_bottom_container {
	flex: 1 1 auto;
	justify-content: flex-end;
	align-items: center;
}

/* The progress bar: the intro's numbered list, once the script runs. */
.qc-assess-intro .qc-assess-steps {
	display: flex;
	gap: 8px;
	margin: 22px 0 26px;
	padding: 0 !important;
	list-style: none;
	scroll-margin-top: 120px;
}
.qc-assess-intro .qc-assess-steps li {
	position: relative;
	flex: 1 1 0;
	margin: 0;
	padding: 14px 0 0 !important;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #626f78;
}
.qc-assess-intro .qc-assess-steps li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 2px;
	background: #e3e6e8;
}
.qc-assess-intro .qc-assess-steps li.is-done::before {
	background: #009ad9;
}
.qc-assess-intro .qc-assess-steps li.is-current {
	color: #171d64;
}
.qc-assess-intro .qc-assess-steps li.is-current::before {
	background: linear-gradient(90deg, #005f9f 0%, #007cb9 100%);
}

@media (max-width: 767px) {
	/* Phones: the bar alone; the step's name is in the heading just below it. */
	.qc-assess-intro .qc-assess-steps li {
		padding-top: 4px !important;
		font-size: 0;
	}
	.qc-assess-step {
		font-size: 24px;
	}
	.qc-assess-last .qc-assess-nav,
	.qc-assess-last .et_contact_bottom_container {
		flex: 0 0 100%;
	}
	.qc-assess-last .et_contact_bottom_container {
		justify-content: flex-start;
	}
}
