body.tp-lead-modal-open {
  overflow: hidden;
}

.tp-lead {
  position: fixed;
  left: clamp(14px, 2vw, 28px);
  bottom: 0;
  z-index: 140;
  color: var(--navy, #102632);
}

.tp-lead-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 218px;
  min-height: 48px;
  padding: 9px 16px 9px 13px;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(7, 29, 40, 0.97), rgba(13, 50, 57, 0.97)),
    url(/assets/chat-communication-panorama.svg) 66% 52% / 320px no-repeat;
  border: 1px solid rgba(244, 123, 32, 0.34);
  border-bottom: 0;
  border-radius: 8px 28px 0 0;
  box-shadow: 0 -14px 38px rgba(7, 18, 30, 0.22), inset 0 3px rgba(244, 123, 32, 0.86);
}

.tp-lead-launcher:hover,
.tp-lead-launcher:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(244, 123, 32, 0.62);
  box-shadow: 0 -18px 46px rgba(7, 18, 30, 0.3), inset 0 3px #f47b20;
}

.tp-lead-launcher > span:last-child {
  display: flex;
  align-items: center;
  text-align: left;
}

.tp-lead-launcher strong {
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
}

.tp-lead-launcher-dot {
  position: relative;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  background: rgba(88, 219, 200, 0.1);
  border: 1px solid rgba(88, 219, 200, 0.48);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

.tp-lead-launcher-dot::before,
.tp-lead-launcher-dot::after {
  position: absolute;
  content: "";
}

.tp-lead-launcher-dot::before {
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #77e5d4;
  border-right: 2px solid #77e5d4;
  transform: rotate(45deg);
}

.tp-lead-launcher-dot::after {
  top: 12px;
  left: 6px;
  width: 12px;
  height: 2px;
  background: #77e5d4;
  border-radius: 99px;
}

.tp-lead-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 20, 28, 0.64);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.tp-lead-backdrop[hidden],
.tp-lead-success[hidden],
.tp-lead-form-body[hidden],
.tp-lead-actions[hidden] {
  display: none;
}

.tp-lead-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(680px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  color: var(--navy, #102632);
  background: #f8fbfa;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  overflow: hidden;
  outline: none;
  contain: layout paint;
  box-shadow: 0 28px 74px rgba(2, 14, 22, 0.42), 0 0 0 1px rgba(8, 37, 45, 0.16);
}

.tp-lead-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 23px 28px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 28, 40, 0.99) 0%, rgba(7, 34, 43, 0.92) 58%, rgba(14, 54, 59, 0.82) 100%),
    url(/assets/chat-communication-panorama.svg) 78% 52% / 560px no-repeat;
  overflow: hidden;
}

.tp-lead-head::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #f47b20 0 34%, #58dbc8 34% 52%, transparent 52%);
}

.tp-lead-head > * {
  position: relative;
  z-index: 1;
}

.tp-lead-head span {
  display: block;
  margin-bottom: 7px;
  color: #ff9a4d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tp-lead-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.08;
}

.tp-lead-head p {
  max-width: 520px;
  margin: 9px 0 0;
  color: rgba(235, 242, 247, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.tp-lead-close {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.tp-lead-close::before,
.tp-lead-close::after {
  position: absolute;
  top: 15px;
  left: 9px;
  width: 15px;
  height: 2px;
  content: "";
  background: #fff;
  border-radius: 99px;
}

.tp-lead-close::before {
  transform: rotate(45deg);
}

.tp-lead-close::after {
  transform: rotate(-45deg);
}

.tp-lead-form {
  min-height: 0;
  padding: 26px 28px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tp-lead-form-body {
  display: grid;
  gap: 18px;
}

.tp-lead-field {
  display: grid;
  gap: 7px;
  color: #536773;
  font-size: 12px;
  font-weight: 760;
}

.tp-lead-field input,
.tp-lead-field select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--navy, #102632);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(17, 29, 39, 0.18);
  border-radius: 6px;
  outline: none;
}

.tp-lead-field select {
  cursor: pointer;
}

.tp-lead-field input:focus,
.tp-lead-field select:focus {
  border-color: #f47b20;
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.12);
}

.tp-lead-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.tp-lead-consent {
  margin: 0;
  color: #71808a;
  font-size: 11px;
  line-height: 1.45;
}

.tp-lead-consent a {
  color: #b95010;
}

.tp-lead-honeypot {
  position: absolute;
  left: -9999px;
}

.tp-lead-status {
  min-height: 18px;
  margin: 13px 0 0;
  color: #b84a18;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
}

.tp-lead-status[data-kind="success"] {
  color: #11765f;
}

.tp-lead-actions {
  display: flex;
  justify-content: flex-end;
}

.tp-lead-submit,
.tp-lead-success-close {
  min-height: 46px;
  padding: 11px 20px;
  color: #12232d;
  cursor: pointer;
  background: linear-gradient(135deg, #ff8a32, #f47b20);
  border: 1px solid #e86c14;
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(244, 123, 32, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.tp-lead-submit:hover,
.tp-lead-submit:focus-visible,
.tp-lead-success-close:hover,
.tp-lead-success-close:focus-visible {
  background: linear-gradient(135deg, #ff963f, #ff7d1c);
  box-shadow: 0 15px 30px rgba(244, 123, 32, 0.3);
}

.tp-lead-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.tp-lead-success {
  place-items: center;
  min-height: 260px;
  padding: 26px 20px 18px;
  text-align: center;
}

.tp-lead-success:not([hidden]) {
  display: grid;
}

.tp-lead-success-mark {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  background: #e6f9f5;
  border: 1px solid rgba(47, 178, 153, 0.35);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(47, 178, 153, 0.16);
}

.tp-lead-success-mark::before {
  position: absolute;
  top: 19px;
  left: 17px;
  width: 27px;
  height: 14px;
  content: "";
  border-bottom: 4px solid #23947e;
  border-left: 4px solid #23947e;
  transform: rotate(-45deg);
}

.tp-lead-success h3 {
  margin: 14px 0 0;
  color: var(--navy, #102632);
  font-size: 28px;
}

.tp-lead-success p {
  max-width: 430px;
  margin: 7px 0 18px;
  color: #687984;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .tp-lead {
    left: 12px;
    bottom: calc(var(--cookie-notice-height, 0px) + 12px);
  }

  .tp-lead-launcher {
    min-width: 172px;
    min-height: 46px;
    padding: 8px 13px 8px 10px;
    border-bottom: 1px solid rgba(244, 123, 32, 0.34);
    border-radius: 8px;
  }

  .tp-lead-launcher strong {
    font-size: 13px;
  }

  .tp-lead-backdrop {
    align-items: end;
    padding: 8px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .tp-lead-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .tp-lead-head {
    min-height: 118px;
    padding: 19px 20px;
  }

  .tp-lead-head h2 {
    font-size: 26px;
  }

  .tp-lead-head p {
    padding-right: 8px;
    font-size: 12px;
  }

  .tp-lead-form {
    padding: 20px;
  }

  .tp-lead-contact-fields {
    grid-template-columns: 1fr;
  }

  .tp-lead-submit {
    width: 100%;
  }
}
