/* Marketing Audit modal — Digital Marketing page only */
.bns-ma[hidden] {
	display: none !important;
}

.bns-ma {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.bns-ma__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 24, 48, 0.65);
	backdrop-filter: blur(2px);
}

.bns-ma__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 32px 28px 28px;
	font-family: "Roboto", Sans-serif;
	color: #1a3861;
	animation: bnsMaFadeIn 0.3s ease;
}

@keyframes bnsMaFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.bns-ma__close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #d0d7e2;
	background: #fafbfd;
	font-size: 24px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bns-ma__close:hover,
.bns-ma__close:focus-visible {
	background: #f0f5ff;
	border-color: #0840fc;
	color: #0840fc;
	outline: none;
}

.bns-ma__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: #1a3861;
	padding-right: 36px;
}

.bns-ma__subtitle {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.5;
	color: #424242;
}

.bns-ma__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.bns-ma__field {
	margin-bottom: 14px;
}

.bns-ma__field label,
.bns-ma__fieldset legend {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #1a3861;
}

.bns-ma__fieldset {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.bns-ma__required {
	color: #d63638;
}

.bns-ma__field input,
.bns-ma__field textarea {
	width: 100%;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 15px;
	color: #333;
	background: #fff;
	border: 1px solid #d0d7e2;
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bns-ma__field input:focus,
.bns-ma__field textarea:focus {
	outline: none;
	border-color: #0840fc;
	box-shadow: 0 0 0 3px rgba(8, 64, 252, 0.12);
}

.bns-ma__checks,
.bns-ma__radios {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bns-ma__check,
.bns-ma__radio {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #e0e6ef;
	border-radius: 8px;
	background: #fafbfd;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
}

.bns-ma__check:hover,
.bns-ma__radio:hover {
	border-color: #0840fc;
	background: #f5f9ff;
}

.bns-ma__check input,
.bns-ma__radio input {
	margin-top: 2px;
	accent-color: #0840fc;
	flex-shrink: 0;
}

.bns-ma__error {
	margin-bottom: 12px;
	padding: 10px 14px;
	font-size: 14px;
	color: #8a1f1f;
	background: #fdeaea;
	border: 1px solid #f5c2c2;
	border-radius: 8px;
}

.bns-ma__submit {
	display: block;
	width: 100%;
	padding: 14px 24px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	background: linear-gradient(90deg, #1677a6 0%, #0ea5e9 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	box-shadow: 0 5px 25px rgba(31, 126, 161, 0.35);
	transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.bns-ma__submit:hover {
	background: linear-gradient(90deg, #125f87 0%, #0b8ec9 100%);
	box-shadow: 0 8px 20px rgba(30, 144, 194, 0.25);
}

.bns-ma__submit:focus-visible {
	outline: 2px solid #0840fc;
	outline-offset: 2px;
}

.bns-ma__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.bns-ma__submit--secondary {
	margin-top: 16px;
	background: transparent;
	color: #0840fc;
	border: 1px solid #0840fc;
	box-shadow: none;
}

.bns-ma__submit--secondary:hover,
.bns-ma__submit--secondary:focus-visible {
	background: #f0f5ff;
	color: #0840fc;
	box-shadow: none;
}

.bns-ma__success {
	text-align: center;
	padding: 24px 8px 8px;
}

.bns-ma__success-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 8px;
}

.bns-ma__close-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 110px;
	padding: 12px 28px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: #0840fc;
	background: transparent;
	border: 1px solid #0840fc;
	border-radius: 50px;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.bns-ma__close-btn:hover,
.bns-ma__close-btn:focus-visible {
	background: #f0f5ff;
	color: #0840fc;
	outline: none;
}

.bns-ma__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	font-size: 28px;
	color: #fff;
	background: linear-gradient(90deg, #1677a6 0%, #0ea5e9 100%);
	border-radius: 50%;
}

.bns-ma__success-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	color: #1a3861;
}

.bns-ma__success-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #424242;
}

body.bns-ma-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.bns-ma {
		padding: 12px;
		align-items: flex-end;
	}

	.bns-ma__dialog {
		max-height: calc(100vh - 24px);
		padding: 24px 18px 20px;
		border-radius: 12px 12px 0 0;
	}

	.bns-ma__grid,
	.bns-ma__checks,
	.bns-ma__radios {
		grid-template-columns: 1fr;
	}

	.bns-ma__title {
		font-size: 20px;
	}
}
