.modal-tickets-return form {
	background-color: #020303;
	min-height: 468px;
	padding-top: 50px;
	padding-left: 54px;
	padding-right: 54px;
}

/*.modal-tickets-return .errortext {
	display: none;
}*/

.b-message-form {
	background: var(--b-ticket-return-form-bg, #244640);
	border-radius: 16px;
	padding: 24px 20px 16px 20px;
}

.b-message-form form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.b-message-form__result {
	/*padding: 0 54px;
	background-color: #020303;
	overflow: hidden;*/
}

.b-message-form__result .b-message {
	padding-left: 0;
	padding-right: 0;
}

.b-message-form_item {
	position: relative;
}

.b-message-form_field {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}

.modal-tickets-return .required,
.b-message-form_item .required {
	color: #DCBB25;
}

.modal-tickets-return .b-message-form__inner {
	display: flex;
}

.modal-tickets-return .inputtext,
.b-message-form_field .inputtext {
	box-sizing: border-box;
	display: block;
	padding: 21px 16px;
	font-size: 16px;
	line-height: 1.42857143;
	color: #fff;
	background-color: var(--b-ticket-return-input-bg, #172E2A);
	background-image: none;
	border-radius: 0;
	border: 1px solid transparent;
	width: 100%;
	border-radius: 12px;
	height: 60px;
}

.b-message-form_field .inputtext:focus,
.b-message-form_field .textarea:focus {
	outline: none;
	border: 1px solid var(--b-ticket-return-focus-border,#2C4A44);
}

.b-message-form_field .inputtext:focus,
.b-message-form_field .textarea:focus,
.b-message-form_item--filled .b-message-form_field .inputtext,
.b-message-form_item--filled .b-message-form_field .textarea {
	padding-top: 26px;
	padding-right: 16px;
	padding-bottom: 8px;
	padding-left: 16px;
}

.b-message-form_field .textarea {
	box-sizing: border-box;
	display: block;
	padding: 21px 16px;
	font-size: 16px;
	line-height: 1.42857143;
	color: #fff;
	background-color: var(--b-ticket-return-input-bg, #172E2A);
	background-image: none;
	border-radius: 12px;
	border: none;
	width: 100%;
}

.modal-tickets-return .b-message-form_item label,
.b-message-form .b-message-form_item label {
	color: #BDC7C6;
	font-size: 16px;
	line-height: 1.25;
	font-weight: 400;
	letter-spacing: 0%;
	position: absolute;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	margin-bottom: 0px;
	z-index: 2;
	transition: top .2s ease, font-size .2s ease, transform .2s ease;
}

.b-message-form_item--filled label,
.b-message-form_item:focus-within label,
.modal-tickets-return .b-message-form_item--filled label,
.modal-tickets-return .b-message-form_item:focus-within label,
.b-message-form_item:has(.inputtext:not(:placeholder-shown)) label,
.b-message-form_item:has(.textarea:not(:placeholder-shown)) label {
	top: 12px;
	font-size: 14px;
	transform: translateY(0);
	z-index: 1;
	color: #8B8B8B;
}

.b-message-form_item:focus-within label,
.modal-tickets-return .b-message-form_item:focus-within label,
.b-message-form_item:focus-within:has(.inputtext:not(:placeholder-shown)) label,
.b-message-form_item:focus-within:has(.textarea:not(:placeholder-shown)) label {
	color: #DCBB25;
}

.b-message-form__text {
	color: #8B8B8B;
	padding: 0;
	margin: 0;
	max-width: 323px;
	margin-bottom: 30px;
	font-size: 14px;
}

.b-message-form-footer {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.b-message-form-agreement-checkbox {
	display: flex;
	gap: 9px;
	cursor: pointer;
	padding: 10px 0;
	margin: 0;
}

.b-message-form-agreement-checkbox a {
	text-decoration: none;
}

.b-message-form-agreement-checkbox span {
	font-size: 16px;
	font-weight: 400;
	line-height: 125%;
}

.b-message-form-agreement-checkbox input {
	display: none;
}

.b-message-form-agreement-checkbox::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background: var(--b-ticket-return-input-bg, #172E2A);
	border-radius: 4px;
	flex-shrink: 0;
	transition: all .3s;
	background-position: center;
	background-size: 0;
	transition: background .3s, background-size .3s ease;
}

.b-message-form-agreement-checkbox:has(input[type="checkbox"]:checked)::before {
	background: #DCBB25;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.666016 4.00033L3.99935 7.33366L10.666 0.666992' stroke='%232E2E2E' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
	background-repeat: no-repeat;
	background-position: center;
}

.b-message-form_submit {
	position: relative;
}

.g-button.g-button--tickets-return {
	border-radius: 8px;
	color: #000000;
	padding: 10px 20px;
	width: 100%;
	text-transform: initial;
	font-weight: 600;
	height: 42px;
}

.g-button.g-button--tickets-return[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

.b-message-form_item.b-message-form_error .b-message-form_field::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: #E0483D;
	pointer-events: none;
	z-index: 1;
}

.b-message-form_error .inputtext {
	height: 54px;
	padding-right: 44px;
}

.b-message-form_item.b-message-form_error label {
	top: 8px !important;
	font-size: 14px;
	transform: translateY(0);
	z-index: 1;
	color: #8B8B8B;
}

.b-message-form_error .textarea {
	padding-right: 44px;
}

.b-message-form_error .b-message-form_field .inputtext:focus,
.b-message-form_error .b-message-form_field .textarea:focus {
	padding-right: 44px;
}

.b-message-form_clear {
	display: none;
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	z-index: 2;
}

.b-message-form_clear::before,
.b-message-form_clear::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: #E0483D;
}

.b-message-form_clear::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.b-message-form_clear::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.b-message-form_error .b-message-form_clear {
	display: block;
}

.b-message-form_item-error {
	color: #FF8989;
	font-size: 12px;
	line-height: 1.3;
	margin-top: 6px;
}

.b-message-form_submit-frame {
    position: absolute;
    top: 1px;
    left: -1px;
    z-index: 9;
    cursor: pointer;
}

.b-message-form__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (max-width: 901px) {
	.b-message-form__inner {
		flex-wrap: wrap;
	}
}

.b-message-form-rules {
	margin-top: 40px;
}

.b-message-form-rules [href] {
	display: block;
}

@media (max-width: 768px) {
	.b-message-form {
		padding: 20px 16px 12px 16px; 
	}
}

.b-ticket-return-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.b-ticket-return-modal--open {
	display: flex;
}

.b-ticket-return-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
}

.b-ticket-return-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.b-ticket-return-modal__text-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.b-ticket-return-modal__body {
	position: relative;
	background: var(--b-ticket-return-form-bg, #244640);
	border-radius: 16px;
	padding: 24px 20px;
	max-width: 572px;
	width: 100%;
	display: flex;
 	flex-direction: column;
  	gap: 16px;
	animation: b-ticket-return-modal-in .3s ease;
}

.b-ticket-return-modal__body a {
	text-decoration: none;
	font-weight: 600;
}

@keyframes b-ticket-return-modal-in {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.b-ticket-return-modal--closing .b-ticket-return-modal__body {
	animation: b-ticket-return-modal-out .3s ease forwards;
}

@keyframes b-ticket-return-modal-out {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.95);
	}
}

.b-ticket-return-modal__title {
	color: #fff;
	font-size: 23px;
	font-weight: 600;
	line-height: 1.3;
}

.b-ticket-return-modal__text-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.b-ticket-return-modal__text {
	color: white;
	font-size: 16px;
	line-height: 1.25;
}

.b-ticket-return-modal__data {
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.b-ticket-return-modal__data-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.b-ticket-return-modal__data-label {
	color: #BDC7C6;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 400;
}

.b-ticket-return-modal__data-value {
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
	word-break: break-all;
}

.b-ticket-return-modal__again {
	width: 100%;
	background: none !important;
	border: 1px solid #DCBB25 !important;
	color: white !important;
	transition: background .3s ease, color .3s ease;
	height: 46px !important;
    	margin-top: 8px !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 9px !important;
}

.b-ticket-return-modal__again:before {
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.42941 0.875L2.57227 3.73214L5.42941 6.58929' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 9.73242C2 10.9191 2.3519 12.0792 3.01118 13.0658C3.67047 14.0525 4.60754 14.8216 5.7039 15.2757C6.80025 15.7298 8.00665 15.8487 9.17054 15.6171C10.3344 15.3857 11.4035 14.8141 12.2426 13.9751C13.0817 13.136 13.6533 12.0668 13.8847 10.903C14.1162 9.73907 13.9974 8.53267 13.5433 7.43632C13.0891 6.33996 12.3201 5.40289 11.3334 4.7436C10.3467 4.08432 9.18669 3.73242 8 3.73242H2.57143' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
	content: "";
	display: block;
	width: 16px;
	height: 17px;
	transition: background 0.3s; 
}

.b-ticket-return-modal__again:hover,
.b-ticket-return-modal__again:focus {
	background: #DCBB25 !important;
	color: #000 !important;
}

.b-ticket-return-modal__again:hover:before {
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.42941 0.875L2.57227 3.73214L5.42941 6.58929' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 9.73242C2 10.9191 2.3519 12.0792 3.01118 13.0658C3.67047 14.0525 4.60754 14.8216 5.7039 15.2757C6.80025 15.7298 8.00665 15.8487 9.17054 15.6171C10.3344 15.3857 11.4035 14.8141 12.2426 13.9751C13.0817 13.136 13.6533 12.0668 13.8847 10.903C14.1162 9.73907 13.9974 8.53267 13.5433 7.43632C13.0891 6.33996 12.3201 5.40289 11.3334 4.7436C10.3467 4.08432 9.18669 3.73242 8 3.73242H2.57143' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.b-ticket-return-modal__done {
	color: black !important;
	height: 46px !important;
	margin-top: 8px !important;
}

.b-ticket-return-modal__close {
	background: var(--b-ticket-return-input-bg, #172E2A);
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .3s ease, transform .3s ease;
}

.b-ticket-return-modal__close:hover,
.b-ticket-return-modal__close:focus {
	background: var(--b-ticket-return-form-bg, #244640);
	outline: none;
}

.b-ticket-return-modal__close:hover {
	transform: rotate(90deg);
}

.b-ticket-return-modal__close:before {
	content: "";
	display: block;	
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 19L12 12L19 19M19 5L11.9987 12L5 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

@media (max-width: 768px) {
	.b-ticket-return-modal {
		align-items: flex-end;
	}

	.b-ticket-return-modal__body {
		max-width: none;
		border-radius: 10px 10px 0 0;
		padding: 0px 16px 24px 16px;
		max-height: 90vh;
		overflow-y: auto;
		animation: b-ticket-return-modal-in-mobile .3s ease;
	}

	.b-ticket-return-modal__head {
		padding: 21px 0 1px 0;
	}

	.b-ticket-return-modal__done,
	.b-ticket-return-modal__again {
		height: 42px !important;
		margin-top: 0px !important;
	}

	.b-ticket-return-modal__data-item {
		flex-direction: column;
		align-items: flex-start;
	}

	@keyframes b-ticket-return-modal-in-mobile {
		from {
			opacity: 0;
			transform: translateY(100%);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.b-ticket-return-modal--closing .b-ticket-return-modal__body {
		animation: b-ticket-return-modal-out-mobile .3s ease forwards;
	}

	@keyframes b-ticket-return-modal-out-mobile {
		from {
			opacity: 1;
			transform: translateY(0);
		}
		to {
			opacity: 0;
			transform: translateY(100%);
		}
	}
}

