/* Homepage embedded cancer-expert chat (below proof cards) */
.zh-expert-ask {
	--zea-teal: #0b6b67;
	--zea-teal-deep: #065552;
	--zea-ink: #143247;
	--zea-muted: #5f7384;
	--zea-line: #d7e6e4;
	--zea-soft: #f3faf8;
	--zea-bot: #e8f5f2;
	--zea-user: #0b6b67;
	width: 100%;
	max-width: 920px;
	margin: 28px auto 0;
	padding: 0;
	font-family: Poppins, sans-serif;
	color: var(--zea-ink);
	-webkit-font-smoothing: antialiased;
}
.zh-expert-ask *,
.zh-expert-ask *::before,
.zh-expert-ask *::after {
	box-sizing: border-box;
}
.zh-expert-ask__intro {
	text-align: center;
	margin: 0 auto 18px;
	max-width: 40rem;
}
.zh-expert-ask__eyebrow {
	margin: 0 0 8px;
	color: var(--zea-teal);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.zh-expert-ask__title {
	margin: 0 0 10px;
	color: #0f2f5b;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
.zh-expert-ask__sub {
	margin: 0;
	color: var(--zea-muted);
	font-size: 15px;
	line-height: 1.5;
}
.zh-expert-ask__card {
	display: flex;
	flex-direction: column;
	min-height: 420px;
	max-height: 560px;
	background:
		linear-gradient(180deg, #ffffff 0%, #fcfffe 100%);
	border: 1px solid rgba(11, 107, 103, 0.14);
	border-radius: 22px;
	box-shadow:
		0 18px 40px rgba(20, 50, 71, 0.08),
		0 2px 8px rgba(20, 50, 71, 0.04);
	overflow: hidden;
}
.zh-expert-ask__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background:
		linear-gradient(135deg, #0d7c76 0%, #0b6b67 55%, #065552 100%);
	color: #fff;
}
.zh-expert-ask__who {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.zh-expert-ask__avatar-wrap {
	position: relative;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
}
.zh-expert-ask__avatar {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.95);
	background: #d7eee8;
}
.zh-expert-ask__online {
	position: absolute;
	right: 1px;
	bottom: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid #0b6b67;
}
.zh-expert-ask__meta {
	min-width: 0;
}
.zh-expert-ask__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}
.zh-expert-ask__role {
	margin-top: 2px;
	font-size: 13px;
	opacity: 0.92;
	line-height: 1.3;
}
.zh-expert-ask__trust {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}
.zh-expert-ask__trust svg {
	flex: 0 0 auto;
}
.zh-expert-ask__messages {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 16px 10px;
	background:
		radial-gradient(ellipse 70% 50% at 100% 0%, rgba(11, 107, 103, 0.05), transparent 60%),
		var(--zea-soft);
	scroll-behavior: smooth;
}
.zh-expert-ask__msg {
	display: flex;
	margin: 0 0 12px;
	animation: zh-expert-fade-in 0.28s ease both;
}
.zh-expert-ask__msg--bot {
	justify-content: flex-start;
}
.zh-expert-ask__msg--user {
	justify-content: flex-end;
}
.zh-expert-ask__bubble {
	max-width: min(78%, 520px);
	padding: 12px 14px;
	border-radius: 16px;
	font-size: 14.5px;
	line-height: 1.45;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.zh-expert-ask__msg--bot .zh-expert-ask__bubble {
	background: #fff;
	color: var(--zea-ink);
	border: 1px solid rgba(11, 107, 103, 0.1);
	border-bottom-left-radius: 6px;
	box-shadow: 0 4px 14px rgba(20, 50, 71, 0.04);
}
.zh-expert-ask__msg--user .zh-expert-ask__bubble {
	background: var(--zea-user);
	color: #fff;
	border-bottom-right-radius: 6px;
}
.zh-expert-ask__bubble a {
	color: inherit;
	text-decoration: underline;
	font-weight: 600;
}
.zh-expert-ask__typing {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 46px;
}
.zh-expert-ask__typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #7aa8a4;
	animation: zh-expert-dot 1.1s ease-in-out infinite;
}
.zh-expert-ask__typing span:nth-child(2) { animation-delay: 0.15s; }
.zh-expert-ask__typing span:nth-child(3) { animation-delay: 0.3s; }
.zh-expert-ask__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 14px;
}
.zh-expert-ask__chip {
	appearance: none;
	border: 1px solid rgba(11, 107, 103, 0.22);
	background: #fff;
	color: var(--zea-teal-deep);
	border-radius: 999px;
	padding: 8px 13px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.zh-expert-ask__chip:hover,
.zh-expert-ask__chip:focus-visible {
	background: #e7f6f3;
	border-color: rgba(11, 107, 103, 0.4);
	outline: none;
	transform: translateY(-1px);
}
.zh-expert-ask__composer {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 12px 14px 14px;
	background: #fff;
	border-top: 1px solid var(--zea-line);
}
.zh-expert-ask__composer textarea {
	flex: 1 1 auto;
	min-height: 46px;
	max-height: 110px;
	resize: none;
	overflow-y: hidden;
	padding: 12px 14px;
	border: 1.5px solid #d5e4e1;
	border-radius: 14px;
	background: #f8fcfb;
	color: var(--zea-ink);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.zh-expert-ask__composer textarea:focus {
	border-color: rgba(11, 107, 103, 0.45);
	box-shadow: 0 0 0 3px rgba(11, 107, 103, 0.12);
	background: #fff;
}
.zh-expert-ask__composer textarea::placeholder {
	color: #8aa0ab;
}
.zh-expert-ask__send {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #0d7c76 0%, #0b6b67 100%);
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.zh-expert-ask__send:hover,
.zh-expert-ask__send:focus-visible {
	transform: translateY(-1px);
	outline: none;
}
.zh-expert-ask__send:disabled {
	opacity: 0.55;
	cursor: default;
	transform: none;
}
.zh-expert-ask__phone {
	margin: 4px 0 12px;
	padding: 14px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(11, 107, 103, 0.14);
	box-shadow: 0 8px 20px rgba(20, 50, 71, 0.05);
}
.zh-expert-ask__phone-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--zea-ink);
}
.zh-expert-ask__phone-row {
	display: flex;
	gap: 8px;
}
.zh-expert-ask__phone-row select,
.zh-expert-ask__phone-row input {
	height: 44px;
	border: 1.5px solid #d5e4e1;
	border-radius: 12px;
	background: #f8fcfb;
	font: inherit;
	font-size: 14px;
	color: var(--zea-ink);
	outline: none;
}
.zh-expert-ask__phone-row select {
	flex: 0 0 78px;
	padding: 0 8px;
}
.zh-expert-ask__phone-row input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 12px;
}
.zh-expert-ask__phone-row.is-invalid select,
.zh-expert-ask__phone-row.is-invalid input {
	border-color: #d14343;
}
.zh-expert-ask__phone-error {
	margin: 8px 0 0;
	color: #c03535;
	font-size: 12.5px;
}
.zh-expert-ask__phone-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.zh-expert-ask__phone-submit {
	appearance: none;
	border: 0;
	border-radius: 12px;
	padding: 10px 14px;
	background: var(--zea-teal);
	color: #fff;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
.zh-expert-ask__phone-later {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--zea-muted);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
}
.zh-expert-ask .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes zh-expert-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes zh-expert-dot {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
	40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 767px) {
	.zh-expert-ask {
		margin-top: 22px;
		max-width: none;
	}
	.zh-expert-ask__card {
		min-height: 380px;
		max-height: 520px;
		border-radius: 18px;
	}
	.zh-expert-ask__head {
		padding: 14px;
	}
	.zh-expert-ask__trust {
		display: none;
	}
	.zh-expert-ask__avatar-wrap,
	.zh-expert-ask__avatar {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}
	.zh-expert-ask__name { font-size: 16px; }
	.zh-expert-ask__role { font-size: 12px; }
	.zh-expert-ask__title { font-size: clamp(20px, 5.8vw, 24px); }
	.zh-expert-ask__sub { font-size: 14px; }
	.zh-expert-ask__bubble {
		max-width: 88%;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zh-expert-ask__msg,
	.zh-expert-ask__typing span,
	.zh-expert-ask__chip,
	.zh-expert-ask__send {
		animation: none;
		transition: none;
	}
	.zh-expert-ask__messages {
		scroll-behavior: auto;
	}
}
