.exit-intent {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 20, 48, 0.62);
  font-family: Quicksand, sans-serif;
}

.exit-intent[hidden] {
  display: none;
}

.exit-intent-card {
  position: relative;
  width: min(100%, 28rem);
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(17, 20, 48, 0.28);
  overflow: hidden;
}

.exit-intent-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.exit-intent-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.exit-intent-header {
  background: #313a98;
  color: #fff;
  padding: 1.75rem 3.25rem 1.5rem 1.5rem;
}

.exit-intent-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7cbff;
}

.exit-intent-header h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
}

.exit-intent-header p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.exit-intent-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.exit-intent-form input,
.exit-intent-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e6fb;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #111827;
  background: #fbfbff;
}

.exit-intent-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.exit-intent-form input:focus,
.exit-intent-form textarea:focus {
  outline: 2px solid #313a98;
  outline-offset: 1px;
  border-color: #313a98;
  background: #fff;
}

.exit-intent-submit {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.95rem 1.25rem;
  background: #313a98;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.exit-intent-submit:hover {
  background: #1e245a;
}

.exit-intent-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.exit-intent-feedback {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.exit-intent-feedback.is-ok {
  color: #047857;
}

.exit-intent-feedback.is-error {
  color: #dc2626;
}

.lead-trust {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  color: #4b5563;
}

.cta-brand-section .lead-trust {
  color: rgba(255, 255, 255, 0.82);
}

.lead-call-now {
  display: block;
  margin-top: 0.45rem;
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
}

.whatsapp-float {
  position: fixed;
  right: 1.15rem;
  bottom: calc(1.15rem + env(safe-area-inset-bottom));
  z-index: 10020;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.38);
  transition: transform 0.2s ease, bottom 0.2s ease;
}

.whatsapp-float svg {
  width: 2.45rem;
  height: 2.45rem;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

body.cookie-banner-open .whatsapp-float {
  bottom: calc(9.25rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body.cookie-banner-open .whatsapp-float {
    bottom: calc(7.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) {
  .exit-intent {
    align-items: flex-end;
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .exit-intent-card {
    width: 100%;
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom));
    overflow-y: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }

  .exit-intent-header {
    padding: 1.2rem 3.25rem 1.05rem 1.15rem;
  }

  .exit-intent-header h2 {
    font-size: 1.35rem;
  }

  .exit-intent-header p {
    font-size: 0.92rem;
  }

  .exit-intent-form {
    gap: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
  }

  .exit-intent-form input,
  .exit-intent-form textarea {
    font-size: 16px;
    padding: 0.85rem 0.95rem;
  }

  .exit-intent-form textarea {
    min-height: 4.75rem;
  }

  .exit-intent-close {
    width: 2.75rem;
    height: 2.75rem;
  }
}
