html.ma-trial-open,
html.ma-trial-open body {
	overflow: hidden !important;
}

.ma-trial-modal[hidden] {
	display: none !important;
}

.ma-trial-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 22px;
}

.ma-trial-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 14, 38, .78);
	backdrop-filter: blur(5px);
}

.ma-trial-modal__panel {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: calc(100vh - 44px);
	overflow: auto;
	padding: 30px;
	border: 1px solid rgba(0, 94, 255, .18);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(0, 20, 60, .35);
	color: #0b1f42;
}

.ma-trial-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #edf4ff;
	color: #0b326e;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.ma-trial-modal__eyebrow {
	margin: 0 0 5px;
	color: #0868d8;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ma-trial-modal h2 {
	margin: 0 50px 8px 0;
	font-size: clamp(25px, 4vw, 34px);
	line-height: 1.1;
}

.ma-trial-modal__intro {
	margin: 0 0 18px;
	color: #51627e;
	font-size: 15px;
}

.ma-trial-model {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
	padding: 13px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, #06285b, #0b65d8);
	color: #fff;
}

.ma-trial-model span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ma-trial-model strong {
	text-align: right;
}

.ma-trial-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.ma-trial-field {
	display: grid;
	gap: 7px;
}

.ma-trial-field--wide {
	grid-column: 1 / -1;
}

.ma-trial-field > span {
	font-size: 13px;
	font-weight: 750;
}

.ma-trial-field input,
.ma-trial-field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #bac8da;
	border-radius: 10px;
	background: #fff;
	color: #102344;
	font: inherit;
}

.ma-trial-field input:focus,
.ma-trial-field select:focus {
	border-color: #0868d8;
	outline: 3px solid rgba(8, 104, 216, .14);
}

.ma-trial-signature {
	margin: 18px 0 0;
	padding: 14px;
	border: 1px solid #bac8da;
	border-radius: 12px;
	background: #f7faff;
}

.ma-trial-signature legend {
	padding: 0 5px;
	color: #0b326e;
	font-size: 13px;
	font-weight: 800;
}

.ma-trial-signature p {
	margin: 0 0 10px;
	color: #51627e;
	font-size: 12px;
}

.ma-trial-signature canvas {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 120px;
	border: 2px dashed #91a9c7;
	border-radius: 9px;
	background: #fff;
	cursor: crosshair;
	touch-action: none;
	user-select: none;
}

.ma-trial-signature canvas:focus {
	border-color: #0868d8;
	outline: 3px solid rgba(8, 104, 216, .14);
}

.ma-trial-signature__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 750;
}

.ma-trial-signature__actions span {
	color: #a12424;
}

.ma-trial-signature__actions span.is-complete {
	color: #126638;
}

.ma-trial-signature__actions button {
	padding: 8px 12px;
	border: 1px solid #91a9c7;
	border-radius: 8px;
	background: #fff;
	color: #0b326e;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.ma-trial-check {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 10px;
	align-items: start;
	margin-top: 17px;
	color: #334967;
	font-size: 13px;
	line-height: 1.45;
}

.ma-trial-privacy-summary {
	margin-top: 18px;
	padding: 12px 14px;
	border: 1px solid #d5e2f4;
	border-radius: 10px;
	background: #f7faff;
	color: #405571;
	font-size: 12px;
	line-height: 1.45;
}

.ma-trial-privacy-summary summary {
	cursor: pointer;
	color: #0b326e;
	font-weight: 800;
}

.ma-trial-privacy-summary p {
	margin: 10px 0 0;
}

.ma-trial-check input {
	width: 19px;
	height: 19px;
	margin-top: 1px;
}

.ma-trial-check a {
	color: #075fca;
	font-weight: 700;
}

.ma-trial-form__note {
	margin: 17px 0 8px;
	padding: 11px 13px;
	border-left: 4px solid #1a73e8;
	background: #f2f7ff;
	color: #405571;
	font-size: 12px;
}

.ma-trial-submit {
	width: 100%;
	min-height: 54px;
	margin-top: 12px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #075bd0, #0793ef);
	box-shadow: 0 12px 28px rgba(0, 104, 216, .25);
	color: #fff;
	font-size: 14px;
	font-weight: 850;
	letter-spacing: .04em;
	cursor: pointer;
}

.ma-trial-submit:disabled {
	cursor: wait;
	opacity: .65;
}

.ma-trial-message {
	margin-top: 12px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
}

.ma-trial-message--success,
.ma-trial-message--error {
	padding: 12px 14px;
	border-radius: 10px;
}

.ma-trial-message--success {
	background: #e8f8ef;
	color: #126638;
}

.ma-trial-message--error {
	background: #fff0f0;
	color: #a12424;
}

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

@media (max-width: 620px) {
	.ma-trial-modal {
		align-items: end;
		padding: 0;
	}

	.ma-trial-modal__panel {
		width: 100%;
		max-height: 94vh;
		padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
		border-radius: 22px 22px 0 0;
	}

	.ma-trial-grid {
		grid-template-columns: 1fr;
	}

	.ma-trial-field--wide {
		grid-column: auto;
	}

	.ma-trial-model {
		align-items: flex-start;
		flex-direction: column;
	}

	.ma-trial-model strong {
		text-align: left;
	}

	.ma-trial-signature canvas {
		min-height: 105px;
	}
}
