/* ═══════════════════════════════════════════ */
/* Booking Modal Styles                       */
/* ═══════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-container {
  background: #FAF7F2;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(44, 36, 24, 0.2);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-overflow-scrolling: touch;
}

/* Full-width modal on small mobile screens */
@media (max-width: 480px) {
  .modal-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
}

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

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(44, 36, 24, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(44, 36, 24, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(44, 36, 24, 0.1);
  transform: scale(1.05);
}
.modal-close:focus-visible {
  outline: 2px solid #D4773B;
  outline-offset: 2px;
}
.modal-close:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 24px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  gap: 6px;
  padding: 0 24px 16px;
}
.step-dot {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  transition: background-color 0.3s;
}

/* Form inputs */
.modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(44, 36, 24, 0.1);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #2C2418;
  background: #FFFFFF;
  transition: border-color 0.3s;
  outline: none;
}
.modal-input:focus {
  border-color: #D4773B;
}
.modal-input::placeholder {
  color: #6B6356;
  opacity: 0.6;
}

/* OTP inputs */
.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid rgba(44, 36, 24, 0.1);
  border-radius: 12px;
  color: #2C2418;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.otp-input:focus {
  border-color: #D4773B;
  box-shadow: 0 0 0 3px rgba(212, 119, 59, 0.1);
}
@media (min-width: 400px) {
  .otp-input {
    width: 52px;
    height: 58px;
    font-size: 24px;
  }
}

/* Package cards */
.package-card {
  padding: 20px;
  border: 1.5px solid rgba(44, 36, 24, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s,
              background-color 0.3s,
              box-shadow 0.3s;
  background: #FFFFFF;
}
.package-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 119, 59, 0.3);
  box-shadow: 0 8px 24px rgba(44, 36, 24, 0.06);
}
.package-card:focus-visible {
  outline: 2px solid #D4773B;
  outline-offset: 2px;
}
.package-card.selected,
.package-card[aria-selected="true"] {
  border-color: #D4773B;
  background: rgba(212, 119, 59, 0.04);
  box-shadow: 0 0 0 2px #D4773B, 0 8px 24px rgba(44, 36, 24, 0.06);
}

/* Modal buttons */
.modal-btn {
  width: 100%;
  padding: 14px 24px;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.3s,
              box-shadow 0.3s;
}
.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.modal-btn:focus-visible {
  outline: 2px solid #D4773B;
  outline-offset: 3px;
}
.modal-btn-primary {
  background: #D4773B;
  color: #FFFFFF;
}
.modal-btn-primary:hover:not(:disabled) {
  background: #B8622E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 119, 59, 0.3);
}

.modal-btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(44, 36, 24, 0.15);
  color: #2C2418;
}
.modal-btn-secondary:hover:not(:disabled) {
  background: rgba(44, 36, 24, 0.04);
}

.error-text {
  color: #E53935;
  font-size: 13px;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
}

/* Success animation */
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B6B3A, #4CAF50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
