/* ===========================
   booking.css — wizard styles
   Uses CSS vars from ../styles.css
   =========================== */

/* --- Page header --- */
.booking-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
  padding: 0 16px;
}

.booking-header__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 12px;
}

.booking-header__back {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--transition);
}

.booking-header__back:hover { color: var(--text-main); }

.booking-header__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}

.booking-header__step {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.booking-header__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #505050;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  margin-left: 8px;
}
.booking-header__close:hover {
  background: var(--primary);
  color: #fff;
}

/* --- Progress bar --- */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.progress-bar__step {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-hover);
  transition: background var(--transition);
}

.progress-bar__step.active { background: var(--primary); }
.progress-bar__step.done   { background: var(--success); }

/* --- Step container --- */
.step-wrap {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 100px;
  animation: fadeIn 0.2s ease;
}

.step-wrap.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

/* --- Type selector (step 1) --- */
.type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.type-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.type-card:hover {
  border-color: var(--primary);
  background: rgba(229,57,53,0.04);
  box-shadow: 0 4px 12px rgba(229,57,53,0.15);
  transform: translateY(-2px);
}

.type-card:active { 
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 2px 8px rgba(229,57,53,0.1);
}

.type-card.selected {
  border-color: var(--primary);
  background: rgba(229,57,53,0.06);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.15);
}

.type-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.type-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(229,57,53,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.type-card:hover .type-card__icon-box {
  background: rgba(229,57,53,0.2);
  transform: scale(1.05);
}

.type-card.selected .type-card__icon-box {
  background: rgba(229,57,53,0.25);
}

.type-card__info { flex: 1; min-width: 0; }

.type-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  transition: color 0.2s ease;
}

.type-card:hover .type-card__name {
  color: var(--primary);
}

.type-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.type-card__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
  transition: transform 0.2s ease;
}

.type-card:hover .type-card__price {
  transform: scale(1.08);
}

.type-card__features {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.type-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.type-card__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.type-card__check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--success);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.type-card__btn {
  margin-top: 14px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #c53030 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.type-card:hover .type-card__btn {
  background: linear-gradient(135deg, #c53030 0%, var(--primary) 100%);
  box-shadow: 0 4px 12px rgba(229,57,53,0.3);
  transform: translateY(-1px);
}

.type-card.selected .type-card__btn {
  background: #fff;
  color: var(--primary);
}

/* --- Route selector (step 2) --- */
.route-box {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stop-row {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  gap: 12px;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.stop-row:active { background: var(--bg-hover); }
.stop-row.active { border: 1.5px solid var(--primary); background: rgba(229,57,53,0.06); }
.stop-row.active .stop-row__icon-box { background: rgba(229,57,53,0.25); }

.stop-row__icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(229,57,53,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stop-row__icon-box--to {
  background: rgba(229,57,53,0.15);
  color: var(--primary);
}

.stop-row__info { flex: 1; min-width: 0; }

.stop-row__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stop-row__value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-row__value.placeholder { color: var(--text-muted); font-weight: 400; }

.stop-row__chevron {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.route-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.swap-btn {
  background: rgba(229,57,53,0.15);
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.swap-btn:active { background: rgba(229,57,53,0.3); }

/* --- Bottom sheet modal --- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 22px 22px 0 0;
  z-index: 101;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sheet.open { transform: translateY(0); }

.sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  padding: 14px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.sheet__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 0 env(safe-area-inset-bottom, 0);
}

.sheet__item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background var(--transition);
  gap: 12px;
}

.sheet__item:active { background: var(--bg-hover); }

.sheet__item.selected { background: rgba(229,57,53,0.08); }

.sheet__item-check {
  color: var(--primary);
  font-size: 18px;
  width: 20px;
  flex-shrink: 0;
}

.sheet__item-name { font-size: 16px; color: var(--text-main); }
.sheet__item-sub  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* --- Date / time (step 3) --- */
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.field-box {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.field-box:focus-within { border-color: var(--primary); }

.field-box input,
.field-box select {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 14px;
  font-size: 16px;
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

.field-box select option { background: var(--bg-secondary); }
.field-box.invalid { border-color: var(--primary); }

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.time-chip {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.time-chip:active { transform: scale(0.95); }

.time-chip.selected {
  border-color: var(--primary);
  color: var(--text-main);
  background: rgba(229,57,53,0.08);
}

/* --- Passengers (step 4) --- */
.passenger-list {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.passenger-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.passenger-row:last-child { border-bottom: none; }

/* Icon box */
.pax-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(229,57,53,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pax-icon-box--child { background: rgba(99,179,237,0.15); color: #63B3ED; }
.pax-icon-box--add   { background: rgba(229,57,53,0.10); color: var(--primary); }

.passenger-row__info { flex: 1; min-width: 0; }
.passenger-row__name { font-size: 15px; color: var(--text-main); font-weight: 600; }
.passenger-row__sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pax-seat-link { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pax-seat-warn {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
}
.passenger-row--warn { background: rgba(229,57,53,0.05); }

/* Price tag per passenger */
.pax-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--success, #10B981);
  flex-shrink: 0;
  white-space: nowrap;
}
.pax-price--free {
  font-size: 12px;
  font-weight: 600;
  color: var(--success, #10B981);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Delete button */
.passenger-row__del {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}
.passenger-row__del:active { background: rgba(229,57,53,0.1); }

/* Add passenger row */
.passenger-row--add {
  cursor: pointer;
  transition: background var(--transition);
}
.passenger-row--add:active { background: rgba(229,57,53,0.05); }
.pax-name--add { color: var(--primary); }

/* Add child row (toggle) */
.passenger-row--toggle { cursor: pointer; transition: background var(--transition); }
.passenger-row--toggle:active { background: rgba(255,255,255,0.03); }

/* Inline toggle switch */
.pax-toggle {
  width: 44px;
  height: 26px;
  background: var(--bg-hover);
  border-radius: 13px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition);
}
.pax-toggle::after {
  content: '';
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}
.pax-toggle--on { background: var(--primary); }
.pax-toggle--on::after { transform: translateX(18px); }

/* --- Baggage / Pets (steps 5-6) --- */
.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 8px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--transition);
}

.section-toggle__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.section-toggle__icon { font-size: 20px; }

/* iOS-style toggle */
.toggle-switch {
  width: 44px;
  height: 26px;
  background: var(--bg-hover);
  border-radius: 13px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.toggle-switch.on {
  background: var(--success);
}

.toggle-switch.on::after { transform: translateX(18px); }

/* Two-button choice (Да / Нет) for baggage step */
.baggage-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.baggage-choice__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 12px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  text-align: center;
}
.baggage-choice__btn:hover { border-color: var(--primary); }
.baggage-choice__btn:active { transform: scale(0.98); }
.baggage-choice__btn.active {
  border-color: var(--primary);
  background: rgba(232, 49, 56, 0.08);
}
.baggage-choice__icon { font-size: 26px; line-height: 1; }
.baggage-choice__title { font-weight: 700; font-size: 0.95rem; }
.baggage-choice__sub { font-size: 0.78rem; color: var(--text-secondary); }
@media (max-width: 380px) {
  .baggage-choice__btn { padding: 14px 8px; }
  .baggage-choice__title { font-size: 0.88rem; }
  .baggage-choice__sub { font-size: 0.72rem; }
}

.expandable {
  display: none;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px;
  margin-top: -8px;
  margin-bottom: 8px;
}

.expandable.open { display: block; }

.baggage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.baggage-item:last-child { border-bottom: none; }

.item-info { flex: 1; min-width: 0; }
.item-info__name  { font-size: 14px; font-weight: 600; color: var(--text-main); }
.item-info__price { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-tertiary);
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
}

.qty-btn:active { background: var(--primary); border-color: var(--primary); }
.qty-btn:disabled { opacity: 0.3; cursor: default; }

.qty-val {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Pet checkboxes */
.pet-option {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.pet-option:last-child { border-bottom: none; }

.pet-option__check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.pet-option.selected .pet-option__check {
  border-color: var(--success);
  background: var(--success);
}

.pet-option__check::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.pet-option.selected .pet-option__check::after { display: block; }

.pet-option__name { font-size: 15px; color: var(--text-main); }
.pet-option__sub  { font-size: 12px; color: var(--text-muted); }

/* --- Pet: over6kg warning block --- */
.pet-over6kg-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(237,137,54,0.12);
  border: 1px solid rgba(237,137,54,0.4);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  color: #c05621;
  line-height: 1.45;
}

/* --- Pet: transfer dialog overlay --- */
.pet-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pet-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px 20px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.pet-dialog__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.pet-dialog__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pet-dialog__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
  margin-bottom: 20px;
}

.pet-dialog__btns {
  display: flex;
  gap: 10px;
}

.pet-dialog__btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Manrope', sans-serif;
  transition: opacity 0.15s;
}

.pet-dialog__btn:active { opacity: 0.75; }

.pet-dialog__btn--cancel {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.pet-dialog__btn--confirm {
  background: var(--primary);
  color: #fff;
}

/* --- Contacts (step 7) --- */
.contacts-form .field-box { position: relative; }
.contacts-form .field-box input { padding-left: 44px; }

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.contacts-form textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 14px;
  font-size: 15px;
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  resize: none;
  min-height: 80px;
}

/* --- Summary (step 8) --- */
.summary-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.summary-row:last-child { border-bottom: none; }

.summary-row__key {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding-top: 1px;
}

.summary-row__val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(229,57,53,0.08);
  border: 1.5px solid rgba(229,57,53,0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.price-total__label { font-size: 15px; color: var(--text-secondary); font-weight: 600; }
.price-total__val   { font-size: 22px; font-weight: 800; color: var(--text-main); }
.price-total__note  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* --- Fixed bottom navigation --- */
.btn-row {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-strong);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
  z-index: 50;
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 1;
}

.btn-row--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.btn-back {
  flex: 0 0 48px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.btn-back:active { background: var(--bg-hover); color: var(--text-main); }
.btn-back:disabled { opacity: 0.3; cursor: default; }

.btn-next {
  flex: 1;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
}

.btn-next:active { background: var(--primary-dark); }
.btn-next:hover  { background: var(--primary-hover); }
.btn-next:disabled { opacity: 0.5; cursor: default; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-next.loading .spinner         { display: inline-block; }
.btn-next.loading .btn-next__text  { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Price bar (sticky above btn-row) --- */
.price-bar {
  display: none;
  position: fixed;
  bottom: 74px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-strong);
  padding: 10px 16px;
  z-index: 45;
}

.price-bar.visible { display: block; }

.has-price-bar .step-wrap { padding-bottom: 180px; }

.price-bar__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 6px;
}

.price-bar__row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-bar__row-val {
  color: var(--text-secondary);
  font-weight: 600;
}

.price-bar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-bar__total-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-bar__total-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* --- Success screen --- */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.success-screen.active { display: block; }

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16,185,129,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}

.success-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.success-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-order-id {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  display: inline-block;
}

.success-order-id strong { color: var(--text-main); }

/* --- Error message --- */
.step-error {
  display: none;
  background: rgba(229,57,53,0.08);
  border: 1px solid rgba(229,57,53,0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #fc8181;
  margin-bottom: 16px;
}

.step-error.active { display: block; }

/* --- Address input --- */
.address-field {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: border-color var(--transition);
  /* overflow:visible нужен чтобы дропдаун выходил за пределы поля */
  overflow: visible;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.address-field:focus-within { border-color: var(--primary); }

.address-field__icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.address-field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 14px 14px 14px 42px;
  font-size: 16px;
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  min-height: 48px;
  width: 100%;
  -webkit-appearance: none;
}

/* --- Address sheet search --- */
.sheet-addr-search {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sheet-addr-search input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  outline: none;
  -webkit-appearance: none;
}

.sheet-addr-search input:focus {
  border-color: var(--primary);
}

/* --- Hint blocks --- */
.baggage-hint, .pets-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 8px;
  text-align: center;
}

/* --- Honeypot --- */
.hp-field { display: none !important; }

/* ─── Date picker trigger ─── */
.picker-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.picker-trigger:active { border-color: var(--primary); }
.picker-trigger__icon  { color: var(--primary); display: flex; flex-shrink: 0; }
.picker-trigger__value { flex: 1; font-size: 16px; color: var(--text-main); }
.picker-trigger__value.placeholder { color: var(--text-muted); }
.picker-trigger__chevron { color: var(--text-muted); display: flex; flex-shrink: 0; }

/* ─── Date picker sheet header ─── */
.date-picker-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--border);
}
.date-picker-hdr__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.date-picker-hdr__confirm {
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  padding: 0;
}

/* ─── Wheel picker ─── */
.wheel-wrap {
  position: relative;
  display: flex;
  height: 220px;
  overflow: hidden;
  padding: 0 12px;
}
.wheel-wrap::before,
.wheel-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 88px;
  z-index: 2;
  pointer-events: none;
}
.wheel-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-secondary) 20%, transparent);
}
.wheel-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-secondary) 20%, transparent);
}
.wheel-wrap__highlight {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 0;
}
.wheel-col {
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  padding-top: 88px;
  padding-bottom: 88px;
  scrollbar-width: none;
  flex: 2;
  position: relative;
  z-index: 1;
  cursor: grab;
}
.wheel-col.dragging { cursor: grabbing; }
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-col.wheel-col--sm { flex: 1; }
.wheel-col.wheel-col--md { flex: 1.2; }
.wheel-item {
  scroll-snap-align: center;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

