.yatb-res-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	visibility: hidden;
	pointer-events: none;
}

.yatb-res-modal.is-open {
	visibility: visible;
	pointer-events: auto;
}

.yatb-res-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.yatb-res-modal.is-open .yatb-res-modal__overlay {
	opacity: 1;
}

.yatb-res-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 620px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
	transform: translateY(24px) scale(.97);
	opacity: 0;
	transition: transform .28s ease, opacity .28s ease;
	overflow: hidden;
}

.yatb-res-modal.is-open .yatb-res-modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.yatb-res-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: #f0f0f0;
	color: #555;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, color .2s;
}

.yatb-res-modal__close:hover {
	background: #e0e0e0;
	color: #111;
}

.yatb-res-modal__stepper {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 18px 24px 14px;
	border-bottom: 1px solid #f0f0f0;
	background: #fafafa;
}

.yatb-res-modal__step {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.yatb-res-modal__step-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: background .25s, color .25s;
	flex-shrink: 0;
}

.yatb-res-modal__step.is-active .yatb-res-modal__step-dot {
	background: #00BCD4;
	color: #fff;
}

.yatb-res-modal__step.is-done .yatb-res-modal__step-dot {
	background: #4CAF50;
	color: #fff;
}

.yatb-res-modal__step-label {
	font-size: 13px;
	font-weight: 600;
	color: #aaa;
	transition: color .25s;
}

.yatb-res-modal__step.is-active .yatb-res-modal__step-label {
	color: #00BCD4;
}

.yatb-res-modal__step.is-done .yatb-res-modal__step-label {
	color: #4CAF50;
}

.yatb-res-modal__step-line {
	flex: 1;
	height: 2px;
	background: #e0e0e0;
	margin: 0 10px;
	transition: background .25s;
}

.yatb-res-modal__step-line.is-done {
	background: #4CAF50;
}

.yatb-res-modal__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.yatb-res-modal__panel {
	padding: 28px 28px 24px;
}

.yatb-res-modal__info-header {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.yatb-res-modal__info-icon {
	font-size: 28px;
	color: #00BCD4;
	flex-shrink: 0;
	margin-top: 2px;
}

.yatb-res-modal__title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
	padding: 0;
	border: none;
}

.yatb-res-modal__tour-name {
	font-size: 13px;
	color: #777;
	margin: 0;
}

.yatb-res-modal__title--form {
	font-size: 17px;
	margin-bottom: 20px;
}

.yatb-res-modal__info-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.yatb-res-modal__info-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: #444;
	line-height: 1.5;
}

.yatb-res-modal__info-list li i {
	color: #00BCD4;
	font-size: 15px;
	flex-shrink: 0;
	margin-top: 1px;
}

.yatb-res-modal__legal-box {
	background: #f8fafc;
	border: 1px solid #e8f4f8;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.yatb-res-modal__legal-title {
	font-size: 13px;
	font-weight: 700;
	color: #555;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.yatb-res-modal__legal-title i {
	color: #00BCD4;
}

.yatb-res-modal__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.yatb-res-modal__legal-links a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #00BCD4;
	text-decoration: none;
	background: #e8f8fb;
	border: 1px solid #b8e8f0;
	border-radius: 20px;
	padding: 5px 12px;
	transition: background .2s, color .2s;
}

.yatb-res-modal__legal-links a:hover {
	background: #00BCD4;
	color: #fff;
	border-color: #00BCD4;
}

.yatb-res-modal__accept-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	margin-bottom: 20px;
	padding: 12px 14px;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	transition: border-color .2s;
}

.yatb-res-modal__accept-label:hover {
	border-color: #00BCD4;
}

.yatb-res-modal__accept-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #00BCD4;
	flex-shrink: 0;
	cursor: pointer;
}

.yatb-res-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.yatb-res-modal__footer--form {
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	margin-top: 4px;
}

.yatb-res-modal__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background .2s, opacity .2s, transform .15s;
}

.yatb-res-modal__btn:active {
	transform: scale(.98);
}

.yatb-res-modal__btn--next {
	background: #00BCD4;
	color: #fff;
}

.yatb-res-modal__btn--next:hover:not(:disabled) {
	background: #00a5bb;
}

.yatb-res-modal__btn--next:disabled {
	background: #ccc;
	color: #888;
	cursor: not-allowed;
	opacity: .7;
}

.yatb-res-modal__btn--back {
	background: #f0f0f0;
	color: #555;
}

.yatb-res-modal__btn--back:hover {
	background: #e0e0e0;
}

.yatb-res-modal__btn--submit {
	background: #00BCD4;
	color: #fff;
}

.yatb-res-modal__btn--submit:hover:not(:disabled) {
	background: #00a5bb;
}

.yatb-res-modal__btn--submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.yatb-res-modal__btn--close-success {
	background: #00BCD4;
	color: #fff;
	margin-top: 4px;
}

.yatb-res-modal__btn--close-success:hover {
	background: #00a5bb;
}

.yatb-res-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.yatb-res-form__fieldset {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 16px 16px 12px;
	margin: 0;
}

.yatb-res-form__legend {
	font-size: 13px;
	font-weight: 700;
	color: #00BCD4;
	padding: 0 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.yatb-res-form__row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.yatb-res-form__row--2col {
	flex-direction: row;
	flex-wrap: wrap;
}

.yatb-res-form__row--2col .yatb-res-form__field {
	flex: 1 1 160px;
}

.yatb-res-form__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.yatb-res-form__field label {
	font-size: 12px;
	font-weight: 600;
	color: #555;
}

.yatb-res-form__field label span[aria-hidden] {
	color: #e53935;
}

.yatb-res-form__field input,
.yatb-res-form__field select,
.yatb-res-form__field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #ddd;
	border-radius: 7px;
	font-size: 14px;
	color: #222;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	outline: none;
	font-family: inherit;
	box-sizing: border-box;
}

.yatb-res-form__field input:focus,
.yatb-res-form__field select:focus,
.yatb-res-form__field textarea:focus {
	border-color: #00BCD4;
	box-shadow: 0 0 0 3px rgba(0, 188, 212, .12);
}

.yatb-res-form__field input.has-error,
.yatb-res-form__field select.has-error {
	border-color: #e53935;
}

.yatb-res-form__field textarea {
	resize: vertical;
	min-height: 80px;
}

.yatb-res-form__extras-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-top: 12px;
}

.yatb-res-form__extra-item {
	display: flex;
	cursor: pointer;
}

.yatb-res-form__extra-item input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.yatb-res-form__extra-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #e0e0e0;
	border-radius: 7px;
	font-size: 13px;
	color: #444;
	background: #fafafa;
	transition: border-color .2s, background .2s, color .2s;
}

.yatb-res-form__extra-inner i {
	color: #00BCD4;
	font-size: 14px;
	flex-shrink: 0;
}

.yatb-res-form__extra-item input:checked + .yatb-res-form__extra-inner {
	border-color: #00BCD4;
	background: #e8f8fb;
	color: #007a8c;
	font-weight: 600;
}

.yatb-res-form__extra-item:hover .yatb-res-form__extra-inner {
	border-color: #00BCD4;
}

.yatb-res-form__recaptcha {
	display: flex;
	justify-content: flex-start;
	min-height: 78px;
	align-items: center;
	overflow: hidden;
}

.yatb-res-form__recaptcha-loading {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 10px 14px;
	border: 1px dashed rgba(0, 188, 212, 0.36);
	border-radius: 10px;
	background: #f0fbfd;
	color: #007a8c;
	font-size: 13px;
	font-weight: 700;
}

.yatb-res-form__message {
	padding: 12px 14px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 500;
	margin-top: 4px;
}

.yatb-res-form__message--error {
	background: #fdecea;
	color: #c62828;
	border: 1px solid #f5c6c6;
}

.yatb-res-form__message--success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

.yatb-res-modal__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 0 10px;
}

.yatb-res-modal__success-icon {
	font-size: 64px;
	color: #4CAF50;
	margin-bottom: 20px;
	animation: yatb-pop-in .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes yatb-pop-in {
	from { transform: scale(.5); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.yatb-res-modal__success-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 12px;
}

.yatb-res-modal__success-text {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	max-width: 440px;
	margin: 0 0 24px;
}

body.yatb-res-modal-open {
	overflow: hidden;
}

@media (max-width: 540px) {
	.yatb-res-modal__dialog {
		max-height: 96vh;
		border-radius: 10px 10px 0 0;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: 100%;
		transform: translateY(100%);
		opacity: 1;
	}

	.yatb-res-modal.is-open .yatb-res-modal__dialog {
		transform: translateY(0);
	}

	.yatb-res-modal {
		align-items: flex-end;
		padding: 0;
	}

	.yatb-res-modal__panel {
		padding: 20px 16px 18px;
	}

	.yatb-res-form__extras-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.yatb-res-modal__stepper {
		padding: 14px 16px 12px;
	}

	.yatb-res-modal__step-label {
		display: none;
	}
}
