/* =========================================================
   UBUD VACATION
   BOOKING MODAL
   ========================================================= */

/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(15, 23, 42, 0.62);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   MODAL DIALOG
   ========================================================= */

.booking-modal__dialog {
  position: relative;

  width: 100%;
  max-width: 860px;

  max-height: calc(100vh - 48px);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #ffffff;

  border-radius: 22px;

  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22);

  transform: translateY(12px) scale(0.985);

  transition: transform 0.25s ease;
}

.booking-modal.is-open .booking-modal__dialog {
  transform: translateY(0) scale(1);
}

/* =========================================================
   HEADER
   ========================================================= */

.booking-modal__header {
  position: relative;

  flex: 0 0 auto;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding: 28px 32px;

  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);

  border-bottom: 1px solid #e5e7eb;
}

.booking-modal__header-content {
  min-width: 0;
}

.booking-modal__eyebrow {
  display: block;

  margin-bottom: 6px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #64748b;
}

.booking-modal__title {
  margin: 0;

  font-size: 25px;
  line-height: 1.25;

  font-weight: 750;

  color: #111827;
}

.booking-modal__subtitle {
  max-width: 600px;

  margin: 7px 0 0;

  font-size: 13px;
  line-height: 1.6;

  color: #64748b;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.booking-modal__close {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  background: #ffffff;

  color: #475569;

  font-size: 15px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.booking-modal__close:hover {
  background: #f8fafc;
  color: #111827;

  border-color: #cbd5e1;

  transform: rotate(3deg);
}

/* =========================================================
   BODY
   ========================================================= */

.booking-modal__body {
  flex: 1 1 auto;

  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 28px 32px 34px;

  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.booking-modal__body::-webkit-scrollbar {
  width: 7px;
}

.booking-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.booking-modal__body::-webkit-scrollbar-thumb {
  background: #cbd5e1;

  border-radius: 10px;
}

/* =========================================================
   BOOKING SECTION
   ========================================================= */

.booking-section {
  margin-bottom: 28px;
}

.booking-section:last-of-type {
  margin-bottom: 24px;
}

.booking-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 15px;
}

.booking-section__heading h3 {
  margin: 0;

  font-size: 17px;
  line-height: 1.35;

  font-weight: 750;

  color: #111827;
}

.booking-section__eyebrow {
  display: block;

  margin-bottom: 3px;

  font-size: 10px;
  line-height: 1.3;

  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #94a3b8;
}

/* =========================================================
   TRIP CARD
   ========================================================= */

.booking-trip-card {
  display: flex;
  align-items: center;

  gap: 15px;

  padding: 18px;

  border: 1px solid #e2e8f0;
  border-radius: 16px;

  background: #f8fafc;
}

.booking-trip-card__icon {
  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #ffffff;

  color: #334155;

  font-size: 20px;

  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);
}

.booking-trip-card__content {
  min-width: 0;
}

.booking-trip-card__label {
  display: block;

  margin-bottom: 3px;

  font-size: 11px;
  font-weight: 600;

  color: #94a3b8;
}

.booking-trip-card__title {
  display: block;

  overflow: hidden;

  font-size: 15px;
  line-height: 1.45;

  font-weight: 700;

  color: #1e293b;

  text-overflow: ellipsis;
}

.booking-trip-card__meta {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 8px;
}

.booking-trip-card__meta span {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  font-size: 11px;

  color: #64748b;
}

.booking-trip-card__meta i {
  font-size: 12px;
}

.booking-trip-card__meta strong {
  font-weight: 600;

  color: #475569;
}

/* =========================================================
   FORM ROW
   ========================================================= */

.booking-form__row {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;
}

/* =========================================================
   FIELD
   ========================================================= */

.booking-field {
  min-width: 0;

  margin-bottom: 16px;
}

.booking-form__row .booking-field {
  margin-bottom: 0;
}

.booking-field__label {
  display: flex;
  align-items: center;

  gap: 6px;

  margin-bottom: 7px;

  font-size: 12px;
  line-height: 1.4;

  font-weight: 650;

  color: #334155;
}

.booking-field__label i {
  font-size: 13px;

  color: #64748b;
}

.booking-field__label span {
  color: #ef4444;
}

/* =========================================================
   INPUT WRAP
   ========================================================= */

.booking-field__input-wrap {
  position: relative;
}

.booking-field__input-wrap > i {
  position: absolute;

  left: 14px;
  top: 50%;

  z-index: 2;

  transform: translateY(-50%);

  font-size: 14px;

  color: #94a3b8;

  pointer-events: none;
}

/* =========================================================
   INPUT
   ========================================================= */

.booking-field__input {
  width: 100%;
  min-height: 46px;

  box-sizing: border-box;

  padding: 0 14px 0 40px;

  border: 1px solid #dbe2ea;
  border-radius: 11px;

  outline: none;

  background: #ffffff;

  color: #1e293b;

  font-family: inherit;
  font-size: 15px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.booking-field__input::placeholder {
  color: #a8b2c1;
}

.booking-field__input:hover {
  border-color: #cbd5e1;
}

.booking-field__input:focus {
  border-color: #64748b;

  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);

  background: #ffffff;
}

select.booking-field__input {
  appearance: none;

  padding-right: 38px;

  cursor: pointer;
}

.booking-field__input-wrap:has(select)::after {
  content: "\f282";

  position: absolute;

  right: 14px;
  top: 50%;

  transform: translateY(-50%);

  font-family: "bootstrap-icons";

  font-size: 11px;

  color: #64748b;

  pointer-events: none;
}

/* =========================================================
   GUESTS
   ========================================================= */

.booking-guests {
  display: flex;
  flex-direction: column;

  border: 1px solid #e2e8f0;
  border-radius: 16px;

  overflow: hidden;

  background: #ffffff;
}

.booking-guest {
  display: flex;
  align-items: center;

  gap: 13px;

  min-height: 76px;

  padding: 14px 16px;
}

.booking-guest + .booking-guest {
  border-top: 1px solid #edf1f5;
}

.booking-guest__icon {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #f1f5f9;

  color: #475569;

  font-size: 17px;
}

.booking-guest__info {
  min-width: 0;

  flex: 1;
}

.booking-guest__info strong {
  display: block;

  margin-bottom: 2px;

  font-size: 13px;
  font-weight: 700;

  color: #1e293b;
}

.booking-guest__info span {
  display: block;

  font-size: 11px;

  color: #94a3b8;
}

/* =========================================================
   COUNTER
   ========================================================= */

.booking-counter {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 10px;
}

.booking-counter__button {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid #dbe2ea;
  border-radius: 9px;

  background: #ffffff;

  color: #475569;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.booking-counter__button:hover {
  background: #f8fafc;

  border-color: #94a3b8;

  color: #111827;
}

.booking-counter__value {
  min-width: 22px;

  text-align: center;

  font-size: 14px;
  font-weight: 700;

  color: #1e293b;
}

/* =========================================================
   PAYMENT HEADER
   ========================================================= */

.booking-payment__secure {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  padding: 5px 9px;

  border-radius: 999px;

  background: #f0fdf4;

  color: #15803d;

  font-size: 10px;
  font-weight: 700;
}

.booking-payment__secure i {
  font-size: 11px;
}

/* =========================================================
   PAYMENT OPTIONS
   ========================================================= */

.booking-payment {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
}

.booking-payment__option {
  display: block;

  position: relative;

  cursor: pointer;
}

.booking-payment__option > input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}

.booking-payment__card {
  position: relative;

  min-height: 82px;

  display: flex;
  align-items: center;

  gap: 11px;

  padding: 13px;

  border: 1px solid #e2e8f0;
  border-radius: 14px;

  background: #ffffff;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.booking-payment__option:hover .booking-payment__card {
  border-color: #cbd5e1;

  background: #f8fafc;
}

.booking-payment__option > input:checked + .booking-payment__card {
  border-color: #334155;

  background: #f8fafc;

  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
}

.booking-payment__icon {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: #f1f5f9;

  color: #475569;

  font-size: 17px;
}

.booking-payment__icon--paypal {
  color: #2563eb;
}

.booking-payment__icon--cash {
  color: #15803d;
}

.booking-payment__content {
  min-width: 0;

  flex: 1;
}

.booking-payment__content strong {
  display: block;

  margin-bottom: 3px;

  font-size: 12px;
  font-weight: 700;

  color: #1e293b;
}

.booking-payment__content small {
  display: block;

  overflow: hidden;

  font-size: 11px;
  line-height: 1.35;

  color: #94a3b8;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-payment__check {
  position: absolute;

  top: 9px;
  right: 9px;

  width: 17px;
  height: 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #cbd5e1;
  border-radius: 50%;

  background: #ffffff;

  color: #ffffff;

  font-size: 9px;

  opacity: 0;

  transform: scale(0.7);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.booking-payment__option
  > input:checked
  + .booking-payment__card
  .booking-payment__check {
  opacity: 1;

  transform: scale(1);

  background: #334155;

  border-color: #334155;
}

/* =========================================================
   PAYMENT PANEL
   ========================================================= */

.booking-payment-panel {
  margin-top: 12px;

  padding: 18px;

  border: 1px solid #e2e8f0;
  border-radius: 15px;

  background: #f8fafc;

  animation: bookingPanelIn 0.22s ease;
}

.booking-payment-panel[hidden] {
  display: none;
}

@keyframes bookingPanelIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-payment-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-bottom: 15px;
}

.booking-payment-panel__header > div:first-child {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;
}

.booking-payment-panel__icon {
  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #ffffff;

  color: #475569;

  font-size: 15px;
}

.booking-payment-panel__header strong {
  display: block;

  margin-bottom: 2px;

  font-size: 12px;

  color: #1e293b;
}

.booking-payment-panel__header small {
  display: block;

  font-size: 10px;

  color: #94a3b8;
}

.booking-payment-panel__secure {
  display: inline-flex;
  align-items: center;

  gap: 4px;

  flex: 0 0 auto;

  font-size: 9px;
  font-weight: 700;

  color: #15803d;
}

.booking-payment-panel__secure i {
  font-size: 11px;
}

/* =========================================================
   PAYPAL CONTAINERS
   ========================================================= */

.booking-paypal-buttons,
.booking-paypal-card {
  width: 100%;

  min-height: 20px;
}

.booking-paypal-buttons > * {
  max-width: 100%;
}

.booking-payment-status {
  margin-top: 8px;

  font-size: 11px;

  color: #64748b;
}

/* =========================================================
   CASH
   ========================================================= */

.booking-cash-message {
  display: flex;
  align-items: flex-start;

  gap: 12px;
}

.booking-cash-message__icon {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: #ffffff;

  color: #15803d;

  font-size: 18px;
}

.booking-cash-message strong {
  display: block;

  margin-bottom: 4px;

  font-size: 12px;

  color: #1e293b;
}

.booking-cash-message p {
  margin: 0;

  font-size: 11px;
  line-height: 1.55;

  color: #64748b;
}

/* =========================================================
   BOOKING SUMMARY
   ========================================================= */

.booking-summary {
  overflow: hidden;

  margin-top: 5px;
  margin-bottom: 22px;

  border: 1px solid #dbe2ea;
  border-radius: 17px;

  background: #ffffff;

  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.045);
}

.booking-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 18px 19px;

  border-bottom: 1px solid #edf1f5;
}

.booking-summary__top h3 {
  margin: 0;

  font-size: 16px;

  font-weight: 750;

  color: #111827;
}

.booking-summary__badge {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  flex: 0 0 auto;

  padding: 6px 9px;

  border-radius: 999px;

  background: #f8fafc;

  color: #64748b;

  font-size: 9px;
  font-weight: 700;
}

.booking-summary__badge i {
  font-size: 11px;
}

/* =========================================================
   SUMMARY TOUR
   ========================================================= */

.booking-summary__tour {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 15px 19px;

  background: #f8fafc;
}

.booking-summary__tour-icon {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #ffffff;

  color: #475569;

  font-size: 15px;
}

.booking-summary__tour > div {
  min-width: 0;
}

.booking-summary__label {
  display: block;

  margin-bottom: 2px;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #94a3b8;
}

.booking-summary__tour strong {
  display: block;

  overflow: hidden;

  font-size: 12px;
  line-height: 1.45;

  font-weight: 700;

  color: #1e293b;

  text-overflow: ellipsis;
}

/* =========================================================
   SUMMARY ROWS
   ========================================================= */

.booking-summary__rows {
  padding: 7px 19px;
}

.booking-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 39px;

  border-bottom: 1px solid #f1f5f9;
}

.booking-summary__row:last-child {
  border-bottom: 0;
}

.booking-summary__row span {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  font-size: 13px;

  color: #64748b;
}

.booking-summary__row span i {
  width: 16px;

  text-align: center;

  font-size: 12px;

  color: #94a3b8;
}

.booking-summary__row strong {
  text-align: right;

  font-size: 11px;
  font-weight: 650;

  color: #334155;
}

/* =========================================================
   SUMMARY TOTAL
   ========================================================= */

.booking-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 17px 19px;

  border-top: 1px solid #e2e8f0;

  background: #f8fafc;
}

.booking-summary__total span {
  display: block;

  margin-bottom: 3px;

  font-size: 13px;
  font-weight: 750;

  color: #1e293b;
}

.booking-summary__total small {
  display: block;

  font-size: 9px;

  color: #94a3b8;
}

.booking-summary__total > strong {
  text-align: right;

  font-size: 19px;

  font-weight: 800;

  color: #111827;
}

/* =========================================================
   ERROR
   ========================================================= */

.booking-form__error {
  display: none;

  margin-bottom: 14px;

  padding: 11px 13px;

  border: 1px solid #fecaca;
  border-radius: 10px;

  background: #fef2f2;

  color: #b91c1c;

  font-size: 11px;
  line-height: 1.5;
}

.booking-form__error:not(:empty) {
  display: block;
}

/* =========================================================
   PROCESSING
   ========================================================= */

.booking-form__processing {
  align-items: center;

  justify-content: center;

  gap: 7px;

  margin-bottom: 12px;

  padding: 10px;

  border-radius: 10px;

  background: #f8fafc;

  color: #64748b;

  font-size: 11px;
}

.booking-form__processing:not([hidden]) {
  display: flex;
}

.booking-form__processing i {
  animation: bookingSpin 0.8s linear infinite;
}

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

/* =========================================================
   SUBMIT
   ========================================================= */

.booking-form__submit {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 0 20px;

  border: 0;
  border-radius: 12px;

  background: #1e293b;

  color: #ffffff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.booking-form__submit:hover {
  background: #0f172a;

  transform: translateY(-1px);

  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.16);
}

.booking-form__submit:active {
  transform: translateY(0);
}

.booking-form__submit i {
  font-size: 14px;
}

/* =========================================================
   NOTE
   ========================================================= */

.booking-form__note {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  margin: 10px 0 0;

  font-size: 9px;

  color: #94a3b8;

  text-align: center;
}

.booking-form__note i {
  font-size: 10px;
}

/* =========================================================
   BODY LOCK
   ========================================================= */

body.booking-modal-open {
  overflow: hidden;
}

/* =====================================================
   BOOKING SUBMIT LOADING
   ===================================================== */

.booking-submit--loading {
  cursor: wait;
  opacity: 0.8;
}

/* =====================================================
   LOADING ICON
   ===================================================== */

.booking-loading-icon {
  display: inline-block;
  margin-right: 6px;

  animation: bookingSpinner 0.8s linear infinite;
}

/* =====================================================
   SPINNER ANIMATION
   ===================================================== */

@keyframes bookingSpinner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 760px) {
  .booking-modal {
    align-items: center;

    padding: 14px;
  }

  .booking-modal__dialog {
    max-height: calc(100vh - 28px);

    border-radius: 18px;
  }

  .booking-modal__header {
    padding: 22px 20px;
  }

  .booking-modal__title {
    font-size: 21px;
  }

  .booking-modal__subtitle {
    font-size: 13px;
  }

  .booking-modal__body {
    padding: 22px 20px 28px;
  }

  .booking-form__row {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .booking-payment {
    grid-template-columns: 1fr;
  }

  .booking-payment__card {
    min-height: 66px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .booking-modal {
    align-items: flex-end;
    padding: 0;
  }

  .booking-modal__dialog {
    width: 100%;
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    min-height: 0;
    border-radius: 22px 22px 0 0;
  }

  .booking-modal__header {
    padding: 18px 16px;
  }

  .booking-modal__close {
    width: 36px;
    height: 36px;

    border-radius: 10px;
  }

  .booking-modal__title {
    font-size: 19px;
  }

  .booking-modal__subtitle {
    max-width: 280px;

    font-size: 13px;
  }

  .booking-form__row .booking-field:last-child {
    margin-top: 12px;
  }
  .booking-modal__body {
    padding: 20px 16px 28px;
  }

  .booking-section {
    margin-bottom: 23px;
  }

  .booking-trip-card {
    padding: 14px;
  }

  .booking-trip-card__icon {
    width: 42px;
    height: 42px;

    border-radius: 11px;
  }

  .booking-trip-card__title {
    font-size: 13px;
  }

  .booking-trip-card__meta {
    gap: 8px;
  }

  .booking-guest {
    min-height: 70px;

    padding: 12px;
  }

  .booking-guest__icon {
    width: 36px;
    height: 36px;
  }

  .booking-counter {
    gap: 7px;
  }

  .booking-counter__button {
    width: 30px;
    height: 30px;
  }

  .booking-summary__top {
    align-items: flex-start;

    padding: 15px;
  }

  .booking-summary__badge {
    display: none;
  }

  .booking-summary__tour {
    padding: 13px 15px;
  }

  .booking-summary__rows {
    padding: 6px 15px;
  }

  .booking-summary__row {
    min-height: 37px;
  }

  .booking-summary__total {
    padding: 15px;
  }

  .booking-summary__total > strong {
    font-size: 17px;
  }

  .booking-payment-panel {
    padding: 14px;
  }
}
