/* Exit-intent popup overlay */
#remambo-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 26, 46, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#remambo-popup-overlay.open {
  display: flex;
  animation: remambo-popup-fadein 0.3s ease-out;
}

@keyframes remambo-popup-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#remambo-popup {
  background: var(--cream, #faf7f2);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(26, 26, 46, 0.25);
  animation: remambo-popup-slidein 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes remambo-popup-slidein {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#remambo-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: var(--mist, #e8e2d8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--slate, #4a4a5a);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

#remambo-popup-close:hover {
  background: var(--vermillion, #c0392b);
  color: #fff;
}

.remambo-popup-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--vermillion, #c0392b);
  margin-bottom: 0.75rem;
}

#remambo-popup h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink, #1a1a2e);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

#remambo-popup .popup-sub {
  font-size: 0.9rem;
  color: var(--slate, #4a4a5a);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

#remambo-popup-form .popup-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

#remambo-popup-form .popup-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white, #ffffff);
  border: 1.5px solid var(--mist, #e8e2d8);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink, #1a1a2e);
  outline: none;
  transition: border-color 0.2s;
}

#remambo-popup-form .popup-input::placeholder {
  color: #a8a4a0;
}

#remambo-popup-form .popup-input:focus {
  border-color: var(--vermillion, #c0392b);
}

#remambo-popup-form .popup-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--vermillion, #c0392b);
  color: var(--white, #ffffff);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

#remambo-popup-form .popup-submit:hover:not(:disabled) {
  background: #a83225;
  transform: translateY(-1px);
}

#remambo-popup-form .popup-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.remambo-popup-privacy {
  font-size: 0.75rem;
  color: #a8a4a0;
  text-align: center;
  margin: 0;
}

#remambo-popup-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

#remambo-popup-success.show {
  display: flex;
}

.remambo-popup-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #27ae60;
  margin-bottom: 0.25rem;
}

#remambo-popup-success p {
  font-size: 0.95rem;
  color: var(--slate, #4a4a5a);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}