/* Free Bookly Frontend CSS - Classic, Catalog, Staff and Search Forms */

.fb-wizard-container,
.fb-modern-catalog-container,
.fb-modern-staff-container,
.fb-modern-search-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	color: #1e293b;
	line-height: 1.5;
}

.fb-wizard-container *,
.fb-modern-catalog-container *,
.fb-modern-staff-container *,
.fb-modern-search-container * {
	box-sizing: border-box;
}

/* ================= CLASSIC WIZARD ================= */
.fb-wizard-container {
	max-width: 650px;
	margin: 0 auto;
	background: #ffffff;
	padding: 24px;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	border: 1px solid #e2e8f0;
}

.fb-progress {
	display: flex;
	justify-content: space-between;
	margin-bottom: 24px;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 12px;
}

.fb-step-indicator {
	flex: 1;
	text-align: center;
	color: #94a3b8;
	font-weight: 600;
	font-size: 13px;
	transition: color 0.2s ease;
}

.fb-step-indicator.active {
	color: #0284c7;
	border-bottom: 3px solid #0284c7;
	margin-bottom: -14px;
	padding-bottom: 11px;
}

.fb-step-content h3 {
	margin-top: 0;
	margin-bottom: 14px;
	font-size: 18px;
	color: #0f172a;
}

.fb-field-block {
	margin-bottom: 16px;
}

.fb-field-block label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	color: #334155;
}

.fb-step-content select, 
.fb-step-content input[type="text"],
.fb-step-content input[type="email"],
.fb-step-content input[type="tel"],
.fb-step-content input[type="date"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
	color: #0f172a;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fb-step-content select:focus,
.fb-step-content input:focus {
	outline: none;
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.fb-info-box {
	margin-top: 8px;
	padding: 8px 12px;
	background: #f8fafc;
	border-left: 3px solid #0284c7;
	border-radius: 4px;
	font-size: 12.5px;
	color: #475569;
}

.fb-btn {
	display: inline-block;
	background: #0284c7;
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.fb-btn:hover {
	background: #0369a1;
	color: #ffffff;
}

.fb-btn[disabled] {
	background: #cbd5e1;
	color: #94a3b8;
	cursor: not-allowed;
}

.fb-btn-secondary {
	background: #f1f5f9;
	color: #475569;
}

.fb-btn-secondary:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.fb-slots-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
	gap: 8px;
	margin-bottom: 20px;
	max-height: 260px;
	overflow-y: auto;
	padding: 4px;
}

.fb-slots-container .fb-no-slots {
	grid-column: 1 / -1;
	color: #64748b;
	font-size: 13.5px;
	padding: 12px 0;
	margin: 0;
	text-align: center;
	background: #f8fafc;
	border-radius: 6px;
	border: 1px dashed #cbd5e1;
}

.fb-slot-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	text-align: center;
	transition: all 0.15s ease;
}

.fb-slot-btn:hover {
	border-color: #0284c7;
	color: #0284c7;
	background: #f0f9ff;
}

.fb-slot-btn.selected {
	background: #0284c7;
	color: #ffffff;
	border-color: #0284c7;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.fb-summary-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	font-size: 14px;
	line-height: 1.6;
}

/* ================= MODERN SERVICES CATALOG ================= */
.fb-modern-catalog-container {
	max-width: 1050px;
	margin: 0 auto;
}

.fb-catalog-header {
	margin-bottom: 24px;
}

.fb-catalog-header h2 {
	margin: 0;
	font-size: 26px;
	color: #0f172a;
}

.fb-category-filter-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.fb-pill-btn {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
	padding: 7px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.fb-pill-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.fb-pill-btn.active {
	background: #0284c7;
	color: #ffffff;
	border-color: #0284c7;
}

.fb-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 20px;
}

.fb-service-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.fb-service-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.fb-card-thumb {
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.fb-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fb-thumb-placeholder {
	font-size: 48px;
	color: rgba(255,255,255,0.75);
	line-height: 1;
}

.fb-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fb-card-category {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: #64748b;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.fb-card-title {
	margin: 0 0 8px 0;
	font-size: 17px;
	color: #0f172a;
}

.fb-card-info {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 16px 0;
	flex: 1;
}

.fb-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #f1f5f9;
	padding-top: 12px;
	margin-top: auto;
}

.fb-card-meta {
	display: flex;
	flex-direction: column;
}

.fb-meta-duration {
	font-size: 12px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 3px;
}

.fb-meta-duration .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.fb-meta-price {
	font-size: 17px;
	font-weight: 700;
	color: #0284c7;
}

/* ================= MODERN STAFF-FIRST FORM ================= */
.fb-modern-staff-container {
	max-width: 1050px;
	margin: 0 auto;
}

.fb-staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.fb-staff-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s;
}

.fb-staff-card:hover {
	transform: translateY(-2px);
}

.fb-staff-card-header {
	padding: 20px 16px 12px 16px;
	text-align: center;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.fb-staff-avatar-wrap {
	width: 72px;
	height: 72px;
	margin: 0 auto 10px auto;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.fb-staff-avatar-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 28px;
	font-weight: 700;
}

.fb-staff-name {
	margin: 0 0 6px 0;
	font-size: 17px;
	color: #0f172a;
}

.fb-staff-info {
	font-size: 12.5px;
	color: #64748b;
	margin: 0;
}

.fb-staff-card-body {
	padding: 16px;
	flex: 1;
}

.fb-staff-services-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.fb-staff-services-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fb-service-badge {
	background: #f1f5f9;
	color: #334155;
	font-size: 11.5px;
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
}

.fb-staff-card-footer {
	padding: 12px 16px 16px 16px;
	border-top: 1px solid #f1f5f9;
}

.fb-staff-card-footer .fb-btn {
	width: 100%;
	text-align: center;
}

/* ================= MODERN SEARCH FORM ================= */
.fb-modern-search-container {
	max-width: 850px;
	margin: 0 auto;
}

.fb-search-bar-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.fb-search-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 12px;
	align-items: flex-end;
}

.fb-search-col label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #334155;
}

.fb-search-col input,
.fb-search-col select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13.5px;
}

/* ================= MODALE INTERATTIVA ================= */
.fb-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.fb-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.fb-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 10px;
	max-width: 620px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.fb-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
}

.fb-modal-close:hover {
	color: #0f172a;
}

@media (max-width: 640px) {
	.fb-search-fields-grid {
		grid-template-columns: 1fr;
	}
	.fb-services-grid,
	.fb-staff-grid {
		grid-template-columns: 1fr;
	}
}
