/* =============================================================
   Appointa Booking Popup — appointa_pop_ prefixed classes
   Depends on appointa-booking.css for shared component styles.
   ============================================================= */

/* ---- Trigger button ---- */
.appointa_pop_wrap {
	display: flex;
}
.appointa_pop_align--center { justify-content: center; }
.appointa_pop_align--right  { justify-content: flex-end; }
.appointa_pop_align--left   { justify-content: flex-start; }

.appointa_pop_trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #3b82f6;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.appointa_pop_trigger:hover {
	background: #2563eb;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
	transform: translateY(-1px);
}

.appointa_pop_trigger:active {
	transform: translateY(0);
}

.appointa_pop_trigger__icon {
	flex-shrink: 0;
}

/* ---- Overlay ---- */
.appointa_pop_overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
	backdrop-filter: blur(2px);
}

.appointa_pop_overlay.appointa_pop_overlay--open {
	opacity: 1;
	visibility: visible;
}

/* ---- Modal card ---- */
.appointa_pop_modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 700px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
	transform: scale(0.95) translateY(12px);
	transition: transform 0.22s ease;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	color: #1e293b;
}

.appointa_pop_overlay--open .appointa_pop_modal {
	transform: scale(1) translateY(0);
}

/* ---- Modal header ---- */
.appointa_pop_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #f1f5f9;
	flex-shrink: 0;
}

.appointa_pop_header__left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.appointa_pop_header__icon {
	color: #3b82f6;
	flex-shrink: 0;
}

.appointa_pop_header__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.appointa_pop_close {
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
	padding: 0;
	flex-shrink: 0;
}

.appointa_pop_close:hover {
	background: #f1f5f9;
	color: #475569;
}

/* ---- Progress bar ---- */
.appointa_pop_progress_wrap {
	height: 4px;
	background: #e2e8f0;
	flex-shrink: 0;
}

.appointa_pop_progress_bar {
	height: 100%;
	background: #3b82f6;
	transition: width 0.4s ease;
	border-radius: 0 2px 2px 0;
}

/* ---- Step label ---- */
.appointa_pop_step_label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 24px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.appointa_pop_step_label__count {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.appointa_pop_step_label__name {
	font-size: 13px;
	font-weight: 700;
	color: #3b82f6;
}

/* ---- Scrollable body ---- */
.appointa_pop_body {
	overflow-y: auto;
	flex: 1;
	padding: 28px 24px;
	-webkit-overflow-scrolling: touch;
}

/* ---- Panels ---- */
.appointa_pop_panel { display: none; }
.appointa_pop_panel--active { display: block; }

.appointa_pop_panel__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 20px;
}

/* ---- Date/time stacked layout inside modal ---- */
.appointa_pop_datetime {
	grid-template-columns: 1fr 1fr;
}

/* ---- Success panel ---- */
.appointa_pop_panel--success {
	text-align: center;
	padding: 20px 0;
}

.appointa_pop_success_actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---- No-scroll body when modal open ---- */
body.appointa_pop_noscroll {
	overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
	.appointa_pop_header {
		padding: 14px 16px;
	}

	.appointa_pop_body {
		padding: 20px 16px;
	}

	.appointa_pop_step_label {
		padding: 8px 16px;
	}

	.appointa_pop_datetime {
		grid-template-columns: 1fr;
	}

	.appointa_pop_modal {
		border-radius: 12px;
	}
}
