/* ─── EzTutor App CSS ─────────────────────────────────────────────────────── */

@font-face {
	font-family: 'Nunito';
	src: url('./fonts/Nunito-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nunito';
	src: url('./fonts/Nunito-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

/* ─── Variables ───────────────────────────────────────────────────────────── */

:root {
	--primary:       #2563eb;
	--primary-dark:  #1d4ed8;
	--primary-bg:    #eff6ff;
	--text:          #111111;
	--text-muted:    #777777;
	--border:        #e2e8f0;
	--bg:            #f5f5f5;
	--white:         #ffffff;
}

body.ezt-tutor-mode {
	--primary:       #016152;
	--primary-dark:  #004339;
	--primary-bg:    #f0faf4;
}

/* ─── Login ───────────────────────────────────────────────────────────────── */

.ezt-login-body {
	font-family: 'Nunito', sans-serif;
	background: var(--white);
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ezt-login-body .ezt-login-wrap {
	margin-top: -80px;
}

@media (max-height: 600px) {
	.ezt-login-body .ezt-login-wrap {
		margin-top: 0;
	}
}

.ezt-login-wrap {
	width: 100%;
	max-width: 360px;
	padding: 40px 24px;
}

.ezt-login-logo {
	text-align: center;
	margin-bottom: 48px;
}

.ezt-login-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: var(--primary);
	border-radius: 18px;
	margin-bottom: 16px;
}

.ezt-login-logo-mark svg {
	width: 36px;
	height: 36px;
	fill: var(--white);
}

.ezt-login-logo h1 {
	font-size: 26px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.5px;
}

.ezt-login-logo h1 span {
	color: var(--primary);
}

.ezt-login-logo p {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 6px;
}

.ezt-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 20px;
	text-align: center;
}

.ezt-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 14px;
	background: var(--white);
	border: 1.5px solid var(--border);
	border-radius: 12px;
	font-family: 'Nunito', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	text-decoration: none;
}

.ezt-google-btn:active {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ezt-google-btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.ezt-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
	color: var(--text-muted);
	font-size: 12px;
}

.ezt-divider::before,
.ezt-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}

.ezt-terms {
	text-align: center;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 24px;
	line-height: 1.6;
}

.ezt-terms a {
	color: var(--primary);
	text-decoration: none;
}

/* ─── Shared App Shell ────────────────────────────────────────────────────── */

body {
	font-family: 'Nunito', sans-serif;
	background: var(--bg);
	min-height: 100dvh;
}

.ezt-app {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	position: static;
}

.ezt-app-row {
	display: flex;
	flex: 1;
	align-items: stretch;
}

/* ─── Logo ────────────────────────────────────────────────────────────────── */

.ezt-logo,
.ezt-logo-text {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.ezt-logo span,
.ezt-logo-text span {
	color: var(--primary);
}

.ezt-logo-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
}

.ezt-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--primary);
	border-radius: 10px;
	flex-shrink: 0;
}

.ezt-logo-mark svg {
	width: 20px;
	height: 20px;
	fill: var(--white);
}

.ezt-logo-mark--sm {
	width: 28px;
	height: 28px;
	border-radius: 8px;
}

.ezt-logo-mark--sm svg {
	width: 16px;
	height: 16px;
}

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */

.ezt-sidebar {
	width: 220px;
	background: var(--white);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	height: 100lvh;
	overflow-y: auto;
}

.ezt-sidebar-brand {
	padding: 15px 20px;
	border-bottom: 1px solid var(--border);
}

.ezt-sidebar-back {
	display: none !important;
}


/* ─── Nav links ───────────────────────────────────────────────────────────── */

.ezt-nav {
	list-style: none;
	padding: 12px 0;
	flex: 1;
}

.ezt-nav li {
	padding: 2px 12px;
}

.ezt-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s, color 0.15s;
}

.ezt-nav-link:hover {
	background: var(--bg);
	color: var(--text);
}

.ezt-nav-link.active {
	background: var(--primary-bg);
	color: var(--primary);
}

.ezt-nav-link svg {
	flex-shrink: 0;
}

button.ezt-nav-link {
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
}

/* ─── Mobile topbar (portrait) ────────────────────────────────────────────── */

.ezt-header {
	display: none;
	align-items: center;
	background: rgba(233,244,255,0.5);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	height: 48px;
	border-radius: 16px;
	position: fixed;
	top: 10px;
	left: 8px;
	right: 8px;
	z-index: 200;
	box-shadow: 0 0 0 1.5px var(--border);
}

.ezt-header-logo {
	flex: 1;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.ezt-header-logo .ezt-logo-wrap {
	pointer-events: auto;
}

.ezt-header-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 48px;
	text-decoration: none;
	flex-shrink: 0;
	opacity: 0.7;
}

.ezt-header-btn.ezt-back-btn--disabled {
	cursor: default;
	opacity: 0.15;
}

/* ─── Bottom nav (portrait mobile only) ───────────────────────────────────── */

.ezt-bottom-nav {
	display: none;
}

.ezt-bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 4px 4px 0;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	transition: color 0.15s;
}

.ezt-bottom-nav-item.active {
	color: var(--primary);
}

.ezt-bottom-nav-item svg {
	flex-shrink: 0;
}

.ezt-bottom-nav-center {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: -1px;
	padding: 0 2px;
}

.ezt-bottom-nav-home {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.ezt-bottom-nav-center.active .ezt-bottom-nav-home {
	background: var(--primary-dark);
	border: 3px solid rgba(255,255,255,0.5);
}

.ezt-bottom-nav-home svg {
	width: 30px;
	height: 30px;
	fill: var(--white);
	margin-top: -1px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.ezt-footer {
	text-align: center;
	font-size: 12px;
	color: var(--text-muted);
	padding: 30px 0 0;
}

.ezt-footer a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 700;
}

.ezt-footer a:hover {
	color: var(--primary);
}

/* ─── Main content ────────────────────────────────────────────────────────── */

.ezt-main {
	flex: 1;
	padding: 20px;
	min-width: 0;
}

.ezt-content-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: var(--bg);
}

.ezt-content-group .ezt-content {
	width: 100%;
}

.ezt-content {
	max-width: 900px;
	margin: 0 auto;
	background: var(--white);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ─── Tutor cards ─────────────────────────────────────────────────────────── */

.ezt-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ezt-view-all-link {
	font-size: 13px;
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
	padding: 0 2px;
}

.ezt-upcoming-date {
	font-size: 13px;
	font-weight: 700;
	color: var(--primary);
	white-space: nowrap;
}


.ezt-section-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
	padding: 0 1px;
}

.ezt-btn-sm {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--primary);
	background: none;
	border: 1px solid var(--primary);
	border-radius: 4px;
	padding: 1px 8px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	font-family: inherit;
	box-sizing: border-box;
}

.ezt-btn-sm.ezt-btn-applied {
	background: var(--primary);
	color: #fff;
	border-color: rgba(0,0,0,0.2);
}

.ezt-btn-sm:disabled {
	color: var(--text-muted);
	border-color: var(--border);
	cursor: default;
	opacity: 0.7;
}

.ezt-btn-sm:not(:disabled):hover {
	background: var(--primary);
	color: #fff;
	border-color: rgba(255,255,255,0.3);
}

.ezt-btn-sm.ezt-btn-danger {
	color: #dc3545;
	border-color: #dc3545;
}

.ezt-btn-sm.ezt-btn-danger:not(:disabled):hover {
	background: #dc3545;
	color: #fff;
	border-color: rgba(255,255,255,0.3);
}

.ezt-btn-sm.ezt-btn-icon {
	padding: 4px;
	line-height: 0;
}

.ezt-btn-sm.ezt-btn-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	vertical-align: middle;
}

.ezt-card-actions {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.ezt-card-actions form {
	margin: 0;
}

.ezt-tutor-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ezt-tutor-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px;
	display: flex;
	align-items: baseline;
	gap: 8px;
	cursor: pointer;
}

.ezt-tutor-card.primary-bg {
	background: var(--primary-bg);
}

.ezt-empty-card {
	color: var(--text-muted);
	font-size: 14px;
	cursor: default;
	justify-content: center;
}

.ezt-empty-card a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.ezt-card-accepted-listing {
	background: var(--primary-bg);
}

.ezt-tutor-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ezt-tutor-info {
	flex: 1;
	min-width: 0;
}

.ezt-tutor-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	margin-top: 4px;
}

.ezt-tutor-name--normal {
	font-weight: 400;
}

.ezt-tutor-subjects {
	font-size: 13px;
	color: var(--text);
	margin-top: 4px;
}

.ezt-tutor-meta {
	display: flex;
	gap: 6px;
	margin: 0 0 0 -1px;
}

.ezt-tutor-location,
.ezt-tutor-level {
	font-size: 11px;
	color: var(--text);
	background: var(--bg);
	border-radius: 3px;
	padding: 2px 4px;
	border: 1px solid rgba(0,0,0,0.05);
}

.ezt-tutor-right {
	text-align: right;
	flex-shrink: 0;
}

.ezt-tutor-rate {
	font-size: 14px;
	font-weight: 700;
	color: var(--primary);
	margin-top: 4px;
}

.ezt-tutor-distance {
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
	justify-content: flex-end;
}

.ezt-tutor-distance svg{
	margin-top: -1px;
}

.ezt-location-notice {
	font-size: 14px;
	color: var(--text-muted);
	padding: 16px 0;
}

.ezt-location-notice a {
	color: var(--primary);
	font-weight: 700;
	text-decoration: none;
}

.ezt-tutor-rating {
	font-size: 12px;
	color: #f59e0b;
	margin-top: 2px;
}

.ezt-tutor-rating span {
	color: var(--text-muted);
}


/* ─── Verify flow ─────────────────────────────────────────────────────────── */

.ezt-verify-header {
	margin-bottom: 24px;
}

.ezt-verify-steps-wrap {
	background: #f5f5f5;
	border-radius: 10px;
	padding: 6px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ezt-verify-steps-wrap .ezt-onboard-banner {
	background: transparent;
	border: 1px solid transparent;
	margin-bottom: 0;
	padding: 4px 12px;
}

.ezt-verify-steps-wrap .ezt-onboard-banner--action {
	background: var(--primary-bg);
	border: 1px solid var(--primary-light, #bfdbfe);
}

.ezt-verify-steps {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ezt-verify-step {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 600;
}

.ezt-verify-step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--border);
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 700;
}

.ezt-verify-step.active {
	color: var(--primary);
}

.ezt-verify-step.active span {
	background: var(--primary);
	color: var(--white);
}

.ezt-verify-step-divider {
	flex: 1;
	height: 1px;
	background: var(--border);
	max-width: 40px;
}

.ezt-verify-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ezt-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ezt-form-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ezt-form-group label {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
}

.ezt-form-group input,
.ezt-form-group select {
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: var(--white);
	color: var(--text);
	outline: none;
	transition: border-color 0.15s;
}

.ezt-form-group input:focus,
.ezt-form-group select:focus {
	border-color: var(--primary);
}

.ezt-form-group input[type="file"] {
	padding: 6px 8px;
	background: var(--bg);
	cursor: pointer;
}

.ezt-form-hint {
	font-size: 12px;
	color: var(--text-muted);
	margin: 0;
}

.ezt-form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 4px;
}

.ezt-btn-primary {
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--white);
	background: var(--primary);
	border: none;
	border-radius: 6px;
	padding: 9px 20px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
}

.ezt-btn-primary:hover {
	background: var(--primary-dark);
}

.ezt-btn-secondary {
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--primary);
	background: none;
	border: 1px solid var(--primary);
	border-radius: 6px;
	padding: 9px 20px;
	cursor: pointer;
	text-decoration: none;
}

.ezt-alert {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 4px;
}

.ezt-alert-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* ─── Verify pending ──────────────────────────────────────────────────────── */

.ezt-verify-pending {
	text-align: center;
}

.ezt-pending-icon {
	color: var(--primary);
	margin-bottom: 4px;
}

.ezt-pending-msg {
	font-size: 14px;
	color: var(--text-muted);
	max-width: 400px;
	margin: 8px auto 20px;
	line-height: 1.6;
}

.ezt-pending-summary {
	width: 100%;
	max-width: 400px;
	margin: 0 auto 24px;
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
	text-align: left;
}

.ezt-pending-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 9px 14px;
	font-size: 13px;
	border-bottom: 1px solid var(--border);
}

.ezt-pending-summary-row:last-child {
	border-bottom: none;
}

.ezt-pending-summary-row span:first-child {
	color: var(--text-muted);
	flex-shrink: 0;
	margin-right: 16px;
}

.ezt-pending-summary-row span:last-child {
	font-weight: 700;
	text-align: right;
}

.ezt-pending-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 400px;
	margin: 0 auto;
}

.ezt-pending-actions .ezt-btn-primary,
.ezt-pending-actions .ezt-btn-secondary {
	width: 100%;
	text-align: center;
}

/* ─── Phone landscape: icon-only sidebar ──────────────────────────────────── */

@media (max-width: 767px) and (orientation: landscape) {
	.ezt-sidebar {
		width: 64px;
		overflow-y: auto;
		scrollbar-width: none;
	}
	.ezt-sidebar::-webkit-scrollbar {
		display: none;
	}

	.ezt-sidebar-brand {
		padding: 12px 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}

	.ezt-sidebar-brand .ezt-logo-text {
		display: none;
	}

	.ezt-sidebar-logo {
		display: none;
	}

	.ezt-sidebar-brand--home .ezt-sidebar-logo {
		display: flex;
	}
	
	.ezt-logo-mark {
		width: 36px;
		height: 36px;
	}

	.ezt-sidebar-back {
		display: flex !important;
		width: 100%;
		justify-content: center;
		padding: 0;
		height: 36px;
		min-height: unset;
	}
	
	.ezt-nav {
		padding: 4px 0;
	}

	.ezt-nav li {
		padding: 2px 6px;
	}

	.ezt-nav-link {
		justify-content: center;
		padding: 10px;
		gap: 0;
	}

	.ezt-nav-label {
		display: none;
	}


	.ezt-content {
		border-radius: 10px;
		padding: 20px;
	}

	.ezt-main {
		padding: 20px;
	}

	.ezt-footer {
		padding: 15px 0 0;
	}

	.ezt-form-row {
		grid-template-columns: 1fr;
	}
}

/* ─── Phone portrait: topbar + bottom nav ─────────────────────────────────── */

@media (max-width: 767px) and (orientation: portrait) {
	body {
		background: var(--white);
	}

	.ezt-header {
		display: flex;
	}

	.ezt-sidebar {
		display: none;
	}

	.ezt-app {
		position: relative;
	}

	.ezt-bottom-nav {
		display: flex;
		position: fixed;
		bottom: calc(10px + env(safe-area-inset-bottom));
		left: 16px;
		right: 16px;
		height: 60px;
		background: rgba(233,244,255,0.5);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border-radius: 15px;
		box-shadow: 0 0 0 1.5px var(--border);
		z-index: 200;
		align-items: center;
	}

	.ezt-main {
		padding: 0;
		padding-top: 58px;
		padding-bottom: calc(70px + env(safe-area-inset-bottom));
	}

	.keyboard-open .ezt-header,
	.keyboard-open .ezt-bottom-nav {
		position: absolute;
	}
	.keyboard-open .ezt-header {
		top: 10px;
	}
	.keyboard-open .ezt-bottom-nav {
		bottom: calc(10px + env(safe-area-inset-bottom));
	}
	
	.ezt-content-group {
		gap: 15px;
	}

	.ezt-content {
		border-radius: 0;
		padding: 15px 10px 20px;
		box-shadow: none;
	}

	.ezt-footer {
		padding: 15px 0 0;
	}

	.ezt-form-row {
		grid-template-columns: 1fr;
	}
	
	.ezt-tutor-card {
		padding: 14px 10px;
	}
}

/* ─── Screen builder form (scoped to eztutor) ─────────────────────────────── */
/* Ported from base.css + components.css — only what form_edit screens need   */

.screen-form {
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.record-form {
	font-size: 0;
}

.record-form .screen-header .screen-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
	padding: 0 1px;
}

.record-form .screen-header,
.record-form .form-group,
.record-form .form-group-half-left,
.record-form .form-group-half-right,
.record-form .message {
	font-size: 14px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group-half-left,
.form-group-half-right {
	width: calc(50% - 15px);
	display: inline-block;
	vertical-align: top;
	margin-bottom: 20px;
}

.form-group-half-left {
	margin-right: 30px;
}

.form-label-row {
	display: flex;
	/* align-items: center; */
	justify-content: space-between;
	margin-bottom: 0;
}

.form-label-row label {
	margin-bottom: 0;
}


.form-group label {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	padding-left: 1px;
}

.form-group .checkbox-label {
	display: inline-flex;
	font-weight: normal;
	margin-bottom: 0;
	padding-left: 0;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	height: auto;
	box-sizing: border-box;
	background: var(--white);
	color: var(--text);
}

.form-group textarea {
	resize: vertical;
}

.form-group select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 3l5 6 5-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

.form-group input[type="date"] {
	position: relative;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	right: 0;
	width: 36px;
	height: 100%;
	cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--primary);
}

.form-group input[readonly],
.form-group textarea[readonly],
.form-group select[disabled] {
	background: var(--bg);
	color: var(--text-muted);
	cursor: not-allowed;
	opacity: 1;
}

.form-group input[readonly]:focus,
.form-group textarea[readonly]:focus {
	border-color: var(--border);
	box-shadow: none;
}

.form-group input[type="file"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px dashed var(--border);
	border-radius: 6px;
	font-size: 13px;
	font-family: 'Nunito', sans-serif;
	background: var(--bg);
	box-sizing: border-box;
	cursor: pointer;
}

.form-group input[type="file"]:hover {
	border-color: var(--primary);
}

.form-group[data-required] label::after {
	content: " *";
	color: #ff4444;
}

.form-checkbox-inline {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 5px;
}

.form-checkbox-inline input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	margin: 0;
	accent-color: var(--primary);
}

.record-form input[type="checkbox"] {
	accent-color: var(--primary);
	border: 1px solid var(--border);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.form-checkbox-inline label {
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.form-checkbox-inline .checkbox-group {
	gap: 0;
	flex-wrap: nowrap;
	align-items: center;
}

.form-checkbox-inline .checkbox-label {
	display: inline-flex;
}

.checkbox-group {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.checkbox-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-weight: normal;
	margin: 0;
}

.checkbox-label input[type="checkbox"] {
	margin-right: 5px;
	cursor: pointer;
}

.form-group .form-checkbox-inline label::after {
	content: "" !important;
}

.screen-edit-icon {
	text-decoration: none;
}

.btn-view-file {
	display: inline-flex;
	align-items: center;
	padding: 0 8px;
	height: 20px;
	font-size: 13px;
	font-family: 'Nunito', sans-serif;
	font-weight: 400;
	background: #efefef;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	flex-shrink: 0;
}

.file-label-link {
	font-size: 12px;
	font-weight: normal;
	color: var(--text-muted);
	text-decoration: none;
	margin-left: 4px;
}

.file-label-link::before {
	content: "📎";
	margin-right: 3px;
}

.file-label-link:hover {
	color: var(--text);
}

.validation-error {
	color: #c00;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

.input-error {
	border-color: #ff4444 !important;
	background: #fff5f5;
}

.section-header {
	clear: both;
	width: 100%;
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	padding-bottom: 3px;
	margin-bottom: 15px;
	margin-top: 24px;
}

.message {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.message-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.message-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.btn {
	padding: 9px 20px;
	border: none;
	border-radius: 6px;
	font-family: 'Nunito', sans-serif;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	display: inline-block;
	min-width: 100px;
	text-align: center;
}

.btn-primary {
	background: var(--primary);
	color: var(--white);
	border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
	background: var(--primary-dark);
}

.btn-secondary {
	background: none;
	color: var(--primary);
	border: 1px solid var(--primary);
	margin-left: 10px;
	text-decoration: none;
}

.btn-secondary:hover {
	background: var(--primary-bg);
}

.form-actions {
	margin-top: 24px;
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 767px) {
	.form-group-half-left,
	.form-group-half-right {
		width: 100%;
		display: block;
		margin-right: 0;
	}

	.btn {
		width: 100%;
		margin-left: 0;
		margin-top: 8px;
	}
}

/* ─── Confirm dialog ──────────────────────────────────────────────────────── */

.ezt-confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ezt-confirm-box {
	background: var(--white);
	border-radius: 16px;
	padding: 15px;
	max-width: 320px;
	width: 100%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	text-align: center;
}

.ezt-confirm-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary-bg);
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.ezt-confirm-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.ezt-confirm-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 6px;
}

.ezt-confirm-msg {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.5;
	margin-bottom: 20px;
}

.ezt-confirm-actions {
	display: flex;
	gap: 8px;
}

.ezt-confirm-actions button {
	flex: 1;
	padding: 10px;
	border-radius: 8px;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.1);
}

.ezt-confirm-cancel {
	background: var(--bg);
	color: var(--text);
}

.ezt-confirm-ok {
	background: var(--primary);
	color: var(--white);
}

.ezt-confirm-danger .ezt-confirm-icon {
	background: #fef2f2;
	color: #dc2626;
}

.ezt-confirm-danger .ezt-confirm-ok {
	background: #dc2626;
}

.ezt-confirm-actions a.ezt-confirm-ok {
	flex: 1;
	padding: 10px;
	border-radius: 8px;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.1);
	text-align: center;
	display: block;
}

/* ── Toast ── */
.toast {
	position: fixed;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	background: #4CAF50;
	color: #fff;
	padding: 10px 15px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	z-index: 9999;
	animation: toastSlideDown 0.3s ease-out;
	text-align: center;
	border: 3px solid rgba(0,0,0,0.2);
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	min-width: 240px;
}

@media (max-width: 640px) {
	.toast {
		left: 6px;
		right: 6px;
		transform: none;
	}
}

.toast.toast-error {
	background: #e53935;
}

.toast.hiding {
	animation: toastSlideUp 0.3s ease-in forwards;
}

@keyframes toastSlideDown {
	from { margin-top: -80px; opacity: 0; }
	to   { margin-top: 0;     opacity: 1; }
}

@keyframes toastSlideUp {
	from { margin-top: 0;     opacity: 1; }
	to   { margin-top: -80px; opacity: 0; }
}

/* ── Profile / Location ── */
.ezt-location-search-row {
	display: flex;
	gap: 5px;
	align-items: center;
	margin-bottom: 12px;
}

.ezt-location-search-input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Nunito', sans-serif;
	background: var(--white);
	color: var(--text);
	margin-top: -8px;
}

.ezt-location-search-input:focus {
	outline: none;
	border-color: var(--primary);
}

.ezt-locate-btn {
	width: 42px;
	height: 42px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--white);
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text);
}

.ezt-locate-btn:active {
	background: var(--bg-alt, #f0f0f0);
}

.ezt-location-map-wrap {
	position: relative;
	margin-bottom: 12px;
}

.ezt-location-map {
	width: 100%;
	height: 500px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
}


.ezt-location-actions {
	display: flex;
	gap: 10px;
}

@media (max-width: 640px) {
	.ezt-location-map {
		height: 360px;
	}
	
	.ezt-location-actions {
		flex-direction: column;
	}

	.ezt-location-actions .ezt-btn-primary,
	.ezt-location-actions .ezt-btn-secondary {
		width: 100%;
	}
}

.ezt-locate-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	pointer-events: none;
	border: 1px solid rgba(0,0,0,0.07);
}

.ezt-locate-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: ezt-spin 0.7s linear infinite;
}

@keyframes ezt-spin {
	to { transform: rotate(360deg); }
}

/* ── Profile Tabs ── */
.ezt-content-tabs {
	max-width: 1000px;
	margin: 0 auto;
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	overflow: hidden;
}

.ezt-content-tabs .tabs {
	padding: 0 24px;
	border-bottom: 3px solid var(--border);
	margin-bottom: 0;
	display: flex;
	align-items: stretch;
}

.ezt-content-tabs .tab {
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-muted);
	padding: 16px 16px 6px;
	border-bottom: 3px solid transparent;
	margin-bottom: -3px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.ezt-content-tabs .tab:hover {
	color: var(--text);
}

.ezt-content-tabs .tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.ezt-content-tabs .ezt-content {
	box-shadow: none;
	border-radius: 0;
	margin: 0;
	max-width: none;
}

@media (max-width: 767px) {
	.ezt-content-tabs {
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
	}
	
	.ezt-content-tabs .tabs {
		padding: 0 12px;
	}
	
	.ezt-content-tabs .tab {
		padding: 12px 12px 6px;
	}

	input, select, textarea {
		font-size: 16px !important;
	}

	.form-group textarea {
		resize: none;
	}
}

/* ── Quick-link card ── */
.ezt-tutor-grid:has(a.ezt-quicklink-card) {
	margin-bottom: 10px;
}

a.ezt-quicklink-card {
	text-decoration: none;
	color: inherit;
	background-color: var(--primary-bg);
}

a.ezt-quicklink-card .ezt-tutor-right {
	color: var(--text-muted);
	display: flex;
	align-items: center;
	margin-right: -3px;
}

/* ── Notices ── */
.ezt-notice {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
}

.ezt-notice-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* ── Status badges ── */
.ezt-status-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 20px;
	background: rgba(0,0,0,0.05);
	color: var(--text-muted);
	margin-top: 4px;
}

/* ── Applicant count link (legacy, kept for listing-applicants page) ── */
.ezt-applicant-count {
	display: block;
	font-size: 12px;
	color: var(--primary);
	text-decoration: none;
	margin-top: 4px;
}

.ezt-applicant-count:hover {
	text-decoration: underline;
}

/* ── My listing card (row-based layout) ── */
.ezt-my-listing-card {
	display: block;
	cursor: default;
}

.ezt-my-listing-row1 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.ezt-my-listing-row1 .ezt-tutor-rate {
	margin-top: 0;
}

.ezt-my-listing-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--border);
}

.ezt-applicant-count-btn {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	background: var(--primary);
	color: var(--white);
	border: 2px solid rgba(0,0,0,0.1);
	border-radius: 4px;
	padding: 4px 12px;
	text-decoration: none;
	transition: background 0.15s, border 0.15s;
}

.ezt-applicant-count-btn:hover {
	background: var(--primary-dark);
	border: 2px solid rgba(255,255,255,0.3);
}

.ezt-my-listing-footer .ezt-card-actions {
	margin-top: 0;
}

/* ── Listing applicants page ── */
.ezt-listing-summary {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 16px;
}

.ezt-listing-summary .ezt-tutor-meta {
	margin-top: 6px;
}

.ezt-listing-summary .ezt-tutor-meta span {
	font-size: 12px;
	color: var(--text-muted);
	background: var(--bg);
	border-radius: 6px;
	padding: 2px 7px;
}

.ezt-subsection-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 10px;
}

.ezt-applicant-message {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
}

.ezt-card-accepted {
	background: var(--primary-bg);
}

.ezt-card-rejected {
	opacity: 0.5;
}

.ezt-payment-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fffbeb;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	gap: 12px;
}

.ezt-payment-banner-text {
	font-size: 14px;
	color: var(--text);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ezt-loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	gap: 16px;
}

.ezt-loading-overlay .ezt-locate-spinner {
	width: 48px;
	height: 48px;
}

.ezt-loading-overlay-msg {
	font-size: 14px;
	color: var(--text-muted);
}

/* ─── Home dashboard ──────────────────────────────────────────────────────── */

.ezt-home-greeting {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ezt-home-greeting-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 0 2px;
}

.ezt-home-greeting-text span {
	font-size: 13px;
	color: var(--text-muted);
}

.ezt-home-greeting-text strong {
	font-size: 20px;
	font-weight: 800;
	color: var(--text);
}

.ezt-home-role-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ezt-home-role-badge.tutor {
	background: #eff6ff;
	color: #1d4ed8;
}

/* ── Onboarding banners ── */

.ezt-onboard-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 10px;
	text-decoration: none;
	color: var(--text);
}

a.ezt-onboard-banner--action {
	cursor: pointer;
	transition: background 0.15s;
}

.ezt-onboard-banner--action {
	background: var(--primary-bg, #eff6ff);
	border: 1px solid var(--primary-light, #bfdbfe);
}

a.ezt-onboard-banner--action:hover {
	background: #dbeafe;
}

.ezt-onboard-banner--done {
	background: #f0fdf4;
	border: 1px solid #b9e3c8;
	cursor: default;
}

.ezt-onboard-banner--done .ezt-onboard-banner-icon,
.ezt-onboard-banner--done .ezt-onboard-banner-arrow {
	color: #16a34a;
}

.ezt-onboard-banner--locked {
	background: #fafafa;
	border: 1px solid var(--border);
	cursor: default;
	opacity: 0.6;
}

a.ezt-onboard-banner--locked {
	cursor: pointer;
	opacity: 1;
	transition: background 0.15s;
}

a.ezt-onboard-banner--locked:hover {
	background: #f0f0f0;
}

.ezt-onboard-banner--locked .ezt-onboard-banner-icon,
.ezt-onboard-banner--locked .ezt-onboard-banner-arrow {
	color: #999;
}

.ezt-onboard-banner-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	color: var(--primary);
}



.ezt-onboard-banner-body {
	flex: 1;
	min-width: 0;
}

.ezt-onboard-banner-title {
	font-size: 14px;
	font-weight: 700;
}

.ezt-onboard-banner-sub {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 2px;
}

.ezt-onboard-banner-sub a {
	color: var(--primary);
	text-decoration: none;
}

.ezt-onboard-banner-sub a:hover {
	text-decoration: underline;
}

.ezt-onboard-banner-arrow {
	flex-shrink: 0;
	color: var(--primary);
}

.ezt-onboard-divider {
	display: flex;
	justify-content: center;
	color: var(--text-muted);
	opacity: 0.5;
	margin: 10px 0;
}

/* ── Stats row ── */

.ezt-stats-divider {
	height: 3px;
	margin: 26px 0 0;
	border: none;
	background: linear-gradient(to right, transparent, var(--primary), transparent);
	border-radius: 30%;
}

.ezt-stats-heading {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	text-align: center;
}

.ezt-stats-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 18px 0 8px;
}

.ezt-stat {
	flex: 1;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 10px;
	text-align: center;
}

.ezt-stat-number {
	font-size: 22px;
	font-weight: 800;
	color: var(--primary);
	line-height: 1;
	margin-bottom: 6px;
}

.ezt-stat-label {
	font-size: 11px;
	color: var(--text-muted);
	line-height: 1.3;
}

.ezt-empty-msg {
	color: var(--text-muted);
	font-size: 14px;
	padding: 32px 0;
	text-align: center;
}

/* ── Profile hub ── */
.ezt-onboard-banner--neutral {
	background: var(--white);
	border: 1px solid var(--border);
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	cursor: pointer;
	width: 100%;
}

a.ezt-onboard-banner--neutral:hover,
button.ezt-onboard-banner--neutral:hover {
	background: var(--primary-bg);
}

.ezt-onboard-banner--logout .ezt-onboard-banner-icon,
.ezt-onboard-banner--logout .ezt-onboard-banner-title,
.ezt-onboard-banner--logout .ezt-onboard-banner-arrow {
	color: #dc2626;
}

.ezt-onboard-banner--logout{
	margin-bottom: 0;
}
