/* ============================================================
   Edufen Course Widgets – Tutor Registration Form
   Fully namespaced (.ecw-reg*) — no generic class names, so
   nothing here can collide with theme/Bootstrap CSS.
   ============================================================ */

.ecw-reg {
	max-width: 100%;
	box-sizing: border-box;
}
.ecw-reg * { box-sizing: border-box; }

/* Field grid: 1 or 2 columns depending on the widget setting */
.ecw-reg-fields {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 18px;
	column-gap: 16px;
}
.ecw-reg-cols-2 .ecw-reg-fields {
	grid-template-columns: 1fr 1fr;
}
.ecw-reg-field--full {
	grid-column: 1 / -1;
}
/* Always collapse to a single column on small screens regardless of setting */
@media (max-width: 600px) {
	.ecw-reg-cols-2 .ecw-reg-fields {
		grid-template-columns: 1fr;
	}
}

.ecw-reg-field {
	display: flex;
	flex-direction: column;
}
.ecw-reg-field label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #111827;
}
.ecw-reg-field input {
	width: 100%;
	font-size: 14px;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background-color: #ffffff;
	color: #111827;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ecw-reg-field input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.ecw-reg-field input.ecw-reg-input-invalid {
	border-color: #dc2626;
}
.ecw-reg-field-error {
	display: block;
	min-height: 0;
	font-size: 12px;
	color: #dc2626;
	margin-top: 4px;
}

.ecw-reg-field--submit {
	margin-top: 4px;
}
.ecw-reg-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	border: 2px solid #4f46e5;
	background-color: #4f46e5;
	color: #ffffff;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .2s ease;
}
.ecw-reg-submit:hover {
	background-color: #4338ca;
	border-color: #4338ca;
	color: #ffffff;
}
.ecw-reg-submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}
.ecw-reg-btn-icon {
	display: inline-flex;
	align-items: center;
}

/* Success / error banners — hidden by default, shown via JS */
.ecw-reg-message {
	display: none;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.ecw-reg-message--success {
	background-color: #ecfdf5;
	color: #047857;
}
.ecw-reg-message--error {
	background-color: #fef2f2;
	color: #b91c1c;
}
.ecw-reg-message--info {
	background-color: #eff6ff;
	color: #1d4ed8;
}
