/* ==========================================
   KEN Newsletter - Frontend CSS
   Subscribe Form Styles v1.7.1
   ========================================== */

/* === Base === */
.ken-nl-form-wrap {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 20px 0;
}
.ken-nl-form-inner {
  padding: 28px;
  border-radius: 12px;
  position: relative;
}

/* === Default Style (Premium Dark Blue) === */
.ken-nl-form-wrap.ken-nl-form--default .ken-nl-form-inner {
  background: #1a2332;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.ken-nl-title {
  color: #ffffff;
  font-size: 21px;
  margin: 0 0 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1.3;
}
.ken-nl-title-accent {
  display: none;
}
.ken-nl-desc {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.6;
}
.ken-nl-label {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}
.ken-nl-field {
  margin-bottom: 14px;
}
.ken-nl-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0f1923;
  color: #e2e8f0;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ken-nl-input:focus {
  outline: none;
  border-color: #d4a017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.ken-nl-input::placeholder {
  color: #475569;
}

/* === Consent checkbox === */
.ken-nl-consent {
  margin: 16px 0;
}
.ken-nl-consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
}
.ken-nl-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #d4a017;
  cursor: pointer;
}
.ken-nl-consent-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
a.ken-nl-consent-link:hover {
  color: #cbd5e1;
  text-decoration: underline;
}

/* === Button === */
.ken-nl-btn {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #d4a017 0%, #c4922a 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  margin-top: 6px;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.25);
}
.ken-nl-btn:hover {
  background: linear-gradient(135deg, #e0ac1a 0%, #d4a017 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
  transform: translateY(-1px);
}
.ken-nl-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.2);
}
.ken-nl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === Messages === */
.ken-nl-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}
.ken-nl-msg-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ken-nl-msg-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.ken-nl-privacy {
  color: #64748b;
  font-size: 11px;
  margin: 10px 0 0;
  text-align: center;
}

/* === Compact (sidebar / footer) === */
.ken-nl-form--compact .ken-nl-form-inner {
  padding: 24px;
}
.ken-nl-form--compact .ken-nl-title {
  font-size: 19px;
  margin-bottom: 8px;
}
.ken-nl-form--compact .ken-nl-desc {
  font-size: 13px;
  margin-bottom: 18px;
}
.ken-nl-form--compact .ken-nl-input {
  padding: 11px 14px;
  font-size: 14px;
}
.ken-nl-form--compact .ken-nl-btn {
  padding: 13px 18px;
  font-size: 15px;
}

/* === Minimal Style === */
.ken-nl-form--minimal .ken-nl-form-inner {
  background: transparent;
  border: none;
  padding: 0;
}
.ken-nl-form--minimal .ken-nl-title {
  color: inherit;
}
.ken-nl-form--minimal .ken-nl-title-accent {
  background: #e53e3e;
}
.ken-nl-form--minimal .ken-nl-desc {
  color: #666;
}
.ken-nl-form--minimal .ken-nl-label {
  color: #555;
}
.ken-nl-form--minimal .ken-nl-input {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}
.ken-nl-form--minimal .ken-nl-input::placeholder {
  color: #999;
}
.ken-nl-form--minimal .ken-nl-consent-label {
  color: #666;
}
.ken-nl-form--minimal .ken-nl-btn {
  background: linear-gradient(135deg, #d4a017 0%, #c4922a 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.2);
}
.ken-nl-form--minimal .ken-nl-btn:hover {
  background: linear-gradient(135deg, #e0ac1a 0%, #d4a017 100%);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}
.ken-nl-form--minimal .ken-nl-privacy {
  color: #999;
}

/* === Dark Style (Alt) === */
.ken-nl-form--dark .ken-nl-form-inner {
  background: #0d1520;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ken-nl-form--dark .ken-nl-input {
  background: #080e17;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ken-nl-form--dark .ken-nl-btn {
  background: linear-gradient(135deg, #d4a017 0%, #c4922a 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.25);
}
.ken-nl-form--dark .ken-nl-btn:hover {
  background: linear-gradient(135deg, #e0ac1a 0%, #d4a017 100%);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
}

/* === Popup === */
.ken-nl-form-wrap[data-popup="1"] {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.ken-nl-form-wrap[data-popup="1"].ken-nl-popup-active {
  display: flex;
}
.ken-nl-form-wrap[data-popup="1"] .ken-nl-form-inner {
  max-width: 440px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  animation: kenNlFadeIn 0.3s ease;
}
@keyframes kenNlFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ken-nl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.ken-nl-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* === Loading spinner on button === */
.ken-nl-btn.ken-nl-loading {
  position: relative;
  color: transparent;
}
.ken-nl-btn.ken-nl-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: kenNlSpin 0.6s linear infinite;
}
@keyframes kenNlSpin {
  to {
    transform: rotate(360deg);
  }
}
