/* Next-available Calendly slot picker. Mounted inside the LP results page
   by /shared/next-slots.js. Hidden until slots resolve so the module never
   reserves layout space on failure. */

.ns-module {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #f0faf6;
  border: 1px solid #d8ece3;
  border-radius: 14px;
  font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
}

.ns-heading {
  font-family: var(--font-serif, 'Lora', serif);
  font-size: 18px;
  line-height: 1.3;
  color: #1a2e2d;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.ns-sub {
  font-size: 13px;
  color: #5f5e5a;
  margin-bottom: 1rem;
}

.ns-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5f5e5a;
  padding: 0.5rem 0;
}

.ns-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d7a5e;
  animation: ns-pulse 1.2s ease-in-out infinite;
}

@keyframes ns-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.ns-day-group {
  margin-bottom: 0.75rem;
}

.ns-day-label {
  font-size: 12px;
  color: #0F6E56;
  font-weight: 500;
  margin-bottom: 6px;
}

.ns-day-label.is-first { font-weight: 600; }

.ns-time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-slot {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 8px;
  background: #ffffff;
  border: 1px solid #2d7a5e;
  border-radius: 100px;
  color: #1D5C5A;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  white-space: nowrap;
}

.ns-slot:hover,
.ns-slot:focus-visible {
  background: #2d7a5e;
  color: #fff;
  outline: none;
}

.ns-slot:active { transform: scale(0.97); }

.ns-fallback {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 13px;
  color: #1D5C5A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ns-fallback:hover { color: #0F6E56; }

.ns-message {
  font-size: 13px;
  color: #5f5e5a;
  margin: 0.25rem 0 0.5rem;
}

@media (max-width: 480px) {
  .ns-module   { padding: 1rem 0.75rem 0.75rem; margin: 1.25rem 0 1.75rem; }
  .ns-heading  { font-size: 17px; }
  .ns-time-row { gap: 6px; }
  .ns-slot     { padding: 9px 6px; font-size: 14px; }
}
