/* Fyxli Order Modal */
.fx-order-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.fx-order-overlay.is-open {
	display: flex;
}

body.fx-order-lock {
	overflow: hidden;
}

.fx-order-modal {
	background: #fff;
	width: 100%;
	max-width: 620px;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 32px 28px 28px;
	box-sizing: border-box;
	position: relative;
	font-family: Arial, Helvetica, sans-serif;
	color: #222;
	margin: auto 0;
}

.fx-order-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: 0;
	font-size: 28px;
	color: #777;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
}

.fx-order-close:hover {
	color: #000;
}

.fx-progress {
	height: 4px;
	background: #eaeaea;
	border-radius: 4px;
	overflow: hidden;
	margin: 4px 30px 24px;
}

.fx-progress__bar {
	height: 100%;
	background: #1a73e8;
	width: 10%;
	transition: width 0.3s ease;
}

.fx-step {
	display: none;
}

.fx-step.is-active {
	display: block;
}

.fx-title {
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	margin: 4px 0 22px;
	line-height: 1.3;
}

.fx-subtitle {
	font-size: 13px;
	color: #666;
	text-align: center;
	margin: -16px 0 18px;
}

/* Categories (step 1) - 2 cards like Fixly screenshot */
.fx-cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 22px;
}

.fx-cat {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	aspect-ratio: 3 / 2;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.fx-cat:hover {
	border-color: #b0b0b0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fx-cat.is-selected {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

/* Yellow diamond accent */
.fx-cat::before {
	content: '';
	position: absolute;
	bottom: -18px;
	right: 50px;
	width: 72px;
	height: 72px;
	background: #FFD400;
	transform: rotate(45deg);
	z-index: 0;
}

.fx-cat__img {
	position: absolute;
	bottom: 0;
	right: -4px;
	width: 62%;
	height: auto;
	max-height: 88%;
	object-fit: contain;
	object-position: bottom right;
	z-index: 1;
}

.fx-cat__label {
	position: absolute;
	top: 16px;
	left: 16px;
	right: 44%;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
	z-index: 2;
	white-space: pre-line;
}

/* Services (step 3) - 4 photo cards + bottom list */
.fx-servs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 18px;
}

.fx-serv {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	background: #f5f5f5;
}

.fx-serv:hover {
	border-color: #1a73e8;
}

.fx-serv.is-selected {
	border-color: #1a73e8;
}

.fx-serv__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fx-serv__label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-align: center;
	background: rgba(0, 0, 0, 0.35);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.fx-servs-more {
	margin-bottom: 18px;
}

.fx-servs-more__title {
	font-size: 14px;
	color: #555;
	margin: 6px 0 10px;
	font-weight: 600;
}

.fx-servs-more__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}

.fx-servs-more__item {
	color: #1a73e8;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 0;
	border: 0;
	background: none;
	text-align: left;
}

.fx-servs-more__item:hover {
	text-decoration: underline;
}

.fx-servs-more__item.is-selected {
	color: #000;
	font-weight: 700;
}

/* City picker (step 1) */
.fx-city-search {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 15px;
	margin-bottom: 14px;
	font-family: inherit;
}

.fx-city-section-title {
	font-size: 12px;
	color: #888;
	text-transform: uppercase;
	font-weight: 700;
	margin: 14px 0 6px;
	letter-spacing: 0.5px;
}

.fx-city-list {
	max-height: 320px;
	overflow-y: auto;
	border-top: 1px solid #eee;
	margin-bottom: 16px;
}

.fx-city-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 6px;
	border-bottom: 1px solid #f1f1f1;
	cursor: pointer;
	font-size: 15px;
	gap: 10px;
}

.fx-city-row:hover {
	background: #f7f9fc;
}

.fx-city-row.is-selected {
	background: #f4f9ff;
	font-weight: 700;
}

.fx-city-row__name {
	color: #222;
	flex: 1;
}

.fx-city-row__region {
	color: #888;
	font-size: 13px;
}

/* Generic radio/check options (step 4-6) */
.fx-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 22px;
}

.fx-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 13px 16px;
	cursor: pointer;
	font-size: 15px;
	transition: border-color 0.15s, background 0.15s;
}

.fx-opt:hover {
	border-color: #1a73e8;
}

.fx-opt input {
	accent-color: #1a73e8;
	width: 18px;
	height: 18px;
	margin: 0;
}

.fx-opt.is-selected {
	border-color: #1a73e8;
	background: #f4f9ff;
}

/* Inputs */
.fx-input,
.fx-textarea,
.fx-select {
	width: 100%;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 15px;
	box-sizing: border-box;
	font-family: inherit;
	background: #fff;
}

.fx-textarea {
	min-height: 120px;
	resize: vertical;
}

.fx-label {
	display: block;
	font-size: 13px;
	color: #555;
	margin: 12px 0 6px;
}

/* Photos */
.fx-photo-add {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border: 1.5px dashed #c0c0c0;
	border-radius: 8px;
	background: #fafafa;
	cursor: pointer;
	color: #888;
	font-size: 22px;
	margin-top: 12px;
}

.fx-photo-add small {
	font-size: 10px;
	color: #999;
	margin-top: 2px;
}

/* Calendar */
.fx-calendar {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 14px;
	margin-top: 14px;
	display: none;
}

.fx-calendar.is-open {
	display: block;
}

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

.fx-cal-nav {
	background: none;
	border: 0;
	font-size: 18px;
	cursor: pointer;
	padding: 4px 10px;
	color: #1a73e8;
}

.fx-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.fx-cal-dow {
	text-align: center;
	font-size: 11px;
	color: #888;
	font-weight: 700;
	padding: 4px 0;
	text-transform: uppercase;
}

.fx-cal-day {
	background: none;
	border: 0;
	padding: 8px 0;
	cursor: pointer;
	border-radius: 6px;
	font-size: 14px;
	color: #222;
}

.fx-cal-day:hover:not([disabled]) {
	background: #f0f5ff;
}

.fx-cal-day[disabled] {
	color: #ccc;
	cursor: not-allowed;
}

.fx-cal-day.is-selected {
	background: #1a73e8;
	color: #fff;
	font-weight: 700;
}

.fx-cal-day.is-empty {
	visibility: hidden;
}

/* Actions — sticky bottom */
.fx-actions {
	display: flex;
	gap: 12px;
	margin-top: 22px;
	position: sticky;
	bottom: 0;
	background: #fff;
	padding: 14px 0 4px;
	z-index: 5;
	box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, 0.12);
}

.fx-btn {
	flex: 1;
	padding: 12px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	background: #fff;
	font-family: inherit;
}

.fx-btn--back {
	border-color: #1a73e8;
	color: #1a73e8;
	flex: 0 0 130px;
}

.fx-btn--next {
	background: #FFD400;
	color: #000;
}

.fx-btn--next[disabled] {
	background: #e0e0e0;
	color: #999;
	cursor: not-allowed;
}

.fx-hint {
	font-size: 13px;
	color: #555;
	margin: 8px 0 0;
}

/* Success */
.fx-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e8f5e9;
	color: #2e7d32;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 8px auto 16px;
	font-size: 32px;
	font-weight: 700;
}

.fx-avatars {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin: 24px 0 8px;
}

.fx-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #FFD400;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #000;
}

.fx-stars {
	display: flex;
	justify-content: center;
	gap: 2px;
	color: #FFB800;
	font-size: 14px;
	margin-top: 6px;
}

/* Mobile fullscreen */
@media (max-width: 768px) {
	.fx-order-overlay {
		padding: 0;
		align-items: stretch;
	}

	.fx-order-modal {
		max-width: none;
		border-radius: 0;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 56px 14px 12px;
		margin: 0;
		display: flex;
		flex-direction: column;
	}

	.fx-step.is-active {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
	}

	.fx-progress {
		margin-left: 4px;
		margin-right: 4px;
	}

	.fx-title {
		font-size: 17px;
	}

	/* Categories: clean horizontal cards on mobile */
	.fx-cats {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.fx-cat {
		aspect-ratio: auto;
		height: 82px;
	}

	.fx-cat::before {
		display: none;
	}

	.fx-cat__img {
		width: auto;
		height: 90%;
		max-height: 90%;
		right: 10px;
		bottom: 50%;
		transform: translateY(50%);
	}

	.fx-cat__label {
		top: 50%;
		transform: translateY(-50%);
		left: 16px;
		right: 45%;
		font-size: 15px;
	}

	.fx-servs,
	.fx-servs-more__list {
		grid-template-columns: 1fr 1fr;
	}

	.fx-cat__label,
	.fx-serv__label {
		font-size: 14px;
	}

	.fx-servs-more__item {
		font-size: 13px;
	}

	.fx-actions {
		margin-top: auto;
		padding: 10px 0;
		margin-left: -14px;
		margin-right: -14px;
		padding-left: 14px;
		padding-right: 14px;
		padding-bottom: calc(10px + env(safe-area-inset-bottom));
		position: sticky;
		bottom: 0;
	}

	.fx-btn--back {
		flex: 0 0 100px;
	}
}
