/**
 * Contact Form 7 - Acceptance Turkish Flag Custom Style
 * Rıza metni başına Türk bayrağı icon'u ekler
 */

/* Acceptance label'ın başına Türk bayrağı ekle - SVG formatında - SADECE acceptance */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 20px;
	margin-right: 0.4em;
	margin-left: 0.3em;
	vertical-align: middle;
	background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"%3e%3crect width="1200" height="800" fill="%23E30A17"/%3e%3ccircle cx="425" cy="400" r="200" fill="white"/%3e%3ccircle cx="475" cy="400" r="160" fill="%23E30A17"/%3e%3cpath d="M 580 300 L 580 500 L 700 400 Z" fill="white"/%3e%3c/svg%3e');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
	position: relative;
	top: 2px;
}

/* Alternatif: SVG veya resim kullanmak isterseniz */
.wpcf7-acceptance .wpcf7-list-item-label.with-flag-icon::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 14px;
	margin-right: 0.5em;
	vertical-align: middle;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect width="1200" height="800" fill="%23E30A17"/><circle cx="425" cy="400" r="200" fill="white"/><circle cx="475" cy="400" r="160" fill="%23E30A17"/><path d="M 580,400 L 580,325 L 650,365 L 580,400 L 650,435 Z" fill="white" transform="rotate(0 550 400)"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
}

/* Mobil uyumluluk - SADECE acceptance */
@media (max-width: 768px) {
	span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label::before {
		width: 36px;
		height: 26px;
		margin-right: 0.4em;
		margin-left: 0;
		margin-bottom: 0.4em;
	}
	
	span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label {
		margin-right: 0.5em;
	}
	
	/* Mobilde checkbox biraz daha belirgin - SADECE acceptance */
	span.wpcf7-form-control-wrap .wpcf7-acceptance input[type="checkbox"] {
		width: 20px;
		height: 20px;
		min-width: 20px;
	}
}

/* Label text'in düzgün hizalanması - SADECE acceptance */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label {
	display: inline-flex;
	align-items: center;
	line-height: 1.6;
}

/* Checkbox ile label arası boşluk ayarı - SADECE acceptance */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

/* Checkbox'ı bayraktan ayır - SADECE acceptance */
span.wpcf7-form-control-wrap .wpcf7-acceptance input[type="checkbox"] {
	margin-right: 0.3em;
	flex-shrink: 0;
}

/* DAHA BÜYÜK BAYRAK İSTERSENİZ: Aşağıdaki yorumu kaldırın */
/*
.wpcf7-acceptance .wpcf7-list-item-label::before {
	width: 36px !important;
	height: 26px !important;
}
*/

/* BİLDİRİM TARZI DÜZEN - Checkbox gizli, tüm alan tıklanabilir */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item {
	display: block !important;
	width: 100%;
	position: relative;
}

span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label::before {
	width: 40px !important;
	height: 28px !important;
	margin-bottom: 0.5em;
	margin-left: 0;
	display: block;
}

span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item label {
	display: block !important;
	width: 100% !important;
	position: relative;
}

/* Metin label'ı - Relative position tik işareti için */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label {
	display: block !important;
	position: relative;
	width: 100%;
}

/* KUTU TASARIMI İSTEMİYORSANIZ: Aşağıdaki yorumları kaldırın ve alttaki satırları yorum yapın */
/*
.wpcf7-form-control-wrap[data-name*="acceptance"] .wpcf7-acceptance,
span.wpcf7-form-control-wrap .wpcf7-acceptance {
	background: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 1em 0 !important;
	display: block !important;
}
*/

/* Acceptance alanını belirgin yap - SADECE .wpcf7-form-control-wrap içindeki */
.wpcf7-form-control-wrap[data-name*="acceptance"] .wpcf7-acceptance,
span.wpcf7-form-control-wrap .wpcf7-acceptance {
	background: #f8f9fa;
	padding: 1em;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
	margin: 1em 0;
	display: block;
}

/* Acceptance alanı hover efekti */
.wpcf7-form-control-wrap[data-name*="acceptance"] .wpcf7-acceptance:hover,
span.wpcf7-form-control-wrap .wpcf7-acceptance:hover {
	border-color: #E30A17;
	box-shadow: 0 2px 8px rgba(227, 10, 23, 0.1);
}

/* Checkbox'ı TAMAMEN GİZLE - ÇOK ÇOK GÜÇLÜ SELEKTÖR */
.wpcf7-acceptance input[type="checkbox"],
span.wpcf7-form-control-wrap .wpcf7-acceptance input[type="checkbox"],
.wpcf7-form-control-wrap .wpcf7-acceptance input[type="checkbox"],
.wpcf7 .wpcf7-acceptance input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"],
.wpcf7-list-item input[type="checkbox"],
.wpcf7-acceptance .wpcf7-list-item input[type="checkbox"],
.wpcf7-acceptance label input[type="checkbox"],
.wpcf7-acceptance span input[type="checkbox"] {
	display: none !important;
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	background: none !important;
	pointer-events: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	white-space: nowrap !important;
}

/* Checkbox'ın checked state'ini de gizle */
.wpcf7-acceptance input[type="checkbox"]:checked,
.wpcf7-acceptance input[type="checkbox"]:checked::before,
.wpcf7-acceptance input[type="checkbox"]:checked::after {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	content: '' !important;
	background: none !important;
	border: none !important;
}

/* Label'ın before/after'ını da kontrol et */
.wpcf7-acceptance label::before,
.wpcf7-acceptance label::after,
.wpcf7-acceptance .wpcf7-list-item label::before,
.wpcf7-acceptance .wpcf7-list-item label::after {
	content: none !important;
	display: none !important;
}

/* Sadece bayrak label'ının before'ını göster */
.wpcf7-acceptance .wpcf7-list-item-label::before {
	content: "" !important;
	display: inline-block !important;
}

/* Checkbox otomatik işaretle - Turnstile için */
span.wpcf7-form-control-wrap .wpcf7-acceptance input[type="checkbox"] {
	checked: checked !important;
}

/* Alan tıklanabilir OLMASIN - Sadece bilgi */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item label {
	cursor: default !important;
	display: block;
	width: 100%;
	pointer-events: none !important;
}

/* Bayrak ve metin tıklanabilir DEĞİL */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label {
	cursor: default !important;
	pointer-events: none !important;
}

/* Bayrak tıklanabilir DEĞİL */
span.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item-label::before {
	cursor: default !important;
	pointer-events: none !important;
}

/* RENK DEĞİŞİMİ YOK - Her zaman aynı renk */

