/* =============================================
   EnerKíte Newsletter Popup — popup.css
   ============================================= */

:root {
  --enp-accent: #23C4F5;
  --enp-accent-shadow: rgba(35, 196, 245, 0.25);
  --enp-accent-glow: rgba(35, 196, 245, 0.12);
  --enp-radius: 27px;
  --enp-radius-input: 12px;
}

/* Overlay */
#enp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#enp-overlay.enp-visible {
  opacity: 1;
  visibility: visible;
}

/* Popup box */
#enp-popup {
  position: relative;
  background: #ffffff;
  border-radius: var(--enp-radius);
  width: 100%;
  max-width: 470px;
  padding: 30px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#enp-overlay.enp-visible #enp-popup {
  transform: translateY(0) scale(1);
}

/* Decorative glows */
#enp-popup::before,
#enp-popup::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#enp-popup::before {
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(35,196,245,0.22) 0%, transparent 70%);
  filter: blur(60px);
}
#enp-popup::after {
  bottom: -50px; left: -50px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(35,196,245,0.18) 0%, transparent 70%);
  filter: blur(60px);
}

/* Close button */
#enp-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
#enp-close:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Heading */
.enp-heading {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.15;
}

/* Subtitle */
.enp-subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 auto 26px;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 360px;
  font-weight: 400;
}

/* Form */
#enp-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enp-name-row {
  display: flex;
  gap: 10px;
}
.enp-name-row .enp-field {
  flex: 1;
  min-width: 0;
}

/* Inputs */
.enp-field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--enp-radius-input);
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 14px;
  color: #0f172a;
  font-family: 'Nunito Sans', 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.enp-field input:focus {
  border-color: var(--enp-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--enp-accent-glow);
}
.enp-field input::placeholder {
  color: #94a3b8;
}
.enp-field input.enp-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

/* Privacy checkbox */
.enp-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.enp-privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  margin-top: 1px;
  transition: all 0.15s;
  position: relative;
}
.enp-privacy input[type="checkbox"]:checked {
  background: var(--enp-accent);
  border-color: var(--enp-accent);
}
.enp-privacy input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.enp-privacy input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--enp-accent-glow);
}
.enp-privacy input[type="checkbox"].enp-error {
  border-color: #ef4444;
}
.enp-privacy label {
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
}
.enp-privacy label a {
  color: var(--enp-accent);
  text-decoration: none;
}
.enp-privacy label a:hover {
  text-decoration: underline;
}

/* Error message */
.enp-message {
  font-size: 13px;
  font-family: 'Nunito Sans', sans-serif;
  padding: 10px 14px;
  border-radius: 10px;
}
.enp-message--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Submit button */
#enp-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--enp-radius-input);
  border: none;
  background: var(--enp-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 20px var(--enp-accent-shadow);
  margin-top: 2px;
}
#enp-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(35,196,245,0.38);
}
#enp-submit:active {
  transform: translateY(0);
}
#enp-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Disclaimer */
.enp-disclaimer {
  font-size: 11px;
  color: #cbd5e1;
  text-align: center;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
  font-family: 'Nunito Sans', sans-serif;
}

/* Success state */
#enp-success {
  text-align: center;
  padding: 16px 0 8px;
  position: relative;
  z-index: 1;
}
.enp-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--enp-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1.5px solid rgba(35,196,245,0.2);
}
#enp-success h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
#enp-success p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  max-width: 300px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 520px) {
  #enp-popup {
    padding: 30px 20px;
  }
  .enp-heading {
    font-size: 28px;
  }
  .enp-name-row {
    flex-direction: column;
  }
}
