/* Contact quick guide — floating panel */
.chat-guide-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--al-adaam);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.28),
    0 14px 40px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.chat-guide-launcher:hover {
  background: var(--al-adaam-deep);
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 18px 48px rgba(0, 0, 0, 0.26);
}

.chat-guide-launcher:focus-visible {
  outline: 2px solid var(--skyline);
  outline-offset: 3px;
}

.chat-guide-launcher svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.chat-guide {
  position: fixed;
  right: 1.25rem;
  bottom: 6.25rem;
  z-index: 201;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 7rem));
  background: var(--white);
  border: 1px solid rgba(162, 148, 117, 0.45);
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.16),
    0 24px 56px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.chat-guide[hidden] {
  display: none !important;
}

.chat-guide__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--header-light);
  border-bottom: 1px solid rgba(162, 148, 117, 0.3);
}

.chat-guide__title {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--al-adaam);
}

.chat-guide__subtitle {
  margin: 0.15rem 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.chat-guide__header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-guide__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--skyline);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.chat-guide__icon-btn:hover {
  background: rgba(var(--skyline-rgb), 0.08);
}

.chat-guide__icon-btn:focus-visible {
  outline: 2px solid var(--skyline);
  outline-offset: 2px;
}

.chat-guide__icon-btn svg {
  width: 18px;
  height: 18px;
}

.chat-guide__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-guide__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.chat-guide__bubble {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  scroll-margin-bottom: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .chat-guide__bubble {
    animation: chat-bubble-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .chat-guide__choice {
    animation: chat-choice-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .chat-guide__footer:not([hidden]) {
    animation: chat-footer-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes chat-bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chat-choice-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chat-footer-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-guide__bubble--bot {
  align-self: flex-start;
  color: var(--navy);
  background: var(--gray-bg);
  border: 1px solid rgba(162, 148, 117, 0.25);
}

.chat-guide__bubble--user {
  align-self: flex-end;
  color: var(--white);
  background: var(--skyline);
}

.chat-guide__choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
  flex-shrink: 0;
  max-height: min(220px, 36vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-guide__choices:empty {
  display: none;
}

.chat-guide__choice {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(162, 148, 117, 0.45);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.chat-guide__choice:hover {
  border-color: var(--palm);
  background: var(--gray-bg);
}

.chat-guide__choice:focus-visible {
  outline: 2px solid var(--skyline);
  outline-offset: 2px;
}

.chat-guide__choice--muted {
  font-weight: 500;
  color: var(--text-muted);
  border-style: dashed;
}

.chat-guide__choice--link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--al-adaam);
}

.chat-guide__footer {
  flex-shrink: 0;
  max-height: min(340px, 52vh);
  overflow-y: auto;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(162, 148, 117, 0.25);
  padding-top: 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.chat-guide__footer[hidden] {
  display: none !important;
}

.chat-guide__cta {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--al-adaam);
  border-radius: 6px;
}

.chat-guide__cta:hover {
  background: var(--al-adaam-deep);
  text-decoration: none;
}

.chat-guide__phones {
  margin: 0.65rem 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.chat-guide__phones a {
  color: var(--skyline);
  font-weight: 600;
}

.chat-guide__capture {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-guide__capture-label {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.chat-guide__capture-label--optional {
  font-weight: 500;
  color: var(--text-muted);
}

.chat-guide__capture-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  color: var(--navy);
  border: 1px solid rgba(162, 148, 117, 0.5);
  border-radius: 6px;
  background: var(--white);
}

.chat-guide__capture-input:focus {
  outline: 2px solid var(--skyline);
  outline-offset: 1px;
  border-color: var(--skyline);
}

.chat-guide__capture-error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--al-adaam);
}

.chat-guide__capture-error[hidden] {
  display: none !important;
}

.chat-guide__capture-note {
  margin: 0.25rem 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.chat-guide__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chat-guide__cta:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 480px) {
  .chat-guide-launcher {
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1rem;
    font-size: 13px;
  }

  .chat-guide-launcher-label {
    display: none;
  }

  .chat-guide {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 12px 12px 0 0;
  }
}
