/* ═══════════════════════════════════════════
   BOOKING MODAL — Services Page
   ═══════════════════════════════════════════ */

/* Overlay */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.booking-modal {
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 102, 255, 0.1);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal-overlay.active .booking-modal {
  transform: translateY(0) scale(1);
}

/* Scrollbar */
.booking-modal::-webkit-scrollbar { width: 4px; }
.booking-modal::-webkit-scrollbar-track { background: transparent; }
.booking-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Header */
.booking-modal-header {
  padding: 24px 28px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.booking-modal-header-info {
  flex: 1;
}

.booking-modal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00d4ff;
  font-weight: 600;
  margin-bottom: 6px;
}

.booking-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.booking-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #8892a8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Body */
.booking-modal-body {
  padding: 24px 28px 28px;
}

.bm-form-group {
  margin-bottom: 18px;
}

.bm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8892a8;
  margin-bottom: 6px;
}

.bm-form-label .required {
  color: #ff3d57;
}

.bm-form-input,
.bm-form-select,
.bm-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e8f1;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s;
}

.bm-form-input:focus,
.bm-form-select:focus,
.bm-form-textarea:focus {
  border-color: rgba(0, 102, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.bm-form-input::placeholder,
.bm-form-textarea::placeholder {
  color: #555e73;
}

.bm-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.bm-form-select option {
  background: #111827;
  color: #e4e8f1;
}

.bm-form-textarea {
  resize: vertical;
  min-height: 80px;
}

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

/* Submit */
.bm-form-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0055dd, #0077ff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.bm-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 102, 255, 0.4);
}

.bm-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success State */
.booking-modal-success {
  text-align: center;
  padding: 40px 28px;
  display: none;
}

.booking-modal-success.show {
  display: block;
  animation: bm-fade-in 0.4s ease;
}

.bm-success-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.bm-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #00c853;
  margin-bottom: 8px;
}

.bm-success-text {
  font-size: 14px;
  color: #8892a8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.bm-success-close {
  padding: 12px 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #e4e8f1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.bm-success-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

@keyframes bm-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 520px) {
  .booking-modal {
    border-radius: 16px;
  }
  .booking-modal-header,
  .booking-modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .bm-form-row {
    grid-template-columns: 1fr;
  }
}
