/* Fast-lane formularz umawiania wizyty.
 * Stylowanie współdzielone między homepage (sec_booking — overlap hero)
 * i step_2 (sec_booking sec_booking--step2 — bez overlap).
 */

.sec_booking { padding: 0 0 50px; position: relative; z-index: 3; }
.sec_booking .wrapper { margin-top: -123px; }   /* overlap slider (tylko na home) */
.sec_booking--step2 .wrapper { margin-top: 30px; }   /* na step_2 brak overlap */

.sec_booking .booking-box {
	background: rgb(209 244 242 / 80%);
	padding: 19px 45px;
	border-radius: 8px;
	border: 2px solid #00b2ac;
	box-shadow: 0 24px 60px rgba(0, 68, 92, 0.28);
}
.sec_booking--step2 .booking-box {
	box-shadow: 0 8px 24px rgba(0, 68, 92, 0.12);
}

/* "Umów wizytę" — styl kickera (mały, wersaliki, turkus, z myślnikami), w rzędzie z togglem */
.sec_booking .booking-box-title {
	display: flex;
	justify-content: center;
	text-align: center;
	align-items: center;
	gap: 7px;
	color: #00b2ac;
	font-family: Rubik;
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.5px;
	line-height: 1.2;
	margin: 0 0 12px;
	padding: 0;
}
/* "Umów wizytę" wyśrodkowane w nagłówku (toggle zostaje po lewej w przepływie) — tylko home, nie sidebar */
.sec_booking .booking-box:not(.booking-box--sidebar) .booking-header-row { position: relative; }
.sec_booking .booking-box:not(.booking-box--sidebar) .booking-header-row .booking-box-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
}
/* Rząd: tytuł (lewo) + toggle wizyty (prawo) */
.sec_booking .booking-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.sec_booking .booking-header-row .booking-box-title { margin: 0; }
.sec_booking .booking-header-row .booking-visit-type { margin: 0; }
.sec_booking .booking-box--sidebar .booking-header-row { margin-bottom: 0; }

/* Toggle Stacjonarna / e-wizyta — animowany suwak */
.sec_booking .booking-visit-type {
	position: relative;
	display: flex;
	width: fit-content;
	align-items: stretch;
	background: #ebf5f4;
	border: 1px solid #d1f4f2;
	border-radius: 999px;
	padding: 4px;
	margin: 0 0 16px auto;
	font-family: Rubik;
	font-size: 13px;
	font-weight: 500;
	user-select: none;
	box-shadow: inset 0 3px 8px rgba(0, 68, 92, 0.28);
}
.sec_booking .booking-visit-type input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.sec_booking .booking-visit-type label {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	min-width: 140px;
	margin-bottom: 0;
	border-radius: 999px;
	/* nieaktywna opcja: pełnoprawny, czytelny wybór (kontrast ≥4.5:1), bez przekreślenia —
	   line-through sugerował „niedostępne", a przygaszony kolor był nieczytelny */
	color: #33606f;
	cursor: pointer;
	transition: color .3s;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.sec_booking .booking-visit-type input[type="radio"]:checked + label { color: #fff; }
.sec_booking .booking-visit-type input[type="radio"]:focus-visible + label { outline: 2px solid #00445c; outline-offset: 2px; }
.sec_booking .booking-visit-type__slider {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 4px);
	/* granat zamiast turkusu: biały tekst na #00445C ma kontrast ~10:1 (na #00b2ac ~2.9:1) */
	background: #00445c;
	border-radius: 999px;
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	z-index: 1;
	box-shadow: 0 4px 10px rgba(0, 68, 92, 0.35);
}
.sec_booking .booking-visit-type input[id="booking-visit-online"]:checked ~ .booking-visit-type__slider {
	transform: translateX(100%);
}

@media (max-width: 768px) {
	.sec_booking .wrapper { margin-top: 80px; }
	.sec_booking--step2 .wrapper { margin-top: 20px; }
	.sec_booking .booking-box-title { font-size: 15px; top: -136% !important; }
}

.sec_booking .booking-row {
	display: flex; gap: 16px; flex-wrap: nowrap; align-items: flex-end;
}
.sec_booking .booking-field { flex: 1 1 0; min-width: 0; }
.sec_booking .booking-field.is-disabled { opacity: 0.5; pointer-events: none; }
.sec_booking .booking-field.is-hidden { display: none; }
.sec_booking .booking-field-submit { flex: 0 0 auto; }
.sec_booking .booking-field-submit .booking-submit { /* width: auto; */ }
.sec_booking .booking-field label { display: none; }
.sec_booking .booking-field select {
	width: 100%; height: 40px; padding: 0 40px 0 16px; border: 2px solid #fff; border-radius: 8px;
	background: #fff; color: #00445c; font-family: Rubik; font-size: 15px; font-weight: 500; outline: none;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3e%3cpath fill='%2300445c' d='M4 5L0 0h8z'/%3e%3c/svg%3e");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; cursor: pointer;
}
.sec_booking .booking-field select:focus { border-color: #00445c; }
.sec_booking .booking-field select:disabled { opacity: .55; cursor: not-allowed; background-color: #f7f6f7; }
/* Tooltip nad nieaktywnym selectem (podpowiedź co wybrać najpierw) — pokazywany na hover */
.sec_booking .booking-field[data-tooltip] { position: relative; }
.sec_booking .booking-field[data-tooltip]:has(select:disabled):hover::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 16px;
	bottom: calc(100% + 6px);
	z-index: 10;
	background: #00445c;
	color: #fff;
	font-family: Rubik;
	font-size: 12px;
	font-weight: 500;
	padding: 6px 10px;
	border-radius: 8px;
	white-space: nowrap;
	pointer-events: none;
}
.sec_booking .booking-field.is-fixed select { display: none; }
.sec_booking .booking-field .booking-fixed-value {
	display: none; padding: 13px 16px; border-radius: 8px; background: #00b2ac;
	color: #fff; font-family: Rubik; font-weight: 500; font-size: 15px; min-height: 48px; box-sizing: border-box;
}
.sec_booking .booking-field.is-fixed .booking-fixed-value { display: block; }
.sec_booking .booking-error { color: #00445c; font-family: Rubik; font-size: 15px; min-height: 20px; margin-top: 12px; }
.sec_booking .booking-error:empty { display: none; margin-top: 0; min-height: 0; }
.sec_booking .booking-submit {
	height: 40px; padding: 0 40px; background: #f55e32; color: #fff;
	border: none; border-radius: 8px; font-family: Rubik; font-weight: 500;
	font-size: 15px; text-transform: none; cursor: pointer; transition: .3s;
	display: inline-flex; align-items: center; justify-content: center;
}
/* Strzałka → (spójna z .slide_box_link), kolor dziedziczony z przycisku */
.sec_booking .booking-submit::after {
	content: "\2192";
	font-family: Rubik;
	font-weight: 500;
	line-height: 1;
	margin-left: 8px;
	display: inline-block;
	vertical-align: middle;
	transform: translateY(1px);
}
.sec_booking .booking-submit:hover:not(:disabled) { background: #E4491F; color: #fff; }
.sec_booking .booking-submit:disabled { opacity: 0.90; cursor: not-allowed; }
.sec_booking.is-loading .booking-field select { pointer-events: none; opacity: .7; }

@media (max-width: 768px) {
	.sec_booking .booking-box { padding: 20px; }
	.sec_booking .booking-row { flex-direction: column; align-items: stretch; }
	.sec_booking .booking-field-submit { flex: 0 0 auto; }
	.sec_booking .booking-field-submit .booking-submit { width: 100%; }
}

/* === Sidebar mode (na step_2, prawy bok jako edytowalne podsumowanie) === */
.sec_booking--sidebar { padding: 0; position: static; z-index: auto; }
.sec_booking--sidebar .wrapper {
	margin-top: 35px;
	border: 1px solid #d1f4f2;
	border-radius: 8px;
}
.sec_booking .booking-box--sidebar { padding: 0; }
/* Kafel sidebara i read-only podsumowania (ostatni krok) — jak form na home:
   mint bez turkusowej ramki, miękki cień */
.sec_booking--sidebar .booking-box {
	border: 0;
	background: rgb(209 244 242 / 86%);
	box-shadow: 0 8px 24px rgba(0, 68, 92, 0.12);
}
/* Krok 2 (sidebar z aktywnym pickerem): bez tła/ramki/cienia — płaskie podsumowanie wizyty */
.booking-box.booking-box--sidebar.booking-has-picker {
	background: transparent;
	border: 0;
	box-shadow: none;
}
.sec_booking .booking-box--sidebar .booking-row {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}
.sec_booking .booking-box--sidebar .booking-field--visit-type {
	width: 100%;
}
/* Każda pozycja (tryb wizyty, miasto, specjalizacja, usługa, lekarz, termin) jako wiersz —
   odstęp do następnej pozycji (przerywana linia jest teraz podkreśleniem etykiety, niżej). */
.sec_booking .booking-box--sidebar .booking-row > .booking-field,
.sec_booking .booking-box--sidebar .booking-field--visit-type,
.sec_booking .booking-box--sidebar .booking-summary-row {
	margin-bottom: 8px;
}
/* Etykieta pozycji podkreślona przerywaną linią (zamiast linii pod całym wierszem) */
.sec_booking .booking-box--sidebar .booking-field > label,
.sec_booking .booking-box--sidebar .booking-summary-label {
	display: block;
	padding-bottom: 6px;
	margin-bottom: 6px;
	border-bottom: 1px dashed #00b2ac;
}
.sec_booking .booking-box--sidebar .booking-field > label {
	font-family: Rubik;
	font-size: 11px;
	font-weight: 400;
	color: #98a6ab;
	text-transform: uppercase;
	letter-spacing: .4px;
}
/* Pole zablokowane: label wchodzi w skład .booking-field__locked (jeden wiersz) —
   samodzielny <label> nad polem chowamy, żeby się nie powtarzał. */
.sec_booking--sidebar .booking-field.is-locked > label {
	display: none;
}
.sec_booking .booking-box--sidebar .booking-visit-type {
	display: flex;
	width: 100%;
	height: 30px;
	padding: 3px;
	animation: bookingVisitTypeReveal .25s ease;
}
.sec_booking .booking-box--sidebar .booking-visit-type label {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	padding: 0 10px;
}
/* Naprawa: .sec_booking .booking-field label { display:none } (reguła dla formularza na
   home, bez widocznych labeli) łapała też labelki Stacjonarna/e-wizyta, bo suwak jest
   teraz zagnieżdżony w .booking-field--visit-type — GLOBALNIE (home i sidebar), bo ten
   wrapper jest nakładany w obu trybach (booking-fastlane-form.php), nie tylko w sidebarze. */
.sec_booking .booking-field .booking-visit-type label {
	display: inline-flex;
}
.sec_booking .booking-box--sidebar .booking-visit-type__slider {
	top: 3px;
	bottom: 3px;
	left: 3px;
}
@keyframes bookingVisitTypeReveal {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}
/* Suwak trybu wizyty w stanie „zablokowanym" (wybrano) — tak jak pozostałe pola */
.sec_booking .booking-box--sidebar .booking-field.is-locked .booking-visit-type {
	display: none;
}
/* Wartość stała (auto-wybrana usługa) — chip read-only, celowo NIE wygląda jak
   edytowalny input (bez ramki inputa i caretu), żeby nie obiecywać interakcji */
.sec_booking .booking-box--sidebar .booking-field .booking-fixed-value {
	color: #00445c;
	background: rgba(0, 178, 172, 0.14);
	border: 0;
	font-weight: 600;
}

/* selecty: wyższy target (48px), delikatna ramka i wyraźny focus dla klawiatury */
.sec_booking .booking-box--sidebar .booking-field select {
	height: 48px;
	border: 1px solid #EEEBE4;
}
.sec_booking .booking-box--sidebar .booking-field select:focus-visible {
	outline: 2px solid #00445c;
	outline-offset: 2px;
}
/* nieaktywne pole (np. miasto przy e-wizycie) — czytelniejsze niż domyślne .55 */
.sec_booking .booking-box--sidebar .booking-field select:disabled { opacity: .7; }

/* .form-footer (BookingStep.vue): CTA i „← Wstecz" w JEDNYM wierszu — CTA po prawej,
   Wstecz po lewej (row-reverse zachowuje kolejność w DOM: CTA pierwszy, ale wizualnie
   na końcu/po prawej). Nie jest potomkiem .sec_booking, więc style są samodzielne. */
#booking-vue .form-footer {
	flex-direction: row-reverse !important;
	align-items: center !important;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
	margin-bottom: 32px; /* pod formularzem jest tekst z ujemnym margin-top:-20px (step-2.twig) */
}
#booking-vue .form-footer .btn-back {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
/* CTA „Umawiam wizytę"; form="booking-fastlane-form" wiąże go z formularzem sidebara
   mimo innej lokalizacji w DOM. Styl samodzielny (nie korzysta z .sec_booking .booking-submit). */
.form-footer .booking-cta-in-footer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 48px;
	padding: 0 26px;
	background: #F55E32;
	color: #fff;
	border: none;
	border-radius: 86px;
	font-family: Rubik;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(245, 94, 50, 0.35);
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.form-footer .booking-cta-in-footer::after {
	content: "\2192";
	margin-left: 8px;
	display: inline-block;
	vertical-align: middle;
}
.form-footer .booking-cta-in-footer:hover:not(:disabled) {
	background: #E4491F;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(245, 94, 50, 0.38);
}
.form-footer .booking-cta-in-footer:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.form-footer .booking-cta-in-footer:focus-visible {
	outline: 2px solid #00445c;
	outline-offset: 2px;
}

/* Read-only block: Lekarz / Termin (poniżej selectów w sidebar) — separator per-wiersz
   (patrz .booking-box--sidebar .booking-summary-row wyżej), więc bez własnego border/gap. */
.sec_booking .booking-summary-readonly {
	margin-top: 0;
	padding-top: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.sec_booking .booking-summary-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sec_booking .booking-summary-label {
	font-family: Rubik;
	font-size: 12px;
	font-weight: 600;
	color: #00445c;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.sec_booking .booking-summary-value {
	font-family: Rubik;
	font-size: 15px;
	font-weight: 500;
	color: #00445c;
}
.sec_booking .booking-summary-value.is-placeholder {
	color: #4a5a62;   /* na mincie ≥4.5:1 (poprzedni #6a7a85 był na granicy) */
	font-style: italic;
}

/* === Read-only summary (ostatni krok — płatność): ten sam wygląd „zablokowanego" pola
   co w sidebarze kroku 2 (.booking-field__locked-row/-label/-text, .booking-field__tick —
   patrz niżej), ale bez linku „Zmień" — tu wartości są tylko do odczytu. Płaski box, jak
   step_2 po zainicjowaniu pickera (.booking-has-picker), bo tu nie ma JS-a, który by go dodał. */
.booking-box.booking-box--sidebar.booking-box--readonly {
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* === Formularz w bloku CTA (strony specjalizacji): reset overlapu hero === */
.sec_booking--cta { padding: 0; position: static; z-index: auto; }
.sec_booking--cta .wrapper { margin-top: 0; max-width: 100%; }
.tax-cta-form.sec_booking--cta > .wrapper { padding: 0; }

/* Wyśrodkowanie zawartości bloku formularza rezerwacji (wrapper + tytuł + form) */
.sec_booking .wrapper,
.sec_booking .booking-box-title,
.sec_booking #booking-fastlane-form { text-align: center; }

/* Sidebar: treść do lewej — etykiety nad polami i podsumowanie skanuje się szybciej;
   toggle zostaje wyśrodkowanym pillem (labelki centrują się same) */
.sec_booking--sidebar .wrapper,
.sec_booking--sidebar #booking-fastlane-form { text-align: left; }

/* ============================================================
 * Modal picker (zamiast natywnych <select>) — trigger + panel
 * z wyszukiwarką i listą pozycji. Paleta Warm Teal.
 * ============================================================ */

/* Natywny <select> chowamy, gdy picker aktywny; sterowanie przez trigger */
.booking-has-picker .booking-field select { display: none !important; }
.booking-has-picker .booking-field .booking-fixed-value { display: none !important; }

/* Trigger — wygląda jak dawny select (biały, granatowy tekst, caret) */
.sec_booking .booking-trigger {
	width: 100%;
	height: 40px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	border: 2px solid #fff;
	border-radius: 8px;
	background: #fff;
	color: #00445c;
	font-family: Rubik;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.sec_booking .booking-trigger__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sec_booking .booking-trigger.is-placeholder .booking-trigger__label { color: #5b727c; font-weight: 500; }
.sec_booking .booking-trigger__caret {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: #00445c;
	display: inline-flex;
	transition: transform .2s;
}
.sec_booking .booking-trigger__caret svg { width: 100%; height: 100%; }
.sec_booking .booking-trigger:hover:not(:disabled) { border-color: #00b2ac; }
.sec_booking .booking-trigger:focus-visible { outline: none; border-color: #00b2ac; box-shadow: 0 0 0 3px rgba(0, 178, 172, 0.22); }
.sec_booking .booking-trigger[aria-expanded="true"] .booking-trigger__caret { transform: rotate(180deg); }
.sec_booking .booking-trigger.is-disabled { opacity: .55; cursor: not-allowed; background: #f7f6f7; }

/* Trigger w stanie „ustalonym" (auto-wybrana jedyna usługa) — turkusowy chip */
.sec_booking .booking-trigger.is-fixed {
	background: #00b2ac;
	border-color: #00b2ac;
	color: #fff;
	font-weight: 600;
}
.sec_booking .booking-trigger.is-fixed .booking-trigger__caret { color: #fff; opacity: .8; }

/* Sidebar (step_2): wyższy target + delikatna ramka jak selecty tam */
.sec_booking .booking-box--sidebar .booking-trigger { height: 48px; border: 1px solid #EEEBE4; }

/* --- Overlay + panel --- */
body.mmpick-open { overflow: hidden; }
.mmpick-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 34, 46, 0.55);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: mmpickFade .18s ease;
}
.mmpick-overlay[hidden] { display: none; }
@keyframes mmpickFade { from { opacity: 0; } to { opacity: 1; } }

.mmpick {
	width: 100%;
	max-width: 520px;
	max-height: 80vh;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 34, 46, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: Rubik;
	animation: mmpickPop .2s cubic-bezier(.2, .7, .3, 1);
}
@keyframes mmpickPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.mmpick__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 52px;
	border-bottom: 1px solid #eef0f0;
	flex: 0 0 auto;
}
.mmpick__title { font-size: 17px; font-weight: 600; color: #00445c; }
.mmpick__close {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #00445c;
	border-radius: 10px;
	cursor: pointer;
	transition: background .15s;
}
.mmpick__close svg { width: 22px; height: 22px; }
.mmpick__close:hover { background: #f0f6f6; }

.mmpick__search {
	position: relative;
	padding: 14px 16px 8px;
	flex: 0 0 auto;
}
.mmpick__search[hidden] { display: none; }
.mmpick__search-ic {
	position: absolute;
	left: 28px;
	top: 50%;
	transform: translateY(-40%);
	width: 18px;
	height: 18px;
	color: #7a8b91;
	pointer-events: none;
}
.mmpick__search-ic svg { width: 100%; height: 100%; }
.mmpick__search input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 44px;
	border: 2px solid #e3e8e9;
	border-radius: 12px;
	font-family: Rubik;
	font-size: 15px;
	color: #00445c;
	outline: none;
	transition: border-color .18s, box-shadow .18s;
}
.mmpick__search input:focus { border-color: #00b2ac; box-shadow: 0 0 0 3px rgba(0, 178, 172, 0.15); }
.mmpick__search input::placeholder { color: #98a6ab; }

.mmpick__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 0 8px; }
.mmpick__group {
	margin: 8px 0 2px;
	padding: 6px 18px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .6px;
	color: #98a6ab;
	text-transform: uppercase;
}
.mmpick__list { list-style: none; margin: 0; padding: 0; }
.mmpick__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 18px;
	cursor: pointer;
	color: #163b46;
	font-size: 15.5px;
	font-weight: 400;
	transition: background .12s;
}
.mmpick__item:hover, .mmpick__item.is-active { background: #f2f8f8; }
.mmpick__item.is-active { color: #00726e; }
.mmpick__ic {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #00b2ac;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mmpick__ic svg { width: 100%; height: 100%; }
.mmpick__ic img { width: 100%; height: 100%; object-fit: contain; }
.mmpick__txt { flex: 1 1 auto; min-width: 0; }
.mmpick__empty { padding: 28px 18px; text-align: center; color: #7a8b91; font-size: 15px; }

/* Bottom-sheet na mobile */
@media (max-width: 600px) {
	.mmpick-overlay { padding: 0; align-items: flex-end; }
	.mmpick {
		max-width: 100%;
		max-height: 88vh;
		border-radius: 18px 18px 0 0;
		animation: mmpickSheet .24s cubic-bezier(.2, .7, .3, 1);
	}
	@keyframes mmpickSheet { from { transform: translateY(100%); } to { transform: none; } }
}

/* --- Siatka „Popularne" (góra modala specjalizacji) --- */
.mmpick__pop[hidden] { display: none; }
.mmpick__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 2px 16px 6px;
}
.mmpick__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 92px;
	padding: 14px 8px;
	border: 1px solid #e7ecec;
	border-radius: 14px;
	background: #f7fafa;
	color: #163b46;
	font-family: Rubik;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
.mmpick__tile:hover {
	border-color: #00b2ac;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0, 68, 92, 0.10);
}
.mmpick__tile:active { transform: translateY(1px); }
.mmpick__tile:focus-visible { outline: none; border-color: #00b2ac; box-shadow: 0 0 0 3px rgba(0, 178, 172, 0.22); }
.mmpick__tile.is-active { border-color: #00b2ac; background: #eafafa; color: #00726e; }
.mmpick__tile-ic {
	width: 30px;
	height: 30px;
	color: #00b2ac;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mmpick__tile-ic svg { width: 100%; height: 100%; }
.mmpick__tile-ic img { width: 100%; height: 100%; object-fit: contain; }
.mmpick__tile-txt { display: block; }

@media (max-width: 600px) {
	.mmpick__grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Step_2 sidebar: ikony wiodące pól + animacja ticka (jak na formularzu specjalizacji).
   Różnica: sidebar ma WIDOCZNE etykiety nad polami, więc ✓ wyrównujemy do triggera (48px),
   a nie do całego pola. === */
.sec_booking--sidebar .booking-field { position: relative; }
.sec_booking--sidebar .booking-trigger {
	transition: width .3s ease, border-color .2s, box-shadow .2s, background .2s;
}
.sec_booking--sidebar .booking-trigger::before {
	content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: center / contain no-repeat;
}
.sec_booking--sidebar #booking-field-city .booking-trigger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b2ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.sec_booking--sidebar #booking-field-spec .booking-trigger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b2ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 6 6 6 6 0 0 0 6-6V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3'/%3E%3Cpath d='M8 15v1a6 6 0 0 0 6 6 6 6 0 0 0 6-6v-4'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E");
}
.sec_booking--sidebar .booking-row .booking-field:nth-of-type(3) .booking-trigger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b2ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}
.sec_booking--sidebar .booking-field:not(.booking-field-submit):not(.is-locked)::before {
	content: "\2713";
	position: absolute; right: 0; bottom: 0; height: 48px; width: 60px;
	display: flex; align-items: center; justify-content: center;
	color: #F55E32; font-weight: 700; font-size: 20px; line-height: 1;
	opacity: 0; transform: scale(.6);
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}
.sec_booking--sidebar .booking-field:not(.is-locked):has(.booking-trigger:not(.is-placeholder)) .booking-trigger {
	width: calc(100% - 60px);
}
.sec_booking--sidebar .booking-field:not(.is-locked):has(.booking-trigger:not(.is-placeholder))::before {
	opacity: 1; transform: none;
}

/* === Krok 2: wybrana pozycja jako tekst z ikoną ticka + link „Zmień" (zamiast selecta) ===
   Zablokowane pole: label + wartość w jednym wierszu (.booking-field__locked-row), przerywana
   linia tuż pod nim; „Zmień" pod linią, wyrównane do prawej (osobny <label> pola jest chowany,
   patrz booking-field > label wyżej — jego treść powtarza się w .booking-field__locked-label). */
.sec_booking--sidebar .booking-field__locked { display: none; }
.sec_booking--sidebar .booking-field.is-locked .booking-trigger,
.sec_booking--sidebar .booking-field.is-locked select,
.sec_booking--sidebar .booking-field.is-locked .booking-fixed-value {
	display: none !important;
}
.sec_booking--sidebar .booking-field.is-locked .booking-field__locked {
	display: block;
}
.sec_booking--sidebar .booking-field__locked-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 4px 10px;
	padding-bottom: 2px;
	margin-bottom: 4px;
	border-bottom: 1px dashed #d1f4f2;
}
.sec_booking--sidebar .booking-field__locked-label {
	flex: 0 0 auto;
	font-family: Rubik;
	font-size: 11px;
	font-weight: 400;
	color: #98a6ab;
	text-transform: uppercase;
	letter-spacing: .4px;
	white-space: nowrap;
}
/* Wrapper tekstu wartości: wyrównany do prawej krawędzi (auto-margines), nośnik tooltipa
   (data-full-name) — bez własnego overflow:hidden, żeby ::after nie był przycięty przez
   line-clamp ustawiony na .booking-field__locked-text niżej. */
.sec_booking--sidebar .booking-field__locked-text-wrap {
	position: relative;
	flex: 1 1 auto;
	margin-left: auto;
	min-width: 0;
	max-width: 100%;
}
.sec_booking--sidebar .booking-field__locked-text-wrap[data-full-name] {
	cursor: help;
}
.sec_booking--sidebar .booking-field__locked-text-wrap[data-full-name]:hover::after {
	content: attr(data-full-name);
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 10;
	max-width: 220px;
	background: #00445c;
	color: #fff;
	font-family: Rubik;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	padding: 8px 10px;
	border-radius: 8px;
	white-space: normal;
	text-align: left;
	box-shadow: 0 8px 20px rgba(0, 68, 92, 0.25);
	pointer-events: none;
}
.sec_booking--sidebar .booking-field__locked-text {
	display: -webkit-box;
	width: 100%;
	text-align: right;
	font-family: Rubik;
	font-size: 14px;
	font-weight: 500;
	color: #00445c;
	/* Dłuższe teksty łamią się do maks. 2 wierszy (zamiast obcinania jednowierszowym „…") */
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	white-space: normal;
	word-break: break-word;
}
/* Tick usunięty z podsumowania (kroki 2 i 3) — element zostaje w DOM (aria-hidden),
   tylko wizualnie schowany, żeby nic więcej nie trzeba było przebudowywać w JS/PHP. */
.sec_booking--sidebar .booking-field__tick {
	display: none;
}
/* „Zmień" pod przerywaną linią, wyrównane do prawej strony pola */
.sec_booking--sidebar .booking-field__change {
	display: block;
	width: 100%;
	text-align: right;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: #9aa7ac;
	font-family: Rubik;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s;
}
.sec_booking--sidebar .booking-field__change:hover,
.sec_booking--sidebar .booking-field__change:focus-visible {
	color: #5c6a70;
}

/* === Home (formularz poziomy): ikony wiodące pól + animacja ticka (jak na specjalizacji).
   Etykiety ukryte → ✓ na całą wysokość pola; trigger 40px. === */
.sec_booking--home .booking-field { position: relative; }
.sec_booking--home .booking-trigger {
	transition: width .3s ease, border-color .2s, box-shadow .2s, background .2s;
}
.sec_booking--home .booking-trigger::before {
	content: ""; flex: 0 0 auto; width: 18px; height: 18px; background: center / contain no-repeat;
}
.sec_booking--home #booking-field-city .booking-trigger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b2ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.sec_booking--home #booking-field-spec .booking-trigger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b2ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 6 6 6 6 0 0 0 6-6V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3'/%3E%3Cpath d='M8 15v1a6 6 0 0 0 6 6 6 6 0 0 0 6-6v-4'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E");
}
.sec_booking--home .booking-row .booking-field:nth-of-type(3) .booking-trigger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b2ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}
.sec_booking--home .booking-field:not(.booking-field-submit)::before {
	content: "\2713";
	position: absolute; right: 0; top: 0; bottom: 0; width: 60px;
	display: flex; align-items: center; justify-content: center;
	color: #F55E32; font-weight: 700; font-size: 18px; line-height: 1;
	opacity: 0; transform: scale(.6);
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}
.sec_booking--home .booking-field:has(.booking-trigger:not(.is-placeholder)) .booking-trigger {
	width: calc(100% - 60px);
}
.sec_booking--home .booking-field:has(.booking-trigger:not(.is-placeholder))::before {
	opacity: 1; transform: none;
}
