/* Elos Uygunluk Testi — bileşen stilleri (tema stillerinden izole, .elos-ut altında) */

.elos-ut {
	--eut-accent: #6C4AB6;
	--eut-accent-soft: color-mix(in srgb, var(--eut-accent) 10%, #ffffff);
	--eut-metin: #2b2b33;
	--eut-cizgi: #e6e2f2;
	max-width: 640px;
	margin: 2.5rem auto;
	font-family: inherit;
	color: var(--eut-metin);
}

.elos-ut__kart {
	background: #fff;
	border: 1px solid var(--eut-cizgi);
	border-radius: 16px;
	padding: 28px 28px 24px;
	box-shadow: 0 8px 28px rgba(60, 40, 120, 0.08);
}

/* --- Giriş --- */
.elos-ut__rozet {
	display: inline-block;
	background: var(--eut-accent-soft);
	color: var(--eut-accent);
	font-size: 13px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.elos-ut__baslik {
	font-weight: 700;
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
}
.elos-ut__alt {
	margin: 0 0 18px;
	font-size: 14px;
	color: #6d6a7c;
}

/* --- Butonlar --- */
.elos-ut__btn {
	display: inline-block;
	background: var(--eut-accent);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 13px 26px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.elos-ut__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(60, 40, 120, 0.25);
	color: #fff;
}
.elos-ut__btn--tel {
	background: #fff;
	color: var(--eut-accent);
	border: 1.5px solid var(--eut-accent);
}
.elos-ut__btn--tel:hover { color: var(--eut-accent); }

/* --- İlerleme --- */
.elos-ut__ilerleme {
	height: 6px;
	background: var(--eut-accent-soft);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 20px;
}
.elos-ut__ilerleme-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--eut-accent);
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* --- Soru --- */
.elos-ut__sayac {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--eut-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.elos-ut__soru {
	font-weight: 700;
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.35;
}
.elos-ut__secenekler {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.elos-ut__secenek {
	background: #fff;
	border: 1.5px solid var(--eut-cizgi);
	border-radius: 10px;
	padding: 13px 16px;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	color: var(--eut-metin);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.elos-ut__secenek:hover,
.elos-ut__secenek:focus-visible {
	border-color: var(--eut-accent);
	background: var(--eut-accent-soft);
	outline: none;
}
.elos-ut__secenek--secili {
	border-color: var(--eut-accent);
	background: var(--eut-accent);
	color: #fff;
}
.elos-ut__geri {
	margin-top: 16px;
	background: none;
	border: 0;
	color: #6d6a7c;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 0;
}
.elos-ut__geri:hover { color: var(--eut-accent); }

/* --- Sonuç --- */
.elos-ut__sonuc-ust {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 20px;
}
.elos-ut__halka {
	--eut-oran: 0;
	--eut-halka: var(--eut-accent);
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: conic-gradient(var(--eut-halka) calc(var(--eut-oran) * 1%), var(--eut-accent-soft) 0);
	display: grid;
	place-items: center;
	position: relative;
}
.elos-ut__halka::before {
	content: '';
	position: absolute;
	inset: 9px;
	background: #fff;
	border-radius: 50%;
}
.elos-ut__halka span {
	position: relative;
	font-size: 20px;
	font-weight: 700;
	color: var(--eut-halka);
}
.elos-ut__halka--uzman { background: var(--eut-accent-soft); }
.elos-ut__sonuc-baslik {
	font-weight: 700;
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
}
.elos-ut__sonuc-metin {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4a4756;
}
.elos-ut__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.elos-ut__cta .elos-ut__btn { flex: 1 1 220px; }
.elos-ut__tekrar {
	margin-top: 14px;
	background: none;
	border: 0;
	color: #8b889a;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

/* --- Yasal not --- */
.elos-ut__yasal {
	margin: 12px 4px 0;
	font-size: 12px;
	line-height: 1.5;
	color: #8b889a;
	text-align: center;
}

/* --- Mobil --- */
@media (max-width: 480px) {
	.elos-ut__kart { padding: 20px 16px; }
	.elos-ut__baslik {
	font-weight: 700; font-size: 20px; }
	.elos-ut__sonuc-ust { flex-direction: column; align-items: center; text-align: center; }
}

/* --- Hareket azaltma tercihi --- */
@media (prefers-reduced-motion: reduce) {
	.elos-ut__btn,
	.elos-ut__secenek,
	.elos-ut__ilerleme-bar { transition: none; }
	.elos-ut__btn:hover { transform: none; }
}

/* ================================================================
 * v1.1 — Sticky buton (FAB) + Modal + WhatsApp butonu
 * ================================================================ */

/* --- Sol alt sabit buton --- */
.elos-ut-fab {
	--eut-accent: #6C4AB6;
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--eut-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0 22px 0 0;
	height: 60px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(60, 40, 120, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.elos-ut-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(60, 40, 120, 0.45);
}
.elos-ut-fab svg {
	flex: 0 0 auto;
	margin-left: 17px;
}
.elos-ut-fab__etiket {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}
.elos-ut-fab__puls {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 2px solid var(--eut-accent);
	animation: eut-puls 2.4s ease-out infinite;
	pointer-events: none;
}
@keyframes eut-puls {
	0%   { transform: scale(1);    opacity: 0.6; }
	70%  { transform: scale(1.25); opacity: 0; }
	100% { transform: scale(1.25); opacity: 0; }
}

/* Mobil: buton bastan sabit daire; etiket yaninda ayri balon olarak durur.
   Kucultme yalnizca transform + opacity ile yapilir (GPU) — layout tetiklenmez,
   animasyon akici olur. */
@media (max-width: 640px) {
	.elos-ut-fab {
		left: 14px;
		bottom: 14px;
		width: 58px;
		height: 58px;
		padding: 0;
		justify-content: center;
	}
	.elos-ut-fab svg {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		margin: 0;
	}

	.elos-ut-fab__etiket {
		position: absolute;
		left: calc(100% + 10px);
		top: 50%;
		background: var(--eut-accent);
		color: #fff;
		padding: 9px 16px;
		border-radius: 999px;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
		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;
	}
	.elos-ut-fab--kapali .elos-ut-fab__etiket {
		transform: translateY(-50%) translateX(-10px) scale(0.85);
		opacity: 0;
		pointer-events: none;
	}
}

/* --- Modal --- */
.elos-ut-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.elos-ut-modal[hidden] { display: none; }
.elos-ut-modal__arka {
	position: absolute;
	inset: 0;
	background: rgba(24, 18, 43, 0.55);
	backdrop-filter: blur(2px);
}
.elos-ut--modal {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	animation: eut-gir 0.25s ease;
	border-radius: 16px;
}
.elos-ut--modal .elos-ut__kart { box-shadow: none; }
@keyframes eut-gir {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}
.elos-ut-modal__kapat {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f1eef9;
	color: #55506b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}
.elos-ut-modal__kapat:hover { background: #e4def4; color: #2b2b33; }

/* Modal açıkken arka plan kaydırmayı kilitle */
body.elos-ut-kilit { overflow: hidden; }

/* Mobilde alt sayfa (bottom sheet) görünümü */
@media (max-width: 640px) {
	.elos-ut-modal {
		padding: 0;
		align-items: flex-end;
	}
	.elos-ut--modal {
		max-width: none;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
	}
	.elos-ut--modal .elos-ut__kart { border-radius: 18px 18px 0 0; }
}

/* --- WhatsApp butonu --- */
.elos-ut__btn--wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25D366;
	color: #fff;
	border: 0;
}
.elos-ut__btn--wa:hover {
	background: #1ebe5b;
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* --- Yasal not kart içine taşındığı için hizalama --- */
.elos-ut__kart .elos-ut__yasal { margin: 16px 0 0; }

/* --- Hareket azaltma --- */
@media (prefers-reduced-motion: reduce) {
	.elos-ut-fab__puls { animation: none; }
	.elos-ut--modal { animation: none; }
	.elos-ut-fab, .elos-ut-fab__etiket { transition: none; }
	.elos-ut-fab:hover { transform: none; }
}

/* ============================================================
 * Tedavi Bulucu (ana sayfa sihirbazı)
 * ============================================================ */
.elos-fnd__soru {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1c1c26;
}
.elos-fnd__alt {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #6d6a7c;
}
.elos-fnd__ilerleme { margin-bottom: 18px; }

/* Sonuç kartları */
.elos-fnd__kartlar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}
.elos-fnd__kart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff;
	border: 1.5px solid var(--eut-cizgi, #e6e2f2);
	border-left: 4px solid var(--eut-accent);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.elos-fnd__kart:hover {
	background: var(--eut-accent-soft, rgba(108, 74, 182, 0.08));
	transform: translateX(2px);
	text-decoration: none;
}
.elos-fnd__kart-ad {
	font-size: 15.5px;
	font-weight: 600;
	color: #1c1c26;
	line-height: 1.35;
}
.elos-fnd__kart-link {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--eut-accent);
	white-space: nowrap;
}

/* Bulucu FAB'ı: tedavi sayfalarındaki testten ayırt edilebilir kalsın */
.elos-ut-fab--finder svg,
.elos-ut-fab--finder svg circle,
.elos-ut-fab--finder svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

@media (max-width: 480px) {
	.elos-fnd__kart {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

/* Sayfası olmayan tedaviler: kart doğrudan WhatsApp'a gider */
.elos-fnd__kart--wa {
	border-left-color: #25D366;
}
.elos-fnd__kart--wa:hover {
	background: rgba(37, 211, 102, 0.08);
}
.elos-fnd__kart--wa .elos-fnd__kart-link {
	color: #1ebe5b;
}
