#gtc-widget {
  position: fixed;
  z-index: var(--gtc-z-index, 99999);
  display: flex;
  flex-direction: column;
  gap: var(--gtc-button-gap, 8px);
  font-family: inherit;
  max-width: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 18px, 0) scale(.98);
  transition: opacity .28s ease, transform .34s ease, visibility .28s ease;
}

#gtc-widget.gtc-is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#gtc-widget.gtc-entrance-none,
#gtc-widget.gtc-is-visible.gtc-entrance-slide,
#gtc-widget.gtc-is-visible.gtc-entrance-fade,
#gtc-widget.gtc-is-visible.gtc-entrance-zoom {
  transform: translate3d(0, 0, 0) scale(1);
}

#gtc-widget.gtc-entrance-fade {
  transform: none;
}

#gtc-widget.gtc-entrance-zoom {
  transform: scale(.88);
}

#gtc-widget.gtc-is-visible.gtc-entrance-fade {
  transform: none;
}

#gtc-widget[data-desktop-position="bottom-right"] {
  right: var(--gtc-horizontal-offset, 20px);
  bottom: var(--gtc-desktop-bottom, 20px);
}

#gtc-widget[data-desktop-position="bottom-left"] {
  left: var(--gtc-horizontal-offset, 20px);
  bottom: var(--gtc-desktop-bottom, 20px);
}

.gtc-button-group {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 54px;
  padding-top: 10px;
  overflow: visible;
}

.gtc-route-badge {
  position: absolute;
  top: -10px;
  right: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 3;
}

#gtc-widget.gtc-bottom-left .gtc-button-group,
#gtc-widget[data-desktop-position="bottom-left"] .gtc-button-group,
#gtc-widget[data-mobile-position="bottom-left"] .gtc-button-group {
  justify-content: flex-start;
}

#gtc-widget.gtc-bottom-left .gtc-route-badge,
#gtc-widget[data-desktop-position="bottom-left"] .gtc-route-badge,
#gtc-widget[data-mobile-position="bottom-left"] .gtc-route-badge {
  left: 8px;
  right: auto;
}

.gtc-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  left: auto;
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 52px;
  max-width: min(360px, calc(100vw - 96px));
  padding: 13px 44px 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  margin: 0;
  z-index: 1;
}

#gtc-widget.gtc-bottom-left .gtc-tooltip,
#gtc-widget[data-desktop-position="bottom-left"] .gtc-tooltip,
#gtc-widget[data-mobile-position="bottom-left"] .gtc-tooltip {
  right: calc(100% + 14px);
  left: auto;
  transform: translateY(-50%) translateX(8px);
}

.gtc-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.gtc-tooltip-content {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(300px, calc(100vw - 132px));
  padding-right: 4px;
}

.gtc-tooltip-content p {
  margin: 0 0 8px;
}

.gtc-tooltip-content p:last-child {
  margin-bottom: 0;
}

.gtc-tooltip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.gtc-tooltip-close:hover,
.gtc-tooltip-close:focus {
  background: rgba(255,255,255,0.22);
  outline: none;
}

.gtc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  transition: transform .2s ease, opacity .2s ease;
  border: none;
  line-height: 1;
  gap: 0;
  position: relative;
  z-index: 2;
}

.gtc-btn:hover,
.gtc-btn:focus {
  transform: translateY(-1px);
  opacity: 0.96;
  outline: none;
}

.gtc-btn-whatsapp {
  background: #25D366;
}

.gtc-btn-call {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(255,255,255,.24);
}

.gtc-btn-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.gtc-btn-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.gtc-btn-label {
  display: none;
}

#gtc-widget[data-button-animation="pulse"] .gtc-btn {
  animation: gtcPulse 2.4s infinite;
}

#gtc-widget[data-button-animation="heartbeat"] .gtc-btn {
  animation: gtcHeartbeat 2.2s infinite;
}

#gtc-widget[data-button-animation="shake"] .gtc-btn {
  animation: gtcShake 3s infinite;
}

#gtc-widget[data-button-animation="bounce"] .gtc-btn {
  animation: gtcBounce 2.6s infinite;
}

#gtc-widget[data-button-animation="none"] .gtc-btn {
  animation: none;
}

.gtc-lead-modal-open {
  overflow: hidden;
}

.gtc-lead-modal[hidden] {
  display: none !important;
}

.gtc-lead-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--gtc-z-index, 99999) + 12);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px min(8vw, 96px) 28px min(6vw, 72px);
}

.gtc-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38%),
    radial-gradient(circle at bottom left, rgba(37, 211, 102, 0.14), transparent 42%),
    rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.gtc-lead-modal__dialog {
  position: relative;
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(16,185,129,0.14), transparent 40%),
    linear-gradient(160deg, rgba(255,255,255,0.88), rgba(244,250,255,0.78)),
    linear-gradient(135deg, rgba(59,130,246,0.08), rgba(37,211,102,0.08));
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.2);
  padding: 26px 26px 24px;
  color: #0f172a;
  overflow-x: hidden;
  overflow-y: auto;
  backdrop-filter: blur(18px);
  transform: translateY(12px);
  animation: gtcModalEnter .26s ease forwards;
}

.gtc-lead-modal__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.gtc-lead-modal__description {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  max-width: 46ch;
}

.gtc-lead-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.gtc-lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gtc-lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gtc-lead-form__field--full {
  grid-column: 1 / -1;
}

.gtc-lead-form__field span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: .01em;
}

.gtc-lead-form__field input,
.gtc-lead-form__field select,
.gtc-lead-form__field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  padding: 0 14px;
  color: #0f172a;
  font-size: 14px;
}

.gtc-lead-form__field textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

.gtc-lead-form__field input:focus,
.gtc-lead-form__field select:focus,
.gtc-lead-form__field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.gtc-lead-form__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.gtc-lead-form__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

@keyframes gtcModalEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gtc-lead-form__status {
  flex: 1 1 auto;
  min-height: 20px;
  font-size: 13px;
  color: #475569;
}

.gtc-lead-form__status.is-error {
  color: #b91c1c;
}

.gtc-lead-form__status.is-success {
  color: #0f766e;
}

.gtc-lead-form__submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.gtc-lead-form__direct {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.gtc-lead-form__direct:hover,
.gtc-lead-form__direct:focus {
  transform: translateY(-1px);
  outline: none;
}

.gtc-lead-form__submit[disabled] {
  opacity: .68;
  cursor: wait;
}

@keyframes gtcPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.16), 0 0 0 0 rgba(37, 211, 102, 0.18); }
  50% { box-shadow: 0 6px 18px rgba(0,0,0,.18), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@keyframes gtcHeartbeat {
  0%, 20%, 40%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.05); }
  30% { transform: scale(1.11); }
  50% { transform: scale(1.04); }
}

@keyframes gtcShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-2px) rotate(-2deg); }
  20% { transform: translateX(2px) rotate(2deg); }
  30% { transform: translateX(-2px) rotate(-1deg); }
  40% { transform: translateX(2px) rotate(1deg); }
  50% { transform: translateX(0); }
}

@keyframes gtcBounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-5px); }
  35% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  65% { transform: translateY(0); }
}

@media (max-width: 768px) {
  .gtc-lead-modal {
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  #gtc-widget[data-mobile-position="bottom-right"] {
    right: var(--gtc-horizontal-offset, 20px);
    left: auto;
    bottom: var(--gtc-mobile-bottom, 16px);
  }

  #gtc-widget[data-mobile-position="bottom-left"] {
    left: var(--gtc-horizontal-offset, 20px);
    right: auto;
    bottom: var(--gtc-mobile-bottom, 16px);
  }

  .gtc-tooltip {
    max-width: min(320px, calc(100vw - 88px));
  }

  .gtc-tooltip-content {
    max-width: min(260px, calc(100vw - 124px));
  }

  .gtc-button-group {
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  .gtc-lead-modal {
    padding: 14px;
    padding-top: 12px;
    justify-content: center;
  }

  .gtc-lead-modal__dialog {
    border-radius: 22px;
    max-height: calc(100dvh - 24px);
    padding: 18px 16px 16px;
  }

  .gtc-lead-modal__title {
    font-size: 22px;
  }

  .gtc-lead-form__grid {
    grid-template-columns: 1fr;
  }

  .gtc-lead-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .gtc-lead-form__submit {
    width: 100%;
  }

  .gtc-lead-form__direct {
    width: 100%;
  }

  .gtc-tooltip {
    max-width: min(280px, calc(100vw - 84px));
    padding: 10px 38px 10px 12px;
    font-size: 12px;
  }

  .gtc-tooltip-content {
    max-width: min(220px, calc(100vw - 122px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #gtc-widget,
  .gtc-tooltip,
  .gtc-btn {
    transition: none !important;
    animation: none !important;
  }
}


.gtc-btn-call-visible { display:inline-flex !important; visibility:visible !important; opacity:1 !important; }
.gtc-no-whatsapp.gtc-has-call .gtc-button-group { justify-content:flex-end; }
#gtc-widget[data-desktop-position="bottom-left"].gtc-no-whatsapp.gtc-has-call .gtc-button-group,
#gtc-widget[data-mobile-position="bottom-left"].gtc-no-whatsapp.gtc-has-call .gtc-button-group { justify-content:flex-start; }
