.tl-wa-funnel[hidden] {
  display: none !important;
}

.tl-wa-funnel {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  font-family: Manrope, system-ui, sans-serif;
}

@media (min-width: 640px) {
  .tl-wa-funnel {
    align-items: center;
    padding: 24px;
  }
}

.tl-wa-funnel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 18, 38, 0.72);
  backdrop-filter: blur(4px);
}

.tl-wa-funnel__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0a2540 0%, #06182d 55%, #041222 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color: #e8f0f7;
  overflow: hidden;
}

@media (min-width: 640px) {
  .tl-wa-funnel__panel {
    border-radius: 16px;
  }
}

.tl-wa-funnel__head {
  flex: 0 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-wa-funnel__head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tl-wa-funnel__brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8a84;
}

.tl-wa-funnel__title {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.tl-wa-funnel__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9d7e6;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.tl-wa-funnel__close:hover {
  border-color: rgba(255, 101, 93, 0.5);
  color: #fff;
}

.tl-wa-funnel__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9eb0c4;
}

.tl-wa-funnel__progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tl-wa-funnel__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #ff655d;
  transition: width 0.25s ease;
}

.tl-wa-funnel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.tl-wa-funnel__question {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
  color: #f4f8fc;
}

.tl-wa-funnel__options {
  display: grid;
  gap: 10px;
}

.tl-wa-funnel__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8f0f7;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tl-wa-funnel__option:hover,
.tl-wa-funnel__option:focus-visible {
  outline: none;
  border-color: rgba(255, 101, 93, 0.55);
  background: rgba(255, 101, 93, 0.08);
}

.tl-wa-funnel__option svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #ff655d;
  stroke-width: 2;
}

.tl-wa-funnel__text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.tl-wa-funnel__text-input::placeholder {
  color: #8498aa;
}

.tl-wa-funnel__text-input:focus {
  outline: none;
  border-color: rgba(255, 101, 93, 0.7);
}

.tl-wa-funnel__field {
  margin-bottom: 14px;
}

.tl-wa-funnel__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cfe0f0;
}

.tl-wa-funnel__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #b3c1ce;
}

.tl-wa-funnel__consent input {
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #ff655d;
}

.tl-wa-funnel__summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.tl-wa-funnel__summary-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb0c4;
}

.tl-wa-funnel__summary-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d5e0ea;
}

.tl-wa-funnel__hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #8a97a8;
}

.tl-wa-funnel__foot {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.tl-wa-funnel__back {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: #c9d7e6;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.tl-wa-funnel__back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tl-wa-funnel__primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.tl-wa-funnel__primary:hover {
  background: #1ebe57;
}

.tl-wa-funnel__primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tl-wa-funnel__primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tl-wa-funnel__err {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #ff8a84;
}
