/* Popup Overlay - covers entire screen */
.signup-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.signup-popup-overlay.active {
  display: block;
  opacity: 1;
}

/* Popup Container - slides up from bottom */
.signup-popup-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 45vh; /* 1/3 of viewport on desktop */
  background-color: white;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.8s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.signup-popup-overlay.active .signup-popup-container {
  transform: translateY(0);
}

/* Close button */
.signup-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10000;
  color: #333;
  transition: color 0.5s ease;
}

.signup-popup-close:hover {
  color: #000;
}

.signup-popup-close svg {
  display: block;
}

/* Content area with padding to avoid close button */
.signup-popup-content {
  padding: 40px 30px 30px 30px;
  max-width: 800px;
  margin: 0 auto;
}

.signup-popup-content h2 {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

/* Signup element inside popup - override some styles if needed */
.signup-popup-content signup-element {
  display: block;
  margin-bottom: 20px;
}

.signup-popup-disclaimer {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.signup-popup-disclaimer a {
  color: var(--color-blue-nav-carousel, #4169E1);
  text-decoration: underline;
}

.signup-popup-disclaimer a:hover {
  text-decoration: none;
}

/* Tablet and below */
@media (max-width: 1024px) {
  .signup-popup-container {
      max-height: 50vh;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .signup-popup-container {
      max-height: 75vh;
  }
  
  .signup-popup-content {
      padding: 30px 20px 20px 20px;
  }
  
  .signup-popup-content h2 {
      font-size: 1.5rem;
  }
}

/* Smaller mobiles */
@media (max-width: 576px) {
  .signup-popup-content h2 br {
      display: none; /* Remove line break on small screens */
  }
}