/**
 * Contact Form 7 - Premium Purple Theme
 * 
 * Mor temalı, modern ve profesyonel Contact Form 7 tasarımı
 * Hardcode yerine temiz CSS kullanımı
 * 
 * @package GRPCMedia
 */

/* ============================================
   CONTACT FORM 7 - PURPLE THEME CONTAINER
   ============================================ */

.wpcf7 {
	background: linear-gradient(135deg, rgba(47, 36, 131, 0.95), rgba(30, 24, 80, 0.98));
	padding: 60px 50px;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
}

/* Decorative background pattern */
.wpcf7::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 30px 30px;
	opacity: 0.3;
	pointer-events: none;
}

.wpcf7 form {
	position: relative;
	z-index: 1;
}

/* ============================================
   INPUT FIELDS - WHITE WITH SUBTLE SHADOW
   ============================================ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100% !important;
	padding: 16px 20px !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: #333333 !important;
	background-color: #ffffff !important;
	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 12px !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	font-family: inherit !important;
	outline: none !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
	margin-bottom: 20px !important;
}

/* Focus state - glowing effect */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	border-color: #ffffff !important;
	box-shadow: 
		0 4px 15px rgba(0, 0, 0, 0.1),
		0 0 0 4px rgba(255, 255, 255, 0.2),
		0 0 20px rgba(255, 255, 255, 0.3) !important;
	transform: translateY(-2px) !important;
	background-color: #ffffff !important;
}

/* Textarea specific */
.wpcf7 textarea {
	min-height: 140px !important;
	resize: vertical !important;
}

/* Placeholder styling */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #999999 !important;
	opacity: 1 !important;
	font-weight: 400 !important;
}

/* ============================================
   SUBMIT BUTTON - PREMIUM DESIGN
   ============================================ */

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	display: inline-block !important;
	padding: 18px 50px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	text-align: center !important;
	color: #2F2483 !important;
	background: linear-gradient(135deg, #ffffff, #f5f5f5) !important;
	border: 3px solid rgba(255, 255, 255, 0.5) !important;
	border-radius: 50px !important;
	cursor: pointer !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
	font-family: inherit !important;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
	position: relative !important;
	overflow: hidden !important;
	margin-top: 10px !important;
}

/* Button shine effect */
.wpcf7 input[type="submit"]::before,
.wpcf7 button[type="submit"]::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: -100% !important;
	width: 100% !important;
	height: 100% !important;
	background: linear-gradient(90deg, transparent, rgba(47, 36, 131, 0.2), transparent) !important;
	transition: left 0.6s ease !important;
}

.wpcf7 input[type="submit"]:hover::before,
.wpcf7 button[type="submit"]:hover::before {
	left: 100% !important;
}

/* Hover state */
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	transform: translateY(-3px) scale(1.02) !important;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
	border-color: #ffffff !important;
	background: linear-gradient(135deg, #ffffff, #ffffff) !important;
}

/* Active state */
.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active {
	transform: translateY(-1px) scale(1) !important;
}

/* Disabled/loading state */
.wpcf7 input[type="submit"]:disabled,
.wpcf7 button[type="submit"]:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* ============================================
   VALIDATION & ERROR MESSAGES
   ============================================ */

/* Error field styling - MODERN APPROACH */
.wpcf7 .wpcf7-not-valid,
div.wpcf7 input.wpcf7-not-valid,
div.wpcf7 textarea.wpcf7-not-valid {
	border-color: #ef4444 !important;
	border-width: 3px !important;
	background-color: rgba(239, 68, 68, 0.08) !important;
	animation: shake 0.4s ease !important;
	position: relative !important;
	padding-right: 45px !important; /* Sağda ikon için alan */
}

/* Error icon - Sağda uyarı işareti */
.wpcf7 .wpcf7-not-valid::after,
div.wpcf7 input.wpcf7-not-valid::after,
div.wpcf7 textarea.wpcf7-not-valid::after {
	content: '⚠' !important;
	position: absolute !important;
	right: 15px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #ef4444 !important;
	font-size: 20px !important;
	font-weight: bold !important;
	pointer-events: none !important;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-10px); }
	50% { transform: translateX(10px); }
	75% { transform: translateX(-5px); }
}

/* Error tooltip - GİZLE (altında mesaj yok) */
.wpcf7 .wpcf7-not-valid-tip,
div.wpcf7 .wpcf7-not-valid-tip,
div.wpcf7 span.wpcf7-not-valid-tip {
	display: none !important; /* MESAJLARI GİZLE */
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Response messages - MAXIMUM SPECIFICITY + BEYAZ YAZI */
.wpcf7 .wpcf7-response-output,
div.wpcf7 .wpcf7-response-output,
div.wpcf7 div.wpcf7-response-output,
.wpcf7-form .wpcf7-response-output,
form.wpcf7-form .wpcf7-response-output {
	padding: 20px 25px !important;
	margin: 25px 0 0 !important;
	border-radius: 12px !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	border: 3px solid !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
	animation: fadeInDown 0.3s ease !important;
	text-align: center !important;
	letter-spacing: 0.5px !important;
	color: #ffffff !important; /* BEYAZ YAZI - BASE */
	line-height: 1.6 !important;
}

/* Success message - YEŞİL ARKAPLAN + BEYAZ YAZI + ICON */
.wpcf7 .wpcf7-mail-sent-ok,
div.wpcf7 .wpcf7-mail-sent-ok,
div.wpcf7 div.wpcf7-mail-sent-ok,
.wpcf7-form .wpcf7-mail-sent-ok,
form.wpcf7-form div.wpcf7-mail-sent-ok {
	background: #10b981 !important;
	color: #ffffff !important; /* BEYAZ YAZI */
	border-color: #059669 !important;
}

.wpcf7 .wpcf7-mail-sent-ok::before {
	content: '✓' !important;
	display: inline-block !important;
	margin-right: 10px !important;
	font-size: 22px !important;
	font-weight: bold !important;
}

/* Error message - KIRMIZI ARKAPLAN + BEYAZ YAZI + ICON */
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng,
div.wpcf7 .wpcf7-validation-errors,
div.wpcf7 .wpcf7-mail-sent-ng,
div.wpcf7 div.wpcf7-validation-errors,
div.wpcf7 div.wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-mail-sent-ng,
form.wpcf7-form div.wpcf7-validation-errors,
form.wpcf7-form div.wpcf7-mail-sent-ng {
	background: #ef4444 !important;
	color: #ffffff !important; /* BEYAZ YAZI */
	border-color: #dc2626 !important;
}

.wpcf7 .wpcf7-validation-errors::before,
.wpcf7 .wpcf7-mail-sent-ng::before {
	content: '✕' !important;
	display: inline-block !important;
	margin-right: 10px !important;
	font-size: 22px !important;
	font-weight: bold !important;
}

/* Spam/Warning - TURUNCU ARKAPLAN + BEYAZ YAZI + ICON */
.wpcf7 .wpcf7-spam-blocked,
div.wpcf7 .wpcf7-spam-blocked,
div.wpcf7 div.wpcf7-spam-blocked,
.wpcf7-form .wpcf7-spam-blocked,
form.wpcf7-form div.wpcf7-spam-blocked {
	background: #f59e0b !important;
	color: #ffffff !important; /* BEYAZ YAZI */
	border-color: #d97706 !important;
}

.wpcf7 .wpcf7-spam-blocked::before {
	content: '⚠' !important;
	display: inline-block !important;
	margin-right: 10px !important;
	font-size: 22px !important;
	font-weight: bold !important;
}

/* ============================================
   AJAX LOADER - MODERN SPINNER
   ============================================ */

.wpcf7 .ajax-loader {
	display: inline-block !important;
	width: 24px !important;
	height: 24px !important;
	margin-left: 15px !important;
	vertical-align: middle !important;
	border: 3px solid rgba(255, 255, 255, 0.3) !important;
	border-top-color: #ffffff !important;
	border-radius: 50% !important;
	animation: spin 0.8s linear infinite !important;
	background: none !important;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Hide loader when not active */
.wpcf7 .ajax-loader:not(.is-active) {
	display: none !important;
}

/* ============================================
   CHECKBOX & RADIO BUTTONS
   ============================================ */

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: auto !important;
	margin-right: 10px !important;
	cursor: pointer !important;
	accent-color: #ffffff !important;
}

.wpcf7 .wpcf7-list-item {
	margin-bottom: 12px !important;
}

.wpcf7 .wpcf7-list-item-label {
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 500 !important;
}

/* ============================================
   ACCEPTANCE CHECKBOX (KVKK etc.)
   ============================================ */

.wpcf7 .wpcf7-acceptance {
	margin: 20px 0 !important;
}

.wpcf7 .wpcf7-acceptance label {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

.wpcf7 .wpcf7-acceptance a {
	color: #ffffff !important;
	text-decoration: underline !important;
	font-weight: 600 !important;
}

.wpcf7 .wpcf7-acceptance a:hover {
	text-decoration: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
	.wpcf7 {
		padding: 40px 30px !important;
		border-radius: 15px !important;
	}
	
	.wpcf7 input[type="text"],
	.wpcf7 input[type="email"],
	.wpcf7 input[type="tel"],
	.wpcf7 textarea {
		font-size: 14px !important;
		padding: 14px 18px !important;
	}
	
	.wpcf7 input[type="submit"],
	.wpcf7 button[type="submit"] {
		padding: 16px 40px !important;
		font-size: 15px !important;
		width: 100% !important;
	}
}

@media (max-width: 480px) {
	.wpcf7 {
		padding: 30px 20px !important;
	}
	
	.wpcf7 input[type="text"],
	.wpcf7 input[type="email"],
	.wpcf7 input[type="tel"],
	.wpcf7 textarea {
		font-size: 13px !important;
		padding: 12px 16px !important;
		margin-bottom: 15px !important;
	}
	
	.wpcf7 textarea {
		min-height: 120px !important;
	}
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.wpcf7 input:focus-visible,
.wpcf7 textarea:focus-visible,
.wpcf7 button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.5) !important;
	outline-offset: 2px !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
	.wpcf7 {
		background: #ffffff !important;
		box-shadow: none !important;
		border: 1px solid #000000 !important;
	}
	
	.wpcf7 input,
	.wpcf7 textarea {
		border-color: #000000 !important;
	}
}

