/* MT Booking Manager – frontend. Everything is scoped under .mt_booking_form (toast uses .mt_bf_toast*). */

.mt_booking_form {
	--mt-primary: #0f62fe;
	--mt-primary-dark: #0b4fd1;
	--mt-text: #1f2937;
	--mt-muted: #6b7280;
	--mt-border: #d1d5db;
	--mt-danger: #dc2626;
	--mt-bg: #f3f6fb;
	box-sizing: border-box;
	width: 100%;
	padding: 32px 16px;
	background: var(--mt-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--mt-text);
}
.mt_booking_form *,
.mt_booking_form *::before,
.mt_booking_form *::after { box-sizing: border-box; }

.mt_booking_form .mt_bf_card {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(15, 98, 254, .10);
}
.mt_booking_form .mt_bf_head { margin-bottom: 24px; text-align: center; }
.mt_booking_form .mt_bf_title { margin: 0 0 6px; font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--mt-text); }
.mt_booking_form .mt_bf_sub { margin: 0; font-size: 15px; color: var(--mt-muted); }

.mt_booking_form .mt_bf_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.mt_booking_form .mt_bf_full { grid-column: 1 / -1; }
.mt_booking_form .mt_bf_field { display: flex; flex-direction: column; min-width: 0; }

.mt_booking_form .mt_bf_label { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--mt-text); }
.mt_booking_form .mt_bf_req { color: var(--mt-danger); }
.mt_booking_form .mt_bf_opt { font-weight: 400; color: var(--mt-muted); }

.mt_booking_form .mt_bf_input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	font-family: inherit;
	color: var(--mt-text);
	background: #fff;
	border: 1px solid var(--mt-border);
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.mt_booking_form .mt_bf_input:focus { border-color: var(--mt-primary); box-shadow: 0 0 0 3px rgba(15, 98, 254, .15); }
.mt_booking_form .mt_bf_input.is-invalid { border-color: var(--mt-danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.mt_booking_form .mt_bf_textarea { resize: vertical; min-height: 90px; }
.mt_booking_form .mt_bf_select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.mt_booking_form .mt_bf_error { min-height: 0; margin-top: 4px; font-size: 12.5px; color: var(--mt-danger); }
.mt_booking_form .mt_bf_error:empty { display: none; }

.mt_booking_form .mt_bf_hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mt_booking_form .mt_bf_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 24px 0 0;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--mt-primary);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.mt_booking_form .mt_bf_btn:hover { background: var(--mt-primary-dark); }
.mt_booking_form .mt_bf_btn:active { transform: translateY(1px); }
.mt_booking_form .mt_bf_btn:disabled { opacity: .75; cursor: not-allowed; }
.mt_booking_form .mt_bf_spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mt_bf_spin .7s linear infinite;
}
.mt_booking_form .mt_bf_btn.is-loading .mt_bf_spinner { display: inline-block; }
@keyframes mt_bf_spin { to { transform: rotate(360deg); } }

/* Floating toast (appended to body) */
.mt_bf_toast_wrap {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: calc(100vw - 32px);
	width: 360px;
	pointer-events: none;
}
.mt_bf_toast {
	padding: 14px 18px;
	font: 600 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
	opacity: 0;
	transform: translateX(30px);
	transition: opacity .3s, transform .3s;
	pointer-events: auto;
}
.mt_bf_toast.is-show { opacity: 1; transform: translateX(0); }
.mt_bf_toast--success { background: #16a34a; }
.mt_bf_toast--error { background: #dc2626; }

/* Responsive */
@media (max-width: 640px) {
	.mt_booking_form { padding: 16px 10px; }
	.mt_booking_form .mt_bf_card { padding: 20px 16px; border-radius: 12px; }
	.mt_booking_form .mt_bf_title { font-size: 22px; }
	.mt_booking_form .mt_bf_grid { grid-template-columns: 1fr; gap: 14px; }
	.mt_booking_form .mt_bf_input { font-size: 16px; } /* prevent iOS zoom */
	.mt_bf_toast_wrap { top: 12px; right: 12px; left: 12px; width: auto; max-width: none; }
}
