/* ── Booking Widget Container ── */
#booking-widget {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  position: relative;
}

/* ── Header / Navigation ── */
.nosappt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.nosappt-month-title,
.nosappt-slot-title,
.nosappt-form-title {
  font-size: 18px;
  font-weight: 600;
}

.nosappt-nav,
.nosappt-back {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  color: #334155;
  transition: background 0.15s;
}

.nosappt-nav:hover,
.nosappt-back:hover {
  background: #f1f5f9;
}

/* ── Calendar Grid ── */
.nosappt-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.nosappt-dow-cell {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 0;
  text-transform: uppercase;
}

.nosappt-day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 14px;
  color: #94a3b8;
  background: none;
  border: none;
  padding: 0;
}

.nosappt-day-cell.nosappt-today {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.nosappt-day-cell.nosappt-available {
  color: #1e293b;
  font-weight: 700;
  cursor: pointer;
  background: #eff6ff;
  transition: background 0.15s, color 0.15s;
}

.nosappt-day-cell.nosappt-available:hover {
  background: #3b82f6;
  color: #fff;
}

.nosappt-empty {
  visibility: hidden;
}

/* ── Slots Grid ── */
.nosappt-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.nosappt-slot-btn {
  padding: 10px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nosappt-slot-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.nosappt-empty-msg {
  text-align: center;
  color: #64748b;
  padding: 24px 0;
}

/* ── Booking Form ── */
.nosappt-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

.nosappt-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.nosappt-meeting-types {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.nosappt-radio {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.nosappt-radio input[type="radio"] {
  display: inline-block;
  width: auto;
  margin: 0;
  cursor: pointer;
}

.nosappt-form input,
.nosappt-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.nosappt-form input:focus,
.nosappt-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.nosappt-req {
  color: #ef4444;
}

.nosappt-submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.nosappt-submit-btn:hover {
  background: #2563eb;
}

/* ── Confirmation ── */
.nosappt-confirmation {
  text-align: center;
  padding: 32px 0;
}

.nosappt-check {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 32px;
  margin: 0 auto 16px;
}

.nosappt-confirmation h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.nosappt-confirmation p {
  color: #475569;
  font-size: 15px;
  margin: 0 0 20px;
}

.nosappt-confirmation .nosappt-submit-btn {
  max-width: 280px;
  margin: 0 auto;
}

/* ── Loading Spinner ── */
.nosappt-loading {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.nosappt-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: nosappt-spin 0.6s linear infinite;
}

@keyframes nosappt-spin {
  to { transform: rotate(360deg); }
}

/* ── Error ── */
.nosappt-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

/* ── Contact Tabs ── */
.contact-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e4e4e7;
}

.contact-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.contact-tab:hover { color: #18181b; }

.contact-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.contact-tab-panel {
  display: none;
}

.contact-tab-panel.active {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  #booking-widget {
    padding: 1.25rem;
  }

  .nosappt-meeting-types {
    flex-direction: column;
    gap: 8px;
  }
}
