/* NUMERE Booking — multi-step flow. Matches theme design tokens. */

.nbk {
	position: relative;
}

/* ---------- Progress ---------- */

.nbk__progress {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: clamp(1rem, 4vw, 2.5rem);
	margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
	padding: 0;
}

.nbk__progress-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	letter-spacing: 0.05em;
	color: var(--c-text-soft, #5c616b);
	transition: color 0.3s ease;
}

.nbk__progress-item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	border: 1px solid var(--c-border, #e6e6ea);
	background: var(--c-surface, #fff);
	font-size: 0.78rem;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.nbk__progress-item.is-active {
	color: var(--c-text, #2e3138);
}

.nbk__progress-item.is-active span {
	background: var(--c-text, #2e3138);
	border-color: var(--c-text, #2e3138);
	color: var(--c-bg, #fbfaf8);
}

.nbk__progress-item.is-done span {
	background: var(--c-accent-soft, #e8edf3);
	border-color: var(--c-accent, #a9b8c9);
}

/* ---------- Steps + transitions ---------- */

.nbk__step {
	display: none;
}

.nbk__step.is-active {
	display: block;
	animation: nbk-step-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes nbk-step-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Calendar ---------- */

.nbk-cal {
	max-width: 420px;
	margin-inline: auto;
}

.nbk-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.nbk-cal__month {
	font-family: var(--font-serif, Georgia, serif);
	font-size: 1.25rem;
	font-weight: 500;
	text-transform: capitalize;
}

.nbk-cal__nav {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	border: 1px solid var(--c-border, #e6e6ea);
	background: var(--c-surface, #fff);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	color: var(--c-text-soft, #5c616b);
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nbk-cal__nav:hover:not([disabled]) {
	border-color: var(--c-accent, #a9b8c9);
	background: var(--c-accent-soft, #e8edf3);
	transform: translateY(-1px);
}

.nbk-cal__nav[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.nbk-cal__weekdays,
.nbk-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.35rem;
}

.nbk-cal__weekdays {
	margin-bottom: 0.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-text-soft, #5c616b);
	text-align: center;
}

.nbk-cal__day {
	position: relative;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	font: inherit;
	font-size: 0.92rem;
	cursor: pointer;
	color: var(--c-text, #2e3138);
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nbk-cal__num {
	line-height: 1;
}

/* Užimtumo taškas po data */
.nbk-cal__dot {
	position: absolute;
	bottom: 0.32rem;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: transparent;
	transition: background 0.25s ease;
}

.nbk-cal__day.is-busy-low .nbk-cal__dot {
	background: var(--c-accent, #a9b8c9);
}

.nbk-cal__day.is-busy-mid .nbk-cal__dot {
	background: #d8a24a;
}

.nbk-cal__day.is-busy-high .nbk-cal__dot {
	background: #c56b6b;
}

.nbk-cal__day:hover:not([disabled]) {
	border-color: var(--c-accent, #a9b8c9);
	background: var(--c-accent-soft, #e8edf3);
	transform: translateY(-1px);
}

.nbk-cal__day[disabled] {
	color: var(--c-silver, #c9ccd3);
	cursor: not-allowed;
}

.nbk-cal__day.is-today {
	border-color: var(--c-border, #e6e6ea);
}

.nbk-cal__day.is-selected {
	background: var(--c-text, #2e3138);
	border-color: var(--c-text, #2e3138);
	color: var(--c-bg, #fbfaf8);
}

.nbk-cal__day.is-selected .nbk-cal__dot {
	background: var(--c-bg, #fbfaf8) !important;
}

.nbk-cal__day--empty {
	visibility: hidden;
}

/* Kalendoriaus legenda */
.nbk-cal__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.1rem;
	font-size: 0.76rem;
	color: var(--c-text-soft, #5c616b);
}

.nbk-cal__legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.nbk-cal__legend i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.nbk-cal__legend .l-low  { background: var(--c-accent, #a9b8c9); }
.nbk-cal__legend .l-mid  { background: #d8a24a; }
.nbk-cal__legend .l-high { background: #c56b6b; }

/* ---------- Slots ---------- */

.nbk__chosen {
	text-align: center;
	font-family: var(--font-serif, Georgia, serif);
	font-size: 1.2rem;
	margin: 0 0 1.25rem;
	text-transform: capitalize;
}

.nbk-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 0.6rem;
	max-width: 480px;
	margin-inline: auto;
}

.nbk-slots__hint {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--c-text-soft, #5c616b);
	font-size: 0.92rem;
	margin: 0 0 0.3rem;
}

.nbk-slot {
	padding: 0.65rem 0.5rem;
	border: 1px solid var(--c-border, #e6e6ea);
	border-radius: 999px;
	background: var(--c-surface, #fff);
	font: inherit;
	font-size: 0.92rem;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, color 0.25s ease;
	animation: nbk-step-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	animation-delay: var(--nbk-delay, 0s);
}

.nbk-slot:hover:not(.is-taken) {
	border-color: var(--c-accent, #a9b8c9);
	transform: translateY(-2px);
}

.nbk-slot.is-selected {
	background: var(--c-text, #2e3138);
	border-color: var(--c-text, #2e3138);
	color: var(--c-bg, #fbfaf8);
}

/* Užimtas laikas — rodomas, bet tušuotas ir nepasirenkamas */
.nbk-slot.is-taken {
	color: var(--c-silver, #c9ccd3);
	background: repeating-linear-gradient(
		135deg,
		var(--c-bg-tint, #f4f4f6),
		var(--c-bg-tint, #f4f4f6) 6px,
		var(--c-surface, #fff) 6px,
		var(--c-surface, #fff) 12px
	);
	border-color: var(--c-border, #e6e6ea);
	cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-color: var(--c-silver, #c9ccd3);
	opacity: 0.85;
}

/* ---------- Summary ---------- */

.nbk-summary {
	text-align: center;
	background: var(--c-accent-soft, #e8edf3);
	border-radius: 14px;
	padding: clamp(1.5rem, 3.5vw, 2.25rem);
	margin-bottom: 1.5rem;
}

.nbk-summary__label {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-text-soft, #5c616b);
	margin: 0 0 0.5rem;
}

.nbk-summary__value {
	font-family: var(--font-serif, Georgia, serif);
	font-size: clamp(1.4rem, 3vw, 1.8rem);
	font-weight: 500;
	margin: 0 0 0.5rem;
	text-transform: capitalize;
}

.nbk-summary__detail {
	font-size: 0.88rem;
	color: var(--c-text-soft, #5c616b);
	margin: 0;
}

.nbk__note {
	text-align: center;
	font-size: 0.88rem;
	color: var(--c-text-soft, #5c616b);
	margin: 0 0 1.5rem;
}

/* ---------- Controls ---------- */

.nbk .nbk__submit {
	display: block;
	width: 100%;
	max-width: 340px;
	margin: 0 auto 1rem;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	text-align: center;
}

.nbk .nbk__submit[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.nbk__back {
	display: block;
	margin: 1.25rem auto 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 0.88rem;
	color: var(--c-text-soft, #5c616b);
	cursor: pointer;
	border-bottom: 1px solid transparent;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.nbk__back:hover {
	color: var(--c-text, #2e3138);
	border-bottom-color: var(--c-silver, #c9ccd3);
}

.nbk__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nbk__message {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.95rem;
}

.nbk__message.is-error {
	color: #9b4a4a;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.nbk__step.is-active,
	.nbk-slot {
		animation: none;
	}
	.nbk-slot,
	.nbk-cal__day,
	.nbk-cal__nav,
	.nbk__back {
		transition: none;
	}
}
