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

.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.demo-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.demo-modal-body {
  display: flex;
  flex: 1;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .demo-modal-body {
    flex-direction: column;
  }
}

/* Left Sidebar Summary */
.demo-modal-sidebar {
  width: 320px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem 1.75rem;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .demo-modal-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
  }
}

.demo-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.demo-sidebar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.demo-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.demo-sidebar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.demo-sidebar-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.demo-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #334155;
  font-weight: 500;
}

.demo-feature-item svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Right Content Area */
.demo-modal-main {
  flex: 1;
  padding: 2rem 2.25rem;
  position: relative;
  overflow-y: auto;
}

.demo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  z-index: 10;
}

.demo-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.demo-step-heading {
  margin-bottom: 1.25rem;
}

.demo-step-heading h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.demo-step-heading p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

/* Date Selector Pills */
.demo-date-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.demo-date-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-date-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.demo-date-btn.active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #10b981;
}

.demo-date-btn .date-day {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.demo-date-btn.active .date-day {
  color: #059669;
}

.demo-date-btn .date-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.demo-date-btn.active .date-num {
  color: #047857;
}

/* Slot Cards */
.demo-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .demo-slots-grid {
    grid-template-columns: 1fr;
  }
}

.demo-slot-card {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-slot-card:hover:not(.unavailable) {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-1px);
}

.demo-slot-card.active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px #10b981;
}

.demo-slot-time {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.demo-slot-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.demo-slot-card.unavailable {
  background: #f8fafc;
  border-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.55;
}

.demo-slot-card.unavailable .demo-slot-time {
  color: #94a3b8;
  text-decoration: line-through;
}

.demo-slot-card.unavailable .demo-slot-status {
  color: #94a3b8;
}

/* Form Fields */
.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 540px) {
  .demo-form-grid {
    grid-template-columns: 1fr;
  }
}

.demo-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-form-group.full {
  grid-column: 1 / -1;
}

.demo-form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.demo-form-group input,
.demo-form-group select,
.demo-form-group textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
  transition: all 0.2s;
}

.demo-form-group input:focus,
.demo-form-group select:focus,
.demo-form-group textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.demo-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.demo-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.demo-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success View */
.demo-success-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.demo-success-icon {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.demo-success-icon svg {
  width: 36px;
  height: 36px;
}

.demo-success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.demo-success-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 1.5rem auto;
}

.demo-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.demo-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.8125rem;
}

.demo-detail-row:last-child {
  border-bottom: none;
}

.demo-detail-label {
  color: #64748b;
  font-weight: 500;
}

.demo-detail-val {
  color: #0f172a;
  font-weight: 700;
}

.demo-meet-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.demo-meet-box a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: underline;
}

/* Spinner */
.demo-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: demoSpin 0.7s linear infinite;
}

@keyframes demoSpin {
  to { transform: rotate(360deg); }
}
