/* Webreta Forms – ön yüz */
.wrf {
	--wrf-accent: #bcda07;
	--wrf-btn-bg: #111111;
	--wrf-btn-color: #ffffff;
	--wrf-text: #1c1c1e;
	--wrf-muted: #6e6e73;
	--wrf-border: #d8d8dc;
	--wrf-field-bg: #ffffff;
	--wrf-danger: #d4352c;
	--wrf-radius: 10px;
	--wrf-accent-strong: #8fa600;
	--wrf-ring: rgba(188, 218, 7, .38);
	color: var(--wrf-text);
	font-size: 15px;
	line-height: 1.5;
	position: relative;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.wrf {
		--wrf-accent-strong: color-mix(in srgb, var(--wrf-accent) 72%, #000);
		--wrf-ring: color-mix(in srgb, var(--wrf-accent) 42%, transparent);
	}
}
.wrf *, .wrf *::before, .wrf *::after { box-sizing: border-box; }
.wrf-form { margin: 0; }

/* Izgara */
.wrf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}
.wrf-field { grid-column: span 2; min-width: 0; margin: 0; position: relative; }
.wrf-field.wrf-w-half { grid-column: span 1; }
.wrf-field[hidden] { display: none !important; }
@media (max-width: 600px) {
	.wrf-grid { gap: 16px; }
	.wrf-field.wrf-w-half { grid-column: span 2; }
}

/* Etiket */
.wrf .wrf-label {
	display: block;
	margin: 0 0 7px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .005em;
	color: var(--wrf-text);
	text-transform: none;
}
.wrf .wrf-req { color: var(--wrf-accent-strong); margin-left: 3px; font-weight: 700; }
.wrf-labels-hidden .wrf-label:not(.wrf-label-keep) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Kontroller */
.wrf .wrf-control {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wrf-text);
	background-color: var(--wrf-field-bg);
	border: 1px solid var(--wrf-border);
	border-radius: var(--wrf-radius);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
	vertical-align: middle;
}
.wrf textarea.wrf-control {
	height: auto;
	min-height: 132px;
	padding: 12px 14px;
	resize: vertical;
	line-height: 1.55;
}
.wrf .wrf-control::placeholder { color: #a1a1a6; opacity: 1; }
.wrf .wrf-control:hover { border-color: #b9b9be; }
.wrf .wrf-control:focus {
	outline: none;
	border-color: var(--wrf-text);
	box-shadow: 0 0 0 3px var(--wrf-ring);
	background-color: var(--wrf-field-bg);
}
.wrf select.wrf-control {
	padding-right: 42px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}
.wrf select.wrf-control.wrf-empty { color: #a1a1a6; }
.wrf select.wrf-control option { color: var(--wrf-text); }
.wrf input[type="date"].wrf-control { min-height: 48px; }
.wrf input[type="date"].wrf-control::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.wrf input[type="number"].wrf-control { -moz-appearance: textfield; }

.wrf .wrf-help { margin: 6px 0 0; font-size: 12.5px; color: var(--wrf-muted); line-height: 1.45; }
.wrf .wrf-error { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--wrf-danger); display: none; }
.wrf-field.wrf-invalid .wrf-error { display: block; }
.wrf-field.wrf-invalid .wrf-control,
.wrf-field.wrf-invalid .wrf-drop { border-color: var(--wrf-danger); }
.wrf-field.wrf-invalid .wrf-control:focus { box-shadow: 0 0 0 3px rgba(212, 53, 44, .15); }
.wrf-field.wrf-invalid .wrf-check-box { border-color: var(--wrf-danger); }

/* Onay kutusu / seçim */
.wrf .wrf-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--wrf-text);
	position: relative;
}
.wrf .wrf-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
.wrf .wrf-check-box {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 1px solid #c4c4c9;
	border-radius: 6px;
	color: var(--wrf-accent);
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.wrf .wrf-check-box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; }
.wrf .wrf-check:hover .wrf-check-box { border-color: var(--wrf-text); }
.wrf .wrf-check input:checked + .wrf-check-box { background: var(--wrf-btn-bg); border-color: var(--wrf-btn-bg); }
.wrf .wrf-check input:checked + .wrf-check-box svg { opacity: 1; transform: none; }
.wrf .wrf-check input:focus-visible + .wrf-check-box { box-shadow: 0 0 0 3px var(--wrf-ring); }
.wrf .wrf-check a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--wrf-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wrf .wrf-check a:hover { text-decoration-color: currentColor; }
.wrf .wrf-radio .wrf-check-box { border-radius: 50%; }
.wrf .wrf-radio .wrf-check-box i { width: 8px; height: 8px; border-radius: 50%; background: var(--wrf-accent); transform: scale(0); transition: transform .15s ease; }
.wrf .wrf-radio input:checked + .wrf-check-box i { transform: scale(1); }
.wrf .wrf-choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.wrf-type-kvkk .wrf-check { font-size: 13.5px; color: #3a3a3c; }

/* Dosya alanı */
.wrf .wrf-drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: #fafafa;
	border: 1px dashed #bdbdc2;
	border-radius: var(--wrf-radius);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.wrf .wrf-drop:hover,
.wrf .wrf-drop.is-over { border-color: var(--wrf-text); background: #fff; }
.wrf .wrf-drop.is-over { box-shadow: 0 0 0 3px var(--wrf-ring); }
.wrf .wrf-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}
.wrf .wrf-drop:focus-within { border-color: var(--wrf-text); box-shadow: 0 0 0 3px var(--wrf-ring); }
.wrf .wrf-drop-icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--wrf-btn-bg);
	color: var(--wrf-accent);
}
.wrf .wrf-drop-icon svg { width: 20px; height: 20px; }
.wrf .wrf-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wrf .wrf-drop-title { font-size: 14px; font-weight: 600; color: var(--wrf-text); }
.wrf .wrf-drop-or { font-weight: 400; color: var(--wrf-muted); }
.wrf .wrf-drop-meta { font-size: 12.5px; color: var(--wrf-muted); }
.wrf .wrf-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.wrf .wrf-files:empty { display: none; }
.wrf .wrf-file {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 8px 8px 10px;
	background: #fff;
	border: 1px solid var(--wrf-border);
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.3;
}
.wrf .wrf-file-ext {
	flex: 0 0 auto;
	min-width: 38px;
	padding: 4px 6px;
	border-radius: 5px;
	background: #f0f0f2;
	color: #3a3a3c;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-align: center;
	text-transform: uppercase;
}
.wrf .wrf-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrf .wrf-file-size { flex: 0 0 auto; color: var(--wrf-muted); font-size: 12.5px; }
.wrf button.wrf-file-remove {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: grid;
	place-items: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--wrf-muted);
	cursor: pointer;
	box-shadow: none;
	line-height: 1;
}
.wrf button.wrf-file-remove:hover { background: #f2f2f4; color: var(--wrf-danger); }
.wrf button.wrf-file-remove svg { width: 15px; height: 15px; }

/* Bölüm başlığı */
.wrf .wrf-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e5ea;
}
.wrf .wrf-grid > .wrf-heading:first-child { margin-top: 0; }
.wrf .wrf-heading-no {
	flex: 0 0 auto;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--wrf-btn-bg);
	color: var(--wrf-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
}
.wrf .wrf-heading-title { margin: 0; padding: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--wrf-text); }

/* Güvenlik sorusu */
.wrf .wrf-captcha-row { display: flex; align-items: stretch; gap: 10px; }
.wrf .wrf-captcha-q {
	flex: 0 0 auto;
	min-width: 104px;
	height: 48px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wrf-radius);
	background: var(--wrf-btn-bg);
	color: var(--wrf-btn-color);
	font-weight: 700;
	letter-spacing: .03em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.wrf .wrf-captcha-row .wrf-control { flex: 1; min-width: 0; }

/* Honeypot */
.wrf .wrf-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Alt kısım */
.wrf .wrf-alert {
	display: none;
	margin: 18px 0 0;
	padding: 11px 14px;
	border-radius: 8px;
	background: #fdeceb;
	color: #8f2019;
	font-size: 14px;
	line-height: 1.45;
}
.wrf .wrf-alert.is-visible { display: block; }
.wrf .wrf-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-top: 22px;
}
.wrf .wrf-note { margin: 0; font-size: 12.5px; color: var(--wrf-muted); }
.wrf button.wrf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	min-height: 0;
	margin: 0;
	padding: 0 26px;
	background: var(--wrf-btn-bg);
	color: var(--wrf-btn-color);
	border: 0;
	border-radius: var(--wrf-radius);
	box-shadow: none;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .015em;
	text-transform: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
.wrf button.wrf-btn:hover,
.wrf button.wrf-btn:focus-visible { background: var(--wrf-accent); color: #111; outline: none; }
.wrf button.wrf-btn:focus-visible { box-shadow: 0 0 0 3px var(--wrf-ring); }
.wrf .wrf-btn-arrow { width: 17px; height: 17px; transition: transform .18s ease; }
.wrf button.wrf-btn:hover .wrf-btn-arrow { transform: translateX(3px); }
.wrf button.wrf-btn[disabled] { cursor: progress; opacity: .85; }
.wrf .wrf-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wrf-spin .7s linear infinite;
}
.wrf.is-sending .wrf-spinner { display: block; }
.wrf.is-sending .wrf-btn-arrow { display: none; }
@keyframes wrf-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
	.wrf .wrf-footer { flex-direction: column-reverse; align-items: stretch; }
	.wrf button.wrf-btn { width: 100%; }
}

/* Başarı ekranı */
.wrf .wrf-success { padding: 44px 20px; text-align: center; outline: none; }
.wrf .wrf-success[hidden] { display: none; }
.wrf .wrf-success-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wrf-btn-bg);
	color: var(--wrf-accent);
	animation: wrf-pop .35s cubic-bezier(.2, .9, .3, 1.3);
}
.wrf .wrf-success-icon svg { width: 26px; height: 26px; }
.wrf .wrf-success-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--wrf-text); }
.wrf .wrf-success-text { max-width: 440px; margin: 0 auto; color: var(--wrf-muted); }
.wrf button.wrf-again {
	margin: 22px 0 0;
	padding: 10px 18px;
	min-height: 0;
	background: transparent;
	border: 1px solid var(--wrf-border);
	border-radius: 8px;
	box-shadow: none;
	color: var(--wrf-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.wrf button.wrf-again:hover { border-color: var(--wrf-text); }
@keyframes wrf-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.wrf *, .wrf *::before, .wrf *::after { animation: none !important; transition: none !important; }
}
