/* Registration page */

.cs-register-page .signpost-buttons {
	margin: 0 auto 1.5rem;
	max-width: 900px;
}

.cs-register-page .signpost-buttons .form-group {
	margin-bottom: 1rem;
}

.cs-register-page .login.casting-form,
.cs-register-page .login.performer-form,
.cs-register-page .login.coordinator-form {
	max-width: 960px;
	margin: 0 auto 4rem;
}

.cs-register-page #poststuff .inside {
	padding: 0 1rem;
}

.cs-register-page .cs-register-global-errors {
	margin-bottom: 1rem;
}

.cs-register-page .regform-alert,
.cs-register-page .regform-casting-alert {
	margin-bottom: 1rem;
}

.cs-register-page .prefix-wrap,
.cs-register-page .suffix-wrap {
	display: inline-block;
	vertical-align: top;
}

.cs-register-page .dash {
	display: inline-block;
	padding: 7px 6px 0;
	vertical-align: top;
}

.cs-register-page .id-description {
	display: block;
	margin-top: 0.35rem;
}

.cs-register-page .cs-register-profile-note {
	margin-top: 0.5rem;
	margin-bottom: 0.25rem;
}

.cs-register-page .cs-register-profile-note .description {
	margin-bottom: 0;
}

/* Contacts repeater — horizontal rows (do not force display:block on table rows). */
.cs-register-page .cs-register-contacts-field {
	clear: both;
	width: 100%;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.cs-register-page .cs-register-contacts-field > .control-label {
	float: left;
	width: 16.66666667%;
	padding-top: 7px;
	text-align: right;
	padding-right: 15px;
}

.cs-register-page .cs-register-contacts-field > .input-wrap {
	float: left;
	width: 83.33333333%;
	padding-left: 0;
	padding-right: 0;
}

.cs-register-page .cs-register-contacts-field .repeater,
.cs-register-page .cs-register-contacts-field .acf-repeater {
	width: 100%;
	padding-top: 0;
}

.cs-register-page .cs-register-contacts-field .acf-table,
.cs-register-page .cs-register-contacts-field table.acf-input-table {
	width: 100%;
	border-collapse: collapse;
}

.cs-register-page .cs-register-contacts-field thead th {
	background: #eee;
	font-weight: 600;
	padding: 8px 10px;
	text-align: left;
	vertical-align: bottom;
}

/* Table layout already has column headers — hide per-cell labels */
.cs-register-page .cs-register-contacts-field table.acf-input-table thead ~ tbody td.sub_field .label,
.cs-register-page .cs-register-contacts-field table.acf-input-table thead ~ tbody td.sub_field .acf-label,
.cs-register-page .cs-register-contacts-field .acf-repeater.-table .acf-table thead ~ tbody .acf-label {
	display: none;
}

/* Bootstrap .row on legacy ACF <tr class="row"> breaks table columns */
.cs-register-page .cs-register-contacts-field table.acf-input-table > tbody > tr.row,
.cs-register-page .cs-register-contacts-field table.acf-input-table > tbody > tr.row-acf {
	display: table-row;
	margin-left: 0;
	margin-right: 0;
}

.cs-register-page .cs-register-contacts-field table.acf-input-table > tbody > tr.row:before,
.cs-register-page .cs-register-contacts-field table.acf-input-table > tbody > tr.row:after,
.cs-register-page .cs-register-contacts-field table.acf-input-table > tbody > tr.row-acf:before,
.cs-register-page .cs-register-contacts-field table.acf-input-table > tbody > tr.row-acf:after {
	display: none;
	content: none;
}

.cs-register-page .cs-register-contacts-field tr.row-acf,
.cs-register-page .cs-register-contacts-field .acf-row {
	display: table-row;
}

.cs-register-page .cs-register-contacts-field tr.row-acf > td,
.cs-register-page .cs-register-contacts-field .acf-row > .acf-row-handle,
.cs-register-page .cs-register-contacts-field .acf-row > td {
	display: table-cell;
	vertical-align: top;
	padding: 10px;
}

.cs-register-page .cs-register-contacts-field td.order,
.cs-register-page .cs-register-contacts-field .acf-row-handle.order {
	width: 36px;
	text-align: center;
}

.cs-register-page .cs-register-contacts-field td.order .row-id,
.cs-register-page .cs-register-contacts-field .acf-row-handle.order span {
	display: inline-block;
	min-width: 22px;
	padding: 4px 6px;
	background: #888;
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
}

/* Legacy repeater: one subfield per table cell */
.cs-register-page .cs-register-contacts-field table.acf-input-table {
	table-layout: fixed;
}

.cs-register-page .cs-register-contacts-field table.acf-input-table tbody td.sub_field {
	display: table-cell;
	vertical-align: top;
	padding: 8px 10px;
}

.cs-register-page .cs-register-contacts-field table.acf-input-table tbody td.sub_field .inner,
.cs-register-page .cs-register-contacts-field table.acf-input-table tbody td.sub_field input,
.cs-register-page .cs-register-contacts-field table.acf-input-table tbody td.sub_field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ACF 6 table / block repeater */
.cs-register-page .cs-register-contacts-field .acf-repeater.-table .acf-table {
	table-layout: fixed;
}

.cs-register-page .cs-register-contacts-field .acf-repeater .acf-fields.-left > .acf-field,
.cs-register-page .cs-register-contacts-field .acf-repeater.-block .acf-fields > .acf-field {
	display: inline-block;
	vertical-align: top;
	width: 32%;
	min-width: 160px;
	padding: 0 8px 8px 0;
	border: none;
	background: transparent;
	box-sizing: border-box;
}

.cs-register-page .cs-register-contacts-field .acf-field .acf-label {
	margin-bottom: 4px;
	padding: 0;
}

.cs-register-page .cs-register-contacts-field .acf-field .acf-label label {
	font-weight: 600;
	margin: 0;
}

.cs-register-page .cs-register-contacts-field .acf-field .acf-input input,
.cs-register-page .cs-register-contacts-field .acf-field .acf-input select {
	display: block;
	width: 100%;
	max-width: 100%;
	visibility: visible;
}

.cs-register-page .cs-register-contacts-field .acf-actions {
	margin-top: 10px;
	clear: both;
}

.cs-register-page .cs-register-contacts-field .acf-actions .acf-button {
	display: inline-block;
}

@media (max-width: 767px) {
	.cs-register-page .cs-register-contacts-field > .control-label,
	.cs-register-page .cs-register-contacts-field > .input-wrap {
		float: none;
		width: 100%;
		text-align: left;
		padding-right: 0;
	}

	.cs-register-page .cs-register-contacts-field .acf-fields,
	.cs-register-page .cs-register-contacts-field .acf-fields > .acf-field {
		display: block;
		width: 100%;
		padding: 0 0 12px;
	}
}
