/* ============================================
   BOOKING POPUP – Premium Hotel Reservation Modal
   ============================================ */

/* Overlay */
.booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 100000;
  width: 94%;
  max-width: 580px;
  max-height: 92vh;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-modal.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.booking-modal__header {
  background: linear-gradient(135deg, #122223 0%, #1a3435 50%, #122223 100%);
  padding: 28px 36px 24px;
  position: relative;
  overflow: hidden;
}

.booking-modal__header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(193, 155, 118, 0.08);
}

.booking-modal__header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(193, 155, 118, 0.06);
}

.booking-modal__header-content {
  position: relative;
  z-index: 1;
}

.booking-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(193, 155, 118, 0.18);
  border: 1px solid rgba(193, 155, 118, 0.3);
  color: #c19b76;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-family: 'Jost', sans-serif;
}

.booking-modal__title {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.booking-modal__room-info {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.booking-modal__room-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-family: 'Jost', sans-serif;
}

.booking-modal__room-detail svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.booking-modal__price {
  color: #c19b76;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  margin-top: 10px;
}

.booking-modal__price span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* Close Button */
.booking-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.booking-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.booking-modal__close svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Modal Body */
.booking-modal__body {
  padding: 30px 36px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #c19b76 transparent;
}

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

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

.booking-modal__body::-webkit-scrollbar-thumb {
  background: #c19b76;
  border-radius: 10px;
}

/* Step Indicator */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.booking-step-dot {
  width: 32px;
  height: 4px;
  border-radius: 100px;
  background: #e5e0db;
  transition: all 0.4s ease;
}

.booking-step-dot.is-active {
  background: #c19b76;
  width: 48px;
}

.booking-step-dot.is-completed {
  background: #122223;
}

/* Step Panels */
.booking-step-panel {
  display: none;
  animation: bookingFadeIn 0.4s ease forwards;
}

.booking-step-panel.is-active {
  display: block;
}

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

/* Section Title */
.booking-section-title {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #c19b76;
  margin-bottom: 18px;
}

/* Form Groups */
.booking-form-group {
  margin-bottom: 18px;
}

.booking-form-group label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.booking-form-group label .required {
  color: #c19b76;
}

.booking-form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5e0db;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #122223;
  background: #faf9f7;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.booking-form-input:focus {
  border-color: #c19b76;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(193, 155, 118, 0.1);
}

.booking-form-input::placeholder {
  color: #aaa;
}

/* Two column row */
.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Textarea */
textarea.booking-form-input {
  resize: vertical;
  min-height: 80px;
}

/* Select styling */
select.booking-form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ID Type */
.booking-id-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Modal Footer */
.booking-modal__footer {
  padding: 16px 36px 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.booking-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.booking-btn--primary {
  flex: 1;
  background: linear-gradient(135deg, #122223 0%, #1a3435 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.booking-btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(193, 155, 118, 0.15), transparent);
  transition: left 0.5s ease;
}

.booking-btn--primary:hover::after {
  left: 100%;
}

.booking-btn--primary:hover {
  box-shadow: 0 8px 24px rgba(18, 34, 35, 0.3);
  transform: translateY(-1px);
}

.booking-btn--secondary {
  background: transparent;
  color: #555;
  border: 1.5px solid #e5e0db;
}

.booking-btn--secondary:hover {
  border-color: #c19b76;
  color: #c19b76;
}

/* Success State */
.booking-success {
  text-align: center;
  padding: 30px 10px;
}

.booking-success__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #122223, #1a3435);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: bookingSuccessPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bookingSuccessPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.booking-success__icon svg {
  width: 36px;
  height: 36px;
  color: #c19b76;
}

.booking-success__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: #122223;
  margin-bottom: 10px;
}

.booking-success__text {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #777;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

.booking-success__detail {
  background: #faf9f7;
  border: 1px solid #e5e0db;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  text-align: left;
}

.booking-success__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
}

.booking-success__detail-row:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.booking-success__detail-label {
  color: #888;
}

.booking-success__detail-value {
  color: #122223;
  font-weight: 600;
}

/* Phone Code Group */
.booking-phone-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.booking-phone-code {
  text-align: center;
}

/* Error state */
.booking-form-input.is-error {
  border-color: #e74c3c;
  background: #fef6f5;
}

.booking-form-error {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  font-family: 'Jost', sans-serif;
  display: none;
}

.booking-form-input.is-error + .booking-form-error {
  display: block;
}

/* Terms checkbox */
.booking-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.booking-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c19b76;
  margin-top: 1px;
  cursor: pointer;
  flex-shrink: 0;
}

.booking-terms label {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
}

/* ── Room Selector Cards ── */
.booking-room-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-room-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid #e5e0db;
  border-radius: 12px;
  background: #faf9f7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.booking-room-card:hover {
  border-color: #c19b76;
  background: #fff;
  box-shadow: 0 4px 16px rgba(193, 155, 118, 0.1);
}

.booking-room-card.is-selected {
  border-color: #122223;
  background: #fff;
  box-shadow: 0 4px 20px rgba(18, 34, 35, 0.12);
}

.booking-room-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.booking-room-card__inner {
  flex: 1;
  min-width: 0;
}

.booking-room-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.booking-room-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #122223;
  line-height: 1.2;
}

.booking-room-card__price {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #c19b76;
  white-space: nowrap;
}

.booking-room-card__price span {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}

.booking-room-card__details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  color: #888;
  flex-wrap: wrap;
}

.booking-room-card__sep {
  color: #ccc;
}

.booking-room-card__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.booking-room-card__check svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.booking-room-card.is-selected .booking-room-card__check {
  background: #122223;
  border-color: #122223;
}

.booking-room-card.is-selected .booking-room-card__check svg {
  opacity: 1;
}

/* Body overflow lock */
body.booking-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 640px) {
  .booking-modal {
    width: 98%;
    max-height: 96vh;
    border-radius: 16px;
  }

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

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

  .booking-modal__body {
    padding: 24px 24px 16px;
  }

  .booking-modal__footer {
    padding: 14px 24px 22px;
  }

  .booking-form-row,
  .booking-id-row {
    grid-template-columns: 1fr;
  }

  .booking-modal__room-info {
    gap: 12px;
  }

  .booking-modal__close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .booking-room-card {
    padding: 14px 16px;
  }

  .booking-room-card__name {
    font-size: 17px;
  }

  .booking-room-card__price {
    font-size: 14px;
  }

  .booking-room-card__details {
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .booking-modal__header {
    padding: 18px 18px 16px;
  }

  .booking-modal__body {
    padding: 20px 18px 12px;
  }

  .booking-modal__footer {
    padding: 12px 18px 18px;
  }
}
