/* Layout for the registration page only (loaded after reg.css) */

/* .container plus the class so it wins over Bootstrap's .container widths, which load later */
.container.reg-page {
	max-width: 880px;
}

.reg-title {
	text-align: center;
	margin-bottom: .75rem;
}

/* Event dates, deadline and prices under the title */
.reg-event-summary {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem 1.5rem;
	color: #555;
}

.reg-event-summary i {
	color: #0d6efd;
	margin-right: .35rem;
}

/* Form sections */
.reg-section {
	border: 0;
	border-top: 1px solid #e5e5e5;
	margin: 0;
	padding: 1.25rem 0 .75rem;
	min-width: 0;
}

.reg-section:first-of-type,
.reg-section.d-none + .reg-section { /* first visible section when the coach choice is hidden */
	border-top: 0;
	padding-top: 0;
}

/* Floated full width (as Bootstrap does) so the legend sits inside the section, not on its border */
.reg-section-title {
	float: left;
	width: 100%;
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0; /* the row's 1rem gutter below provides the spacing */
}

.reg-section-note {
	font-size: .9rem;
	font-weight: 400;
	color: #6c757d;
}

/* Athlete / Coach choice */
.reg-type {
	width: 100%;
	max-width: 360px;
}

.reg-type .btn {
	padding: .6rem 1rem;
	font-size: 1.05rem;
}

/* Payment summary panel */
.reg-summary {
	background: #f8f9fa;
	border: 1px solid #e5e5e5;
	border-radius: .5rem;
	padding: 1.25rem;
	margin-top: 1rem;
}

.reg-summary .reg-section-title {
	margin-bottom: .75rem;
}

/* The type buttons have no row gutter above them */
.reg-type {
	margin-top: .75rem;
}

.reg-totals {
	margin: 1.25rem 0 .5rem;
}

.reg-totals > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .3rem 0;
}

.reg-totals dt {
	font-weight: 400;
}

.reg-totals dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.reg-totals .reg-total-row {
	border-top: 1px solid #dee2e6;
	margin-top: .3rem;
	padding-top: .6rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.reg-totals .reg-total-row dt {
	font-weight: 700;
}

.reg-fee-note {
	font-size: .85rem;
	color: #6c757d;
	margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
	.reg-summary {
		padding: 1rem;
	}
}

/* Event (competition) checkboxes; .row too so this wins over Bootstrap's row margins */
.row.reg-events {
	border: 1px solid #dee2e6;
	border-radius: .5rem;
	padding: .75rem .5rem;
	margin: 0;
}

.reg-events.is-invalid {
	border-color: #dc3545;
}

.reg-events .form-check {
	margin: 0;
}

.reg-events .form-check-label {
	cursor: pointer;
}
