/* Course Readiness Advisor - front-end styles.
   Neutral defaults; inherits the site theme font. Override in your theme as needed. */

.cra-wrap,
.cra-wrap h2,
.cra-wrap h3,
.cra-wrap select,
.cra-wrap input,
.cra-wrap textarea,
.cra-wrap button {
	font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cra-wrap {
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* The HTML hidden attribute must win over display rules (e.g. the flex
   checkbox labels), otherwise conditionally-shown fields never hide. */
.cra-wrap [hidden] {
	display: none !important;
}

/* Leave room for the site's fixed header when jumping to these anchors,
   so the target isn't hidden underneath it. Increase if your header is taller. */
#cra-top,
#cra-result {
	scroll-margin-top: 120px;
}

.cra-wrap h2.cra-title {
	font-size: 2em;
	font-weight: 600;
	line-height: 1.2;
	color: #1a1a1a;
	margin: 0 0 0.15em;
}

.cra-wrap #cra-result h3 {
	font-size: 1.4em;
	font-weight: 600;
	color: #1a1a1a;
	margin: 1em 0 0.3em;
}

.cra-caption {
	color: #666;
	font-size: 0.9em;
	margin-top: 0;
}

.cra-form fieldset {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1em 1.25em 1.25em;
	margin: 0 0 1.25em;
}

.cra-form legend {
	font-weight: 600;
	font-size: 1.2em;
	color: #000;
	padding: 0 0.5em;
}

.cra-form label {
	display: block;
	margin: 0.75em 0 0.25em;
	font-weight: 500;
}

.cra-wrap .cra-form label.cra-checkbox {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0.6em !important;
	align-items: flex-start !important;
	font-weight: 400;
	line-height: 1.5 !important;
	margin: 0 !important;
	white-space: normal !important;
}

.cra-wrap .cra-form label.cra-checkbox input[type="checkbox"] {
	width: 1.3em !important;
	height: 1.3em !important;
	min-width: 1.3em !important;
	margin: 0.15em 0 0 !important;
	padding: 0 !important;
	flex: 0 0 auto !important;
	float: none !important;
	position: static !important;
	vertical-align: top !important;
	-webkit-appearance: auto !important;
	appearance: auto !important;
	cursor: pointer;
}

.cra-wrap .cra-form label.cra-checkbox > span {
	flex: 1 1 auto;
	white-space: normal !important;
}

.cra-form select,
.cra-form input[type="text"],
.cra-form input[type="email"],
.cra-form textarea {
	width: 100%;
	padding: 0.55em 0.65em;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1em;
	color: #1a1a1a;
	background-color: #f6f7f9;
	box-sizing: border-box;
}

/* Draw our own dropdown arrow so it looks the same on every theme,
   regardless of whether the theme strips the native one. */
.cra-form select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 2.2em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8em center;
	background-size: 0.8em;
}

.cra-info {
	background: #e8f3fc;
	color: #004280;
	padding: 0.75em 1em;
	border-radius: 8px;
	margin: 0.75em 0;
	font-size: 0.95em;
}

.cra-submit {
	background: #111;
	color: #fff;
	border: 2px solid #111;
	border-radius: 6px;
	padding: 0.8em 1.5em;
	font-size: 1em;
	cursor: pointer;
}

.cra-submit:hover {
	border-color: #FFC424;
}

.cra-submit:focus,
.cra-submit:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: #FFC424;
}

.cra-submit:active {
	background: #FFC424;
	border-color: #FFC424;
	color: #111;
}

.cra-result {
	padding: 0.9em 1.1em;
	border-radius: 6px;
	margin: 1em 0;
	font-size: 1em;
}

.cra-result strong {
	font-weight: 400;
}

.cra-result--green {
	background: #e9f9ee;
	color: #177233;
}

.cra-result--amber {
	background: #fffce7;
	color: #926c05;
}

.cra-result--red {
	background: #ffecec;
	color: #7d353b;
}

.cra-scores {
	list-style: none;
	padding: 0;
}

.cra-scores li {
	padding: 0.3em 0;
	border-bottom: 1px solid #eee;
}

.cra-retake {
	display: inline-block;
	margin-top: 0.5em;
}

