/**
 * OlhaPauta — SPRINT 21: Exit Intent Newsletter Popup CSS
 */

.op-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.op-exit-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.op-exit-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.op-exit-modal-content {
  position: relative;
  background: var(--s-surface-1, #ffffff);
  border: 1px solid var(--s-line, rgba(15, 23, 42, 0.1));
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
  overflow: hidden;
  padding: 36px;
}

.op-exit-modal.is-active .op-exit-modal-content {
  transform: scale(1) translateY(0);
}

/* Modo Escuro */
.op-dark-theme .op-exit-modal-content {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.op-exit-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--s-text-muted, #64748b);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px;
}

.op-exit-modal-close:hover {
  color: var(--s-text, #0f172a);
}

.op-dark-theme .op-exit-modal-close:hover {
  color: #ffffff;
}

.op-exit-modal-badge {
  display: inline-block;
  background: rgba(229, 57, 53, 0.08);
  color: var(--accent, #e53935);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.op-exit-modal-heading {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--s-text, #0f172a);
}

.op-dark-theme .op-exit-modal-heading {
  color: #ffffff;
}

.op-exit-modal-subheading {
  font-size: 14px;
  line-height: 1.5;
  color: var(--s-text-muted, #64748b);
  margin: 0 0 24px;
}

.op-dark-theme .op-exit-modal-subheading {
  color: rgba(255, 255, 255, 0.65);
}

.op-exit-form-group {
  display: flex;
  gap: 8px;
}

.op-exit-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--s-line, rgba(15, 23, 42, 0.15));
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: var(--s-surface-1, #ffffff);
  color: var(--s-text, #0f172a);
  transition: all 0.2s ease;
}

.op-dark-theme .op-exit-input {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.op-exit-input:focus {
  border-color: var(--accent, #e53935);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.op-exit-btn {
  padding: 12px 20px;
  background: var(--accent, #e53935);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.op-exit-btn:hover {
  background: #d32f2f;
}

.op-exit-btn:active {
  transform: scale(0.98);
}

.op-exit-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--s-text-muted, #64748b);
  margin-top: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.op-dark-theme .op-exit-privacy {
  color: rgba(255, 255, 255, 0.45);
}

.op-exit-privacy input {
  margin-top: 2px;
}

.op-exit-privacy a {
  color: inherit;
  text-decoration: underline;
}

@supports (backdrop-filter: blur(1px)) {
  .op-exit-modal-overlay {
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 520px) {
  .op-exit-modal-content {
    padding: 24px;
    margin: 16px;
  }
  .op-exit-form-group {
    flex-direction: column;
  }
  .op-exit-btn {
    width: 100%;
  }
}
