/* layout */

.ota-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.entry-title {
  display: none !important;
}

.content-area.primary {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

entry-header ast-no-thumbnail {
  margin: 0px !important;
}

/* OTA Booking Form Styles - Hotel Style Layout */
.ota-booking-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ota-booking-form {
  max-width: 80% !important;
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: space-between;
  padding: 24px;
  background: rgb(var(--background));
  min-height: 100vh;
}

.ota-booking-form-container-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1100px) {
  .ota-booking-form {
    max-width: 100% !important;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    /* padding-top: 16px; */
    /* space for sticky bar at top */
  }
}

/* Left side - Booking Form */
.ota-booking-form-container {
  flex: 1;
  background: rgb(var(--background));
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 100%;
}

.ota-booking-form-container h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: rgb(var(--foreground));
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(var(--border));
}

.ota-booking-form-container .booking-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0px 0 16px 0;
  color: rgb(var(--foreground));
}

.ota-booking-form-container .booking-section-title:first-child {
  margin-top: 0;
}

.ota-booking-form h2 {
  margin: 0 0 12px;
}

/* Right side - Route Summary (Sidebar sticky khi cuộn) */
.ota-booking-form-summary-container {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

@media (max-width: 968px) {
  .ota-booking-form-summary-container {
    flex: 1;
    width: 100%;
    position: relative;
    top: auto;
    align-self: stretch;
  }
}

.ota-booking-form-summary {
  background: rgb(var(--background));
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.ota-booking-form-route-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.ota-booking-form-route-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(
    135deg,
    rgb(var(--primary)) 0%,
    rgb(var(--primary)) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--background));
  font-size: 14px;
}

/* Gallery slider trong booking summary */
.ota-booking-form-route-gallery {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.ota-booking-form-route-gallery .ota-gallery-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Mỗi slide chiếm đúng 100% chiều rộng container để translateX hoạt động đúng */
.ota-booking-form-route-gallery .ota-gallery-slider-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: block;
}

.ota-booking-form-route-gallery .ota-gallery-slider-slide-item {
  height: 100%;
  width: 100%;
}

.ota-booking-form-route-gallery .ota-gallery-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation arrows cho gallery slider trong booking summary */
.ota-booking-form-route-gallery .ota-gallery-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.8;
}

.ota-booking-form-route-gallery .ota-gallery-slider-nav:hover {
  background: rgba(255, 255, 255, 1);
  opacity: 1;
}

.ota-booking-form-route-gallery .ota-gallery-slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.ota-booking-form-route-gallery .ota-gallery-slider-nav--prev {
  left: 12px;
}

.ota-booking-form-route-gallery .ota-gallery-slider-nav--next {
  right: 12px;
}

.ota-booking-form-route-gallery .ota-gallery-slider-nav svg {
  width: 20px;
  height: 20px;
  stroke: rgb(var(--foreground));
  stroke-width: 2;
}

.ota-booking-form-route-gallery .ota-gallery-slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dots indicator cho gallery slider trong booking summary */
.ota-booking-form-route-gallery .ota-gallery-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.ota-booking-form-route-gallery .ota-gallery-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  padding: 0;
}

.ota-booking-form-route-gallery .ota-gallery-slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.ota-booking-form-route-gallery .ota-gallery-slider-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.3);
}

.ota-booking-form-summary-content {
  padding: 24px;
}

.ota-booking-form-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e7ec;
}

.ota-booking-form-summary-title {
  font-size: 22px;
  font-weight: 600;
  color: rgb(var(--foreground));
  margin: 0;
  flex: 1;
}

.ota-booking-form-summary-price {
  color: rgb(var(--foreground));
  font-size: 24px;
  font-weight: 700;
  margin-left: 16px;
}

.ota-booking-form-summary-info {
  color: rgb(var(--muted));
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ota-booking-form-summary-info strong {
  color: rgb(var(--foreground));
  font-weight: 600;
}

.ota-booking-form-summary-info div {
  margin-bottom: 8px;
}

.ota-booking-form-summary-info div:last-child {
  margin-bottom: 0;
}

.ota-booking-form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

/* Stops + Seat/Vé: khi có UI chọn ghế → cột trái (đón/trả flex col), cột phải (chọn vé flex ngang) */
.ota-booking-form-stops-and-seats--with-seat-ui {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  /* margin-bottom: 20px; */
}

.ota-booking-form-stops-and-seats--with-seat-ui .ota-booking-form-stops-col {
  flex: 1;
  min-width: 0;
}

/* Điểm đón + Điểm trả: xếp dọc (flex col) khi có UI chọn ghế */
.ota-booking-form-stops-and-seats--with-seat-ui .ota-booking-form-row--col {
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
  gap: 16px;
  margin-bottom: 0;
}

/* Bên phải: Chọn ghế + Số lượng vé flex ngang */
.ota-booking-form-stops-and-seats--with-seat-ui
  .ota-booking-form-seat-pax-row--inline {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

@media (max-width: 768px) {
  .ota-booking-form-container h3 {
    padding: 0;
    margin: 0 !important;
  }
  /* Left side - Booking Form */
  .ota-booking-form-container {
    padding: 16px;
  }

  .ota-booking-form-stops-and-seats--with-seat-ui {
    flex-direction: column;
  }

  /* Mobile: Chọn ghế lên đầu */
  .ota-booking-form-stops-and-seats--with-seat-ui
    > .ota-booking-form-seat-pax-row {
    order: -1;
  }

  .ota-booking-form-stops-and-seats--with-seat-ui
    > .ota-booking-form-stops-col {
    order: 0;
  }

  .ota-booking-form-stops-and-seats--with-seat-ui
    .ota-booking-form-seat-pax-row--inline {
    min-width: 100%;
  }
}

.ota-booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .ota-booking-form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ota-booking-form-summary-title {
    font-size: 20px;
  }

  /* Mobile: input full width (đã kế thừa 100%), sidebar xuống dưới */
  .ota-booking-form-container .ota-booking-form-input,
  .ota-booking-form-container .ota-booking-form-select,
  .ota-booking-form-container .ota-booking-form-select-seat,
  .ota-booking-form-container .ota-booking-form-select-pax,
  .ota-booking-form-container .ota-booking-form-input-number,
  .ota-booking-form-container .ota-booking-form-textarea,
  .ota-booking-form-container .ota-booking-form-input-email,
  .ota-booking-form-container .ota-booking-form-phone-input,
  .ota-booking-form-container .ota-booking-form-specific-address-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.ota-booking-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--foreground));
  margin: 0 0 8px 0;
}

/* Map-pin icon in Điểm đón / Điểm trả labels */
.ota-booking-form-label-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.ota-booking-form-label-icon--map-pin {
  color: rgb(var(--primary)) !important;
  /* SVG as img: nhuộm xanh lá giống đường nối */
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg)
    brightness(98%) contrast(90%);
}

.ota-booking-form-label-hint {
  color: #666;
  font-weight: normal;
  font-size: 13px;
}

.ota-booking-form-label strong {
  font-weight: 600;
}

.ota-booking-form-field {
  margin-bottom: 0;
}

/* Điểm đón / Điểm trả: wrapper có đường thẳng nối 2 map-pin */
.ota-booking-form-stops-with-connector {
  position: relative;
  padding-left: 32px;
  margin-bottom: 20px;
}

/* Đường thẳng + mũi tên: chạy qua tâm 2 icon (icon 20px, bắt đầu tại 32px → tâm 42px) */
.ota-booking-form-stops-connector-line {
  display: none;
  position: absolute;
  left: 41px;
  /* tâm 2 icon = 32 + 10 */
  top: 22px;
  /* bắt đầu sát dưới icon Điểm đón */
  bottom: 100px;
  /* kết thúc sát trên icon Điểm trả */
  width: 2px;
  background: rgb(var(--primary));
  pointer-events: none;
}

/* Input và nội dung dưới label: đẩy vào trong (thụt phải so với đường nối) */
.ota-booking-form-stops-with-connector .ota-booking-form-field > div {
  padding-left: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ota-booking-form-stops-connector-line {
    bottom: 120px;
  }

  .ota-booking-form-stops-with-connector {
    margin: 0;
    padding: 0;
  }

  .ota-booking-form-stops-with-connector .ota-booking-form-field > div {
    padding: 0;
  }

  .ota-booking-form-stops-connector-line {
    left: 9px;
    /* căn lại khi wrapper không padding */
  }

  .ota-booking-form-specific-address-container {
    padding: 10px !important;
  }
}

@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}
/* Inputs / Select: bo góc 8px, padding rộng, transition khi :focus */
.ota-booking-form-input,
.ota-booking-form-input-email,
.ota-booking-form-select,
.ota-booking-form-select-seat,
.ota-booking-form-phone-select,
.ota-booking-form-phone-input,
.ota-booking-form-door-address-input,
.ota-booking-form-specific-address-input,
.ota-booking-form-input-number,
.ota-booking-form-textarea {
  border-radius: 8px;
  padding: 12px 18px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.2s ease;
}

.ota-booking-form-input:focus,
.ota-booking-form-input-email:focus,
.ota-booking-form-select:focus,
.ota-booking-form-select-seat:focus,
.ota-booking-form-select-pax:focus,
.ota-booking-form-phone-select:focus,
.ota-booking-form-phone-input:focus,
.ota-booking-form-door-address-input:focus,
.ota-booking-form-specific-address-input:focus,
.ota-booking-form-input-number:focus,
.ota-booking-form-textarea:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.2);
}

.ota-booking-form-input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
}

.ota-booking-form-input-email {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
}

.ota-booking-form-phone-wrapper {
  display: flex;
  gap: 8px;
}

.ota-booking-form-phone-select {
  width: 140px;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
  background: rgb(var(--background));
  cursor: pointer;
}

.ota-booking-form-phone-input {
  width: 100% !important;
  flex: 1;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
}

.ota-booking-form-door-option {
  margin-bottom: 8px;
}

.ota-booking-form-door-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ota-booking-form-door-label-pointer {
  cursor: pointer;
}

.ota-booking-form-door-checkbox {
  width: auto;
}

.ota-booking-form-door-text {
  font-size: 14px;
}

.ota-booking-form-door-required {
  color: rgb(var(--muted));
  font-size: 12px;
}

.ota-booking-form-policy-note {
  font-size: 12px;
  color: rgb(var(--muted));
  margin-top: 4px;
}

.ota-booking-form-select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
  background: rgb(var(--background));
  cursor: pointer;
}

/* Chọn hạng ghế — options from vehicle-config seat_groups; Số lượng vé (select 1→limit) */
.ota-booking-form-select-seat,
.ota-booking-form-select-pax {
  width: 100%;
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 18px;
  background: rgb(var(--background));
  cursor: pointer;
}

.ota-booking-form-door-address-container {
  display: none;
  margin-top: 8px;
}

.ota-booking-form-door-address-input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
}

/* Ô địa chỉ chi tiết: Slide Down + opacity khi .show */
.ota-booking-form-specific-address-container {
  margin-top: 8px;
  padding: 12px 16px;
  background: rgb(var(--background));
  border-radius: 8px;
  border: 1px solid rgb(var(--border));
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease-out,
    opacity 0.3s ease-out,
    padding 0.25s ease,
    margin 0.25s ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
  margin-left: 20px;
}

.ota-booking-form-specific-address-container.show {
  max-height: 280px;
  opacity: 1;
  padding: 12px 16px;
  margin-top: 8px;
  margin-bottom: 0;
  border-width: 1px;
}

.ota-booking-form-specific-address-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.ota-booking-form-specific-address-optional {
  color: rgb(var(--muted));
  font-weight: 400;
  font-size: 12px;
}

.ota-booking-form-specific-address-input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
}

.ota-booking-form-coverage-info {
  margin-top: 6px;
  font-size: 12px;
  color: rgb(var(--muted));
  line-height: 1.5;
}

/* Note phụ phí hiển thị khi chọn điểm đón/trả */
.ota-booking-fee-note {
  margin-top: 6px;
  font-size: 13px;
  color: rgb(var(--muted));
  line-height: 1.4;
}

.ota-booking-fee-note:not(:empty) {
  font-weight: 500;
  color: rgb(var(--foreground));
}

/* Địa chỉ + link bản đồ dưới selection điểm đón/trả */
.ota-booking-form-stop-address {
  margin-top: 8px;
  font-size: 13px;
  color: rgb(var(--muted));
  line-height: 1.5;
}

.ota-booking-form-stop-address.has-content {
  color: rgb(var(--foreground));
}

.ota-booking-form-stop-address .ota-booking-form-stop-address-text {
  display: inline;
}

.ota-booking-form-stop-address .ota-booking-form-stop-map-link {
  display: inline-block;
  margin-left: 8px;
  color: rgb(var(--primary, 59 130 246));
  text-decoration: underline;
}

.ota-booking-form-stop-address .ota-booking-form-stop-map-link:hover {
  text-decoration: none;
}

/* Seat class (vehicle-config seat_groups) + Pax row */
.ota-booking-form-seat-pax-row {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.ota-booking-form-seat-pax-row.has-seat-options {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.ota-booking-form-seat-pax-row.no-seat-options {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}

/* For no-seat-options: Label (row 1), Input (row 2) */
.ota-booking-form-seat-pax-row.no-seat-options .ota-booking-form-label {
  grid-row: 1;
  grid-column: 1;
}

.ota-booking-form-seat-pax-row.no-seat-options input {
  grid-row: 2;
  grid-column: 1;
}

/* Ensure labels appear above inputs in seat-pax-row */
/* For has-seat-options: Label 1 (row 1, col 1), Select (row 2, col 1), Label 2 (row 1, col 2), Input (row 2, col 2) */
.ota-booking-form-seat-pax-row.has-seat-options
  .ota-booking-form-label:nth-child(1) {
  grid-row: 1;
  grid-column: 1;
}

.ota-booking-form-seat-pax-row.has-seat-options select {
  grid-row: 2;
  grid-column: 1;
}

.ota-booking-form-seat-pax-row.has-seat-options
  .ota-booking-form-label:nth-child(3) {
  grid-row: 1;
  grid-column: 2;
}

.ota-booking-form-seat-pax-row.has-seat-options input {
  grid-row: 2;
  grid-column: 2;
}

.ota-booking-form-input-number {
  width: 100%;
  height: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
}

.ota-booking-form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgb(var(--border));
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

/* Nút Gửi yêu cầu - Call-to-Action nổi bật nhất */
.ota-booking-form-submit {
  width: 100%;
  height: 56px;
  background: rgb(var(--primary));
  color: rgb(var(--background));
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
  margin-top: 24px;
  box-shadow: 0 4px 14px rgba(var(--primary), 0.4);
}

.ota-booking-form-submit:hover {
  background: rgb(var(--secondary));
  box-shadow: 0 6px 20px rgba(var(--primary), 0.45);
  transform: translateY(-1px);
}

.ota-booking-form-submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(var(--primary), 0.35);
}

.ota-booking-form-price-box {
  background: rgb(var(--background));
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ota-booking-form-price-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: rgb(var(--foreground));
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e7ec;
}

.ota-booking-form-price-row {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgb(var(--muted));
  display: flex;
  justify-content: space-between;
}

.ota-booking-form-price-row strong {
  color: rgb(var(--foreground));
  font-weight: 500;
}

.ota-booking-form-price-final {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--foreground));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ota-booking-form-price-final-value {
  color: rgb(var(--foreground));
  font-size: 14px;
  font-weight: 700;
}

.ota-booking-form-price-total-section {
  /* margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e4e7ec; */
}

.ota-booking-form-price-total-row {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgb(var(--muted));
  display: flex;
  justify-content: space-between;
}

.ota-booking-form-price-total-row strong {
  color: rgb(var(--foreground));
  font-weight: 600;
}

/* Tổng tiền cuối: font lớn, màu tương phản (phân cấp thị giác) */
.ota-booking-form-price-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: rgb(var(--foreground));
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid rgb(var(--border));
}

.ota-booking-form-price-total-value {
  color: rgb(var(--primary));
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Mobile sticky price bar */
.ota-booking-mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  .ota-booking-mobile-bar {
    position: sticky;
    top: 5.5rem;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgb(var(--primary) / 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(var(--border));
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-bottom: 16px; */
    border-radius: 16px;
    color: rgb(var(--background));
  }

  .ota-booking-mobile-price {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: rgb(var(--background));
  }

  .ota-booking-mobile-price strong {
    font-size: 18px;
    color: rgb(var(--background));
  }

  .ota-booking-mobile-btn {
    display: none !important;
    /* flex-shrink: 0;
    padding: 12px 18px;
    background: rgb(var(--foreground));
    color: rgb(var(--background));
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s, transform 0.1s; */
  }

  .ota-booking-mobile-btn:hover {
    background: rgb(var(--primary));
  }

  .ota-booking-mobile-btn:active {
    transform: scale(0.98);
  }

  /* .ota-booking-form-submit {
    display: none !important;
  } */
  .ota-booking-form-select {
    margin-left: 30px !important;
  }
}

.ota-booking-form-info-box {
  margin-top: 24px;
  padding: 16px;
  background: rgb(var(--background));
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  color: rgb(var(--foreground));
  font-size: 14px;
}

.ota-booking-form-info-box div {
  margin-bottom: 8px;
}

.ota-booking-form-info-box div:last-child {
  margin-bottom: 0;
}

.ota-booking-form-info-box strong {
  color: rgb(var(--foreground));
  font-weight: 600;
}

.ota-booking-form-info-message {
  color: rgb(var(--muted));
  font-size: 14px;
  margin: 24px 0 0 0;
  line-height: 1.6;
}

.ota-thankyou {
  padding: 14px;
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
}

.ota-thankyou h2 {
  margin: 0 0 10px;
}

.ota-thankyou p {
  margin-top: 10px;
}

.ota-thankyou p:first-of-type {
  margin-top: 0;
}

/* Seat selector popup – 2 cột: Chọn hạng ghế | Phụ phí + Số lượng */
.ota-seat-popup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.ota-seat-popup-col-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ota-seat-popup-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ota-seat-popup-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: rgb(var(--foreground));
  margin: 0 0 4px 0;
}

.ota-seat-popup-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  font-size: 14px;
  background: rgb(var(--background));
  color: rgb(var(--foreground));
}

.ota-seat-popup-hint {
  font-size: 12px;
  color: rgb(var(--muted));
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.ota-seat-popup-fee {
  font-size: 18px;
  font-weight: 600;
  color: rgb(var(--foreground));
  padding: 8px 0;
}

.ota-seat-popup-input-number {
  width: 100%;
  max-width: 120px;
  padding: 10px 12px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  font-size: 14px;
}

.ota-seat-popup-btn-confirm {
  padding: 10px 20px;
  background: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ota-seat-popup-btn-confirm:hover {
  opacity: 0.9;
}

.ota-seat-popup-trigger {
  padding: 8px 16px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ota-seat-popup-trigger:hover {
  background: #e5e7eb;
}

.ota-booking-form-seat-popup-trigger {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .ota-seat-popup-inner {
    grid-template-columns: 1fr;
  }
}

/* Seat map popup (Phase 3) and inline in form */
.ota-seat-map-modal-inner,
.ota-seat-map-inner {
  padding: 0;
}

.ota-booking-form-seat-map-inline {
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.ota-seat-map-deck-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Layout gọn: Chú thích trái, sơ đồ phải trong khung bo tròn */
.ota-seat-map-inner--compact {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ota-seat-map-legend-col {
  flex: 0 0 auto;
  min-width: 120px;
}

.ota-seat-map-legend-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d2327;
  margin-bottom: 10px;
}

.ota-seat-map-map-col {
  flex: 1;
  min-width: 200px;
}

.ota-seat-map-map-box {
  background: #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ota-seat-map-inner--compact .ota-seat-map-deck-tabs {
  margin-bottom: 10px;
  gap: 6px;
  justify-content: center;
}

.ota-seat-map-inner--compact .ota-seat-map-deck-panels {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ota-seat-map-inner--compact .ota-seat-map-grid {
  align-items: center;
}

.ota-seat-map-inner--compact .ota-seat-map-deck-tab {
  padding: 6px 12px;
  font-size: 13px;
}

.ota-seat-map-inner--compact .ota-seat-map-grid {
  gap: 6px;
}

.ota-seat-map-inner--compact .ota-seat-map-row {
  gap: 4px;
}

.ota-seat-map-inner--compact .ota-seat-map-seat {
  min-width: 36px;
  height: 36px;
  font-size: 10px;
}

.ota-seat-map-inner--compact .ota-seat-map-seat-icon-wrap svg,
.ota-seat-map-inner--compact .ota-seat-map-seat .ota-icon-svg {
  width: 100%;
  height: 100%;
}

.ota-seat-map-inner--compact .ota-seat-map-seat--blocked {
  min-width: 28px;
  height: 28px;
}

.ota-seat-map-inner--compact .ota-seat-map-total {
  padding: 8px 0;
  font-size: 13px;
}

@media (max-width: 1690px) {
  .ota-seat-map-inner--compact {
    flex-direction: column;
    align-items: center;
  }

  .ota-seat-map-legend {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    /* max-width: 200px; */
  }

  .ota-seat-map-legend-col {
    min-width: 100%;
  }
  .ota-seat-map-map-box {
    padding: 12px;
    margin-bottom: 0px;
  }
  .ota-seat-map-legend-title {
    margin-bottom: 5px;
  }
}

@media (max-width: 1400px) {
  .ota-booking-form {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .ota-seat-map-inner--compact {
    flex-direction: column;
  }

  .ota-seat-map-legend-col {
    min-width: 100%;
  }
}

.ota-seat-map-deck-tab {
  padding: 8px 16px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: #f0f0f1;
  cursor: pointer;
  font-size: 14px;
}

.ota-seat-map-deck-tab:hover {
  background: #e5e7eb;
}

.ota-seat-map-deck-tab.ota-seat-map-deck-tab--active {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.ota-seat-map-deck-panels {
  margin-bottom: 16px;
}

.ota-seat-map-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ota-seat-map-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ota-seat-map-seat {
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  transition:
    opacity 0.15s,
    filter 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ota-seat-map-seat-icon-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ota-seat-map-seat-icon-wrap svg,
.ota-seat-map-seat .ota-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ota-seat-map-seat-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  top: 20% !important;
  /* align-items: center; */
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: inherit;
  pointer-events: none;
}

.ota-seat-map-seat:hover:not(:disabled) {
  opacity: 0.85;
}

.ota-seat-map-seat--available {
  color: #1d2327;
}

/* Màu theo hạng ghế (group) – không border, chỉ màu icon + chữ */
.ota-seat-map-seat--group-0.ota-seat-map-seat--available {
  color: #22c55e;
}

.ota-seat-map-seat--group-1.ota-seat-map-seat--available {
  color: #a855f7;
}

.ota-seat-map-seat--group-2.ota-seat-map-seat--available {
  color: #3b82f6;
}

.ota-seat-map-seat--group-3.ota-seat-map-seat--available {
  color: #f97316;
}

.ota-seat-map-seat--group-4.ota-seat-map-seat--available {
  color: #06b6d4;
}

.ota-seat-map-seat--group-5.ota-seat-map-seat--available {
  color: #ec4899;
}

.ota-seat-map-seat--group-6.ota-seat-map-seat--available {
  color: #eab308;
}

.ota-seat-map-seat--group-7.ota-seat-map-seat--available {
  color: #84cc16;
}

.ota-seat-map-seat--selected {
  color: #fff;
}

.ota-seat-map-seat--selected .ota-seat-map-seat-label {
  color: #fff !important;
}

/* .ota-seat-map-seat .ota-seat-map-seat-label {
  color: #0a0c0eb9 ;
} */
.ota-seat-map-seat--selected.ota-seat-map-seat--group-0 {
  background: #055021;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-1 {
  background: #6c2ca8;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-2 {
  background: #2e63b8;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-3 {
  background: #c96c29;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-4 {
  background: #097f94;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-5 {
  background: #af2369;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-6 {
  background: #ad8a20;
}

.ota-seat-map-seat--selected.ota-seat-map-seat--group-7 {
  background: #67a013;
}

.ota-seat-map-seat--selected:not([class*="ota-seat-map-seat--group-"]) {
  background: #2271b1;
}

.ota-seat-map-seat--unavailable {
  background: transparent;
  color: #787c82;
  cursor: not-allowed;
  opacity: 0.6;
}

.ota-seat-map-seat--blocked {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: default;
  color: #a7aaad;
  font-size: 14px;
}

/* Legend: cột trái, gọn – Chú thích + từng dòng icon + chữ */
.ota-seat-map-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.ota-seat-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ota-seat-map-legend-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.3;
}

.ota-seat-map-legend-text .ota-seat-map-legend-label {
  font-weight: 500;
  color: #1d2327;
}

.ota-seat-map-legend-text .ota-seat-map-legend-price {
  font-size: 11px;
  font-weight: 600;
  color: #1d2327;
}

.ota-seat-map-legend-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  position: relative;
  flex-shrink: 0;
}

.ota-seat-map-legend-icon svg,
.ota-seat-map-legend-icon .ota-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.ota-seat-map-legend-icon--available {
  border-color: #c3c4c7;
  background: #f6f7f7;
  color: #1d2327;
}

.ota-seat-map-legend-icon--blocked {
  border-color: #dcdcde;
  background: #e5e7eb;
  color: #787c82;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.ota-seat-map-legend-icon--blocked::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #787c82;
}

.ota-seat-map-legend-icon--selected {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

.ota-seat-map-legend-icon--selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.ota-seat-map-legend-icon--group {
  background: #fff;
}

.ota-seat-map-legend-price {
  font-weight: 600;
  color: #1d2327;
}

.ota-seat-map-total {
  padding: 12px 0;
  font-size: 15px;
}

.ota-seat-map-total strong {
  color: #2271b1;
}

.ota-booking-form-seat-popup-trigger .ota-seat-map-trigger {
  margin-left: 8px;
}
