/* Appointment Booking — Premium Widget Styles */

.appt-booking-widget {
	--appt-blue: #2563eb;
	--appt-blue-dark: #1d4ed8;
	--appt-green: #16a34a;
	--appt-red: #dc2626;
	--appt-bg: #ffffff;
	--appt-surface: #f8fafc;
	--appt-border: #e2e8f0;
	--appt-text: #0f172a;
	--appt-text-muted: #64748b;
	--appt-radius: 18px;
	--appt-shadow: 0 10px 40px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);

	max-width: 480px;
	margin: 30px auto;
	background: var(--appt-bg);
	border-radius: var(--appt-radius);
	box-shadow: var(--appt-shadow);
	padding: 0 0 26px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--appt-text);
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.04);
}

.appt-booking-widget * {
	box-sizing: border-box;
}

.appt-header {
	text-align: center;
	padding: 30px 24px 20px;
	background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
	border-bottom: 1px solid var(--appt-border);
}

.appt-header-logo img {
	max-height: 56px;
	margin-bottom: 12px;
	border-radius: 12px;
}

.appt-business-name {
	font-size: 21px;
	font-weight: 800;
	margin: 0;
	color: var(--appt-text);
	letter-spacing: -0.01em;
}

.appt-steps-indicator {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 22px 0 6px;
}

.appt-step-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--appt-border);
	color: var(--appt-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.appt-step-dot.active {
	background: linear-gradient(135deg, var(--appt-blue), var(--appt-blue-dark));
	color: #fff;
	transform: scale(1.12);
}

.appt-step-dot.completed {
	background: var(--appt-green);
	color: #fff;
}

.appt-step {
	padding: 4px 24px 0;
}

.appt-step-title {
	font-size: 17px;
	font-weight: 800;
	margin: 6px 0 14px;
	letter-spacing: -0.01em;
}

.appt-label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--appt-text-muted);
	margin: 16px 0 6px;
}

.appt-input {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--appt-border);
	border-radius: 12px;
	font-size: 15px;
	background: var(--appt-surface);
	color: var(--appt-text);
	transition: border-color 0.15s, background 0.15s;
}

.appt-input:focus {
	outline: none;
	border-color: var(--appt-blue);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.appt-services-list,
.appt-staff-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.appt-service-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 16px;
	border: 1.5px solid var(--appt-border);
	border-radius: 14px;
	cursor: pointer;
	background: var(--appt-surface);
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.appt-service-card:active {
	transform: scale(0.98);
}

.appt-service-card.selected {
	border-color: var(--appt-blue);
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.appt-service-name {
	font-weight: 700;
	font-size: 15px;
}

.appt-service-desc {
	font-size: 12.5px;
	color: var(--appt-text-muted);
	margin-top: 2px;
	max-width: 260px;
}

.appt-service-meta {
	font-size: 13px;
	color: var(--appt-text-muted);
	margin-top: 2px;
}

.appt-service-price {
	font-weight: 800;
	color: var(--appt-blue);
	font-size: 15px;
	white-space: nowrap;
	margin-left: 12px;
}

.appt-staff-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1.5px solid var(--appt-border);
	border-radius: 14px;
	cursor: pointer;
	background: var(--appt-surface);
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.appt-staff-card:active {
	transform: scale(0.98);
}

.appt-staff-card.selected {
	border-color: var(--appt-blue);
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.appt-staff-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--appt-blue), #7c3aed);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 15px;
	flex-shrink: 0;
	object-fit: cover;
	overflow: hidden;
}

.appt-staff-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.appt-staff-name {
	font-weight: 700;
	font-size: 14.5px;
}

.appt-slots-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.appt-slot-btn {
	padding: 10px 14px;
	border: 1.5px solid var(--appt-border);
	border-radius: 10px;
	background: var(--appt-surface);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	min-width: 78px;
	text-align: center;
	transition: all 0.15s;
}

.appt-slot-btn.selected {
	background: linear-gradient(135deg, var(--appt-blue), var(--appt-blue-dark));
	border-color: var(--appt-blue);
	color: #fff;
}

.appt-hint,
.appt-loading {
	color: var(--appt-text-muted);
	font-size: 14px;
}

.appt-actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.appt-btn {
	flex: 1;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s, transform 0.1s;
}

.appt-btn:active {
	transform: scale(0.98);
}

.appt-btn-primary {
	background: linear-gradient(135deg, var(--appt-blue), var(--appt-blue-dark));
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.appt-btn-secondary {
	background: var(--appt-border);
	color: var(--appt-text);
}

.appt-btn-danger {
	background: #fee2e2;
	color: var(--appt-red);
}

.appt-btn-whatsapp {
	background: #25d366;
	color: #fff;
	width: 100%;
	margin-top: 16px;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.30);
}

.appt-summary-card {
	background: var(--appt-surface);
	border-radius: 14px;
	padding: 16px 18px;
	font-size: 14px;
	border: 1px solid var(--appt-border);
}

.appt-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid var(--appt-border);
}

.appt-summary-row span:first-child {
	color: var(--appt-text-muted);
}

.appt-summary-row:last-child {
	border-bottom: none;
	font-weight: 800;
	color: var(--appt-blue);
}

.appt-confirmation {
	text-align: center;
}

.appt-success-icon {
	width: 68px;
	height: 68px;
	line-height: 68px;
	border-radius: 50%;
	background: linear-gradient(135deg, #dcfce7, #bbf7d0);
	color: var(--appt-green);
	font-size: 34px;
	margin: 8px auto 14px;
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.20);
}

.appt-booking-code {
	display: inline-block;
	background: #0f172a;
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 15px;
	margin-bottom: 16px;
}

.appt-message {
	padding: 13px 15px;
	border-radius: 12px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 14px;
	margin: 0 24px 16px;
}

.appt-message.appt-message-success {
	background: #f0fdf4;
	color: #15803d;
}

.appt-manage-widget .appt-message {
	margin: 16px 24px;
}

/* Status badges (shared by admin + manage page) */
.appt-status {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: capitalize;
	display: inline-block;
}

.appt-status-pending { background: #fef3c7; color: #92400e; }
.appt-status-confirmed { background: #dbeafe; color: #1e40af; }
.appt-status-completed { background: #dcfce7; color: #166534; }
.appt-status-cancelled { background: #fee2e2; color: #991b1b; }
.appt-status-active { background: #dcfce7; color: #166534; }
.appt-status-inactive { background: #f1f5f9; color: #64748b; }

@media (max-width: 480px) {
	.appt-booking-widget {
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		max-width: 100%;
		border: none;
	}
}
