.mtqt-ticket-form {
	margin: 24px 0;
	padding: 24px;
	border: 1px solid #e6edf5;
	border-radius: 8px;
	background: #fff;
	color: #172026;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.mtqt-ticket-form--compact {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.mtqt-ticket-form--compact > .mtqt-button {
	width: 100%;
	border-color: currentColor;
	background: #fff;
	color: #102d4b;
	font-weight: 800;
}

.mtqt-ticket-form__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.mtqt-ticket-form__title {
	margin: 0 0 8px;
	color: #172026;
	font-size: 24px;
	line-height: 1.2;
}

.mtqt-ticket-form__event {
	margin: 0 0 18px;
	font-weight: 600;
}

.mtqt-ticket-form__format {
	margin: 0 0 8px;
	color: #0966b7;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.mtqt-ticket-form__price {
	margin: -8px 0 0;
	color: #0966b7;
	font-weight: 700;
}

.mtqt-ticket-form__message {
	min-height: 1.25em;
	margin-bottom: 12px;
	font-size: 14px;
}

.mtqt-ticket-form__message.is-error,
.mtqt-form-row.is-invalid,
.mtqt-checkbox.is-invalid {
	color: #d92d20;
}

.mtqt-ticket-form__message.is-success {
	color: #087443;
}

.mtqt-ticket-form__form {
	display: grid;
	gap: 14px;
}

.mtqt-hp-field {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.mtqt-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mtqt-form-row label {
	font-weight: 600;
}

.mtqt-form-row input,
.mtqt-form-row textarea {
	width: 100%;
	border: 1px solid #d9e4f0;
	border-radius: 12px;
	padding: 12px 14px;
	background: #fff;
	color: #111;
}

.mtqt-form-row .iti {
	width: 100%;
}

.mtqt-form-row .iti__selected-country {
	border-radius: 12px 0 0 12px;
}

.iti--detached-country-selector {
	z-index: 2147483002;
	font-family: inherit;
}

.iti--detached-country-selector .iti__dropdown-content {
	border-color: #d9e4f0;
	border-radius: 12px;
	box-shadow: 0 18px 48px rgba(15, 35, 55, .2);
}

.iti--detached-country-selector .iti__search-input {
	border: 0;
	border-bottom: 1px solid #e6edf5;
	border-radius: 12px 12px 0 0;
	font: inherit;
}

.mtqt-form-row textarea {
	min-height: 110px;
	resize: vertical;
}

.mtqt-form-row.is-invalid input,
.mtqt-form-row.is-invalid textarea {
	border-color: #d92d20;
	background: #fff8f7;
}

.mtqt-field-error {
	min-height: 1.2em;
	font-size: 13px;
	line-height: 1.25;
}

.mtqt-ticket-form__summary {
	display: grid;
	gap: 8px;
	padding: 16px;
	border-radius: 14px;
	background: #f5f8fb;
}

.mtqt-ticket-form__summary div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.mtqt-ticket-form__summary p {
	margin: 4px 0 0;
	font-size: 14px;
}

.mtqt-ticket-form__summary p.is-active,
.mtqt-ticket-form__discount-note {
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid #8ad3a1;
	border-radius: 8px;
	background: #ecfdf3;
	color: #087443;
	font-weight: 700;
}

.mtqt-ticket-form__summary p.is-error {
	border-color: #f4a6a0;
	background: #fff3f1;
	color: #b42318;
}

.mtqt-ticket-form__discount-note[hidden],
.mtqt-ticket-form__summary p[hidden] {
	display: none !important;
}

.mtqt-ticket-form__total {
	padding-top: 8px;
	border-top: 1px solid #d9e4f0;
	font-size: 18px;
}

.mtqt-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

.mtqt-checkbox--student {
	grid-column: 1 / -1;
	padding: 12px;
	border: 1px solid #b7dcff;
	border-radius: 8px;
	background: #f2f8ff;
}

.mtqt-checkbox--recording {
	grid-column: 1 / -1;
	padding: 14px;
	border: 1px solid #c8b9ff;
	border-radius: 12px;
	background: #f7f4ff;
}

.mtqt-checkbox--recording strong,
.mtqt-checkbox--recording small {
	display: block;
}

.mtqt-checkbox--recording small {
	margin-top: 4px;
	color: #5f5974;
	line-height: 1.4;
}

[data-mtqt-recording-addon-row][hidden] {
	display: none !important;
}

.mtqt-checkbox--student strong,
.mtqt-checkbox--student small {
	display: block;
}

.mtqt-checkbox--student small {
	margin-top: 3px;
	color: #52616d;
	line-height: 1.35;
}

.mtqt-student-confirm {
	grid-column: 1 / -1;
	padding: 14px;
	border: 1px solid #ffd591;
	border-radius: 8px;
	background: #fff7e6;
	color: #5f370e;
}

.mtqt-student-confirm p {
	margin: 8px 0 0;
	line-height: 1.45;
}

.mtqt-student-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.mtqt-button--ghost {
	border-color: #b7c4d1;
	background: #fff;
	color: #172026;
}

.mtqt-checkbox input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.mtqt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid #0966b7;
	border-radius: 999px;
	background: #0966b7;
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.mtqt-button:disabled {
	cursor: wait;
	opacity: .9;
}

.mtqt-button.is-loading {
	background: #074e8c;
	border-color: #074e8c;
}

.mtqt-button__loader {
	position: relative;
	display: inline-grid;
	grid-template-columns: repeat(3, 7px);
	gap: 4px;
	align-items: end;
	width: 29px;
	height: 18px;
}

.mtqt-button__loader span {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: mtqt-loader-wave .78s ease-in-out infinite;
}

.mtqt-button__loader span:nth-child(2) {
	animation-delay: .12s;
}

.mtqt-button__loader span:nth-child(3) {
	animation-delay: .24s;
}

.mtqt-ticket-form__form.is-submitting {
	pointer-events: none;
}

.mtqt-ticket-form__form.is-submitting .mtqt-button.is-loading {
	pointer-events: auto;
}

@keyframes mtqt-loader-wave {
	0%,
	80%,
	100% {
		transform: translateY(0) scale(.78);
		opacity: .58;
	}

	40% {
		transform: translateY(-7px) scale(1);
		opacity: 1;
	}
}

.mtqt-modal-open {
	overflow: hidden;
}

.mtqt-modal[hidden] {
	display: none;
}

.mtqt-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mtqt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 24, 32, .62);
}

.mtqt-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
	max-height: min(92vh, 860px);
	overflow: auto;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.mtqt-modal__dialog--small {
	width: min(100%, 520px);
}

.mtqt-modal__content {
	padding: 28px;
}

.mtqt-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #eef4fa;
	color: #172026;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

@media (min-width: 720px) {
	.mtqt-ticket-form__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mtqt-form-row--wide,
	.mtqt-ticket-form__summary,
	.mtqt-checkbox,
	.mtqt-button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 719px) {
	.mtqt-ticket-form {
		padding: 18px;
	}

	.mtqt-ticket-form__cta {
		align-items: stretch;
		flex-direction: column;
	}

	.mtqt-ticket-form__title {
		font-size: 21px;
	}

	.mtqt-button {
		width: 100%;
	}

	.mtqt-modal {
		align-items: flex-end;
		padding: 12px;
	}

	.mtqt-modal__dialog {
		width: 100%;
		max-height: 92vh;
	}

	.mtqt-modal__content {
		padding: 24px 18px 18px;
	}
}
