/* === CTA ZADZWOŃ – wersja z cieniem + fade in/out ============================= */

#cta-box {
  /* ZAWSZE w drzewie – animujemy opacity/transform, nie display */
  display: block;
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 2147483647;
  width: 300px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  /* background: #b0d3f0; */
  border-radius: 20px;

  /* mocny, miękki cień */
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);

  /* stan „ukryty” – start animacji */
  opacity: 0;
  transform: translateY(15px) scale(0.97);
  pointer-events: none;

  transition:
    opacity 0.35s ease-out,
    transform 0.35s ease-out,
    box-shadow 0.35s ease-out;

  color: #1900ff;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Pokazany – JS dodaje tę klasę */
#cta-box.ef-cta-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
}

/* Nagłówek */
#cta-box h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

/* Akapity */
#cta-box p {
  margin-bottom: 10px;
}

/* Podtytuł */
#cta-box .cta-subheading {
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Etykiety */
#cta-box label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 13px;
  color: #eceafd;
}

/* Pola */
#cta-box input[type="text"],
#cta-box input[type="email"],
#cta-box input[type="tel"] {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Placeholdery */
#cta-box input::placeholder {
  font-style: italic;
}

#cta-box input::placeholder {
  color: #555 !important;
}
#cta-box input::-webkit-input-placeholder {
  color: #555 !important;
}
#cta-box input::-moz-placeholder {
  color: #555 !important;
}
#cta-box input:-ms-input-placeholder {
  color: #555 !important;
}
#cta-box input:-moz-placeholder {
  color: #555 !important;
}

/* Przycisk */
#cta-box button[type="submit"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #1900ff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

#cta-box button[type="submit"]:hover {
  background: #0ad62c;
  transform: translateY(-1px);
  color: #1900ff;
  box-shadow: 0 4px 12px rgba(24, 123, 205, 0.5);
}

#cta-box button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Krzyżyk zamknięcia */
#cta-close {
  position: absolute; /* lub fixed, jeśli ma być względem okna */
  top: 10px;          /* odległość od góry, możesz dostosować */
  right: 10px;        /* odległość od prawej */
  cursor: pointer;
  right: 10px;
  font-weight: bold;
  font-size: 24px;
  color: #1900ff;
  transition: color 0.2s ease, transform 0.1s ease;
}

#cta-close:hover {
  color: #00ff6a;
  transform: scale(1.08);
}

/* Komunikat po wysłaniu */
#cta-message {
  margin-top: 10px;
  font-weight: bold;
  color: rgb(10, 255, 100);
  display: none;
}

/* Mobile – dopasowanie */
@media (max-width: 480px) {
  #cta-box {
    top: 20px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}
