/* =====================================================================
   Registration form - register.php and programmes.php
   ---------------------------------------------------------------------
   Scoped to .rg-* so nothing here can reach the rest of the site. The
   site itself is Bootstrap 2 era with its own stylesheet, so these rules
   say everything they need rather than assuming any utility class.
   ===================================================================== */

.rg-wrap {
	max-width: 900px;
	margin: 0 auto;
}

.rg-title {
	font-size: 30px;
	line-height: 1.25;
	margin: 18px 0 6px;
	color: #1f4e79;
}

.rg-standfirst {
	font-size: 16px;
	line-height: 1.6;
	color: #444;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #dde5ec;
}

/* --- the confirmation ------------------------------------------------ */

.rg-done,
.rg-closed {
	background: #fff;
	border: 1px solid #cfdbe6;
	border-top: 4px solid #2c7a3f;
	padding: 22px 24px;
	margin: 22px 0;
}

.rg-closed {
	border-top-color: #b06a00;
}

.rg-done h2,
.rg-closed h2 {
	margin: 0 0 10px;
	font-size: 21px;
	color: #1f4e79;
}

.rg-summary {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.rg-summary th,
.rg-summary td {
	text-align: left;
	padding: 7px 10px;
	border-bottom: 1px solid #e6edf3;
	vertical-align: top;
	font-size: 14px;
}

.rg-summary th {
	width: 34%;
	color: #55636f;
	font-weight: 600;
}

/* --- errors and notices ---------------------------------------------- */

.rg-errors {
	background: #fdf0ef;
	border: 1px solid #e6b7b3;
	border-left: 4px solid #b3261e;
	padding: 14px 18px;
	margin: 18px 0;
}

.rg-errors p {
	margin: 0 0 6px;
	font-weight: 600;
	color: #8c1d18;
}

.rg-errors ul {
	margin: 0;
	padding-left: 20px;
}

.rg-errors li {
	color: #6d2019;
	line-height: 1.55;
}

.rg-window {
	background: #eef5fc;
	border: 1px solid #c3ddf5;
	padding: 9px 14px;
	margin: 14px 0;
	font-size: 14px;
	color: #1c4f80;
}

/* --- the form -------------------------------------------------------- */

.rg-form {
	background: #fff;
	border: 1px solid #dbe3ea;
	padding: 4px 24px 24px;
	margin: 18px 0 30px;
}

.rg-set {
	border: 0;
	border-top: 1px solid #e6edf3;
	margin: 0;
	padding: 18px 0 4px;
}

.rg-set:first-of-type {
	border-top: 0;
}

.rg-set legend {
	font-size: 17px;
	font-weight: 600;
	color: #1f4e79;
	padding: 0;
	margin: 0 0 4px;
	width: auto;
	border: 0;
	*margin-left: -5px;
}

.rg-grid {
	display: block;
}

.rg-field {
	margin: 0 0 14px;
}

.rg-field label,
.rg-set label.rg-choice {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #33414d;
	margin: 0 0 4px;
}

.rg-field input[type="text"],
.rg-field input[type="email"],
.rg-field input[type="tel"],
.rg-field input[type="date"],
.rg-field select {
	width: 100%;
	max-width: 460px;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 15px;
	font-family: inherit;
	color: #222;
	background: #fff;
	border: 1px solid #c3ccd6;
	border-radius: 3px;
}

.rg-field input:focus,
.rg-field select:focus {
	border-color: #2c7ac9;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(44, 122, 201, .18);
}

.rg-req {
	font-weight: 400;
	font-size: 12px;
	color: #b3261e;
	margin-left: 4px;
}

.rg-hint {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #6b7885;
	margin: 4px 0 0;
	line-height: 1.5;
}

.rg-note {
	display: block;
	font-size: 13px;
	margin: 4px 0 0;
	min-height: 1px;
}

.rg-note.rg-bad {
	color: #b3261e;
	font-weight: 600;
}

/* Radio and checkbox rows */

.rg-choice {
	font-weight: 400 !important;
	display: block;
	margin: 0 0 8px;
	line-height: 1.5;
	color: #33414d;
	cursor: pointer;
}

.rg-choice input {
	margin: 0 8px 0 0;
	vertical-align: middle;
}

.rg-choice span {
	vertical-align: middle;
}

/* Two columns on a wide screen, one column on a narrow one. The fields are
   plain block elements so the form is still readable without this rule. */
@media (min-width: 640px) {
	.rg-grid {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -10px;
	}

	.rg-field {
		flex: 1 1 200px;
		padding: 0 10px;
	}

	.rg-field.rg-wide {
		flex-basis: 100%;
	}

	.rg-field input[type="text"],
	.rg-field input[type="email"],
	.rg-field input[type="tel"],
	.rg-field select {
		max-width: none;
	}
}

.rg-consent {
	border-top: 1px solid #e6edf3;
	padding-top: 16px;
	margin-top: 8px;
}

.rg-actions {
	margin: 20px 0 8px;
}

.rg-submit {
	display: inline-block;
	padding: 11px 26px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	color: #fff;
	background: #1f4e79;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.rg-submit:hover {
	background: #163a5a;
}

/* The bot trap: hidden from people, still in the markup for a bot to fill in. */
.rg-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- the notice on a news item ----------------------------------------- */
/* Sits between the standfirst and the article body, so it reads as part of the
   announcement rather than as an advert at the foot of the page. */

.ne-register {
	background: #f4f8fc;
	border: 1px solid #c9dcec;
	border-left: 4px solid #1f4e79;
	padding: 14px 18px;
	margin: 18px 0 22px;
}

.ne-register__state {
	margin: 0 0 10px;
	font-size: 15px;
	color: #1c4f80;
}

.ne-register__state--closed,
.ne-register__state--disabled {
	color: #7a5300;
	border-left-color: #b06a00;
}

.ne-register__when {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #55636f;
	margin-top: 2px;
}

.ne-register__btn {
	display: inline-block;
	margin: 2px 0 8px;
}

.ne-register__hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #55636f;
	max-width: 620px;
}


.rg-levels-heading {
	font-size: 20px;
	color: #1f4e79;
	margin: 26px 0 4px;
}

.rg-track-note {
	font-size: 14px;
	color: #6b7885;
	margin: 0 0 14px;
}

.rg-cards {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.rg-cards li {
	background: #fff;
	border: 1px solid #dbe3ea;
	border-left: 4px solid #1f4e79;
	padding: 14px 18px;
	margin: 0 0 10px;
}

.rg-cards h3 {
	margin: 0 0 4px;
	font-size: 17px;
	color: #1f4e79;
}

.rg-cards p {
	margin: 0 0 8px;
	font-size: 14px;
	color: #55636f;
	line-height: 1.55;
}

.rg-meta {
	font-size: 13px;
	color: #6b7885;
}

.rg-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #1f4e79;
	background: #e8f0f9;
	padding: 2px 8px;
	margin: 0 6px 6px 0;
}
