/**
 * Course Registration form.
 *
 * Colour, type, and spacing follow fundyfire.ca: Open Sans, the Divi
 * primary red, heading charcoal, white cards, and the same 6px card
 * radius used by the news grid. Rules stay under .nbcc-reg.
 */

.nbcc-reg,
.nbcc-reg *,
.nbcc-reg *::before,
.nbcc-reg *::after {
	box-sizing: border-box;
}

.nbcc-reg {
	width: 100%;
	max-width: 46rem;
	margin: 0;
	overflow-x: clip;
	color: var(--gcid-body-color, #323232);
	font-family: var(--et_global_body_font, "Open Sans", sans-serif);
	font-size: var(--et_global_body_font_size, 14px);
	font-weight: var(--et_global_body_font_weight, 500);
	line-height: 1.6;
}

.nbcc-reg__title {
	margin: 0 0 1.25rem;
	color: var(--gcid-heading-color, #323232);
	font-family: var(--et_global_heading_font, "Open Sans", sans-serif);
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.nbcc-reg__form {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.nbcc-reg__part {
	margin: 0.6rem 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--gcid-primary-color, #d60303);
	color: var(--gcid-heading-color, #323232);
	font-family: var(--et_global_heading_font, "Open Sans", sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.nbcc-reg__form > .nbcc-reg__part:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.nbcc-reg__summary,
.nbcc-reg__row,
.nbcc-reg__stack,
.nbcc-reg__agreement,
.nbcc-reg__field,
.nbcc-reg__options {
	min-width: 0;
	max-width: 100%;
}

.nbcc-reg__summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.85rem 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--gcid-mni29o0rgy, #ffffff);
	border: 1px solid #cccccc;
	border-radius: 6px;
}

.nbcc-reg__summary .nbcc-reg__field {
	margin: 0;
}

.nbcc-reg__summary .nbcc-reg__label,
.nbcc-reg__summary .nbcc-reg__value {
	display: block;
}

.nbcc-reg__summary .nbcc-reg__label {
	margin-bottom: 0.15rem;
	color: var(--gcid-secondary-color, #323232);
	font-size: 0.85em;
	font-weight: 600;
}

.nbcc-reg__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.15rem;
}

.nbcc-reg__row > :only-child {
	grid-column: 1 / -1;
}

.nbcc-reg__field {
	margin: 0;
}

fieldset.nbcc-reg__field {
	min-inline-size: 0;
	padding: 0;
	border: 0;
}

.nbcc-reg__field > label,
.nbcc-reg__choices > legend {
	display: block;
	margin: 0 0 0.35rem;
	color: var(--gcid-heading-color, #323232);
	font-weight: 600;
	line-height: 1.4;
}

.nbcc-reg__req {
	color: var(--gcid-primary-color, #d60303);
	font-weight: 600;
}

.nbcc-reg__hint,
.nbcc-reg__note {
	margin: 0;
	color: #555555;
	font-weight: 500;
}

.nbcc-reg__stack .nbcc-reg__hint {
	margin-top: 0.35rem;
}

.nbcc-reg__field input:not([type="radio"]) {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0.75rem;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: var(--gcid-mni29o0rgy, #ffffff);
	color: inherit;
	font: inherit;
	line-height: 1.4;
}

.nbcc-reg__field input:not([type="radio"]):focus {
	border-color: var(--gcid-primary-color, #d60303);
	outline: 2px solid var(--gcid-primary-color, #d60303);
	outline-offset: 1px;
}

.nbcc-reg__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.1rem;
}

.nbcc-reg__options label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.25rem;
	font-weight: 500;
}

.nbcc-reg__options input[type="radio"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: var(--gcid-primary-color, #d60303);
}

.nbcc-reg__error {
	display: block;
	margin-top: 0.35rem;
	color: var(--gcid-primary-color, #d60303);
	font-weight: 600;
}

.nbcc-reg__notice,
.nbcc-reg__error[role="alert"] {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #cccccc;
	border-left: 3px solid var(--gcid-primary-color, #d60303);
	border-radius: 6px;
	background: var(--gcid-mni29o0rgy, #ffffff);
}

.nbcc-reg__country {
	display: none;
}

.nbcc-reg__country.is-open {
	display: block;
}

.nbcc-reg__agreement {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

.nbcc-reg__agreement p {
	margin: 0;
	overflow-wrap: anywhere;
}

.nbcc-reg__agreement a {
	color: var(--gcid-link-color, #d60303);
}

.nbcc-reg__ack {
	font-weight: 600;
}

.nbcc-reg__ink {
	min-width: 0;
}

.nbcc-reg__canvas {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 8.75rem;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: var(--gcid-mni29o0rgy, #ffffff);
	touch-action: none;
}

.nbcc-reg__clear,
.nbcc-reg__submit,
.nbcc-reg__login,
.nbcc-reg__download {
	display: inline-block;
	max-width: 100%;
	border-radius: 3px;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.nbcc-reg__clear {
	margin-top: 0.55rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--gcid-secondary-color, #323232);
	background: transparent;
	color: var(--gcid-secondary-color, #323232);
}

.nbcc-reg__actions {
	margin: 0.35rem 0 0;
}

.nbcc-reg__submit,
.nbcc-reg__login,
.nbcc-reg__download {
	width: 100%;
	padding: 0.8rem 1.25rem;
	border: 0;
	background: var(--gcid-primary-color, #d60303);
	color: var(--gcid-mni29o0rgy, #ffffff);
}

.nbcc-reg__submit:hover,
.nbcc-reg__login:hover,
.nbcc-reg__download:hover,
.nbcc-reg__clear:hover {
	filter: brightness(0.92);
}

.nbcc-reg__submit:focus-visible,
.nbcc-reg__login:focus-visible,
.nbcc-reg__download:focus-visible,
.nbcc-reg__clear:focus-visible,
.nbcc-reg__field input:focus-visible,
.nbcc-reg__options input:focus-visible {
	outline: 2px solid var(--gcid-primary-color, #d60303);
	outline-offset: 2px;
}

.nbcc-reg--login p {
	margin: 0 0 1rem;
}

@media (min-width: 720px) {
	.nbcc-reg__summary,
	.nbcc-reg__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nbcc-reg__summary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nbcc-reg__row--thirds {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nbcc-reg__submit,
	.nbcc-reg__login,
	.nbcc-reg__download {
		width: auto;
		min-width: 14rem;
	}
}
