/**
 * Extra Registration Fields for Tutor LMS
 *
 * Minimal styles only: the fields use Tutor's own form markup
 * (tutor-form-row / tutor-form-col / tutor-form-group) so the active
 * theme styles them exactly like the default Tutor fields.
 */

/* Mobile number that does not match the selected country. */
.tutor-erf-has-error .tutor-form-control {
	border-color: #dc2626;
}

.tutor-erf-invalid {
	border-color: #dc2626;
}

.tutor-erf-error {
	display: block;
	margin-top: 6px;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 4px;
}

/* Locked Country Code field — same native size, subtly grayed. */
.tutor-form-control.tutor-erf-code-display,
.tutor-erf-code-display {
	background-color: #f4f6f8;
	color: #1f2933;
	cursor: not-allowed;
}

/* Keep the two half-width columns stacked on narrow screens. */
@media (max-width: 767px) {
	.tutor-form-row .tutor-form-col-6 {
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 8px;
	}
}

/* Minor polish for the admin user page fields. */
.tutor-erf-phone-code {
	margin-right: 8px;
	min-width: 220px;
	max-width: 100%;
}

@media (max-width: 600px) {
	.tutor-erf-phone-code {
		display: block;
		margin-bottom: 8px;
		min-width: 100%;
	}

	.tutor-erf-country {
		max-width: 100%;
	}
}