/**
 * Newsletter Wizard — modal + botão
 */

/* Botão */
.heq-nl-wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #d4ff00;
  color: #04111d;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(212, 255, 0, 0.2);
  font-family: inherit;
}
.heq-nl-wizard-btn:hover {
  background: #c7f200;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 255, 0, 0.28);
}
.heq-nl-wizard-btn:active { transform: translateY(0); }
.heq-nl-wizard-btn svg { flex-shrink: 0; }

/* Overlay */
.heq-nl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 17, 29, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2147483120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  font-family: inherit;
}
.heq-nl-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Card */
.heq-nl-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.heq-nl-modal-overlay.is-open .heq-nl-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.heq-nl-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .15s ease;
}
.heq-nl-close:hover { background: rgba(255, 255, 255, 0.32); }

/* Hero */
.heq-nl-hero {
  background: linear-gradient(135deg, #04111d 0%, #0a2438 100%);
  color: #fff;
  padding: 32px 24px 52px;
  text-align: center;
  position: relative;
}
.heq-nl-eyebrow {
  display: inline-block;
  background: #d4ff00;
  color: #04111d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.heq-nl-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.heq-nl-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* Steps bar */
.heq-nl-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -22px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.heq-nl-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #9aa4ae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.heq-nl-step-dot.is-active {
  background: #004F6B;
  border-color: #004F6B;
  color: #fff;
  transform: scale(1.08);
}
.heq-nl-step-dot.is-done {
  background: #137c3a;
  border-color: #137c3a;
  color: #fff;
}
.heq-nl-step-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  transition: background .25s ease;
}
.heq-nl-step-line.is-done { background: #137c3a; }

/* Steps content */
.heq-nl-step {
  display: none;
  padding: 28px 28px 28px;
  animation: heqNlFade .25s ease;
}
.heq-nl-step.is-active { display: block; }
@keyframes heqNlFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.heq-nl-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #131313;
  margin-bottom: 10px;
}
.heq-nl-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  border: 1.5px solid #d4dbe2;
  border-radius: 10px;
  font-family: inherit;
  color: #131313;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.heq-nl-input:focus {
  border-color: #004F6B;
  box-shadow: 0 0 0 3px rgba(0, 79, 107, 0.12);
}
.heq-nl-input.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.heq-nl-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}
.heq-nl-error {
  font-size: 12px;
  color: #b42318;
  margin-top: 6px;
  min-height: 16px;
}

/* Phone field */
.heq-nl-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d4dbe2;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.heq-nl-phone-wrap:focus-within {
  border-color: #004F6B;
  box-shadow: 0 0 0 3px rgba(0, 79, 107, 0.12);
}
.heq-nl-phone-wrap.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.heq-nl-phone-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #f3f4f6;
  border-right: 1px solid #d4dbe2;
  font-weight: 600;
  font-size: 14px;
  color: #131313;
}
.heq-nl-phone-flag svg { flex-shrink: 0; border-radius: 3px; }
.heq-nl-phone-code { font-family: inherit; }
.heq-nl-phone-input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
}
.heq-nl-phone-input:focus { box-shadow: none !important; }

/* Actions */
.heq-nl-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.heq-nl-btn-primary {
  flex: 1;
  padding: 13px 18px;
  background: #004F6B;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  font-family: inherit;
}
.heq-nl-btn-primary:hover { background: #003a52; }
.heq-nl-btn-primary:disabled { opacity: .6; cursor: wait; }
.heq-nl-btn-ghost {
  padding: 13px 18px;
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #d4dbe2;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}
.heq-nl-btn-ghost:hover {
  background: #f1f4f6;
  border-color: #9aa4ae;
  color: #131313;
}

/* Success */
.heq-nl-step-success { text-align: center; }
.heq-nl-success-icon {
  color: #137c3a;
  margin: 0 auto 14px;
  animation: heqNlPop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes heqNlPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.heq-nl-success-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #131313;
}
.heq-nl-success-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Body scroll lock */
body.heq-nl-modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .heq-nl-modal { max-width: 100%; border-radius: 14px; }
  .heq-nl-hero { padding: 24px 18px 44px; }
  .heq-nl-title { font-size: 19px; }
  .heq-nl-step { padding: 22px 20px; }
}
