/* Booking "How to?" — side tab + modal (UbiqCure marketing pages) */
.ubiq-booking-help {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  font-family: "Poppins", sans-serif;
}

.ubiq-booking-help__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  min-width: 2.75rem;
  min-height: 8.5rem;
  border: none;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--blue, #1b64ff) 0%, var(--purple, #af20ea) 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: -4px 4px 18px rgba(27, 100, 255, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ubiq-booking-help__tab:hover,
.ubiq-booking-help__tab:focus-visible {
  box-shadow: -6px 6px 22px rgba(27, 100, 255, 0.38);
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.ubiq-booking-help__tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.ubiq-booking-help__tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
}

.ubiq-booking-help__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1045;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ubiq-booking-help__backdrop[hidden] {
  display: none !important;
}

.ubiq-booking-help__backdrop.is-open {
  display: flex;
}

.ubiq-booking-help__dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 640px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line, #e7edfb);
  box-shadow: 0 20px 48px rgba(24, 54, 120, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ubiq-booking-help__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.65rem;
  border-bottom: 1px solid var(--line, #e7edfb);
}

.ubiq-booking-help__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text, #111827);
}

.ubiq-booking-help__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #667085);
  line-height: 1.4;
}

.ubiq-booking-help__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line, #e7edfb);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted, #667085);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ubiq-booking-help__close:hover {
  background: #f1f5f9;
  color: var(--text, #111827);
}

.ubiq-booking-help__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line, #e7edfb);
  background: #fafbff;
}

.ubiq-booking-help__tab-btn {
  border: 1px solid var(--line, #e7edfb);
  background: #fff;
  color: var(--muted, #667085);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.ubiq-booking-help__tab-btn.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, var(--blue, #1b64ff), var(--purple, #af20ea));
  color: #fff;
}

.ubiq-booking-help__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.15rem;
}

.ubiq-booking-help__panel {
  display: none;
}

.ubiq-booking-help__panel.is-active {
  display: block;
}

.ubiq-booking-help__step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #eef2f8;
}

.ubiq-booking-help__step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue, #1b64ff), var(--purple, #af20ea));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ubiq-booking-help__step-body h4 {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #111827);
}

.ubiq-booking-help__step-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted, #667085);
  line-height: 1.45;
}

.ubiq-booking-help__note {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 0.78rem;
  color: #1e40af;
  line-height: 1.45;
}

.ubiq-booking-help__note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.ubiq-booking-help__issues li {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #667085);
  line-height: 1.45;
}

.ubiq-booking-help__foot {
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid var(--line, #e7edfb);
  text-align: right;
}

.ubiq-booking-help__foot-btn {
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, var(--blue, #1b64ff), var(--purple, #af20ea));
  color: #fff;
}

@media (max-width: 576px) {
  .ubiq-booking-help {
    top: auto;
    bottom: 5.5rem;
    transform: none;
  }

  .ubiq-booking-help__tab {
    min-height: auto;
    min-width: auto;
    flex-direction: row;
    padding: 0.55rem 0.75rem;
    border-radius: 12px 0 0 12px;
  }

  .ubiq-booking-help__tab-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.7rem;
  }

  .ubiq-booking-help__tabs {
    gap: 0.25rem;
  }

  .ubiq-booking-help__tab-btn {
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }
}
