/* =============================================================
   Appointa Booking Form — appointa_ prefixed classes only
   ============================================================= */

.appointa_booking_wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	color: #1e293b;
	max-width: 860px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 40px;
	box-sizing: border-box;
}

/* ---- Utility ---- */
.appointa_hidden { display: none !important; }

/* ---- Progress Steps ---- */
.appointa_steps {
	display: flex;
	align-items: center;
	margin-bottom: 40px;
}

.appointa_step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: none;
}

.appointa_step__bubble {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.appointa_step__num {
	font-size: 13px;
	font-weight: 700;
	color: #94a3b8;
	line-height: 1;
}

.appointa_step__label {
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
	text-align: center;
	white-space: nowrap;
}

.appointa_step--active .appointa_step__bubble {
	background: #3b82f6;
}
.appointa_step--active .appointa_step__num {
	color: #fff;
}
.appointa_step--active .appointa_step__label {
	color: #3b82f6;
}

.appointa_step--done .appointa_step__bubble {
	background: #22c55e;
}
.appointa_step--done .appointa_step__num {
	color: #fff;
}
.appointa_step--done .appointa_step__num::after {
	content: '✓';
}
.appointa_step--done .appointa_step__num span { display: none; }
.appointa_step--done .appointa_step__label {
	color: #22c55e;
}

.appointa_step_line {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	margin: 0 8px;
	margin-bottom: 20px;
	transition: background 0.3s;
}

/* ---- Panel ---- */
.appointa_panel { display: none; }
.appointa_panel--active { display: block; }

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

/* ---- Field Group ---- */
.appointa_field_group {
	margin-bottom: 20px;
}

.appointa_label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.appointa_required {
	color: #ef4444;
	margin-left: 2px;
}

.appointa_select,
.appointa_input {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	font-size: 15px;
	color: #1e293b;
	background: #f8fafc;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.appointa_select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.appointa_select:focus,
.appointa_input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
	background: #fff;
}

.appointa_form_row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ---- Staff Cards ---- */
.appointa_staff_cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}

.appointa_staff_card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	background: #f8fafc;
}

.appointa_staff_card:hover {
	border-color: #93c5fd;
	background: #eff6ff;
}

.appointa_staff_card--selected {
	border-color: #3b82f6;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.appointa_staff_card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #3b82f6;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.appointa_staff_card__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.appointa_staff_card__name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.appointa_staff_card__price {
	font-size: 13px;
	font-weight: 500;
	color: #3b82f6;
}

/* ---- Date & Time Layout ---- */
.appointa_datetime_wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-bottom: 28px;
}

/* ---- Calendar ---- */
.appointa_calendar_wrap {
	min-width: 0;
}

.appointa_calendar_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.appointa_cal_month_label {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.appointa_cal_nav {
	width: 32px;
	height: 32px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #475569;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
	padding: 0;
}

.appointa_cal_nav:hover:not(:disabled) {
	background: #eff6ff;
	color: #3b82f6;
	border-color: #93c5fd;
}

.appointa_cal_nav:disabled,
.appointa_cal_nav--disabled {
	opacity: 0.35;
	cursor: default;
}

.appointa_calendar_grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.appointa_cal_dow {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	text-align: center;
	padding: 4px 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.appointa_cal_days {
	display: contents;
}

.appointa_cal_day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #1e293b;
	cursor: default;
}

.appointa_cal_day--empty {
	background: transparent;
}

.appointa_cal_day--past {
	color: #cbd5e1;
}

.appointa_cal_day--available {
	cursor: pointer;
	color: #1e293b;
	background: #f1f5f9;
	transition: background 0.15s, color 0.15s;
}

.appointa_cal_day--available:hover {
	background: #dbeafe;
	color: #1d4ed8;
}

.appointa_cal_day--selected {
	background: #3b82f6 !important;
	color: #fff !important;
	font-weight: 700;
}

/* ---- Slots ---- */
.appointa_slots_wrap {
	min-width: 0;
}

.appointa_slots_title {
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 12px;
}

.appointa_slots_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
	max-height: 340px;
	overflow-y: auto;
	padding-right: 4px;
}

.appointa_slots_placeholder {
	font-size: 14px;
	color: #94a3b8;
	margin: 0;
	grid-column: 1 / -1;
}

.appointa_slot {
	padding: 9px 6px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	line-height: 1.3;
}

.appointa_slot:hover:not(:disabled) {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

.appointa_slot--selected {
	border-color: #3b82f6 !important;
	background: #3b82f6 !important;
	color: #fff !important;
}

.appointa_slot--booked,
.appointa_slot:disabled {
	border-color: #e2e8f0;
	background: #f1f5f9;
	color: #cbd5e1;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* ---- Payment Options ---- */
.appointa_payment_options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 28px;
}

.appointa_payment_option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	background: #f8fafc;
}

.appointa_payment_option:hover {
	border-color: #93c5fd;
	background: #eff6ff;
}

.appointa_payment_option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #3b82f6;
	cursor: pointer;
	flex-shrink: 0;
}

.appointa_payment_option__label {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
}

.appointa_payment_option:has(input:checked) {
	border-color: #3b82f6;
	background: #eff6ff;
}

/* ---- Summary ---- */
.appointa_summary_card {
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 28px;
}

.appointa_summary_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 20px;
	border-bottom: 1px solid #f1f5f9;
}

.appointa_summary_row:last-child {
	border-bottom: none;
}

.appointa_summary_key {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.appointa_summary_val {
	font-size: 15px;
	font-weight: 500;
	color: #0f172a;
	text-align: right;
}

.appointa_summary_price {
	font-size: 18px;
	font-weight: 700;
	color: #3b82f6;
}

.appointa_summary_divider {
	height: 4px;
	background: #f1f5f9;
}

/* ---- Actions ---- */
.appointa_actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 8px;
}

/* ---- Buttons ---- */
.appointa_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background 0.15s, border-color 0.15s, opacity 0.15s, box-shadow 0.15s;
	line-height: 1;
}

.appointa_btn--primary {
	background: #3b82f6;
	color: #fff;
	border-color: #3b82f6;
}

.appointa_btn--primary:hover:not(:disabled) {
	background: #2563eb;
	border-color: #2563eb;
}

.appointa_btn--primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.appointa_btn--secondary {
	background: #fff;
	color: #475569;
	border-color: #e2e8f0;
}

.appointa_btn--secondary:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.appointa_btn--confirm {
	background: #22c55e;
	border-color: #22c55e;
}

.appointa_btn--confirm:hover:not(:disabled) {
	background: #16a34a;
	border-color: #16a34a;
}

/* ---- Alerts ---- */
.appointa_alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 16px;
	line-height: 1.5;
}

.appointa_alert--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

/* ---- Misc notices ---- */
.appointa_loading {
	font-size: 14px;
	color: #94a3b8;
	margin: 0;
}

.appointa_notice {
	font-size: 14px;
	color: #64748b;
	margin: 0;
	padding: 12px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.appointa_error_inline {
	font-size: 13px;
	color: #dc2626;
	margin: 8px 0 0;
}

/* ---- Success Panel ---- */
.appointa_panel--success {
	text-align: center;
	padding: 48px 24px;
}

.appointa_success_icon {
	width: 72px;
	height: 72px;
	background: #dcfce7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	color: #16a34a;
}

.appointa_success_title {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px;
}

.appointa_success_msg {
	font-size: 15px;
	color: #475569;
	margin: 0 0 32px;
	line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
	.appointa_booking_wrap {
		padding: 24px 16px;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.appointa_steps {
		margin-bottom: 28px;
	}

	.appointa_step__label {
		display: none;
	}

	.appointa_datetime_wrap {
		grid-template-columns: 1fr;
		gap: 24px;
	}

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

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

	.appointa_slots_grid {
		grid-template-columns: repeat(3, 1fr);
		max-height: 260px;
	}
}
