/**
 * Ayaner Form — Frontend stilleri
 * Tema yoksa da güzel görünür (kendi default rengi var); tema değişkenleri varsa override eder.
 */
.aynf {
	--aynf-bg: var(--bg, #F6F1E7);
	--aynf-surface: var(--surface, #FBF7EF);
	--aynf-surface-2: var(--surface-2, #EEE4D3);
	--aynf-ink: var(--ink, #3B352B);
	--aynf-ink-soft: var(--ink-soft, #7A7263);
	--aynf-line: var(--line, #E4DACA);
	--aynf-accent: var(--accent, #B8954A);
	--aynf-accent-2: var(--accent-2, #9C7E3C);
	--aynf-radius: 14px;
	padding: 60px 24px;
	background: linear-gradient(180deg, var(--aynf-surface-2), var(--aynf-bg));
	box-sizing: border-box;
	font-family: inherit;
}
.aynf__wrap {
	max-width: 760px;
	margin: 0 auto;
	background: var(--aynf-surface);
	padding: 48px 40px;
	border-radius: 22px;
	box-shadow: 0 40px 80px -32px rgba(40,20,15,0.18), 0 0 0 1px var(--aynf-line);
}
@media (max-width: 640px) {
	.aynf { padding: 36px 16px; }
	.aynf__wrap { padding: 32px 22px; }
}
.aynf__head { text-align: center; margin-bottom: 32px; }
.aynf__title {
	font-family: var(--head, Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: clamp(26px, 3.2vw, 38px);
	line-height: 1.2;
	margin: 0 0 10px;
	color: var(--aynf-ink);
}
.aynf__sub {
	font-size: 16px;
	line-height: 1.55;
	color: var(--aynf-ink-soft);
	margin: 0;
}
.aynf__form { display: flex; flex-direction: column; gap: 16px; }
.aynf__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .aynf__row { grid-template-columns: repeat(2, 1fr); } }

.aynf__field { display: flex; flex-direction: column; gap: 6px; }
.aynf__label {
	font-size: 12px; font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--aynf-ink-soft);
}
.aynf__label em { color: var(--aynf-accent-2); font-style: normal; }

.aynf__form input[type="text"],
.aynf__form input[type="email"],
.aynf__form input[type="tel"],
.aynf__form input[type="url"],
.aynf__form input[type="number"],
.aynf__form input[type="file"],
.aynf__form select,
	.aynf__form textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--aynf-bg);
	border: 1.5px solid var(--aynf-line);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	font-family: inherit;
	color: var(--aynf-ink);
	transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.aynf__form input:focus,
.aynf__form textarea:focus {
	outline: none;
	background: var(--aynf-surface);
	border-color: var(--aynf-accent);
	box-shadow: 0 0 0 4px rgba(184,149,74,0.15);
}
.aynf__form textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.aynf__form input[type="file"] {
	padding: 10px 14px;
	cursor: pointer;
	background: var(--aynf-bg);
}
.aynf__form input[type="file"]::file-selector-button {
	background: var(--aynf-accent);
	color: #fff;
	border: 0;
	padding: 8px 14px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	margin-right: 12px;
	cursor: pointer;
}

.aynf__honeypot {
	position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.aynf__consents {
	display: flex; flex-direction: column; gap: 12px;
	padding: 18px 20px;
	background: var(--aynf-bg);
	border-radius: 12px;
	border: 1px solid var(--aynf-line);
	margin-top: 4px;
}
.aynf__check {
	display: flex; align-items: flex-start; gap: 12px;
	cursor: pointer; font-size: 14px; line-height: 1.55;
	color: var(--aynf-ink-soft);
}
.aynf__check input { position: absolute; opacity: 0; pointer-events: none; }
.aynf__check-box {
	flex-shrink: 0;
	width: 20px; height: 20px;
	border-radius: 5px;
	border: 1.5px solid var(--aynf-line);
	background: var(--aynf-surface);
	display: grid; place-items: center;
	margin-top: 2px;
}
.aynf__check-box::after {
	content: ''; width: 12px; height: 12px;
	background: var(--aynf-accent);
	border-radius: 3px;
	transform: scale(0);
	transition: transform .2s ease;
}
.aynf__check input:checked + .aynf__check-box { border-color: var(--aynf-accent); }
.aynf__check input:checked + .aynf__check-box::after { transform: scale(1); }
.aynf__check-text a {
	color: var(--aynf-accent-2);
	text-decoration: underline; text-underline-offset: 3px;
}
.aynf__check-text em { color: var(--aynf-accent-2); font-style: normal; }

.aynf__actions { display: flex; justify-content: center; margin-top: 8px; }
.aynf__submit {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 220px;
	padding: 16px 32px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--aynf-accent), var(--aynf-accent-2));
	color: #fff;
	font-size: 14px; font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(184,149,74,0.30);
	transition: transform .25s ease, box-shadow .25s ease;
	font-family: inherit;
}
.aynf__submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(184,149,74,0.42);
}
.aynf__submit:disabled { opacity: 0.7; cursor: wait; }
.aynf__spinner {
	display: none;
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	margin-left: 10px;
	animation: aynf-spin .8s linear infinite;
}
.aynf__submit.is-loading .aynf__spinner { display: inline-block; }
.aynf__submit.is-loading .aynf__submit-label { opacity: 0.7; }
@keyframes aynf-spin { to { transform: rotate(360deg); } }

.aynf__feedback {
	text-align: center; font-size: 15px; line-height: 1.5; min-height: 22px;
}
.aynf__feedback.is-success {
	color: #2E5B3E;
	padding: 12px 18px;
	background: rgba(76,160,90,0.10);
	border: 1px solid rgba(76,160,90,0.25);
	border-radius: 10px;
}
.aynf__feedback.is-error {
	color: #8B3030;
	padding: 12px 18px;
	background: rgba(184,80,64,0.10);
	border: 1px solid rgba(184,80,64,0.25);
	border-radius: 10px;
}


/* Açılır liste oku + Çoklu seçim (onay kutuları) grubu */
.aynf__form select {
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
}
.aynf__field--checkbox { display: flex; flex-direction: column; gap: 8px; }
.aynf__checks { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 560px) { .aynf__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; } }

/* KVKK Aydınlatma Metni popup (body'ye taşınır) */
.aynf__modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.aynf__modal[hidden] { display: none; }
.aynf__modal-overlay { position: absolute; inset: 0; background: rgba(17,24,39,.55); backdrop-filter: blur(2px); }
.aynf__modal-box {
	position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 85vh;
	display: flex; flex-direction: column; background: #fff; color: #1f2937;
	border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden;
	font-family: inherit;
}
.aynf__modal-title { flex: 0 0 auto; margin: 0; padding: 20px 24px 14px; font-size: 19px; font-weight: 700; border-bottom: 1px solid #eef0f3; padding-right: 52px; }
.aynf__modal-close {
	position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; cursor: pointer;
	background: #f3f4f6; border-radius: 50%; font-size: 22px; line-height: 1; color: #4b5563;
}
.aynf__modal-close:hover { background: #e5e7eb; color: #111827; }
.aynf__modal-content { flex: 1 1 auto; min-height: 0; padding: 18px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 14.5px; line-height: 1.65; color: #374151; }
.aynf__modal-content h1, .aynf__modal-content h2, .aynf__modal-content h3 { font-size: 16px; margin: 18px 0 8px; color: #111827; }
.aynf__modal-content ul, .aynf__modal-content ol { margin: 0 0 14px; padding-left: 20px; }
.aynf__modal-content li { margin: 6px 0; }
.aynf__modal-content p { margin: 0 0 12px; }
.aynf__modal-foot { flex: 0 0 auto; padding: 14px 24px 20px; border-top: 1px solid #eef0f3; text-align: right; }
.aynf__modal-ok { border: 0; cursor: pointer; padding: 11px 22px; border-radius: 11px; font-size: 14px; font-weight: 700; background: #111827; color: #fff; }
.aynf__modal-ok:hover { background: #1f2937; }
@media (max-width: 560px) { .aynf__modal-box { max-height: 92vh; } }
