/* ==========================================================================
   SLV PROPERTIES — CAL.COM DARK THEME SITE VISIT SCHEDULER MODAL
   ========================================================================== */

.slv-cal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slv-cal-backdrop.open {
  display: flex !important;
  opacity: 1;
}

.slv-cal-dialog {
  background: #15181E;
  border: 1px solid #262B36;
  border-radius: 20px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
}

.slv-cal-backdrop.open .slv-cal-dialog {
  transform: translateY(0) scale(1);
}

.slv-cal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #1C2028;
  border: 1px solid #262B36;
  color: #8F9CAE;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 10;
}
.slv-cal-close:hover {
  background: #D96B27;
  color: #FFFFFF;
  border-color: #D96B27;
}

/* 3-Column Layout inside Modal */
.slv-cal-layout {
  display: grid;
  grid-template-columns: 260px 1fr 240px;
  min-height: 480px;
}

.slv-cal-side {
  padding: 28px 22px;
  border-right: 1px solid #262B36;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slv-cal-center {
  padding: 28px 24px;
  border-right: 1px solid #262B36;
  display: flex;
  flex-direction: column;
}

.slv-cal-right {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

/* Days Grid */
.slv-d-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.slv-d-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: #8F9CAE;
  background: #1C2028;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}
.slv-d-cell:hover:not(.disabled) {
  background: #262B36;
  color: #FFFFFF;
  border-color: rgba(217, 107, 39, 0.4);
}
.slv-d-cell.disabled {
  background: transparent;
  color: #2D333F;
  cursor: not-allowed;
}
.slv-d-cell.selected {
  background: #FFFFFF !important;
  color: #0D0F12 !important;
  font-weight: 700;
}
.slv-d-cell.today::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #D96B27;
  border-radius: 50%;
  position: absolute;
  top: 5px;
}

/* Slots */
.slv-slot-btn {
  background: #1C2028;
  border: 1px solid #262B36;
  color: #FFFFFF;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slv-slot-btn:hover:not(.disabled):not(:disabled) {
  border-color: #D96B27;
  background: rgba(217, 107, 39, 0.12);
  color: #D96B27;
}
.slv-slot-btn.selected {
  background: #D96B27;
  border-color: #D96B27;
  color: #FFFFFF;
}
.slv-slot-btn.disabled,
.slv-slot-btn:disabled {
  opacity: 0.45;
  background: rgba(20, 23, 29, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
  cursor: not-allowed;
  pointer-events: none;
}
.slv-modal-slot-time {
  font-weight: 700;
  font-size: 0.88rem;
  color: inherit;
}
.slv-modal-slot-avail {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.slv-modal-slot-avail.avail-2 {
  color: #4ADE80;
}
.slv-modal-slot-avail.avail-1 {
  color: #FBBF24;
}
.slv-modal-slot-avail.booked {
  color: #F87171;
}
.slv-slot-btn.selected .slv-modal-slot-avail {
  color: #FFFFFF !important;
}

@media (max-width: 850px) {
  .slv-modal-card {
    max-height: 90vh;
    border-radius: 16px;
    width: 95vw;
  }
  .slv-cal-layout { grid-template-columns: 1fr; }
  .slv-cal-side, .slv-cal-center { border-right: none; border-bottom: 1px solid #262B36; }
  .slv-cal-side, .slv-cal-center, .slv-cal-slots-col { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .slv-modal-overlay {
    padding: 0;
    align-items: flex-end; /* Bottom sheet on mobile */
  }
  .slv-modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    animation: slideUpModal 0.25s ease;
  }
  @keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .slv-modal-days-grid {
    gap: 4px;
  }
  .slv-modal-day {
    font-size: 0.85rem;
    border-radius: 8px;
    min-height: 40px;
  }
  .slv-slot-btn {
    min-height: 44px;
    padding: 12px 14px;
  }
  .slv-modal-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    min-height: 46px;
  }
  .slv-modal-btn-confirm {
    min-height: 48px;
    font-size: 0.92rem;
  }
}

