@import url("https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap");

/* ===== OVERLAY ===== */
.ec-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.ec-popup-overlay.ec-active {
  opacity: 1;
  visibility: visible;
}

/* ===== MODAL ===== */
.ec-popup {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.ec-popup-overlay.ec-active .ec-popup {
  transform: scale(1);
  opacity: 1;
}

/* Close button */
.ec-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
}

/* Input (scoped ONLY to popup) */
.ec-popup input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Error */
.ec-popup-error {
  color: red;
  font-size: 12px;
  display: none;
  margin-bottom: 12px;
}

/* Button */
.ec-popup-subscribe-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #4f46e5;
  color: white;
  cursor: pointer;
  transition: 0.25s;
  margin-top: 4px;
}

.ec-popup-subscribe-btn:hover {
  background: #4338ca;
}

/* Text */
.ec-popup-text {
  color: black;
  font-size: 20px;
}

/* Spacing */
.ec-popup h2 {
  margin-bottom: 12px;
}

.ec-popup p {
  margin-bottom: 20px;
  line-height: 1.5;
}

#ecEmailInput {
  color: #000000;
}

/* ===== INPUT TEXT + BORDER FIX ===== */
.ec-popup input {
  color: #111; /* typed text color */
  border: 1px solid #555; /* darker border */
}

/* ===== PLACEHOLDER COLOR ===== */
.ec-popup input::placeholder {
  color: #666; /* make placeholder darker */
  opacity: 1; /* important (removes faded look) */
}

/* ===== FOCUS STATE (when user clicks) ===== */
.ec-popup input:focus {
  outline: none;
  border: 1px solid #4f46e5; /* highlight color */
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

