/**
 * Teacher Application Form — scoped styles
 * All rules scoped to .tdb-apply-wrap to avoid theme conflicts.
 * !important used vs Hello Elementor theme overrides (per TDB convention).
 *
 * Palette reused from existing TDB admin UI for brand consistency:
 *   --tdb-accent   #e8743a  (existing brand orange — CTAs, active states)
 *   --tdb-navy     #1A3C8F  (existing pill/subject color from admin columns)
 */

.tdb-apply-wrap {
	--tdb-accent:       #e8743a;
	--tdb-accent-dark:  #d4622c;
	--tdb-accent-tint:  #fff5ef;
	--tdb-navy:         #1A3C8F;
	--tdb-navy-tint:    #e8eefb;
	--tdb-ink:          #1c1f26;
	--tdb-body:         #5a6270;
	--tdb-line:         #e6e8ec;
	--tdb-surface:      #ffffff;
	--tdb-bg:           #fafbfc;
	--tdb-radius:       12px;
	--tdb-radius-sm:    8px;
	--tdb-shadow:       0 1px 2px rgba(20,24,40,0.04), 0 8px 24px -12px rgba(20,24,40,0.10);
	--tdb-shadow-hover: 0 2px 6px rgba(20,24,40,0.06), 0 14px 32px -14px rgba(20,24,40,0.16);
}

.tdb-apply-wrap * { box-sizing: border-box; }

.tdb-apply-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--tdb-ink);
}

/* ── Header ─────────────────────────────────────────────── */
.tdb-apply-header { text-align: center; margin-bottom: 22px; }

.tdb-apply-title {
	font-size: 30px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	color: var(--tdb-ink);
	margin: 0 0 10px !important;
	line-height: 1.2 !important;
}

.tdb-apply-subtitle {
	font-size: 15.5px !important;
	color: var(--tdb-body);
	margin: 0 auto !important;
	line-height: 1.65 !important;
	max-width: 520px;
}

/* ── Step indicator ─────────────────────────────────────── */
.tdb-apply-stepper {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	max-width: 620px;
	margin: 0 auto 8px;
}
.tdb-apply-stepper-item {
	display: flex; flex-direction: column; align-items: center; gap: 7px;
	flex-shrink: 0;
}
.tdb-apply-stepper-circle {
	width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #fff; border: 2px solid var(--tdb-line);
	color: #b0b5bd; font-size: 13px !important; font-weight: 700 !important;
	transition: all 0.25s ease;
	position: relative;
}
.tdb-apply-stepper-check { display: none; }
.tdb-apply-stepper-item.is-active .tdb-apply-stepper-circle {
	border-color: var(--tdb-accent); color: var(--tdb-accent);
	box-shadow: 0 0 0 4px rgba(232,116,58,0.14);
}
.tdb-apply-stepper-item.is-done .tdb-apply-stepper-circle {
	background: var(--tdb-accent); border-color: var(--tdb-accent); color: #fff;
}
.tdb-apply-stepper-item.is-done .tdb-apply-stepper-number { display: none; }
.tdb-apply-stepper-item.is-done .tdb-apply-stepper-check { display: block; }
.tdb-apply-stepper-label {
	font-size: 11.5px !important; font-weight: 600 !important; color: #97a0ab;
	white-space: nowrap;
	transition: color 0.25s ease;
}
.tdb-apply-stepper-item.is-active .tdb-apply-stepper-label { color: var(--tdb-navy); }
.tdb-apply-stepper-item.is-done .tdb-apply-stepper-label { color: var(--tdb-ink); }
.tdb-apply-stepper-line {
	flex: 1; height: 2px; background: var(--tdb-line);
	margin: 17px 4px 0; min-width: 16px;
	transition: background 0.25s ease;
}
.tdb-apply-stepper-line.is-done { background: var(--tdb-accent); }

.tdb-apply-stepper-mobile {
	display: none;
	text-align: center;
	font-size: 12.5px !important; font-weight: 700 !important;
	color: var(--tdb-accent);
	margin: 0 0 20px !important;
}

@media (max-width: 640px) {
	.tdb-apply-stepper { display: none; }
	.tdb-apply-stepper-mobile { display: block; }
}
@media (min-width: 641px) {
	.tdb-apply-stepper { margin-bottom: 30px; }
}

/* ── Step visibility + transition ──────────────────────── */
.tdb-apply-step { display: none; }
.tdb-apply-step.is-active { display: block; }

@media (prefers-reduced-motion: no-preference) {
	.tdb-apply-step.is-active .tdb-apply-section {
		animation: tdb-apply-step-in 0.3s cubic-bezier(0.16,1,0.3,1) both;
	}
	@keyframes tdb-apply-step-in {
		from { opacity: 0; transform: translateY(8px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}

/* ── Step navigation (Back / Continue) ─────────────────── */
.tdb-apply-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 22px;
}
.tdb-apply-back {
	background: none; border: none; cursor: pointer;
	font-family: inherit; font-size: 13.5px !important; font-weight: 600 !important;
	color: #8a8f99; padding: 10px 6px; display: inline-flex; align-items: center; gap: 6px;
	transition: color 0.15s;
}
.tdb-apply-back:hover { color: var(--tdb-navy); }

.tdb-apply-next {
	display: inline-flex !important; align-items: center !important; gap: 8px !important;
	background: var(--tdb-accent) !important; color: #fff !important;
	border: none !important; border-radius: var(--tdb-radius-sm) !important;
	padding: 13px 28px !important; font-size: 14.5px !important; font-weight: 700 !important;
	cursor: pointer; transition: background 0.18s, box-shadow 0.18s;
	white-space: normal !important; -webkit-appearance: none !important;
	box-shadow: 0 4px 14px -4px rgba(232,116,58,0.4);
}
.tdb-apply-next:hover { background: var(--tdb-accent-dark) !important; }

/* ── Success state ──────────────────────────────────────── */
.tdb-apply-success {
	text-align: center;
	padding: 56px 28px;
	background: #f3faf3;
	border: 1.5px solid #c3e6c3;
	border-radius: var(--tdb-radius);
	color: #2e7d32;
}
.tdb-apply-success svg {
	margin-bottom: 16px;
	background: #fff;
	border-radius: 50%;
	padding: 10px;
	box-shadow: 0 2px 8px rgba(46,125,50,0.15);
}
.tdb-apply-success p {
	font-size: 17px !important;
	font-weight: 600 !important;
	margin: 0 auto !important;
	color: #2e7d32;
	max-width: 380px;
	line-height: 1.5;
}

/* ── Form sections ───────────────────────────────────────── */
.tdb-apply-form { display: flex; flex-direction: column; }

.tdb-apply-section {
	background: var(--tdb-surface);
	border: 1px solid var(--tdb-line);
	border-radius: var(--tdb-radius);
	padding: 30px 28px;
	margin-bottom: 22px;
	box-shadow: var(--tdb-shadow);
	transition: box-shadow 0.2s ease;
}
.tdb-apply-section:hover { box-shadow: var(--tdb-shadow-hover); }

.tdb-apply-section-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: var(--tdb-navy);
	border-bottom: 2px solid var(--tdb-accent);
	padding-bottom: 13px !important;
	margin: 0 0 24px !important;
}
.tdb-apply-section-title svg { color: var(--tdb-accent); flex-shrink: 0; }

.tdb-apply-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 24px;
}

.tdb-apply-field { display: flex; flex-direction: column; gap: 8px; }
.tdb-apply-field--wide { grid-column: 1 / -1; }
.tdb-apply-field--wide + .tdb-apply-field--wide { margin-top: 4px; }

/* Phone — intl-tel-input country code dropdown (self-hosted, see assets/vendor/intl-tel-input).
   The library sets padding-left on the input inline (via JS, sized to the flag+dial-code chip)
   so the text doesn't render under it — our own .tdb-apply-input rule below uses !important on
   the padding shorthand, which silently wins over that inline style. This overrides it back with
   a value roomy enough for any dial code (flag + up to 4 digits + dropdown arrow). */
.tdb-apply-field .iti { display: block; width: 100%; }
.tdb-apply-field .iti input.tdb-apply-input { width: 100%; padding-left: 96px !important; }

/* Profile photo — centered 1:1 square uploader, sits above the other fields */
.tdb-apply-field--photo { align-items: center; margin-bottom: 6px; }
.tdb-apply-field--photo .tdb-apply-label { align-items: center; text-align: center; }
.tdb-apply-upload--square {
	width: 200px;
	max-width: 100%;
}
.tdb-apply-upload--square .tdb-apply-upload-preview {
	aspect-ratio: 1 / 1;
	min-height: 0;
	padding: 14px;
}

.tdb-apply-label {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #333;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 2px;
}
.tdb-req { color: var(--tdb-accent); }
.tdb-apply-label__row { display: inline-flex; align-items: baseline; gap: 4px; }
.tdb-apply-hint { font-size: 12px !important; font-weight: 400 !important; color: #97a0ab; line-height: 1.5; }

.tdb-apply-input,
.tdb-apply-select,
.tdb-apply-textarea {
	width: 100% !important;
	padding: 12px 14px !important;
	border: 1.5px solid var(--tdb-line) !important;
	border-radius: var(--tdb-radius-sm) !important;
	font-size: 14px !important;
	font-family: inherit !important;
	color: var(--tdb-ink) !important;
	background: var(--tdb-bg) !important;
	transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
	-webkit-appearance: none !important;
}

.tdb-apply-input:hover,
.tdb-apply-select:hover,
.tdb-apply-textarea:hover { border-color: #c7cbd3 !important; }

.tdb-apply-input:focus,
.tdb-apply-select:focus,
.tdb-apply-textarea:focus {
	outline: none !important;
	border-color: var(--tdb-accent) !important;
	background: var(--tdb-surface) !important;
	box-shadow: 0 0 0 4px rgba(232,116,58,0.12) !important;
}

.tdb-apply-textarea { resize: vertical !important; line-height: 1.6 !important; }

.tdb-apply-error {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #d32f2f;
	min-height: 14px;
	display: block;
}

.tdb-apply-server-error {
	font-size: 13.5px !important;
	color: #b3261e;
	background: #fdecea;
	border: 1px solid #f5c2c0;
	border-radius: var(--tdb-radius-sm);
	padding: 12px 16px !important;
	margin: 14px 0 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Photo upload — drag & drop dropzone ────────────────── */
.tdb-apply-upload { position: relative; }
.tdb-apply-upload input[type="file"] {
	position: absolute; inset: 0; width: 100%; height: 100%;
	opacity: 0; cursor: pointer; z-index: 2;
}
.tdb-apply-upload-preview {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 10px; text-align: center;
	border: 1.5px dashed #ccd1d9; border-radius: var(--tdb-radius-sm);
	padding: 32px 16px;
	color: #97a0ab; font-size: 13px !important;
	transition: border-color 0.18s, background 0.18s, transform 0.15s;
	background-size: cover !important;
	background-position: center !important;
	min-height: 120px;
}
.tdb-apply-upload-preview svg { color: #c3c8d1; transition: color 0.18s; }
.tdb-apply-upload-preview.has-image {
	color: transparent; border-style: solid; border-color: var(--tdb-accent);
	box-shadow: 0 0 0 3px rgba(232,116,58,0.1);
}
.tdb-apply-upload:hover .tdb-apply-upload-preview,
.tdb-apply-upload-preview.is-dragover {
	border-color: var(--tdb-accent);
	background-color: var(--tdb-accent-tint);
}
.tdb-apply-upload:hover .tdb-apply-upload-preview svg,
.tdb-apply-upload-preview.is-dragover svg { color: var(--tdb-accent); }
.tdb-apply-upload-preview.is-dragover { transform: scale(1.01); }

/* ── Pills (subjects) ────────────────────────────────────── */
.tdb-apply-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tdb-apply-pill {
	display: inline-flex; align-items: center;
	border: 1.5px solid var(--tdb-line) !important; border-radius: 20px !important;
	padding: 9px 18px !important; cursor: pointer;
	font-size: 13px !important; font-weight: 600 !important; color: #444;
	transition: all 0.15s; user-select: none;
	background: var(--tdb-bg);
}
.tdb-apply-pill input { display: none; }
.tdb-apply-pill:hover { border-color: var(--tdb-navy); color: var(--tdb-navy); }
.tdb-apply-pill:has(input:checked) {
	background: var(--tdb-navy) !important; border-color: var(--tdb-navy) !important; color: #fff !important;
}

/* ── Radio group (mode) ──────────────────────────────────── */
.tdb-apply-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.tdb-apply-radio {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1.5px solid var(--tdb-line) !important; border-radius: var(--tdb-radius-sm) !important;
	padding: 10px 16px !important; cursor: pointer;
	font-size: 13px !important; font-weight: 600 !important; color: #444;
	transition: all 0.15s; background: var(--tdb-bg);
}
.tdb-apply-radio input { accent-color: var(--tdb-accent); margin: 0; }
.tdb-apply-radio:hover { border-color: var(--tdb-accent); }
.tdb-apply-radio:has(input:checked) {
	border-color: var(--tdb-accent) !important; background: var(--tdb-accent-tint) !important; color: var(--tdb-accent-dark);
}

/* ── Rate row ────────────────────────────────────────────── */
.tdb-apply-rate-row { display: flex; gap: 8px; }
.tdb-apply-select--currency { width: 92px !important; flex-shrink: 0; font-weight: 700 !important; }

/* ── Availability — "week strip" ────────────────────────── */
.tdb-apply-avail-block { margin-bottom: 16px; }
.tdb-apply-avail-block:last-child { margin-bottom: 0; }
.tdb-apply-avail-label {
	display: flex; align-items: center; gap: 6px;
	font-size: 12px !important; font-weight: 700 !important; color: var(--tdb-navy);
	text-transform: uppercase; letter-spacing: 0.4px;
	margin-bottom: 8px;
}
.tdb-apply-day-pills {
	display: flex; gap: 6px;
	background: var(--tdb-bg);
	border: 1px solid var(--tdb-line);
	border-radius: var(--tdb-radius-sm);
	padding: 6px;
	width: fit-content;
}
.tdb-apply-day-pill {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 34px;
	border-radius: 6px !important;
	cursor: pointer; font-size: 12px !important; font-weight: 700 !important; color: #8a8f99;
	transition: all 0.15s; background: transparent;
}
.tdb-apply-day-pill input { display: none; }
.tdb-apply-day-pill:hover { color: var(--tdb-ink); background: #fff; }
.tdb-apply-day-pill:has(input:checked) {
	background: var(--tdb-accent) !important; color: #fff !important;
	box-shadow: 0 2px 6px rgba(232,116,58,0.3);
}

/* ── Consent + submit ────────────────────────────────────── */
.tdb-apply-section--submit { background: transparent; border: none; padding: 4px 0 0; box-shadow: none; }
.tdb-apply-section--submit:hover { box-shadow: none; }
.tdb-apply-checkbox {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 13.5px !important; color: #444; cursor: pointer; line-height: 1.55;
}
.tdb-apply-checkbox input {
	margin-top: 3px; accent-color: var(--tdb-accent); flex-shrink: 0;
	width: 16px; height: 16px;
}

.tdb-apply-submit-row { margin-top: 20px; }

.tdb-apply-submit {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	gap: 10px !important;
	background: var(--tdb-accent) !important; color: #fff !important;
	border: none !important; border-radius: var(--tdb-radius-sm) !important;
	padding: 15px 32px !important; font-size: 15px !important; font-weight: 700 !important;
	cursor: pointer; transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
	white-space: normal !important;
	-webkit-appearance: none !important;
	width: 100%;
	box-shadow: 0 4px 14px -4px rgba(232,116,58,0.45);
}
.tdb-apply-submit:hover:not(:disabled) {
	background: var(--tdb-accent-dark) !important;
	box-shadow: 0 6px 18px -4px rgba(232,116,58,0.55);
}
.tdb-apply-submit:active:not(:disabled) { transform: scale(0.99); }
.tdb-apply-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.tdb-apply-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	animation: tdb-apply-spin 0.7s linear infinite;
}
@keyframes tdb-apply-spin { to { transform: rotate(360deg); } }

/* ── Honeypot ────────────────────────────────────────────── */
.tdb-apply-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* Note: section entrance animation is now handled by the step-transition
   rule above (.tdb-apply-step.is-active .tdb-apply-section) since each
   step shows exactly one section at a time. */

/* ── Accessible focus (keyboard nav) ─────────────────────── */
.tdb-apply-wrap a:focus-visible,
.tdb-apply-wrap button:focus-visible,
.tdb-apply-wrap input:focus-visible,
.tdb-apply-wrap label:focus-within {
	outline: 2px solid var(--tdb-accent) !important;
	outline-offset: 2px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
	.tdb-apply-grid { grid-template-columns: 1fr; gap: 16px; }
	.tdb-apply-title { font-size: 23px !important; }
	.tdb-apply-subtitle { font-size: 14px !important; }
	.tdb-apply-section { padding: 20px !important; }
	.tdb-apply-progress { max-width: 100%; }
	.tdb-apply-day-pill { width: 38px; height: 32px; }
	.tdb-apply-submit { padding: 14px 24px !important; }
}

/* ══════════════════════════════════════════════════════════
   Education Repeater
   ══════════════════════════════════════════════════════════ */
.tdb-apply-edu-repeater { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.tdb-apply-edu-row {
	display: flex; align-items: flex-end; gap: 12px;
	background: var(--tdb-bg); border: 1.5px solid var(--tdb-line);
	border-radius: var(--tdb-radius-sm); padding: 16px;
	transition: border-color 0.15s;
}
.tdb-apply-edu-row:hover { border-color: #d8dce3; }
.tdb-apply-edu-row__fields {
	flex: 1; display: grid; grid-template-columns: 1fr 1fr 90px 90px;
	gap: 12px; align-items: end;
}
.tdb-apply-field--year .tdb-apply-input { text-align: center; }
.tdb-apply-edu-remove {
	flex-shrink: 0; width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	background: #fff0f0; border: 1.5px solid #fcc; border-radius: 8px;
	color: #c44; cursor: pointer; padding: 0; transition: all 0.15s;
}
.tdb-apply-edu-remove:hover { background: #c44; border-color: #c44; color: #fff; }
.tdb-apply-edu-add {
	display: inline-flex; align-items: center; gap: 7px;
	background: none; border: 1.5px dashed var(--tdb-accent); color: var(--tdb-accent);
	border-radius: var(--tdb-radius-sm); padding: 10px 18px;
	font-family: inherit; font-size: 13px !important; font-weight: 600 !important;
	cursor: pointer; transition: all 0.15s;
}
.tdb-apply-edu-add:hover { background: var(--tdb-accent-tint); }

@media (max-width: 640px) {
	.tdb-apply-edu-row { flex-direction: column; align-items: stretch; }
	.tdb-apply-edu-row__fields { grid-template-columns: 1fr 1fr; }
	.tdb-apply-edu-remove { align-self: flex-end; }
}

/* ══════════════════════════════════════════════════════════
   Multi-slot Availability
   ══════════════════════════════════════════════════════════ */
.tdb-apply-avail-section { margin-bottom: 26px; }
.tdb-apply-avail-section:last-of-type { margin-bottom: 0; }

.tdb-apply-avail-title {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px !important; font-weight: 700 !important;
	color: var(--tdb-navy); margin: 0 0 4px !important;
}
.tdb-apply-avail-title svg { color: var(--tdb-accent); }

.tdb-apply-avail-multi {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
}

.tdb-apply-avail-day-block {
	border-radius: var(--tdb-radius-sm);
	transition: all 0.2s ease;
	flex: 0 0 auto;
}
/* Expanded (day toggled on) — becomes a full-width card so its slot editor drops to its own line */
.tdb-apply-avail-day-block:has(.tdb-apply-day-enable:checked) {
	flex: 1 1 100%;
	border: 1.5px solid rgba(232,116,58,0.35);
	background: #fff;
	box-shadow: 0 2px 8px -4px rgba(232,116,58,0.15);
}

.tdb-apply-avail-day-header {
	display: inline-flex;
	align-items: center;
	padding: 0;
	background: transparent;
	cursor: pointer;
}
.tdb-apply-avail-day-block:has(.tdb-apply-day-enable:checked) .tdb-apply-avail-day-header {
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--tdb-accent-tint);
	border-radius: var(--tdb-radius-sm) var(--tdb-radius-sm) 0 0;
}

.tdb-apply-day-copy {
	display: none;
	align-items: center; gap: 6px;
	background: #fff; border: 1px dashed #ccd1d9; border-radius: 6px;
	padding: 5px 10px; font-size: 11.5px !important; font-weight: 600 !important;
	color: #8a8f99; cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.tdb-apply-avail-day-block:has(.tdb-apply-day-enable:checked) .tdb-apply-day-copy { display: inline-flex; }
.tdb-apply-day-copy:hover { border-color: var(--tdb-accent); color: var(--tdb-accent); background: var(--tdb-accent-tint); }

.tdb-apply-day-copy-panel {
	margin-top: 4px; padding: 12px 14px;
	background: var(--tdb-bg); border: 1px dashed var(--tdb-line); border-radius: var(--tdb-radius-sm);
}
.tdb-apply-copy-panel-label { font-size: 12px !important; font-weight: 700 !important; color: var(--tdb-navy); margin: 0 0 8px !important; }
.tdb-apply-copy-panel-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tdb-apply-copy-day-check {
	display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
	border: 1.5px solid var(--tdb-line); border-radius: 6px; padding: 5px 9px;
	font-size: 12px !important; color: #6a6f79; user-select: none; background: #fff;
}
.tdb-apply-copy-day-check input { accent-color: var(--tdb-accent); }
.tdb-apply-copy-panel-actions { display: flex; gap: 8px; }
.tdb-apply-copy-apply {
	background: var(--tdb-accent); color: #fff !important; border: none; border-radius: 6px;
	padding: 6px 16px; font-size: 12px !important; font-weight: 700 !important; cursor: pointer;
}
.tdb-apply-copy-apply:hover { background: var(--tdb-accent-dark); }
.tdb-apply-copy-cancel {
	background: none; border: 1px solid var(--tdb-line); border-radius: 6px;
	padding: 6px 16px; font-size: 12px !important; font-weight: 600 !important; color: #8a8f99; cursor: pointer;
}
.tdb-apply-copy-cancel:hover { border-color: #c7cbd3; color: #6a6f79; }

.tdb-apply-avail-day-toggle {
	display: flex; align-items: center; gap: 12px; cursor: pointer; width: 100%;
}
.tdb-apply-avail-day-toggle input[type="checkbox"] { display: none; }

.tdb-apply-day-toggle-label {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 36px;
	border: 1.5px solid var(--tdb-line); border-radius: 8px;
	font-size: 12.5px !important; font-weight: 700 !important; color: #8a8f99;
	background: #fff; transition: all 0.15s; user-select: none;
}
.tdb-apply-avail-day-block:hover .tdb-apply-day-toggle-label { border-color: #c7cbd3; color: #6a6f79; }
.tdb-apply-avail-day-toggle input:checked + .tdb-apply-day-toggle-label {
	background: var(--tdb-accent); border-color: var(--tdb-accent); color: #fff;
	box-shadow: 0 2px 6px rgba(232,116,58,0.3);
}

.tdb-apply-avail-slots {
	padding: 14px 16px 16px; border-top: none;
	background: #fff; display: flex; flex-direction: column; gap: 9px;
	border-radius: 0 0 var(--tdb-radius-sm) var(--tdb-radius-sm);
}
.tdb-apply-slot-list { display: flex; flex-direction: column; gap: 8px; }
.tdb-apply-slot-row { display: flex; align-items: center; gap: 9px; transition: background 0.15s; border-radius: 6px; padding: 2px; }
.tdb-apply-slot-row.is-incomplete { background: #fff3f2; }
.tdb-apply-slot-row.is-incomplete input[type="time"] { border-color: #e57373 !important; }
.tdb-apply-input--time { width: 130px !important; flex-shrink: 0; }
.tdb-apply-slot-sep { color: #b8bcc4; font-size: 14px; flex-shrink: 0; }

.tdb-apply-slot-remove {
	width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
	background: #fff0f0; border: 1px solid #fcc; border-radius: 6px;
	color: #c44; cursor: pointer; padding: 0; flex-shrink: 0; transition: all 0.15s;
}
.tdb-apply-slot-remove:hover { background: #c44; border-color: #c44; color: #fff; }

.tdb-apply-slot-add {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 1px dashed #ccd1d9; border-radius: 6px;
	padding: 6px 14px; font-size: 12px !important; font-weight: 600 !important;
	color: #8a8f99; cursor: pointer; width: fit-content; transition: all 0.15s;
}
.tdb-apply-slot-add:hover { border-color: var(--tdb-accent); color: var(--tdb-accent); background: var(--tdb-accent-tint); }

@media (max-width: 640px) {
	.tdb-apply-input--time { width: 105px !important; }
}

/* ══════════════════════════════════════════════════════════
   Review Summary (Step 5)
   ══════════════════════════════════════════════════════════ */
.tdb-apply-review {
	border: 1.5px solid var(--tdb-line);
	border-radius: var(--tdb-radius-sm);
	padding: 20px;
	margin-bottom: 22px;
	background: var(--tdb-bg);
}

.tdb-apply-review-header {
	display: flex; align-items: center; gap: 14px;
	margin-bottom: 16px; padding-bottom: 16px;
	border-bottom: 1px solid var(--tdb-line);
}
.tdb-apply-review-photo {
	width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
	background-size: cover !important; background-position: center !important;
	border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--tdb-line);
}
.tdb-apply-review-name { font-size: 16px !important; font-weight: 700 !important; color: var(--tdb-ink); }
.tdb-apply-review-headline { font-size: 13px !important; color: var(--tdb-body); margin-top: 2px; }

.tdb-apply-review-row {
	display: grid; grid-template-columns: 150px 1fr;
	gap: 12px; padding: 9px 0;
	border-bottom: 1px solid #eef0f3;
	font-size: 13.5px !important;
}
.tdb-apply-review-row:last-child { border-bottom: none; }
.tdb-apply-review-label { font-weight: 700 !important; color: var(--tdb-navy); }
.tdb-apply-review-value { color: var(--tdb-ink); line-height: 1.55; }
.tdb-apply-review-empty { color: #b0b5bd; }
.tdb-apply-review-bio { display: block; white-space: pre-line; }

.tdb-apply-review-pill {
	display: inline-block; background: var(--tdb-navy-tint); color: var(--tdb-navy);
	border-radius: 12px; padding: 2px 10px; font-size: 12px !important; font-weight: 600 !important;
	margin: 2px 4px 2px 0;
}

.tdb-apply-review-listitem { margin-bottom: 4px; }
.tdb-apply-review-listitem:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
	.tdb-apply-review-row { grid-template-columns: 1fr; gap: 3px; }
	.tdb-apply-review-label { font-size: 12px !important; }
}