/* ============================================================
 * CK Health Eligibility Check — v1.0.0
 * White card, teal accent matching ckhealthturkey.com, Sora-friendly.
 * All interactive elements are div[role=button] (theme button styles
 * cannot apply) and critical rules are html-body prefixed with
 * !important as a second layer of isolation.
 * FAB sits bottom-left ABOVE the site's own WhatsApp widget.
 * ============================================================ */

html body .ckh-el {
	--ckh-accent: #20A4AE;
	--ckh-accent-soft: rgba(32, 164, 174, 0.10);
	--ckh-metin: #313956;
	--ckh-cizgi: #e4e7ee;
	max-width: 640px;
	margin: 2.5rem auto;
	font-family: inherit;
	color: var(--ckh-metin);
}

html body .ckh-el [role="button"],
html body .ckh-el-fab,
html body .ckh-el-modal__kapat {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-shadow: none !important;
	margin: 0;
	outline: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
html body .ckh-el [role="button"]:focus-visible,
html body .ckh-el-fab:focus-visible,
html body .ckh-el-modal__kapat:focus-visible {
	outline: 2px solid var(--ckh-accent, #20A4AE);
	outline-offset: 2px;
}

html body .ckh-el__kart {
	background: #ffffff !important;
	border: 1px solid var(--ckh-cizgi);
	border-radius: 18px;
	padding: 28px 28px 24px;
	box-shadow: 0 8px 28px rgba(49, 57, 86, 0.12);
}

/* ---- Intro ---- */
html body .ckh-el__rozet {
	display: inline-block;
	background: var(--ckh-accent-soft) !important;
	color: var(--ckh-accent) !important;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
html body .ckh-el__baslik {
	margin: 0 0 6px !important;
	font-size: 24px !important;
	font-weight: 700;
	line-height: 1.25 !important;
	color: #313956 !important;
}
html body .ckh-el__alt {
	margin: 0 0 18px;
	font-size: 14px;
	color: #7a819b;
}

/* ---- Primary buttons: locked in accent color for every state ---- */
html body .ckh-el__btn,
html body .ckh-el__btn:hover,
html body .ckh-el__btn:focus,
html body .ckh-el__btn:active {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	background: var(--ckh-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 13px 26px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	text-decoration: none !important;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
html body .ckh-el__btn:hover,
html body .ckh-el__btn:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(32, 164, 174, 0.35);
}

html body .ckh-el__btn--wa,
html body .ckh-el__btn--wa:hover,
html body .ckh-el__btn--wa:focus,
html body .ckh-el__btn--wa:active {
	background: #25D366 !important;
	color: #fff !important;
}
html body .ckh-el__btn--wa:hover,
html body .ckh-el__btn--wa:focus {
	filter: brightness(0.95);
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}
html body .ckh-el__btn--wa svg,
html body .ckh-el__btn--wa svg * {
	fill: currentColor !important;
	stroke: none !important;
}

/* ---- Progress ---- */
html body .ckh-el__ilerleme {
	height: 6px;
	background: var(--ckh-accent-soft);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 20px;
}
html body .ckh-el__ilerleme-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ckh-accent) !important;
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* ---- Question ---- */
html body .ckh-el__sayac {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ckh-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
html body .ckh-el__soru {
	margin: 0 0 16px !important;
	font-size: 19px !important;
	font-weight: 700;
	line-height: 1.35 !important;
	color: #313956 !important;
}
html body .ckh-el__secenekler {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
html body .ckh-el__secenek,
html body .ckh-el__secenek:active {
	display: block !important;
	width: 100% !important;
	background: #ffffff !important;
	border: 1.5px solid var(--ckh-cizgi) !important;
	border-radius: 12px !important;
	padding: 13px 16px !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	text-align: left !important;
	cursor: pointer;
	color: var(--ckh-metin) !important;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
html body .ckh-el__secenek:hover,
html body .ckh-el__secenek:focus,
html body .ckh-el__secenek:focus-visible {
	border-color: var(--ckh-accent) !important;
	background: var(--ckh-accent-soft) !important;
	color: #313956 !important;
}
html body .ckh-el__secenek--secili,
html body .ckh-el__secenek--secili:hover,
html body .ckh-el__secenek--secili:focus {
	border-color: var(--ckh-accent) !important;
	background: var(--ckh-accent) !important;
	color: #fff !important;
}

html body .ckh-el__geri,
html body .ckh-el__geri:hover,
html body .ckh-el__geri:focus,
html body .ckh-el__geri:active {
	display: inline-block !important;
	margin-top: 16px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 4px 0 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	cursor: pointer;
	text-decoration: none;
}
html body .ckh-el__geri { color: #7a819b !important; }
html body .ckh-el__geri:hover,
html body .ckh-el__geri:focus { color: var(--ckh-accent) !important; text-decoration: underline; }

/* ---- Result ---- */
html body .ckh-el__sonuc-ust {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 20px;
}
html body .ckh-el__halka {
	--ckh-oran: 0;
	--ckh-halka: var(--ckh-accent);
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: conic-gradient(var(--ckh-halka) calc(var(--ckh-oran) * 1%), var(--ckh-accent-soft) 0);
	display: grid;
	place-items: center;
	position: relative;
}
html body .ckh-el__halka::before {
	content: '';
	position: absolute;
	inset: 9px;
	background: #ffffff;
	border-radius: 50%;
}
html body .ckh-el__halka span {
	position: relative;
	font-size: 19px;
	font-weight: 700;
	color: var(--ckh-halka);
}
html body .ckh-el__halka--uzman { background: var(--ckh-accent-soft); }
html body .ckh-el__sonuc-baslik {
	margin: 0 0 6px !important;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	color: #313956 !important;
}
html body .ckh-el__sonuc-metin {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4a5169;
}
html body .ckh-el__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
html body .ckh-el__cta .ckh-el__btn { flex: 1 1 240px; }
html body .ckh-el__tekrar,
html body .ckh-el__tekrar:hover,
html body .ckh-el__tekrar:focus,
html body .ckh-el__tekrar:active {
	display: inline-block;
	margin-top: 14px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 13px !important;
	cursor: pointer;
	text-decoration: underline;
}
html body .ckh-el__tekrar { color: #9aa0b5 !important; }
html body .ckh-el__tekrar:hover,
html body .ckh-el__tekrar:focus { color: var(--ckh-accent) !important; }

html body .ckh-el__yasal {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #9aa0b5;
	text-align: center;
}

/* ============================================================
 * Sticky button (FAB) — bottom-left, ABOVE the site's WhatsApp widget.
 * The site's widget: fixed bottom-left, ~56px tall + 1rem margin,
 * so the FAB is offset ~96px from the bottom.
 * ============================================================ */
html body .ckh-el-fab,
html body .ckh-el-fab:hover,
html body .ckh-el-fab:focus,
html body .ckh-el-fab:active {
	--ckh-accent: #20A4AE;
	position: fixed !important;
	left: 16px;
	bottom: 96px;
	z-index: 99998;
	display: flex !important;
	align-items: center !important;
	gap: 10px;
	background: var(--ckh-accent) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0 20px 0 0 !important;
	height: 56px !important;
	width: auto;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(32, 164, 174, 0.4) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html body .ckh-el-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(32, 164, 174, 0.5) !important;
}
html body .ckh-el-fab svg {
	flex: 0 0 auto;
	margin-left: 16px;
	width: 24px !important;
	height: 24px !important;
	display: block;
}
html body .ckh-el-fab svg,
html body .ckh-el-fab svg rect,
html body .ckh-el-fab svg path {
	fill: none !important;
	stroke: #ffffff !important;
	stroke-width: 2 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	background: transparent !important;
}
html body .ckh-el-fab__etiket {
	font-size: 15px !important;
	font-weight: 600 !important;
	white-space: nowrap;
	color: #ffffff !important;
}
html body .ckh-el-fab__puls {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 2px solid var(--ckh-accent);
	animation: ckh-puls 2.4s ease-out infinite;
	pointer-events: none;
}
@keyframes ckh-puls {
	0%   { transform: scale(1);    opacity: 0.6; }
	70%  { transform: scale(1.25); opacity: 0; }
	100% { transform: scale(1.25); opacity: 0; }
}

/* Mobile: fixed circle + side balloon label (auto-collapses via JS) */
@media (max-width: 640px) {
	html body .ckh-el-fab,
	html body .ckh-el-fab:hover,
	html body .ckh-el-fab:focus {
		left: 20px;
		right: auto;
		bottom: 84px;
		width: 48px !important;
		height: 48px !important;
		padding: 0 !important;
		justify-content: center !important;
	}
	html body .ckh-el-fab svg {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		margin: 0 !important;
		width: 22px !important;
		height: 22px !important;
	}
	html body .ckh-el-fab__etiket {
		position: absolute;
		left: calc(100% + 10px);
		right: auto;
		top: 50%;
		background: var(--ckh-accent) !important;
		color: #ffffff !important;
		padding: 8px 14px !important;
		border-radius: 999px;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
		font-size: 14px !important;
		transform: translateY(-50%);
		transform-origin: left center;
		will-change: transform, opacity;
		transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
	}
	html body .ckh-el-fab--kapali .ckh-el-fab__etiket {
		transform: translateY(-50%) translateX(-10px) scale(0.85);
		opacity: 0;
		pointer-events: none;
	}
}

/* ============================================================
 * Modal
 * ============================================================ */
html body .ckh-el-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
html body .ckh-el-modal[hidden] { display: none; }
html body .ckh-el-modal__arka {
	position: absolute;
	inset: 0;
	background: rgba(49, 57, 86, 0.55);
	backdrop-filter: blur(2px);
}
html body .ckh-el--modal {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 580px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	animation: ckh-gir 0.25s ease;
	border-radius: 18px;
}
html body .ckh-el--modal .ckh-el__kart { box-shadow: none; }
@keyframes ckh-gir {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}
html body .ckh-el-modal__kapat,
html body .ckh-el-modal__kapat:hover,
html body .ckh-el-modal__kapat:focus,
html body .ckh-el-modal__kapat:active {
	position: absolute !important;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	font-size: 20px !important;
	line-height: 1 !important;
	font-weight: 400 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}
html body .ckh-el-modal__kapat {
	background: #eef0f5 !important;
	color: #4a5169 !important;
}
html body .ckh-el-modal__kapat:hover,
html body .ckh-el-modal__kapat:focus {
	background: var(--ckh-accent, #20A4AE) !important;
	color: #fff !important;
}

body.ckh-el-kilit { overflow: hidden; }

@media (max-width: 640px) {
	html body .ckh-el-modal {
		padding: 0;
		align-items: flex-end;
	}
	html body .ckh-el--modal {
		max-width: none;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
	}
	html body .ckh-el--modal .ckh-el__kart { border-radius: 18px 18px 0 0; }
	html body .ckh-el__kart { padding: 20px 16px; }
	html body .ckh-el__baslik { font-size: 20px !important; }
	html body .ckh-el__sonuc-ust { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	html body .ckh-el__btn,
	html body .ckh-el__secenek,
	html body .ckh-el__ilerleme-bar,
	html body .ckh-el-fab,
	html body .ckh-el-fab__etiket { transition: none !important; }
	html body .ckh-el-fab__puls { animation: none; }
	html body .ckh-el--modal { animation: none; }
	html body .ckh-el__btn:hover,
	html body .ckh-el-fab:hover { transform: none; }
}
