/* =========================================================
   BOOKING MODAL — ARENA UI (FINAL)
   Mobile-first · Premium · Zero glitch
========================================================= */

/* =================== ROOT =================== */

.booking-modal{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal.hidden{
  display: none;
}

/* =================== OVERLAY =================== */

.booking-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.88);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

/* =================== BOX =================== */

.booking-modal-box{
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  max-height: 90dvh;
  overflow-y: auto;

  background: linear-gradient(180deg,#020617,#0b1020);
  border-radius: 1.25rem;
  border: 1px solid rgba(56,189,248,.45);

  padding: 1.4rem 1.4rem 1.5rem;

  box-shadow:
    0 30px 90px rgba(0,0,0,.85),
    0 0 40px rgba(56,189,248,.45);
}

/* =================== CLOSE =================== */

.booking-modal-close{
  position: absolute;
  top: .55rem;
  right: .55rem;

  width: 36px;
  height: 36px;
  border-radius: 999px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);

  color: #e5e7eb;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  transition: background .2s ease, transform .2s ease;
}

.booking-modal-close:hover{
  background: rgba(255,255,255,.12);
  transform: scale(1.05);
}

/* =================== ICON =================== */

.booking-modal-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto .6rem;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-size: 26px;
  font-weight: 900;

  color: #22c55e;
  background: rgba(34,197,94,.18);
  box-shadow: 0 0 28px rgba(34,197,94,.6);
}

/* ===== ERROR MODE — SOLUTION B ===== */

.booking-modal-icon.error{
  color: transparent;
  background:
    radial-gradient(circle at center,
      rgba(239,68,68,.35),
      rgba(239,68,68,.15)
    );
  box-shadow: 0 0 32px rgba(239,68,68,.85);
}

.booking-modal-icon.error::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fecaca;
  box-shadow: 0 0 14px rgba(239,68,68,1);
}

/* =================== TEXT =================== */

.booking-modal-title{
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .02em;
}

.booking-modal-sub{
  text-align: center;
  font-size: .85rem;
  color: #9ca3af;
  margin-top: .15rem;
}

.booking-modal-divider{
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56,189,248,.6),
    transparent
  );
}

.booking-modal-message{
  font-size: .95rem;
  color: #e5e7eb;
  line-height: 1.5;
}

/* =================== DETAILS =================== */

.booking-modal-details{
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .2rem;
}

.booking-modal-row{
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .9rem;
}

.booking-modal-label{
  color: #9ca3af;
}

.booking-modal-value{
  font-weight: 700;
  color: #e5e7eb;
  text-align: right;
}

.booking-modal-total{
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px dashed rgba(148,163,184,.35);

  text-align: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #22c55e;
}

/* =================== CTA =================== */

.booking-modal-cta{
  margin-top: 1.3rem;
  width: 100%;
  border-radius: 999px;

  padding: .95rem 1.2rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;

  background: linear-gradient(135deg,#22c1c3,#0ea5e9);
  color: #020617;
  border: 1px solid rgba(56,189,248,.9);

  box-shadow:
    0 0 22px rgba(56,189,248,.6),
    0 0 40px rgba(45,212,191,.4);

  cursor: pointer;
}

/* =================== MOBILE TWEAK =================== */

@media (max-width: 420px){
  .booking-modal-box{
    padding: 1.2rem 1.1rem 1.3rem;
  }
}
