/**
 * GEO UX — sticky bar, AI FAQ chat, answer blocks
 * Scoped to beat site-wide p/h3/button rules in style.css
 */
:root {
  --geo-ink: #274760;
  --geo-ink-deep: #1b2b5d;
  --geo-accent: #307bc4;
  --geo-muted: rgba(39, 71, 96, 0.7);
  --geo-line: rgba(39, 71, 96, 0.12);
  --geo-soft: rgba(48, 123, 196, 0.1);
  --geo-surface: #ffffff;
  --geo-wash: #f3f6f9;
  --geo-shadow: 0 12px 40px rgba(27, 43, 93, 0.14);
  --geo-sticky-h: 64px;
}

/* ========== Mobile sticky ========== */
.geo-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .geo-sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    height: calc(var(--geo-sticky-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--geo-line);
    box-shadow: 0 -6px 24px rgba(27, 43, 93, 0.08);
  }

  .geo-sticky-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: var(--geo-sticky-h);
    text-decoration: none !important;
    color: var(--geo-ink) !important;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-right: 1px solid var(--geo-line);
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .geo-sticky-bar a:last-child {
    border-right: 0;
    background: linear-gradient(134deg, #307bc4 0%, #274760 100%) !important;
    color: #fff !important;
  }

  .geo-sticky-bar a:last-child .geo-sticky-bar__ico {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }

  .geo-sticky-bar__ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--geo-soft);
    color: var(--geo-accent);
    font-size: 13px;
  }

  .geo-sticky-bar a[href*="wa.me"] .geo-sticky-bar__ico {
    background: rgba(37, 211, 102, 0.12);
    color: #1fa855;
  }

  .whatsapp-contact-btn {
    bottom: calc(var(--geo-sticky-h) + 16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
  }

  body {
    padding-bottom: calc(var(--geo-sticky-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* ========== AI chat assistant (high-specificity resets) ========== */
#geoFaqAssistToggle.geo-faq-assist-toggle {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  left: 18px;
  bottom: 28px;
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px 0 8px;
  border: 1px solid var(--geo-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--geo-ink-deep) !important;
  box-shadow: var(--geo-shadow);
  cursor: pointer;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#geoFaqAssistToggle:hover,
#geoFaqAssistToggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(48, 123, 196, 0.4) !important;
  outline: none !important;
}

#geoFaqAssistToggle .geo-faq-assist-toggle__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(134deg, #307bc4 0%, #274760 100%);
  color: #fff;
  font-size: 15px;
  position: relative;
}

#geoFaqAssistToggle .geo-faq-assist-toggle__ico::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  border: 2px solid #fff;
}

#geoFaqAssistPanel.geo-faq-assist-panel {
  box-sizing: border-box;
  position: fixed;
  left: 18px;
  bottom: 92px;
  z-index: 1091;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, 78vh);
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--geo-line);
  border-radius: 20px;
  box-shadow: var(--geo-shadow);
  font-family: "Poppins", sans-serif;
  color: var(--geo-ink);
}

#geoFaqAssistPanel[hidden] {
  display: none !important;
}

#geoFaqAssistPanel.is-open:not([hidden]) {
  display: flex !important;
  animation: geoFaqRise 0.28s ease both;
}

@keyframes geoFaqRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#geoFaqAssistPanel *,
#geoFaqAssistPanel *::before,
#geoFaqAssistPanel *::after {
  box-sizing: border-box;
}

#geoFaqAssistPanel h1,
#geoFaqAssistPanel h2,
#geoFaqAssistPanel h3,
#geoFaqAssistPanel h4,
#geoFaqAssistPanel h5,
#geoFaqAssistPanel h6,
#geoFaqAssistPanel p,
#geoFaqAssistPanel ul,
#geoFaqAssistPanel li,
#geoFaqAssistPanel dl,
#geoFaqAssistPanel dt,
#geoFaqAssistPanel dd {
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  float: none;
  max-width: none;
}

#geoFaqAssistPanel .geo-faq-assist-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 48px 14px 14px;
  background: linear-gradient(134deg, #307bc4 0%, #274760 100%);
  color: #fff;
}

#geoFaqAssistPanel .geo-faq-assist-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #fff;
}

#geoFaqAssistPanel .geo-faq-assist-head h3 {
  margin: 0 !important;
  font-family: "Figtree", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2 !important;
}

#geoFaqAssistPanel .geo-faq-assist-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px !important;
  font-size: 0.72rem;
  opacity: 0.92;
  color: #fff;
}

#geoFaqAssistPanel .geo-faq-assist-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffa3;
}

#geoFaqAssistPanel .geo-faq-assist-close {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

#geoFaqAssistPanel .geo-faq-assist-thread {
  flex: 1;
  overflow: auto;
  padding: 16px 14px;
  background: linear-gradient(180deg, #eef3f8 0%, #f7f9fb 40%, #f7f9fb 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

#geoFaqAssistPanel .geo-chat-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 100%;
  animation: geoFaqRise 0.22s ease both;
}

#geoFaqAssistPanel .geo-chat-row.is-user {
  flex-direction: row-reverse;
}

#geoFaqAssistPanel .geo-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: linear-gradient(134deg, #307bc4 0%, #274760 100%);
  color: #fff;
}

#geoFaqAssistPanel .geo-chat-row.is-user .geo-chat-avatar {
  background: #d5e2ee;
  color: var(--geo-ink);
}

#geoFaqAssistPanel .geo-chat-bubble {
  max-width: calc(100% - 40px);
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #fff !important;
  border: 1px solid rgba(39, 71, 96, 0.08);
  box-shadow: 0 2px 10px rgba(27, 43, 93, 0.05);
  color: var(--geo-ink);
  font-size: 0.86rem;
  line-height: 1.5;
}

#geoFaqAssistPanel .geo-chat-row.is-user .geo-chat-bubble {
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(134deg, #307bc4 0%, #274760 100%) !important;
  color: #fff !important;
  border-color: transparent;
}

#geoFaqAssistPanel .geo-chat-bubble p {
  margin: 0 0 8px !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: 1.5 !important;
  font-family: "Poppins", sans-serif !important;
}

#geoFaqAssistPanel .geo-chat-bubble p:last-child {
  margin-bottom: 0 !important;
}

#geoFaqAssistPanel .geo-chat-typing {
  display: inline-flex;
  gap: 5px;
  padding: 2px 0;
}

#geoFaqAssistPanel .geo-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--geo-accent);
  opacity: 0.4;
  animation: geoTyping 1s infinite ease-in-out;
}

#geoFaqAssistPanel .geo-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

#geoFaqAssistPanel .geo-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes geoTyping {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

#geoFaqAssistPanel .geo-chat-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px !important;
}

#geoFaqAssistPanel .geo-chat-chip,
#geoFaqAssistPanel .geo-chat-chips button {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(48, 123, 196, 0.22) !important;
  background: rgba(48, 123, 196, 0.06) !important;
  color: var(--geo-ink-deep) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#geoFaqAssistPanel .geo-chat-chip:hover,
#geoFaqAssistPanel .geo-chat-chip:focus-visible,
#geoFaqAssistPanel .geo-chat-chips button:hover,
#geoFaqAssistPanel .geo-chat-chips button:focus-visible {
  background: rgba(48, 123, 196, 0.14) !important;
  border-color: #307bc4 !important;
  outline: none !important;
  transform: translateY(-1px);
}

#geoFaqAssistPanel .geo-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px !important;
}

#geoFaqAssistPanel .geo-chat-actions a {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none !important;
}

#geoFaqAssistPanel .geo-chat-actions a.wa {
  background: #1fa855 !important;
  color: #fff !important;
}

#geoFaqAssistPanel .geo-chat-actions a.contact {
  background: var(--geo-ink-deep) !important;
  color: #fff !important;
}

#geoFaqAssistPanel .geo-faq-assist-composer {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px;
  border-top: 1px solid var(--geo-line);
  background: #fff;
}

#geoFaqAssistPanel .geo-faq-assist-composer input {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px !important;
  border: 1px solid var(--geo-line) !important;
  background: var(--geo-wash) !important;
  color: var(--geo-ink) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.88rem !important;
}

#geoFaqAssistPanel .geo-faq-assist-composer input:focus {
  border-color: rgba(48, 123, 196, 0.5) !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(48, 123, 196, 0.12);
}

#geoFaqAssistPanel .geo-faq-assist-composer button[type="submit"] {
  all: unset;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  border-radius: 12px !important;
  background: linear-gradient(134deg, #307bc4 0%, #274760 100%) !important;
  color: #fff !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

#geoFaqAssistPanel .geo-faq-assist-composer button[type="submit"]:hover {
  filter: brightness(1.06);
}

#geoFaqAssistPanel .geo-faq-assist-footnote {
  margin: 0 !important;
  padding: 0 14px 12px !important;
  font-size: 0.68rem !important;
  line-height: 1.4 !important;
  color: rgba(39, 71, 96, 0.5) !important;
  background: #fff;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #geoFaqAssistToggle.geo-faq-assist-toggle {
    left: 12px;
    bottom: calc(var(--geo-sticky-h) + 14px + env(safe-area-inset-bottom, 0px));
  }

  #geoFaqAssistPanel.geo-faq-assist-panel {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(var(--geo-sticky-h) + 70px + env(safe-area-inset-bottom, 0px));
    height: min(68vh, 560px);
  }
}

/* ========== Answer blocks ========== */
.geo-answer-block {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.geo-answer-block__inner {
  position: relative;
  background: #fff;
  border: 1px solid var(--geo-line);
  border-radius: 16px;
  padding: 32px 32px 28px;
  overflow: hidden;
}

.geo-answer-block__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #307bc4 0%, #274760 100%);
}

.geo-answer-block__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--geo-accent);
}

.geo-answer-block__title {
  font-family: "Figtree", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--geo-ink-deep);
  margin: 0 0 14px;
  line-height: 1.3;
}

.geo-answer-block__answer {
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
  color: var(--geo-muted);
  line-height: 1.7;
  margin: 0 0 22px;
}

.geo-answer-block__list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.geo-answer-block__list li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 36px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--geo-ink);
  background: var(--geo-wash);
  border-radius: 10px;
}

.geo-answer-block__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--geo-accent);
  transform: translateY(-50%);
}

.geo-answer-block__facts {
  margin: 0 0 8px;
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .geo-answer-block__facts {
    grid-template-columns: 1fr 1fr;
  }
}

.geo-answer-block__fact {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--geo-wash);
}

.geo-answer-block__fact dt {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--geo-accent);
  margin: 0 0 6px;
}

.geo-answer-block__fact dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--geo-ink);
}

.geo-answer-block__faq-title {
  font-family: "Figtree", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--geo-ink-deep);
  margin: 28px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--geo-line);
}

.geo-answer-block__faq-item {
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--geo-wash);
}

.geo-answer-block__faq-q {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--geo-ink-deep);
  margin: 0 0 6px;
}

.geo-answer-block__faq-a {
  font-size: 0.9rem;
  color: var(--geo-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 600px) {
  .geo-answer-block__inner {
    padding: 24px 18px 20px;
  }
}
