/* =========================================
   NEWSLETTER POPUP
========================================= */

/* Dark full-screen background */
.newsletter-overlay {
  position: fixed;
  inset: 0;

  background-color: rgba(0,0,0,0.55);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 3000;

  padding: 20px;
}

/* Hide popup when this class is added */
.newsletter-overlay.hide {
  display: none;
}

/* Main popup box */
.newsletter-box {
  position: relative;

  max-width: 500px;
  width: 100%;

  background-color: var(--white-color);

  padding: 45px 35px;

  border-radius: 25px;

  text-align: center;

  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

/* Close button */
.newsletter-close {
  position: absolute;
  top: 18px;
  right: 20px;

  background: none;
  border: none;

  font-size: 32px;
  cursor: pointer;

  color: var(--primary-color);
}

/* Popup heading */
.newsletter-box h2 {
  font-size: 34px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Popup text */
.newsletter-box p {
  color: #4B5563;
  margin-bottom: 25px;
}

/* Form layout */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Email input */
.newsletter-form input {
  width: 100%;
  padding: 15px;

  border: 1px solid var(--gray-color);
  border-radius: 10px;

  font-size: 16px;
  font-family: inherit;
}

.newsletter-note {
  font-size: 13px;
  color: #6B7280;
  margin-top: 12px;
}