/**
 * UnifyTech İletişim Formu — ön yüz stilleri
 * Referans tasarım: logosoft.com.tr/copilot-in-30 form kartı
 */

.ucf-scope {
	--ucf-from: #26d4ff;
	--ucf-mid1: #3b82f6;
	--ucf-mid2: #8b5cf6;
	--ucf-to: #ec4899;
	--ucf-panel: #0b0b2a;
	--ucf-accent: #8b5cf6;
	--ucf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--ucf-gradient: linear-gradient(135deg, #26d4ff 0%, #3b82f6 30%, #8b5cf6 60%, #ec4899 100%);
	--ucf-gradient-text: linear-gradient(135deg, #26d4ff 0%, #8b5cf6 55%, #ec4899 100%);

	--ucf-slate-50: #f8fafc;
	--ucf-slate-200: #e2e8f0;
	--ucf-slate-300: #cbd5e1;
	--ucf-slate-400: #94a3b8;
	--ucf-slate-500: #64748b;
	--ucf-slate-700: #334155;
	--ucf-slate-800: #1e293b;
	--ucf-slate-900: #0f172a;

	font-family: var(--ucf-font);
	box-sizing: border-box;
}

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

/* ------------------------------------------------------------------
 * Kapsayıcı
 * --------------------------------------------------------------- */

.ucf-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.ucf-dark {
	background: var(--ucf-panel);
	border-radius: 20px;
	padding: 56px 56px;
	overflow: hidden;
}

.ucf-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 55% at 88% 8%, rgba(139, 92, 246, 0.28), transparent 70%),
		radial-gradient(55% 50% at 4% 92%, rgba(38, 212, 255, 0.18), transparent 70%);
	pointer-events: none;
}

.ucf-plain {
	padding: 0;
}

.ucf-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
}

.ucf-has-contact .ucf-inner {
	grid-template-columns: 1fr 1fr;
	gap: 56px;
}

.ucf-form-only .ucf-inner {
	max-width: 520px;
	margin: 0 auto;
}

/* ------------------------------------------------------------------
 * İletişim bilgileri paneli
 * --------------------------------------------------------------- */

.ucf-info-col {
	color: #e2e8f0;
	padding-top: 4px;
}

.ucf-plain .ucf-info-col {
	color: var(--ucf-slate-700);
}

.ucf-info-heading {
	margin: 0 0 14px;
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	background: var(--ucf-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.ucf-info-sub {
	margin: 0 0 30px;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(226, 232, 240, 0.8);
}

.ucf-plain .ucf-info-sub {
	color: var(--ucf-slate-500);
}

.ucf-info-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ucf-info-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.ucf-info-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
}

.ucf-plain .ucf-info-icon {
	background: var(--ucf-slate-50);
	border-color: var(--ucf-slate-200);
	color: var(--ucf-accent);
}

.ucf-info-icon svg {
	width: 19px;
	height: 19px;
	display: block;
}

.ucf-info-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding-top: 2px;
}

.ucf-info-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: rgba(226, 232, 240, 0.55);
}

.ucf-plain .ucf-info-label {
	color: var(--ucf-slate-400);
}

.ucf-info-value {
	font-size: 14.5px;
	line-height: 1.55;
	color: #f1f5f9;
	text-decoration: none;
	word-break: break-word;
}

.ucf-plain .ucf-info-value {
	color: var(--ucf-slate-800);
}

a.ucf-info-value:hover,
a.ucf-info-value:focus {
	color: var(--ucf-from);
	text-decoration: underline;
}

.ucf-info-muted {
	color: rgba(226, 232, 240, 0.55);
	font-size: 13px;
}

.ucf-plain .ucf-info-muted {
	color: var(--ucf-slate-400);
}

.ucf-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ucf-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ucf-plain .ucf-social {
	background: var(--ucf-slate-50);
	border-color: var(--ucf-slate-200);
	color: var(--ucf-slate-700);
}

.ucf-social:hover,
.ucf-social:focus-visible {
	transform: translateY(-2px);
	background: var(--ucf-gradient);
	border-color: transparent;
	color: #fff;
}

.ucf-social svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ------------------------------------------------------------------
 * Form kartı
 * --------------------------------------------------------------- */

.ucf-card {
	position: relative;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.ucf-plain .ucf-card {
	background: #fff;
	border-color: var(--ucf-slate-200);
	box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.22);
}

.ucf-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.ucf-card-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--ucf-gradient);
	color: #fff;
	box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.35);
}

.ucf-card-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.ucf-card-titles {
	min-width: 0;
}

.ucf-eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.4;
	background: var(--ucf-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--ucf-accent);
}

.ucf-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ucf-slate-900);
}

.ucf-desc {
	margin: -8px 0 18px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--ucf-slate-500);
}

/* ------------------------------------------------------------------
 * Alanlar
 * --------------------------------------------------------------- */

.ucf-form {
	margin: 0;
}

.ucf-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 16px;
}

.ucf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ucf-field {
	min-width: 0;
}

.ucf-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ucf-slate-700);
}

.ucf-req {
	color: #ef4444;
	margin-left: 1px;
}

.ucf-input {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ucf-slate-800);
	background: var(--ucf-slate-50);
	border: 1px solid var(--ucf-slate-200);
	border-radius: 8px;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	max-width: 100%;
}

.ucf-input::placeholder {
	color: var(--ucf-slate-400);
	opacity: 1;
}

.ucf-input:hover {
	border-color: var(--ucf-slate-300);
}

.ucf-input:focus,
.ucf-input:focus-visible {
	background: #fff;
	border-color: var(--ucf-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ucf-accent) 35%, transparent);
	outline: none;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ucf-input:focus {
		box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
	}
}

.ucf-textarea {
	resize: vertical;
	min-height: 76px;
	line-height: 1.6;
}

.ucf-input.ucf-invalid,
.ucf-input.ucf-invalid:focus {
	border-color: #ef4444;
	background: #fef2f2;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.ucf-error {
	display: none;
	margin-top: 5px;
	font-size: 11.5px;
	line-height: 1.45;
	color: #dc2626;
}

.ucf-error.ucf-visible {
	display: block;
}

/* Bot tuzağı */
.ucf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------
 * KVKK onayı
 * --------------------------------------------------------------- */

.ucf-consent-field {
	margin-top: 2px;
}

.ucf-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin: 0;
	font-weight: 400;
}

.ucf-checkbox {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.ucf-consent-box {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1px solid var(--ucf-slate-300);
	border-radius: 5px;
	background: #fff;
	color: #fff;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ucf-consent-box svg {
	width: 12px;
	height: 12px;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ucf-checkbox:checked + .ucf-consent-box {
	background: var(--ucf-gradient);
	border-color: transparent;
}

.ucf-checkbox:checked + .ucf-consent-box svg {
	opacity: 1;
	transform: scale(1);
}

.ucf-checkbox:focus-visible + .ucf-consent-box {
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.ucf-checkbox.ucf-invalid + .ucf-consent-box {
	border-color: #ef4444;
	background: #fef2f2;
}

.ucf-consent-text {
	font-size: 12px;
	line-height: 1.6;
	color: var(--ucf-slate-500);
}

.ucf-kvkk-link {
	color: var(--ucf-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ucf-kvkk-link:hover,
.ucf-kvkk-link:focus {
	color: var(--ucf-to);
}

/* ------------------------------------------------------------------
 * Buton
 * --------------------------------------------------------------- */

.ucf-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 14px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--ucf-gradient);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ucf-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 22px 30px -6px rgba(236, 72, 153, 0.5);
}

.ucf-submit:focus-visible {
	outline: 3px solid rgba(139, 92, 246, 0.45);
	outline-offset: 2px;
}

.ucf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.ucf-submit-icon svg {
	width: 17px;
	height: 17px;
	display: block;
}

.ucf-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ucf-spin 0.7s linear infinite;
}

.ucf-loading .ucf-spinner {
	display: block;
}

.ucf-loading .ucf-submit-icon {
	display: none;
}

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

@media (prefers-reduced-motion: reduce) {
	.ucf-spinner {
		animation-duration: 2s;
	}

	.ucf-submit,
	.ucf-social,
	.ucf-input,
	.ucf-consent-box {
		transition: none;
	}
}

.ucf-note {
	margin: 14px 0 0;
	font-size: 11px;
	line-height: 1.65;
	text-align: center;
	color: var(--ucf-slate-400);
}

.ucf-note a {
	color: var(--ucf-slate-500);
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Uyarılar
 * --------------------------------------------------------------- */

.ucf-alert {
	margin-bottom: 16px;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.6;
	border-radius: 10px;
	border: 1px solid transparent;
}

.ucf-alert[hidden] {
	display: none;
}

.ucf-alert-error {
	color: #b91c1c;
	background: #fef2f2;
	border-color: #fecaca;
}

.ucf-alert-success {
	color: #166534;
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.ucf-sent .ucf-fields,
.ucf-sent .ucf-submit,
.ucf-sent .ucf-note {
	display: none;
}

.ucf-sent .ucf-alert-success {
	margin-bottom: 0;
}

/* reCAPTCHA rozetini gizle (inline seçeneği) */
.ucf-badge-hidden .grecaptcha-badge {
	visibility: hidden;
}

/* ------------------------------------------------------------------
 * Duyarlı düzen
 * --------------------------------------------------------------- */

@media (max-width: 1024px) {
	.ucf-has-contact .ucf-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.ucf-dark {
		padding: 40px 32px;
	}

	.ucf-info-heading {
		font-size: 28px;
	}
}

@media (max-width: 640px) {
	.ucf-dark {
		padding: 28px 18px;
		border-radius: 16px;
	}

	.ucf-card {
		padding: 22px 18px;
		border-radius: 14px;
	}

	.ucf-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ucf-info-heading {
		font-size: 25px;
	}

	.ucf-info-sub {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.ucf-input {
		font-size: 15px; /* iOS yakınlaştırmasını engeller */
	}

	.ucf-submit {
		font-size: 15px;
		padding: 14px 18px;
	}
}
