/* ============================================
   Online Reception – Floating Action Button
   ============================================ */

.reception-fab-container {
  position: fixed;
  bottom: 24px;
  z-index: 10000;
}

.reception-fab-container--right {
  right: 24px;
}

.reception-fab-container--left {
  left: 24px;
}

.reception-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 28px;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  white-space: nowrap;
}

.reception-fab:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.reception-fab--open {
  border-radius: 50%;
  padding: 12px;
  width: 52px;
  height: 52px;
  justify-content: center;
}

.reception-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.reception-fab__text {
  line-height: 1;
}

/* Pulse animation */
.reception-fab--pulse {
  animation: reception-pulse 2s infinite;
}

@keyframes reception-pulse {
  0% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(26, 115, 232, 0.15); }
  100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
}

/* ============================================
   Quick Actions Popup
   ============================================ */

.reception-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: transparent;
}

.reception-quickactions {
  position: fixed;
  bottom: 88px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: reception-quickactions-in 0.25s ease-out;
}

.reception-quickactions--right {
  right: 24px;
  align-items: flex-end;
}

.reception-quickactions--left {
  left: 24px;
  align-items: flex-start;
}

.reception-quickaction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reception-quickaction:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.reception-quickaction__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 1rem;
}

.reception-quickaction__label {
  line-height: 1.2;
}

.reception-quickaction--more {
  color: #666;
}

@keyframes reception-quickactions-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Slide-in Panel
   ============================================ */

.reception-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.4);
  animation: reception-fade-in 0.25s ease;
}

.reception-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10001;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.reception-panel--open {
  right: 0;
}

.reception-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: #fff;
  min-height: 56px;
  flex-shrink: 0;
}

.reception-panel__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.reception-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reception-panel__back,
.reception-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.reception-panel__back:hover,
.reception-panel__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.reception-panel__header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reception-panel__presence {
  display: flex;
  align-items: center;
  gap: 2px;
}

.reception-panel__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.reception-panel__avatar--more {
  font-size: 0.625rem;
  background: rgba(255, 255, 255, 0.15);
}

.reception-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* ============================================
   Panel Menu (full action list)
   ============================================ */

.reception-menu {
  display: flex;
  flex-direction: column;
}

.reception-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: none;
  background: #fff;
  color: #333;
  font-size: 0.925rem;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.reception-menu__item:hover {
  background: #f8f9fa;
}

.reception-menu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.reception-menu__label {
  flex: 1;
  font-weight: 500;
}

.reception-menu__arrow {
  color: #aaa;
  font-size: 1rem;
}

/* Panel placeholder (Phase 1) */

.reception-panel__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
  --accent-color: #1a73e8;
}

.reception-panel__content {
  padding: 16px;
}


/* ============================================
   Consent Overlay
   ============================================ */

.reception-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.5);
  animation: reception-fade-in 0.2s ease;
}

.reception-consent {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 10003;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 24px;
  animation: reception-quickactions-in 0.3s ease-out;
}

.reception-consent__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.reception-consent__header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.reception-consent__body {
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555;
}

.reception-consent__body a {
  color: inherit;
  text-decoration: underline;
}

.reception-consent__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.reception-consent__btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.reception-consent__btn:hover {
  opacity: 0.85;
}

.reception-consent__btn--decline {
  background: #f0f0f0;
  color: #555;
}

.reception-consent__btn--accept {
  color: #fff;
}

/* ============================================
   Panel-embedded form overrides
   ============================================ */

/* Container: remove max-width and reduce padding */
.reception-panel__content .container,
.reception-panel__content .container-fluid {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

/* Hide redundant SectionWithIcon top section (panel header already shows title) */
.reception-panel__content .section-title-top {
  display: none;
}

/* Force all columns to full width in the narrow panel */
.reception-panel__content .row > [class*="col-md-"],
.reception-panel__content .row > [class*="col-lg-"],
.reception-panel__content .row > [class*="col-xl-"] {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

/* Reduce heading sizes inside the panel */
.reception-panel__content h3 {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.reception-panel__content h4 {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Callout: tighten up */
.reception-panel__content .callout {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

/* Alerts: tighten up */
.reception-panel__content .alert {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

/* MemoEdit (textarea): limit height */
.reception-panel__content textarea {
  max-height: 150px;
  resize: vertical;
}

/* Input group (Addons): allow wrapping in narrow panel */
.reception-panel__content .input-group {
  flex-wrap: wrap;
}

.reception-panel__content .input-group > .input-group-text,
.reception-panel__content .input-group > .form-control,
.reception-panel__content .input-group > .btn {
  flex: 1 1 auto;
}

/* Steps wizard: make compact */
.reception-panel__content .steps-content {
  padding: 0.5rem 0;
}

.reception-panel__content .step-marker {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.reception-panel__content .step-label,
.reception-panel__content .step-text {
  font-size: 0.7rem;
}

.reception-panel__content .step-connector {
  min-width: 20px;
  max-width: 40px;
}

/* Reduce general paragraph spacing */
.reception-panel__content p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* List group: compact */
.reception-panel__content .list-group-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

/* Buttons: ensure they fit */
.reception-panel__content .btn {
  font-size: 0.8125rem;
  white-space: normal;
}

/* AutoEditForm grid: force single column in panel */
.reception-panel__content .form-row-compact {
  grid-template-columns: 1fr;
}

/* ============================================
   Auth Gate (login required prompt)
   ============================================ */

.reception-auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 4px;
}

.reception-auth-gate h4 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
}

.reception-auth-gate > p {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.reception-auth-gate__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.reception-auth-gate__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.reception-auth-gate__btn--primary {
  color: #fff;
  margin-bottom: 8px;
}

.reception-auth-gate__btn--outline {
  background: transparent;
  border: 2px solid;
}

.reception-auth-gate__hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
}

/* ============================================
   Registration Nudge
   ============================================ */

.reception-nudge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1.5rem 0 0.5rem;
  padding: 12px 16px;
  background: #f0f7ff;
  border-radius: 10px;
  border-left: 3px solid;
}

.reception-nudge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.reception-nudge__text strong {
  font-size: 0.875rem;
  color: #333;
}

.reception-nudge__text a {
  font-weight: 600;
}

/* ============================================
   Animations & Responsive
   ============================================ */

@keyframes reception-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .reception-panel {
    width: 100vw;
  }

  .reception-fab-container {
    bottom: 16px;
  }

  .reception-fab-container--right {
    right: 16px;
  }

  .reception-fab-container--left {
    left: 16px;
  }

  .reception-quickactions {
    bottom: 80px;
  }

  .reception-quickactions--right {
    right: 16px;
  }

  .reception-quickactions--left {
    left: 16px;
  }

  .reception-consent {
    right: 16px;
    bottom: 80px;
    width: calc(100vw - 32px);
  }
}
