.tchc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(30, 32, 31, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--wp--custom--motion--base, 220ms) var(--wp--custom--motion--ease, ease);
}
.tchc-modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.tchc-modal {
	background: #fff;
	border-radius: var(--wp--custom--radius--lg, 18px);
	box-shadow: var(--wp--custom--shadow--lg, 0 14px 34px rgba(30,32,31,.12));
	width: 100%;
	max-width: 480px;
	max-height: min(680px, 90vh);
	display: flex;
	flex-direction: column;
	transform: translateY(12px) scale(.98);
	transition: transform var(--wp--custom--motion--base, 220ms) var(--wp--custom--motion--ease, ease);
}
.tchc-modal-overlay.is-open .tchc-modal { transform: translateY(0) scale(1); }

.tchc-modal__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px 0;
}

.tchc-modal__progress {
	display: flex;
	gap: 6px;
	flex: 1;
}
.tchc-modal__progress-seg {
	height: 4px;
	flex: 1;
	border-radius: 999px;
	background: var(--wp--preset--color--grey-200, #E8E8E8);
	overflow: hidden;
}
.tchc-modal__progress-seg span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--wp--preset--color--teal-500, #48A2B2);
	transition: width var(--wp--custom--motion--base, 220ms) var(--wp--custom--motion--ease, ease);
}
.tchc-modal__progress-seg.is-complete span,
.tchc-modal__progress-seg.is-current span { width: 100%; }

.tchc-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: var(--wp--preset--color--grey-500, #7E8688);
	padding: 4px 6px;
}
.tchc-modal__close:hover { color: var(--wp--preset--color--charcoal, #1E201F); }

.tchc-modal__body {
	padding: 20px 24px 24px;
	overflow-y: auto;
}

.tchc-modal__step { display: none; }
.tchc-modal__step.is-active { display: block; }

.tchc-modal__step h3 {
	margin: 0 0 6px;
	font-size: var(--wp--preset--font-size--xl, 22px);
	color: var(--wp--preset--color--navy, #323B63);
}
.tchc-modal__step-sub {
	margin: 0 0 20px;
	color: var(--wp--preset--color--grey-600, #5E6566);
	font-size: var(--wp--preset--font-size--sm, 14px);
}

.tchc-field-label {
	display: block;
	font-size: var(--wp--preset--font-size--sm, 14px);
	font-weight: 600;
	color: var(--wp--preset--color--navy, #323B63);
	margin: 20px 0 10px;
}
.tchc-field-label:first-child { margin-top: 0; }

.tchc-chip-group { display: flex; gap: 10px; flex-wrap: wrap; }
.tchc-chip {
	border: 2px solid var(--wp--preset--color--grey-200, #E8E8E8);
	background: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: var(--wp--preset--font-size--sm, 14px);
	font-weight: 600;
	color: var(--wp--preset--color--grey-700, #44494A);
	cursor: pointer;
	transition: all 140ms ease;
}
.tchc-chip[aria-pressed="true"] {
	border-color: var(--wp--preset--color--teal-500, #48A2B2);
	background: var(--wp--preset--color--teal-050, #E7F6FD);
	color: var(--wp--preset--color--teal-700, #2F7C8A);
}

.tchc-text-field {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--wp--preset--color--grey-200, #E8E8E8);
	border-radius: var(--wp--custom--radius--sm, 8px);
	font-size: var(--wp--preset--font-size--md, 16px);
	font-family: inherit;
	box-sizing: border-box;
}
.tchc-text-field:focus {
	outline: none;
	border-color: var(--wp--preset--color--teal-500, #48A2B2);
}

.tchc-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	font-size: var(--wp--preset--font-size--sm, 14px);
	color: var(--wp--preset--color--grey-700, #44494A);
}
.tchc-checkbox-row input { margin-top: 3px; }

.tchc-modal__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}
.tchc-modal__actions .tchc-btn { width: 100%; }
.tchc-modal__actions--split .tchc-btn { width: auto; flex: 1; }

.tchc-modal__step--done { text-align: center; padding-block: 12px; }
.tchc-modal__done-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--success-tint, #E2F4EE);
	color: var(--wp--preset--color--success, #2E9E78);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 16px;
}

@media (max-width: 520px) {
	.tchc-modal-overlay { padding: 0; align-items: flex-end; }
	.tchc-modal { max-width: 100%; max-height: 92vh; border-radius: var(--wp--custom--radius--lg, 18px) var(--wp--custom--radius--lg, 18px) 0 0; }
}
