/*
 * MacBook Appointments frontend style fix.
 * Purpose: appointment form/calendar design must not depend on the theme Tailwind build.
 * This keeps functionality unchanged and restores the CLS-style calendar layout.
 */

#appointment-form {
	background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 48%, #f4fbfd 100%);
	padding: 44px 16px 56px;
}

#appointment-form .max-w-5xl {
	max-width: 960px;
}

#appointment-form form[data-mbra-form] {
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
	overflow: hidden;
}

#appointment-form form[data-mbra-form] > div:first-child {
	background: linear-gradient(90deg, #eef8f9, #f7fbfc);
	color: #071326;
	border-bottom: 1px solid #e2edf2;
	padding: 24px 28px;
}

#appointment-form form[data-mbra-form] > div:first-child h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.2;
	color: #071326;
}

#appointment-form form[data-mbra-form] > div:first-child p {
	margin: 7px 0 0;
	color: #64748b;
}

#appointment-form form[data-mbra-form] > div:nth-child(2) {
	padding: 28px;
}

#appointment-form form[data-mbra-form] input,
#appointment-form form[data-mbra-form] select,
#appointment-form form[data-mbra-form] textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #d8e5eb;
	border-radius: 8px;
	background: #fff;
	padding: 11px 13px;
	color: #0f172a;
	font-size: 14px;
	line-height: 1.4;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#appointment-form form[data-mbra-form] input:focus,
#appointment-form form[data-mbra-form] select:focus,
#appointment-form form[data-mbra-form] textarea:focus {
	border-color: #008aa4;
	box-shadow: 0 0 0 4px rgba(0, 138, 164, .12);
}

#appointment-form form[data-mbra-form] label span:first-child {
	color: #25364d;
	font-weight: 800;
}

#appointment-form .mbra-dt-section {
	margin: 26px 0;
	padding: 22px;
	border: 1.5px solid #dbe6ef;
	border-radius: 14px;
	background: #f7fafc;
}

#appointment-form .mbra-dt-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

#appointment-form .mbra-dt-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #e7f7fa !important;
	color: #008aa4 !important;
	font-size: 16px;
}

#appointment-form .mbra-dt-section-title h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 900;
	color: #11223a;
}

#appointment-form .mbra-dt-section-title p {
	margin: 3px 0 0;
	color: #64748b;
	font-size: 13px;
}

#appointment-form .mbra-dt-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(240px, .82fr);
	gap: 0;
	align-items: stretch;
}

#appointment-form .mbra-cal-box,
#appointment-form .mbra-time-box {
	border: 1px solid #dbe6ef;
	background: #fff;
	padding: 16px;
	box-shadow: 0 2px 14px rgba(26, 53, 104, .06);
}

#appointment-form .mbra-cal-box {
	border-radius: 12px 0 0 12px;
	border-right: 0;
}

#appointment-form .mbra-time-box {
	border-radius: 0 12px 12px 0;
}

#appointment-form .mbra-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

#appointment-form .mbra-cal-title {
	flex: 1;
	text-align: center;
	font-size: 14px;
	font-weight: 900;
	color: #1a3568;
}

#appointment-form .mbra-cal-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #dbe6ef;
	border-radius: 8px;
	background: #fff;
	color: #1a3568;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

#appointment-form .mbra-cal-nav:hover {
	border-color: #008aa4;
	background: #008aa4;
	color: #fff;
}

#appointment-form .mbra-cal-wdays,
#appointment-form .mbra-cal-days {
	display: grid !important;
	grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
	text-align: center;
}

#appointment-form .mbra-cal-wdays {
	margin: 12px 0 4px;
	color: #8da0b6;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

#appointment-form .mbra-cal-wdays span {
	padding: 3px 0;
}

#appointment-form .mbra-cal-wdays span:nth-child(6) {
	color: #f59e0b;
}

#appointment-form .mbra-cal-days {
	gap: 2px;
}

#appointment-form .mbra-cal-empty,
#appointment-form .mbra-cal-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	min-height: 31px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

#appointment-form .mbra-cal-day.is-available {
	color: #1a3568;
	cursor: pointer;
	transition: background .12s ease, color .12s ease, transform .1s ease;
}

#appointment-form .mbra-cal-day.is-available:hover {
	background: #e6f6fa;
	color: #008aa4;
	transform: scale(1.05);
}

#appointment-form .mbra-cal-day.is-disabled {
	color: #cbd5e1;
	cursor: not-allowed;
}

#appointment-form .mbra-cal-day.is-today {
	box-shadow: inset 0 0 0 1px #008aa4;
	color: #008aa4;
}

#appointment-form .mbra-cal-day.is-selected {
	background: #008aa4 !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(0, 138, 164, .22);
}

#appointment-form .mbra-cal-date-label {
	margin: 12px 0 0;
	min-height: 18px;
	text-align: center;
	color: #008aa4;
	font-size: 13px;
	font-weight: 800;
}

#appointment-form .mbra-time-title {
	margin: 0 0 12px;
	padding-bottom: 11px;
	border-bottom: 1px solid #dbe6ef;
	color: #1a3568;
	font-size: 14px;
	font-weight: 900;
}

#appointment-form .mbra-slots {
	display: flex !important;
	flex-direction: column;
	gap: 6px;
	max-height: 300px;
	overflow-y: auto;
	padding-right: 4px;
}

#appointment-form .mbra-slots::-webkit-scrollbar {
	width: 5px;
}

#appointment-form .mbra-slots::-webkit-scrollbar-thumb {
	background: #c3d4dd;
	border-radius: 99px;
}

#appointment-form .mbra-slot-empty {
	margin: 0;
	padding: 14px 0;
	color: #8da0b6;
	font-size: 13px;
	font-style: italic;
}

#appointment-form .mbra-slot-btn {
	width: 100%;
	padding: 10px 13px;
	border: 1.5px solid #dbe6ef;
	border-radius: 8px;
	background: #fff;
	color: #1a3568;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	text-align: left;
	transition: background .13s ease, border-color .13s ease, color .13s ease, transform .1s ease;
}

#appointment-form .mbra-slot-btn.is-free:hover {
	border-color: #008aa4;
	background: #e6f6fa;
	color: #008aa4;
	transform: translateX(3px);
}

#appointment-form .mbra-slot-btn.is-selected {
	border-color: #008aa4;
	background: #008aa4;
	color: #fff;
}

#appointment-form .mbra-slot-btn.is-booked {
	border-color: #e2e8f0;
	background: #f1f5f9;
	color: #a8b4c4;
	text-decoration: line-through;
	cursor: not-allowed;
}

#appointment-form .mbra-confirm {
	display: block;
	margin-top: 12px;
	border-radius: 8px;
	background: #eaf7ef;
	padding: 9px 12px;
	color: #16713b;
	font-size: 13px;
	font-weight: 800;
}

#appointment-form .mbra-confirm.hidden {
	display: none !important;
}

#appointment-form button[type="submit"] {
	border: 0;
	border-radius: 10px;
	background: #008aa4;
	color: #fff;
	padding: 12px 22px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(0, 138, 164, .18);
	transition: background .15s ease, transform .15s ease;
}

#appointment-form button[type="submit"]:hover {
	background: #006f84;
	transform: translateY(-1px);
}

@media (max-width: 780px) {
	#appointment-form {
		padding: 30px 12px 42px;
	}

	#appointment-form form[data-mbra-form] > div:first-child,
	#appointment-form form[data-mbra-form] > div:nth-child(2) {
		padding: 20px;
	}

	#appointment-form .mbra-dt-wrap {
		grid-template-columns: 1fr;
	}

	#appointment-form .mbra-cal-box {
		border-right: 1px solid #dbe6ef;
		border-radius: 12px 12px 0 0;
	}

	#appointment-form .mbra-time-box {
		border-top: 0;
		border-radius: 0 0 12px 12px;
	}

	#appointment-form .mbra-cal-empty,
	#appointment-form .mbra-cal-day {
		min-height: 34px;
	}
}

/* v2.2.3: robustly hide anti-spam honeypot field.
 * Tailwind classes like -left-[9999px] may be purged/missing, so this plugin class is required.
 */
#appointment-form .mbra-honeypot-field,
#appointment-form .mbra-honeypot-field label,
#appointment-form .mbra-honeypot-field input {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: -1 !important;
}

#appointment-form .mbra-privacy-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border: 1px solid #dbe6ef;
	border-radius: 12px;
	background: #fff;
	padding: 14px 16px;
}

#appointment-form .mbra-privacy-box input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin-top: 2px;
	accent-color: #008aa4;
}

#appointment-form .mbra-privacy-box span,
#appointment-form .mbra-privacy-box label {
	color: #334155;
	font-size: 13px;
	line-height: 1.45;
}

