/* =====================================================
   BOOKING NEW — booking-new.css
===================================================== */

.booking-container {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* =====================================================
   STEP BAR
   — line starts FROM first dot, ends AT last dot
   — tick perfectly centered inside green circle
===================================================== */
.step-bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-top: 1px;
}

.step-bar__track {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: #D0D5DD;
  z-index: 0;
  margin-left: 12px;
  margin-right: 12px;
}

.step-bar__progress {
  height: 100%;
  background: #16a34a;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item:first-child { align-items: flex-start; text-align: left; }
.step-item:last-child  { align-items: flex-end;   text-align: right; }

.step-item__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #D0D5DD;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0;
  line-height: 0;
}

.step-item.active .step-item__dot {
  border-color: #475467;
  background: #fff;
  transform: scale(1.08);
}

.step-item.completed .step-item__dot {
  border-color: #16a34a;
  background: #16a34a;
}

.step-item__check-svg {
  display: block;
  width: 11px;
  height: 9px;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.step-item.completed .step-item__check-svg { opacity: 1; }

.step-item p {
  font-size: 13px;
  font-weight: 600;
  color: #5B6778;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.step-item.active p    { color: #1A1E24; }
.step-item.completed p { color: #16a34a; }

/* =====================================================
   MAIN WRAPPER
===================================================== */
.bk-main {
  display: flex;
  flex-direction: column;
  position: relative;
}

.bk-step {
  display: none;
  gap: 24px;
  align-items: stretch;
}
.bk-step.active { display: flex; }

/* =====================================================
   STEP TRANSITIONS — smooth slide + fade
   Two zones animate independently with a slight stagger:
   left zone (cards/preview/image) leads, right zone
   (panel/form) follows ~60ms behind for a cascading feel.
===================================================== */
:root {
  --bk-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bk-duration: 380ms;
  --bk-stagger: 60ms;
  --bk-distance: 36px;
}

.bk-step .bk-cards-wrap,
.bk-step .bk-preview-wrap,
.bk-step .bk-panel,
.bk-step .bk-form-image,
.bk-step .bk-form-panel {
  will-change: transform, opacity;
  transition: transform var(--bk-duration) var(--bk-ease),
              opacity var(--bk-duration) var(--bk-ease);
}

/* Right-side zones get the stagger delay */
.bk-step .bk-panel,
.bk-step .bk-form-panel {
  transition-delay: var(--bk-stagger);
}

/* Forward (Next): outgoing drifts left+fades, incoming enters from right */
.bk-step.bk-leaving-fwd .bk-cards-wrap,
.bk-step.bk-leaving-fwd .bk-preview-wrap,
.bk-step.bk-leaving-fwd .bk-form-image,
.bk-step.bk-leaving-fwd .bk-panel,
.bk-step.bk-leaving-fwd .bk-form-panel {
  transform: translateX(calc(var(--bk-distance) * -1));
  opacity: 0;
}

.bk-step.bk-entering-fwd .bk-cards-wrap,
.bk-step.bk-entering-fwd .bk-preview-wrap,
.bk-step.bk-entering-fwd .bk-form-image,
.bk-step.bk-entering-fwd .bk-panel,
.bk-step.bk-entering-fwd .bk-form-panel {
  transform: translateX(var(--bk-distance));
  opacity: 0;
}

/* Backward (Back): outgoing drifts right+fades, incoming enters from left */
.bk-step.bk-leaving-back .bk-cards-wrap,
.bk-step.bk-leaving-back .bk-preview-wrap,
.bk-step.bk-leaving-back .bk-form-image,
.bk-step.bk-leaving-back .bk-panel,
.bk-step.bk-leaving-back .bk-form-panel {
  transform: translateX(var(--bk-distance));
  opacity: 0;
}

.bk-step.bk-entering-back .bk-cards-wrap,
.bk-step.bk-entering-back .bk-preview-wrap,
.bk-step.bk-entering-back .bk-form-image,
.bk-step.bk-entering-back .bk-panel,
.bk-step.bk-entering-back .bk-form-panel {
  transform: translateX(calc(var(--bk-distance) * -1));
  opacity: 0;
}

/* Settled resting state */
.bk-step.bk-settled .bk-cards-wrap,
.bk-step.bk-settled .bk-preview-wrap,
.bk-step.bk-settled .bk-form-image,
.bk-step.bk-settled .bk-panel,
.bk-step.bk-settled .bk-form-panel {
  transform: translateX(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bk-step .bk-cards-wrap,
  .bk-step .bk-preview-wrap,
  .bk-step .bk-panel,
  .bk-step .bk-form-image,
  .bk-step .bk-form-panel,
  .step-bar__progress,
  .step-item__dot {
    transition: none !important;
  }
}

/* =====================================================
   STEP 1 — CAR CARDS
===================================================== */
.bk-cards-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.bk-cards {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bk-cards::-webkit-scrollbar { display: none; }

.bk-card {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.bk-card img {
  width: 100%;
  height: 100%;
  /* min-height: 380px;
  max-height: 471px; */
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.bk-card:hover img { transform: scale(1.03); }

.bk-card__select {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #000;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  z-index: 2;
}

.bk-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bk-radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.bk-card.active .bk-radio::after { opacity: 1; }

.bk-card__title {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(60, 60, 60, 0.88);
  color: #fff;
  padding: 10px 32px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  min-width: 200px;
  transition: background 0.2s;
}
.bk-card:hover .bk-card__title { background: rgba(0,0,0,0.9); }

.bk-arrow {
  background: #000;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.bk-arrow.visible { display: flex; }

/* =====================================================
   STEPS 2 & 3 — PREVIEW IMAGE
===================================================== */
.bk-preview-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.bk-preview {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  min-height: 380px;
  max-height: 471px;
}

.bk-preview img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 471px;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.bk-preview__label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(60, 60, 60, 0.85);
  color: #fff;
  padding: 10px 32px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  min-width: 160px;
}

/* =====================================================
   RIGHT PANEL (Steps 1–3)
===================================================== */
.bk-panel {
  width: 340px;
  flex-shrink: 0;
  background: #F5F7FA;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bk-panel__price-block {
  background: #EAECF0;
  padding: 28px 24px 20px;
}

.bk-price-label {
  font-size: 15px;
  font-weight: 500;
  color: #475467;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bk-old-price {
  font-size: 20px;
  font-weight: 700;
  color: #5B6778;
  text-decoration: line-through;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  margin-bottom: 4px;
}

.bk-price {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  transition: opacity 0.2s ease;
}

.bk-panel__swatch-block {
  padding: 20px 20px 12px;
}

.bk-swatch-label {
  font-size: 14px;
  font-weight: 500;
  color: #475467;
  margin-bottom: 12px;
}

.bk-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bk-swatch {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 2px solid #D0D5DD;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.bk-swatch:hover   { border-color: #888; transform: translateY(-1px); }
.bk-swatch.active  {
  border-color: #1A1E24;
  box-shadow: 0 0 0 1px #1A1E24;
}

.bk-swatch svg { width: 36px; height: 36px; display: block; }

.bk-panel__summary {
  padding: 16px 20px;
  background: #fff;
  margin: 12px 12px 0;
  border-radius: 6px;
  flex: 1;
}

.bk-summary-row { padding: 8px 0; }

.bk-summary-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5B6778;
  margin-bottom: 3px;
}

.bk-summary-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.bk-summary-divider {
  height: 1px;
  background: #F0F1F3;
  margin: 2px 0;
}

.bk-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.15);
  display: inline-block;
  transition: background-color 0.2s ease;
}

.bk-panel__actions {
  display: flex;
  gap: 10px;
  padding: 16px 12px;
}

.bk-submit-error {
  display: block;
  padding: 0 12px 12px;
  font-size: 13px;
  color: red;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

/* =====================================================
   BUTTONS
===================================================== */
.bk-btn {
  flex: 1;
  padding: 13px 18px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  border: none;
}

.bk-btn--back {
  flex: 0.45;
  background: #fff;
  border: 2px solid #1A1E24;
  color: #1A1E24;
}
.bk-btn--back:hover:not(:disabled) {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}
.bk-btn--back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bk-btn--next {
  flex: 1.55;
  background: #1A1E24;
  color: #fff;
}
.bk-btn--next:hover:not(:disabled) {
  background: #333;
  transform: translateY(-1px);
}
.bk-btn--next:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Nav lock state while a transition is animating */
.bk-nav-locked { pointer-events: none; opacity: 0.55; }

/* =====================================================
   STEP 4 — FORM
===================================================== */
.bk-step--form {
  background: #F5F7FA;
  border-radius: 10px;
  overflow: hidden;
  gap: 0;
}

.bk-form-image {
  width: 44%;
  flex-shrink: 0;
  overflow: hidden;
}
.bk-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bk-form-panel {
  flex: 1;
  padding: 36px 32px 0;
  display: flex;
  flex-direction: column;
}

.bk-form-title {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #1A1E24;
  line-height: 1.25;
  margin-bottom: 24px;
}

.bk-form-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.bk-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.bk-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bk-form-group--full { flex: 1 1 100%; }

.bk-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.bk-form-group input[type="text"],
.bk-form-group input[type="email"],
.bk-form-group input[type="file"] {
  padding: 11px 14px;
  border: 1.5px solid #D0D5DD;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #101828;
}

.bk-form-group input::placeholder { color: #98A2B3; }

.bk-form-group input:focus {
  border-color: #475467;
  box-shadow: 0 0 0 3px rgba(71,84,103,0.08);
}

.bk-form-group input.is-error   { border-color: #D92D20; }
.bk-form-group input.is-success { border-color: #039855; }

.bk-field-error   { font-size: 12px; color: #D92D20; min-height: 16px; }
.bk-field-success { font-size: 12px; color: #039855; min-height: 16px; }

.bk-qr-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bk-qr-wrap input[type="file"] {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
}

.bk-scan-btn {
  background: #1A1E24;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.bk-scan-btn:hover     { background: #333; }
.bk-scan-btn:disabled  { background: #999; cursor: not-allowed; }

.bk-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid #E4E7EC;
  margin-top: 16px;
}

.bk-footer-price {}

.bk-footer-price__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5B6778;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.bk-footer-price__old {
  font-size: 16px;
  font-weight: 700;
  color: #5B6778;
  text-decoration: line-through;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  display: none;
}

.bk-footer-price__new {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #1A1E24;
  line-height: 1.1;
}

.bk-form-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.bk-form-actions .bk-btn--back { min-width: 100px; flex: none; }
.bk-form-actions .bk-btn--next { min-width: 140px; flex: none; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .bk-panel { width: 300px; }
  .bk-form-image { width: 38%; }
}

@media (max-width: 768px) {
  .booking-container { padding: 0 16px 48px; }
  .step-item p { font-size: 11px; }

  .bk-step { flex-direction: column; }
  .bk-cards-wrap, .bk-preview-wrap { width: 100%; }
  .bk-cards { flex-direction: column; overflow-x: visible; }
  .bk-card  { min-width: unset; max-width: 100%; }
  .bk-card img { min-height: 260px; max-height: 340px; }
  .bk-preview  { min-height: 260px; max-height: 340px; }
  .bk-preview img { min-height: 260px; max-height: 340px; }
  .bk-panel { width: 100%; }

  .bk-step--form { flex-direction: column; }
  .bk-form-image { width: 100%; max-height: 240px; }
  .bk-form-panel { padding: 24px 20px 0; }
  .bk-form-row   { flex-direction: column; }
  .bk-qr-wrap    { flex-direction: column; align-items: flex-start; }
  .bk-qr-wrap input[type="file"] { width: 100%; }
  .bk-form-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bk-form-actions { width: 100%; }
  .bk-form-actions .bk-btn--back,
  .bk-form-actions .bk-btn--next { flex: 1; min-width: unset; }

  :root { --bk-distance: 20px; }
}


/* ///////////// */

.bk-form-image--split {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 10px 10px 10px;
    border: 1px solid #E4E7EC;
    background: #fff;
    border-radius: 8px;
    max-height: 700px;
}

.bk-form-image__half {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.bk-form-image__half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bk-form-image__half .bk-preview__label {
    position: absolute;
    bottom: 8px;
    /* left: 12px;
    right: 12px; */
}