/* Doosy AI: danışmanlık popup'ı. Tümü .doosy- önekli, tema butonlarına dokunmaz. */
:root {
	--doosy-accent: #111;
	--doosy-accent-2: #F27A1A;
	--doosy-bg: #fff;
	--doosy-text: #111;
	--doosy-muted: #555;
	--doosy-border: #c9c9c9;
	--doosy-soft: #f3f3f3;
	--doosy-error: #b3261e;
	--doosy-error-bg: #fdecea;
	--doosy-backdrop: rgba(0, 0, 0, .55);
	--doosy-radius: 12px;
}

.doosy-consult {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.5;
	color: var(--doosy-text);
}
.doosy-consult *,
.doosy-consult *::before,
.doosy-consult *::after { box-sizing: border-box; }
.doosy-consult[hidden], .doosy-consult [hidden] { display: none !important; }
html.doosy-lock,
html.doosy-lock body { overflow: hidden; }

.doosy-backdrop { position: absolute; inset: 0; background: var(--doosy-backdrop); }

.doosy-panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--doosy-bg);
	color: var(--doosy-text);
	border-radius: var(--doosy-radius);
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	-webkit-overflow-scrolling: touch;
	animation: doosy-in .18s ease-out;
}
@keyframes doosy-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.doosy-panel { animation: none; }
}

/* Odak halkası: dış halka accent-2, iç boşluk beyaz. */
.doosy-consult :focus-visible,
.doosy-file:focus-visible + .doosy-add {
	outline: 3px solid var(--doosy-accent-2);
	outline-offset: 2px;
	box-shadow: 0 0 0 1px var(--doosy-bg);
}

.doosy-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--doosy-text);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.doosy-close:hover { background: var(--doosy-soft); }

.doosy-title { margin: 0 44px 6px 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
.doosy-intro { margin: 0 0 20px; color: var(--doosy-muted); }

/* Adım göstergesi */
.doosy-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 20px; padding: 0; }
.doosy-step-dot {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 8px;
	border-top: 3px solid var(--doosy-border);
	font-size: 14px;
	color: var(--doosy-muted);
}
.doosy-step-dot.is-active { color: var(--doosy-text); font-weight: 600; border-top-color: var(--doosy-accent-2); }
.doosy-step-dot.is-done { border-top-color: var(--doosy-accent); }
.doosy-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-size: 13px;
	line-height: 1;
}
.doosy-step-dot.is-active .doosy-step-num,
.doosy-step-dot.is-done .doosy-step-num { background: var(--doosy-accent); border-color: var(--doosy-accent); color: #fff; }
.doosy-step-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alanlar */
.doosy-consult fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.doosy-consult legend { padding: 0; }
.doosy-step-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.doosy-field { margin: 0 0 18px; }
.doosy-label { display: block; font-weight: 600; margin: 0 0 6px; }
.doosy-form select,
.doosy-form input[type="text"],
.doosy-form input[type="number"],
.doosy-form input[type="tel"] {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--doosy-border);
	border-radius: 8px;
	background: var(--doosy-bg);
	color: var(--doosy-text);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}
.doosy-form select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.doosy-form input::placeholder { color: #6b6b6b; opacity: 1; }
.doosy-field.is-invalid select,
.doosy-field.is-invalid input { border-color: var(--doosy-error); }
.doosy-help { margin: 6px 0 0; font-size: 14px; color: var(--doosy-muted); }
.doosy-hint { margin: 6px 0 0; font-size: 14px; color: var(--doosy-muted); }
.doosy-error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--doosy-error); }
.doosy-live { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--doosy-error-bg); color: var(--doosy-error); font-size: 14px; font-weight: 600; }
.doosy-live:empty { display: none; }

/* Radyo ve onay kutuları */
.doosy-choices { display: flex; flex-wrap: wrap; gap: 0 20px; }
.doosy-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; }
.doosy-choice input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--doosy-accent); cursor: pointer; }
.doosy-choice label { cursor: pointer; margin: 0; font-weight: 400; }
.doosy-check .doosy-help,
.doosy-check .doosy-error { margin-left: 32px; }
.doosy-link { color: var(--doosy-accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; margin-left: 4px; }

/* Fotoğraflar */
.doosy-add-wrap { position: relative; margin-top: 12px; }
.doosy-file,
.doosy-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.doosy-photos.is-full .doosy-add { opacity: .55; }
.doosy-thumbs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; }
.doosy-thumbs:empty { display: none; }
.doosy-thumb { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--doosy-border); border-radius: 8px; overflow: hidden; background: var(--doosy-soft); }
.doosy-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.doosy-remove { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.doosy-remove span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 6px 6px 0 auto; border-radius: 50%; background: rgba(17, 17, 17, .85); color: #fff; font-size: 20px; line-height: 1; }
.doosy-remove:hover span { background: var(--doosy-accent-2); }

/* Butonlar (yalnız kendi sınıfları) */
.doosy-btn,
.doosy-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid var(--doosy-accent);
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.doosy-btn { background: var(--doosy-accent); color: #fff; }
.doosy-btn:hover { background: #333; color: #fff; }
.doosy-btn-secondary { background: var(--doosy-bg); color: var(--doosy-accent); }
.doosy-btn-secondary:hover { background: var(--doosy-soft); color: var(--doosy-accent); }
.doosy-btn[disabled],
.doosy-btn-secondary[disabled] { opacity: .6; cursor: default; }
.doosy-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.doosy-actions .doosy-back { margin-right: auto; }

/* Giriş paneli ve sonuç */
.doosy-login { padding: 16px; border: 1px solid var(--doosy-border); border-radius: 8px; }
.doosy-login-text { margin: 0 0 12px; }
.doosy-done { text-align: center; padding: 16px 0 8px; }
.doosy-done-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.doosy-done-text { margin: 0 0 20px; color: var(--doosy-muted); }

/* Telefon: tam ekran sayfa, 16px oluk */
@media (max-width: 599px) {
	.doosy-consult { padding: 0; align-items: stretch; }
	.doosy-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 16px; }
	.doosy-close { top: 6px; right: 6px; }
	.doosy-step-dot:not(.is-active) .doosy-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.doosy-actions .doosy-btn,
	.doosy-actions .doosy-btn-secondary { flex: 1 1 auto; }
	.doosy-actions .doosy-back { margin-right: 0; }
}
