/**
 * Registration UX: match Tutor field look, mark required fields, free vs Saturday copy.
 */

.mbp-reg-intro {
	margin: 0 0 0.25rem;
}

.mbp-reg-intro h1,
.mbp-reg-heading {
	color: var(--tutor-text-primary, #0e2a46);
	font-family: var(--tutor-font-family-body, "Inter", "Sora", sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.mbp-reg-intro p,
.mbp-reg-note,
.mbp-profile-note {
	color: var(--tutor-text-primary, #333931);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0 0 0.75rem;
}

.mbp-error-summary {
	background: var(--tutor-surface-critical, #fee4e2);
	border: 1px solid var(--tutor-border-critical, #f5c2c0);
	border-radius: 8px;
	color: var(--tutor-text-critical, #8a1f11);
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0 0 0.5rem;
	padding: 0.85rem 1rem;
	scroll-margin-top: 140px;
}

.mbp-error-summary[hidden] {
	display: none;
}

.mbp-error-summary strong {
	display: block;
	margin: 0 0 0.35rem;
}

.mbp-error-summary ul {
	margin: 0;
	padding-left: 1.2rem;
}

.mbp-field-error {
	color: var(--tutor-text-critical, #8a1f11);
	font-size: 0.8125rem;
	line-height: 1.4;
	margin: 0.35rem 0 0;
}

.mbp-field-error[hidden] {
	display: none;
}

.mbp-registered-banner {
	background: #eaf6ec;
	border: 1px solid #b7e0bf;
	border-radius: 12px;
	color: #0e2a46;
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
}

.mbp-registered-banner strong {
	display: block;
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
}

.mbp-registered-banner p {
	margin: 0;
}

#tutor-registration-wrap {
	max-width: 36rem !important;
}

#tutor-registration-wrap .mbp-registration-fields {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	min-width: 0;
	padding: 0;
}

#tutor-registration-wrap .mbp-registration-fields > legend,
#tutor-registration-wrap .mbp-reg-heading {
	color: var(--tutor-text-primary, inherit);
	float: none;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.375rem;
	margin: 0;
	padding: 0;
	width: 100%;
}

#tutor-registration-wrap .mbp-learner-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#tutor-registration-wrap .mbp-learner-fields > p {
	margin: 0;
}

#tutor-registration-wrap .mbp-choice-grid {
	display: grid;
	gap: 10px 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tutor-registration-wrap .mbp-choice-grid label,
#tutor-registration-wrap .mbp-id-type-options label {
	align-items: center;
	color: var(--tutor-text-primary, inherit);
	display: flex;
	font-size: 0.875rem;
	font-weight: 400;
	gap: 8px;
	line-height: 1.4;
	margin: 0;
	white-space: nowrap;
}

#tutor-registration-wrap .mbp-learner-fields fieldset {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	min-width: 0;
	padding: 0;
}

#tutor-registration-wrap .mbp-learner-fields fieldset > legend {
	color: var(--tutor-text-primary, inherit);
	float: none;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.375rem;
	margin: 0;
	padding: 0;
	width: 100%;
}

#tutor-registration-wrap .mbp-learner-fields legend.tutor-label-required::after {
	color: var(--tutor-text-critical, #c0392b);
	content: "*";
	margin-left: 2px;
}

#tutor-registration-wrap .mbp-id-type-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

#tutor-registration-wrap .mbp-help {
	color: var(--tutor-text-hints, #5b616f);
	font-size: 0.8125rem;
	line-height: 1.4;
	margin: 0.4rem 0 0;
}

#tutor-registration-wrap .mbp-learner-fields input[type="file"] {
	font-size: 0.875rem;
	max-width: 100%;
}

#tutor-registration-wrap .mbp-learner-fields textarea.tutor-input {
	min-height: 5.5rem;
	resize: vertical;
}

/* Match Tutor account fields: grey fill, light border, 14px type, 6px radius. */
#tutor-registration-wrap .mbp-learner-fields .tutor-input,
#tutor-registration-wrap .mbp-learner-fields select,
#tutor-registration-wrap .mbp-learner-fields textarea {
	background-color: #f5f5f6 !important;
	border: 1px solid #ececed !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: #0c111d;
	font-size: 14px;
	line-height: 1.4;
	max-width: 100%;
	min-height: 38px;
	padding: 7px 12px;
	width: 100%;
}

#tutor-registration-wrap select#reg-grade,
#mbp-complete-profile-form select[name="mbp_grade"],
.mbp-waiver select[name="mbp_grade"] {
	-webkit-appearance: menulist;
	appearance: menulist;
	height: 38px !important;
	max-height: 38px !important;
	overflow: hidden;
}

#tutor-registration-wrap .mbp-learner-fields .tutor-label,
#tutor-registration-wrap .mbp-learner-fields legend.tutor-label,
#tutor-registration-wrap .mbp-learner-fields legend.tutor-label-required {
	color: #0c111d;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0 0 6px;
}

.mbp-id-panel[hidden] {
	display: none;
}

.mbp-required-mark::after,
.mbp-waiver .mbp-required-mark::after,
body.pmpro-member-profile-edit .mbp-required-mark::after {
	color: var(--tutor-text-critical, #c0392b);
	content: "*";
	margin-left: 2px;
}

body.pmpro-member-profile-edit .mbp-choice-grid,
.mbp-waiver .mbp-choice-grid {
	display: grid;
	gap: 0.55rem 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.pmpro-member-profile-edit .mbp-choice-grid label,
.mbp-waiver .mbp-choice-grid label,
body.pmpro-member-profile-edit .mbp-id-type-options label,
.mbp-waiver .mbp-id-type-options label {
	align-items: center;
	display: flex;
	gap: 0.55rem;
	margin: 0.25rem 0;
	white-space: nowrap;
}

body.pmpro-member-profile-edit .mbp-help,
.mbp-waiver .mbp-help {
	color: #4d5756;
	font-size: 0.9rem;
	font-weight: 400;
	margin: 0.35rem 0 0;
}

.mbp-waiver .mbp-learner-fields .tutor-input-field,
.mbp-waiver .mbp-learner-fields > p {
	margin: 0 0 1rem;
}

.mbp-waiver label {
	display: block;
	font-weight: 600;
	margin-top: 0.25rem;
}

.mbp-waiver .mbp-choice-grid label,
.mbp-waiver .mbp-id-type-options label {
	font-weight: 400;
}

.mbp-waiver input[type="text"],
.mbp-waiver input[type="email"],
.mbp-waiver input[type="tel"],
.mbp-waiver select,
.mbp-waiver textarea {
	max-width: 40rem;
	padding: 0.45rem;
	width: 100%;
}

@media (max-width: 767px) {
	#tutor-registration-wrap {
		box-sizing: border-box;
		margin: 16px auto !important;
		max-width: 100% !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
		width: 100% !important;
	}

	#tutor-registration-form,
	#mbp-complete-profile-form {
		padding-left: 0;
		padding-right: 0;
	}

	#tutor-registration-wrap .tutor-input-field,
	#tutor-registration-wrap .mbp-learner-fields .tutor-input-field {
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 520px) {
	#tutor-registration-wrap .mbp-choice-grid,
	body.pmpro-member-profile-edit .mbp-choice-grid,
	.mbp-waiver .mbp-choice-grid {
		grid-template-columns: 1fr;
	}

	#tutor-registration-wrap .mbp-choice-grid label,
	#tutor-registration-wrap .mbp-id-type-options label {
		white-space: normal;
	}
}

/* Login page: Tutor form + obvious Google button. */
.mbp-google-login {
	margin: 0;
	padding: 0 1.5rem 0;
	text-align: center;
	width: 100%;
}

.mbp-login-or {
	align-items: center;
	color: #4d5756;
	display: flex;
	font-size: 0.875rem;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.mbp-login-or::before,
.mbp-login-or::after {
	background: #e0e2ea;
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

.mbp-google-login-label {
	color: #0e2a46;
	font-family: var(--tutor-font-family-body, "Inter", "Sora", sans-serif);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0 0 0.35rem;
}

.mbp-google-login-hint {
	color: #4d5756;
	font-size: 0.875rem;
	line-height: 1.4;
	margin: 0 0 0.85rem;
}

.tutor-login-wrap #tutor-pro-social-authentication {
	position: relative;
	width: 100%;
	z-index: 0;
	padding-top: 8px;
	border-top: 0;
}

.mbp-google-btn-wrap {
	margin: 0 auto;
	max-width: 400px;
	min-height: 48px;
	position: relative;
	width: 100%;
	z-index: 0;
}

.mbp-google-login-btn {
	align-items: center;
	background: #fff;
	border: 1px solid #747775;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	color: #1f1f1f;
	cursor: pointer;
	display: flex;
	font-family: var(--tutor-font-family-body, "Inter", "Sora", sans-serif);
	font-size: 1rem;
	font-weight: 600;
	gap: 10px;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	width: 100%;
}

.mbp-google-g {
	display: inline-flex;
}

.mbp-google-btn-wrap #tutor-pro-google-authentication {
	height: 100%;
	inset: 0;
	opacity: 0.02;
	overflow: hidden;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.mbp-google-btn-wrap #tutor-pro-google-authentication iframe {
	height: 48px !important;
	max-width: 100% !important;
}

body:has(.breakdance-menu-toggle[aria-expanded="true"]) .mbp-google-login,
body:has(.breakdance-menu-toggle[aria-expanded="true"]) .mbp-google-btn-wrap,
body:has(.breakdance-menu-toggle[aria-expanded="true"]) #tutor-pro-google-authentication,
body:has(.breakdance-menu.open) .mbp-google-login,
body:has(.breakdance-menu.open) .mbp-google-btn-wrap {
	visibility: hidden;
}

.mbp-complete-profile {
	box-sizing: border-box;
	margin: 24px auto 40px;
	max-width: 36rem;
}

.mbp-complete-profile .mbp-reg-intro {
	padding: 1.25rem 1.5rem 0;
}

@media (max-width: 767px) {
	.tutor-login-wrap {
		box-sizing: border-box;
		margin: 16px auto !important;
		max-width: 100% !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
		width: 100% !important;
	}

	.mbp-google-login {
		padding-left: 10px;
		padding-right: 10px;
	}

	.mbp-complete-profile {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

.mbp-subjects-field {
	display: none !important;
}


/* ID number field: legend + radios already name the choice; hide the repeated input label. */
.mbp-id-panel .tutor-label,
.mbp-id-panel > label[for$="-rsa-id"],
.mbp-id-panel > label[for$="-passport"] {
	clip: rect(0, 0, 0, 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}
