/**
 * Enrollment form styles.
 *
 * Deliberately plain: the site-wide redesign comes later, and this is written
 * to be restyled from the theme rather than fought with. Brand rules applied
 * here are Arial throughout, black body copy, and yellow as the accent.
 */

.tsgs-enrollment {
	font-family: Arial, Helvetica, sans-serif;
	color: #000;
	max-width: 48rem;
}

.tsgs-enrollment h2 {
	font-size: 1.25rem;
	font-weight: bold;
	margin: 0 0 0.5rem;
}

.tsgs-enrollment h3 {
	font-size: 1.05rem;
	font-weight: bold;
	margin: 1.5rem 0 0.5rem;
}

.tsgs-section {
	border-top: 4px solid #ffcc00;
	padding: 1.25rem 0 1.5rem;
	margin: 0 0 1rem;
}

.tsgs-hint {
	color: #555;
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.tsgs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}

.tsgs-grid-3 {
	grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 40rem) {
	.tsgs-grid,
	.tsgs-grid-3 {
		grid-template-columns: 1fr;
	}
}

.tsgs-field {
	margin: 0 0 1rem;
}

.tsgs-field label {
	display: block;
	font-weight: bold;
	margin-bottom: 0.25rem;
}

.tsgs-field input[type="text"],
.tsgs-field input[type="email"],
.tsgs-field input[type="tel"],
.tsgs-field input[type="number"],
.tsgs-field select,
.tsgs-field textarea {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid #767676;
	border-radius: 2px;
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
	color: #000;
}

.tsgs-field input:focus,
.tsgs-field select:focus,
.tsgs-field textarea:focus,
.tsgs-enrollment button:focus {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.tsgs-field [aria-invalid="true"] {
	border-color: #b00000;
	border-width: 2px;
}

.tsgs-req {
	color: #b00000;
}

.tsgs-checkbox {
	display: block;
	font-weight: normal;
	margin: 0 0 0.5rem;
	line-height: 1.5;
}

.tsgs-checkbox input {
	margin-right: 0.5rem;
}

.tsgs-checkbox-inline {
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

.tsgs-student {
	border: 1px solid #d5d5d5;
	border-left: 4px solid #ffcc00;
	padding: 1rem 1rem 0.5rem;
	margin: 0 0 1rem;
	position: relative;
}

.tsgs-student > legend {
	font-weight: bold;
	padding: 0 0.5rem;
}

.tsgs-inline-choice {
	border: 0;
	padding: 0;
	margin: 0 0 1rem;
}

.tsgs-inline-choice legend {
	font-weight: bold;
	margin-bottom: 0.25rem;
	padding: 0;
}

.tsgs-inline-choice label {
	display: inline-block;
	margin-right: 1.25rem;
	font-weight: normal;
}

.tsgs-remove-row {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: none;
	border: 1px solid #767676;
	border-radius: 2px;
	width: 1.9rem;
	height: 1.9rem;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	color: #000;
}

.tsgs-remove-row:hover {
	background: #000;
	color: #fff;
}

.tsgs-add-row {
	background: #fff;
	border: 2px solid #000;
	border-radius: 2px;
	padding: 0.55rem 1rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: bold;
	cursor: pointer;
	color: #000;
}

.tsgs-add-row:hover {
	background: #ffcc00;
}

.tsgs-button {
	background: #ffcc00;
	color: #000;
	border: 2px solid #000;
	border-radius: 2px;
	padding: 0.85rem 2rem;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: bold;
	cursor: pointer;
}

.tsgs-button:hover {
	background: #000;
	color: #fff;
}

.tsgs-submit {
	margin: 1.5rem 0;
}

.tsgs-field-error {
	display: block;
	color: #b00000;
	font-size: 0.9rem;
	font-weight: bold;
	margin-top: 0.25rem;
}

.tsgs-error-summary {
	border: 2px solid #b00000;
	background: #fff5f5;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
}

.tsgs-error-summary h3 {
	margin-top: 0;
}

.tsgs-disclaimer,
.tsgs-disclaimer-box {
	background: #fff5d6;
	border-left: 4px solid #ffcc00;
	padding: 0.85rem 1rem;
	margin: 1rem 0 0;
	font-weight: bold;
}

.tsgs-paid-box {
	background: #f0f7f0;
	border-left: 4px solid #2e7d32;
	padding: 0.85rem 1rem;
	font-weight: bold;
}

.tsgs-notice {
	background: #fff5d6;
	border-left: 4px solid #ffcc00;
	padding: 1rem;
}

.tsgs-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1rem;
}

.tsgs-summary-table td {
	padding: 0.5rem 0;
	border-bottom: 1px solid #e5e5e5;
}

.tsgs-summary-table .tsgs-amount {
	text-align: right;
	white-space: nowrap;
}

.tsgs-total-row td {
	border-top: 2px solid #000;
	border-bottom: 0;
	padding-top: 0.75rem;
}

.tsgs-summary-list {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.tsgs-address {
	background: #f7f7f7;
	padding: 0.85rem 1rem;
	border-left: 4px solid #ffcc00;
}

.tsgs-staff-note {
	background: #f0f0f0;
	border-left: 4px solid #767676;
	padding: 0.6rem 0.85rem;
	font-size: 0.9rem;
}

.tsgs-compliance {
	color: #555;
	font-size: 0.85rem;
	margin-top: 2rem;
}

/* Hidden from people, reachable by bots that fill every field. */
.tsgs-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
