/* Barracuda Message Archiver Başvuru Formu */

.bmaf {
	--bmaf-bg: #0b0c26;
	--bmaf-ink: #ffffff;
	--bmaf-muted: #a8abc9;
	--bmaf-label: #8d91b4;
	--bmaf-card: #f3f4f6;
	--bmaf-text: #111827;
	--bmaf-sub: #4b5563;
	--bmaf-border: #d6d9e0;
	--bmaf-focus: #8b5cf6;
	--bmaf-error: #e11d48;
	--bmaf-grad: linear-gradient(90deg, #22d3ee 0%, #3b82f6 35%, #8b5cf6 70%, #ec4899 100%);
	--bmaf-grad-text: linear-gradient(90deg, #22d3ee 0%, #5b8cf5 35%, #8b6cf6 65%, #c45ee8 100%);

	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 64px);
	border-radius: 28px;
	overflow: hidden;
	color: var(--bmaf-ink);
	font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	background:
		radial-gradient(60% 55% at 100% 0%, rgba(76, 49, 140, .55) 0%, rgba(76, 49, 140, 0) 70%),
		radial-gradient(55% 50% at 0% 100%, rgba(21, 72, 110, .55) 0%, rgba(21, 72, 110, 0) 70%),
		var(--bmaf-bg);
}

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

.bmaf-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

/* ---------- Sol panel ---------- */

.bmaf-info {
	padding-top: 8px;
}

.bmaf .bmaf-heading {
	margin: 0 0 24px;
	padding: 0;
	font-family: inherit;
	font-size: clamp(32px, 3.9vw, 56px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.bmaf .bmaf-heading span {
	background: var(--bmaf-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.bmaf .bmaf-lead {
	max-width: 34em;
	margin: 0 0 40px;
	color: var(--bmaf-muted);
	font-size: 18px;
	line-height: 1.65;
}

.bmaf .bmaf-contact {
	list-style: none;
	margin: 0 0 44px;
	padding: 0;
	display: grid;
	gap: 28px;
}

.bmaf .bmaf-contact li {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
}

.bmaf-ico {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
}

.bmaf-ico svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bmaf-contact-label {
	display: block;
	margin: 2px 0 4px;
	color: var(--bmaf-label);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bmaf .bmaf-contact-value {
	display: block;
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.bmaf a.bmaf-contact-value:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bmaf-contact-note {
	display: block;
	margin-top: 6px;
	color: var(--bmaf-label);
	font-size: 15px;
}

.bmaf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bmaf .bmaf-social a {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	color: #ffffff;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
	transition: background-color .2s ease, border-color .2s ease;
}

.bmaf .bmaf-social a:hover {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .25);
}

.bmaf-social svg {
	width: 20px;
	height: 20px;
}

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

.bmaf-card {
	padding: clamp(24px, 4vw, 48px);
	border-radius: 28px;
	background: var(--bmaf-card);
	color: var(--bmaf-text);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}

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

.bmaf-badge {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #ec4899 100%);
	box-shadow: 0 12px 24px -10px rgba(99, 102, 241, .7);
}

.bmaf-badge svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bmaf-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	background: var(--bmaf-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.bmaf .bmaf-card-title {
	margin: 2px 0 0;
	padding: 0;
	color: var(--bmaf-text);
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.bmaf .bmaf-card-desc {
	margin: 0 0 28px;
	color: var(--bmaf-sub);
	font-size: 16px;
	line-height: 1.6;
}

.bmaf-form {
	display: grid;
	gap: 20px;
	margin: 0;
}

.bmaf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.bmaf-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bmaf .bmaf-field > label:not(.bmaf-check) {
	display: block;
	margin: 0 0 8px;
	color: #1f2937;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.bmaf-req {
	color: var(--bmaf-error);
}

.bmaf .bmaf-input,
.bmaf .bmaf-select {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--bmaf-border);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: none;
	color: var(--bmaf-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bmaf .bmaf-input::placeholder {
	color: #9ca3af;
	opacity: 1;
	font-weight: 400;
}

.bmaf .bmaf-input:hover,
.bmaf .bmaf-select:hover {
	border-color: #b8bcc7;
}

.bmaf .bmaf-input:focus,
.bmaf .bmaf-select:focus {
	border-color: var(--bmaf-focus);
	box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
}

.bmaf .bmaf-input[type="number"] {
	-moz-appearance: textfield;
}

.bmaf .bmaf-input[type="number"]::-webkit-outer-spin-button,
.bmaf .bmaf-input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bmaf-group {
	display: flex;
}

.bmaf .bmaf-group .bmaf-input {
	flex: 1 1 auto;
	min-width: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.bmaf .bmaf-group .bmaf-select {
	flex: 0 0 auto;
	width: 82px;
	margin-left: -1px;
	padding: 0 30px 0 14px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	background-color: #f9fafb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.bmaf .bmaf-group .bmaf-input:focus,
.bmaf .bmaf-group .bmaf-select:focus {
	position: relative;
	z-index: 1;
}

.bmaf-hint {
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.4;
}

.bmaf-error {
	display: none;
	margin-top: 6px;
	color: var(--bmaf-error);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.bmaf-field.is-invalid .bmaf-error {
	display: block;
}

.bmaf-field.is-invalid .bmaf-hint {
	display: none;
}

.bmaf .bmaf-field.is-invalid .bmaf-input,
.bmaf .bmaf-field.is-invalid .bmaf-select {
	border-color: var(--bmaf-error);
}

.bmaf .bmaf-field.is-invalid .bmaf-input:focus {
	box-shadow: 0 0 0 4px rgba(225, 29, 72, .14);
}

/* ---------- KVKK onay kutusu ---------- */

.bmaf .bmaf-check {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 4px 0 0;
	color: var(--bmaf-sub);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	cursor: pointer;
}

.bmaf .bmaf-check input {
	position: absolute;
	width: 24px;
	height: 24px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.bmaf-box {
	flex: 0 0 auto;
	position: relative;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border: 1px solid var(--bmaf-border);
	border-radius: 7px;
	background: #ffffff;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.bmaf-box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	width: 6px;
	height: 11px;
	border: solid #ffffff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}

.bmaf .bmaf-check input:checked + .bmaf-box {
	border-color: transparent;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.bmaf .bmaf-check input:checked + .bmaf-box::after {
	transform: rotate(45deg) scale(1);
}

.bmaf .bmaf-check input:focus-visible + .bmaf-box {
	border-color: var(--bmaf-focus);
	box-shadow: 0 0 0 4px rgba(139, 92, 246, .2);
}

.bmaf .bmaf-field.is-invalid .bmaf-box {
	border-color: var(--bmaf-error);
}

.bmaf .bmaf-check a {
	color: #7c3aed;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bmaf-consent .bmaf-error {
	margin-left: 38px;
}

/* ---------- Gönder butonu ---------- */

.bmaf .bmaf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 60px;
	margin: 6px 0 0;
	padding: 0 24px;
	border: 0;
	border-radius: 14px;
	background: var(--bmaf-grad);
	box-shadow: 0 16px 32px -14px rgba(139, 92, 246, .75);
	color: #ffffff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: filter .2s ease, box-shadow .2s ease;
}

.bmaf .bmaf-submit:hover {
	filter: brightness(1.06);
	box-shadow: 0 20px 36px -14px rgba(139, 92, 246, .9);
}

.bmaf .bmaf-submit:focus-visible {
	outline: 3px solid #1f2937;
	outline-offset: 3px;
}

.bmaf-submit-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bmaf-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, .4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: bmaf-spin .7s linear infinite;
}

.bmaf .bmaf-submit.is-loading {
	cursor: progress;
	filter: saturate(.85);
}

.bmaf-submit.is-loading .bmaf-submit-icon {
	display: none;
}

.bmaf-submit.is-loading .bmaf-spinner {
	display: inline-block;
}

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

/* ---------- Bilgilendirme ve uyarılar ---------- */

.bmaf .bmaf-recaptcha-note {
	margin: 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.bmaf .bmaf-recaptcha-note a {
	color: inherit;
	text-decoration: underline;
}

/* Bilgilendirme metni gösterildiği için rozet gizlenebilir (Google'ın izin verdiği kullanım). */
.grecaptcha-badge {
	visibility: hidden;
}

.bmaf-alert {
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid #fecdd3;
	background: #fff1f2;
	color: #9f1239;
	font-size: 14px;
	font-weight: 600;
}

.bmaf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Başarı durumu ---------- */

.bmaf-success {
	padding: 24px 0 8px;
	text-align: center;
}

.bmaf-success-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--bmaf-grad);
	box-shadow: 0 16px 32px -14px rgba(139, 92, 246, .75);
}

.bmaf-success-icon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bmaf .bmaf-success .bmaf-card-title {
	outline: none;
}

.bmaf .bmaf-success-text {
	max-width: 30em;
	margin: 10px auto 0;
	color: var(--bmaf-sub);
	font-size: 16px;
}

/* ---------- Duyarlı yerleşim ---------- */

@media (max-width: 1024px) {
	.bmaf-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.bmaf {
		padding: 28px 14px 14px;
		border-radius: 20px;
	}

	.bmaf-info {
		padding: 0 6px;
	}

	.bmaf-card {
		padding: 24px 18px;
		border-radius: 20px;
	}

	.bmaf-row {
		grid-template-columns: 1fr;
	}

	.bmaf .bmaf-lead,
	.bmaf .bmaf-contact-value {
		font-size: 16px;
	}
}

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