/* ============================================
   Demo Booking Modal Styles
   ============================================ */

/* Modal Backdrop */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.demo-modal {
  background: #fff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.3s ease;
}

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

/* Header */
.demo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(to bottom, var(--color-surface), var(--color-background));
}

.demo-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.demo-modal-header p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.demo-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.demo-modal-close:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.demo-modal-close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Body */
.demo-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.demo-modal-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1A202C;
  margin: 0 0 12px 0;
}

/* Calendly Wrapper */
.calendly-wrapper {
  margin-top: 16px;
  min-height: 700px;
  border-radius: 8px;
  overflow: hidden;
}

.calendly-inline-widget {
  width: 100%;
  height: 700px;
}

/* Divider */
.demo-divider {
  display: flex;
  align-items: center;
  margin: 32px 0;
}

.demo-divider::before,
.demo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.demo-divider span {
  margin: 0 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* WhatsApp Section */
.whatsapp-section {
  text-align: center;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.whatsapp-section h3 {
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.whatsapp-section p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

.whatsapp-btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 640px) {
  .demo-modal {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .demo-modal-header {
    padding: 16px 20px;
  }

  .demo-modal-header h2 {
    font-size: 1.25rem;
  }

  .demo-modal-body {
    padding: 20px;
  }

  .calendly-wrapper {
    min-height: 700px;
  }

  .calendly-inline-widget {
    height: 700px;
  }

  .whatsapp-section {
    padding: 16px;
  }

  .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}
