/* Ortak brief wizard — tüm formlar (siyah / sarı / gri / beyaz) */

:root {
	--wb-bg0: #060606;
	--wb-bg1: #0f0f12;
	--wb-card: rgba(22, 22, 26, 0.92);
	--wb-border: rgba(232, 197, 71, 0.22);
	--wb-yellow: #e8c547;
	--wb-yellow-hi: #f5d55a;
	--wb-grey: #9a9a9f;
	--wb-muted: #b8b8bd;
	--wb-white: #f4f4f6;
	--wb-danger: #e85c5c;
	--wb-radius: 14px;
	--wb-font: "Source Sans Pro", system-ui, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body.wb-page {
	margin: 0;
	min-height: 100vh;
	font-family: var(--wb-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--wb-muted);
	background: linear-gradient(-42deg, #030303, #121212, #1a1708, #0a0a0a, #151820, #080808);
	background-size: 420% 420%;
	animation: wb-bg 22s ease infinite;
	color-scheme: dark;
}

@keyframes wb-bg {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.wb-page {
		animation: none;
		background: linear-gradient(165deg, #0a0a0a, #121212);
		background-size: 100% 100%;
	}
}

.wb-shell {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 28px) clamp(14px, 3vw, 24px) 40px;
}

.wb-header {
	text-align: center;
	margin-bottom: 22px;
}

.wb-header__logo-link {
	display: block;
	width: min(280px, 82vw);
	margin: 0 auto 8px;
	line-height: 0;
	text-decoration: none;
	border: none;
}
.wb-header__logo-link:focus-visible {
	outline: 2px solid var(--wb-yellow);
	outline-offset: 6px;
	border-radius: 6px;
}
.wb-header__logo {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	object-fit: contain;
}

.wb-header__subtitle {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wb-grey);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.wb-header__intro {
	margin: 0 auto;
	max-width: 38rem;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--wb-grey);
}

/* Adım çubuğu */
.wb-stepnav {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	counter-reset: wbstep;
}

.wb-stepnav li {
	margin: 0;
}

.wb-stepbtn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.35);
	color: var(--wb-grey);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.2s,
		color 0.2s,
		border-color 0.2s;
}

.wb-stepbtn:hover {
	color: var(--wb-white);
	border-color: rgba(232, 197, 71, 0.35);
}

.wb-stepbtn.is-active {
	background: rgba(232, 197, 71, 0.12);
	color: var(--wb-yellow-hi);
	border-color: rgba(232, 197, 71, 0.45);
}

.wb-stepbtn.is-done:not(.is-active) {
	color: var(--wb-muted);
	border-color: rgba(232, 197, 71, 0.2);
}

.wb-stepbtn__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	font-size: 0.72rem;
}

.wb-stepbtn.is-active .wb-stepbtn__num {
	background: var(--wb-yellow);
	color: #111;
}

/* Paneller */
.wb-panel {
	display: none;
	padding: 22px 20px 20px;
	background: var(--wb-card);
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	margin-bottom: 18px;
}

.wb-panel.is-active {
	display: block;
}

.wb-label-row .wb-tipbtn {
	margin-left: auto;
}

.wb-panel__title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--wb-white);
}

.wb-panel__lead {
	margin: 0 0 20px;
	font-size: 0.86rem;
	color: var(--wb-grey);
	line-height: 1.55;
}

.wb-field {
	margin-bottom: 18px;
}

.wb-field:last-child {
	margin-bottom: 0;
}

.wb-label-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.wb-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--wb-white);
}

.wb-optional {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--wb-grey);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.wb-req {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--wb-yellow-hi);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.wb-tipbtn {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid rgba(232, 197, 71, 0.35);
	border-radius: 50%;
	background: rgba(232, 197, 71, 0.08);
	color: var(--wb-yellow-hi);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	cursor: help;
}

.wb-tipbtn:focus {
	outline: 2px solid var(--wb-yellow);
	outline-offset: 2px;
}

.wb-tip-pop {
	display: none;
	margin-top: 8px;
	padding: 10px 12px;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--wb-muted);
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	border-left: 3px solid var(--wb-yellow);
}

.wb-tip-pop.is-open {
	display: block;
}

.wb-hint {
	display: block;
	margin-top: 6px;
	font-size: 0.78rem;
	color: var(--wb-grey);
	line-height: 1.45;
}

.wb-input,
.wb-textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(8, 8, 10, 0.85);
	color: var(--wb-white);
	font: inherit;
	font-size: 0.92rem;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

.wb-textarea {
	min-height: 100px;
	resize: vertical;
}

.wb-input.wb-input--file {
	padding: 9px 12px;
	cursor: pointer;
	font-size: 0.88rem;
}

.wb-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;
}

.wb-field--attachments--error .wb-btn--pick-pdf {
	border-color: var(--wb-danger);
	color: var(--wb-danger);
}

.wb-attachment-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	margin-top: 10px;
}

.wb-btn--pick-pdf {
	flex-shrink: 0;
}

.wb-attachment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wb-attachment-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 8, 10, 0.65);
	font-size: 0.86rem;
}

.wb-ek-filename {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wb-white);
	min-width: 0;
}

.wb-ek-remove {
	flex-shrink: 0;
	padding: 6px 12px !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
}

.wb-input::placeholder,
.wb-textarea::placeholder {
	color: #6d6d75;
	opacity: 1;
}

.wb-input:focus,
.wb-textarea:focus {
	outline: none;
	border-color: rgba(232, 197, 71, 0.55);
	box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.12);
}

.wb-input.wb-input--error,
.wb-textarea.wb-input--error {
	border-color: var(--wb-danger);
}

.wb-field-error {
	display: none;
	margin-top: 6px;
	font-size: 0.78rem;
	color: var(--wb-danger);
}

.wb-field-error.is-visible {
	display: block;
}

/* Alt aksiyonlar */
.wb-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.wb-btn {
	padding: 11px 20px;
	border-radius: 10px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition:
		background 0.2s,
		transform 0.15s;
}

.wb-btn:active {
	transform: scale(0.98);
}

.wb-btn--ghost {
	background: transparent;
	color: var(--wb-grey);
	border-color: rgba(255, 255, 255, 0.15);
}

.wb-btn--ghost:hover:not(:disabled) {
	color: var(--wb-white);
	border-color: rgba(232, 197, 71, 0.35);
}

.wb-btn--ghost:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.wb-btn--primary {
	background: linear-gradient(180deg, var(--wb-yellow-hi), var(--wb-yellow));
	color: #111;
	border-color: rgba(0, 0, 0, 0.2);
}

.wb-btn--primary:hover:not(:disabled) {
	filter: brightness(1.05);
}

.wb-note-card {
	margin-top: 14px;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(0, 0, 0, 0.25);
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

.wb-note-card__text {
	margin: 0;
	font-size: 0.65rem;
	line-height: 1.45;
	font-weight: 400;
	color: rgba(154, 154, 159, 0.9);
	text-align: center;
	letter-spacing: 0.01em;
}

/* Ortalanmış modal bildirim + karartılmış arka plan */
body.wb-toast-open {
	overflow: hidden;
}

.wb-toast-portal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: max(12px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px))
		max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
	box-sizing: border-box;
}

.wb-toast-portal.is-visible {
	display: flex;
}

.wb-toast-portal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	cursor: pointer;
}

.wb-toast-portal__panel {
	position: relative;
	z-index: 1;
	flex: 0 1 auto;
	width: 100%;
	max-width: min(34rem, calc(100vw - 32px));
}

.wb-toast {
	margin: 0;
	padding: 16px 22px;
	border-radius: 14px;
	background: rgba(232, 197, 71, 0.14);
	border: 1px solid rgba(232, 197, 71, 0.45);
	color: var(--wb-yellow-hi);
	font-size: 0.92rem;
	text-align: center;
	font-weight: 600;
	line-height: 1.45;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.25),
		0 24px 64px rgba(0, 0, 0, 0.45);
}

.wb-toast.wb-toast--loading {
	background: rgba(154, 154, 159, 0.12);
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--wb-muted);
}

.wb-toast.wb-toast--success {
	background: rgba(34, 197, 94, 0.12);
	border-color: rgba(34, 197, 94, 0.45);
	color: #86efac;
}

.wb-toast.wb-toast--error {
	background: rgba(232, 92, 92, 0.12);
	border-color: rgba(232, 92, 92, 0.45);
	color: #fecaca;
}

@media (max-width: 520px) {
	.wb-stepnav {
		flex-direction: column;
		align-items: stretch;
	}

	.wb-stepbtn {
		justify-content: flex-start;
	}
}

/* Bütçe / sayı ızgarası (yeni ürün formu) */
.wb-section-title {
	margin: 0 0 10px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--wb-yellow-hi);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wb-budget-block {
	margin-bottom: 22px;
}

.wb-budget-block:last-of-type {
	margin-bottom: 0;
}

.wb-budget-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 560px) {
	.wb-budget-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Dil anahtarı — logo ile form başlığı arasında, kompakt */
.wb-header__langbar {
	display: flex;
	justify-content: center;
	margin: 0 auto 12px;
}

.wb-langswitch {
	display: inline-flex;
	border-radius: 999px;
	border: 1px solid rgba(232, 197, 71, 0.26);
	overflow: hidden;
	background: rgba(10, 10, 12, 0.82);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wb-langswitch__btn {
	margin: 0;
	padding: 3px 9px;
	min-width: 2.1rem;
	font: inherit;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	border: none;
	cursor: pointer;
	color: var(--wb-grey);
	background: transparent;
	line-height: 1.25;
	transition:
		color 0.15s,
		background 0.15s;
}

.wb-langswitch__btn:hover {
	color: var(--wb-white);
}

.wb-langswitch__btn.is-active {
	background: var(--wb-yellow);
	color: #141416;
}
