/* Mailchimp Popup Styles - v2.2 - Achieve Homepage Style */
.mailchimp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.mailchimp-popup {
  width: 100%;
  max-width: 28rem;
  margin-bottom: 2rem;
  background: white;
  border-top: 8px solid #166534;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.4s ease;
  display: none;
}

.mailchimp-popup.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.mailchimp-popup-content {
  padding: 1.5rem;
}

.mailchimp-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: #166534;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mailchimp-popup-close:hover {
  color: #14532d;
}

.mailchimp-popup-close:focus {
  outline: none;
}

.mailchimp-popup-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mailchimp-popup-logo {
  height: 2rem;
  width: auto;
  margin-right: 0.5rem;
}

.mailchimp-popup-branding {
  color: #166534;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1;
}

.mailchimp-popup-branding .brand-black {
  color: #000;
}

.mailchimp-popup-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #000;
  line-height: 1.4;
}

.mailchimp-popup-message {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 1rem;
}

.mailchimp-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mailchimp-popup-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mailchimp-popup-fname,
.mailchimp-popup-lname,
.mailchimp-popup-email {
  border: 1px solid #166534;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  background: #fff;
  transition: all 0.2s ease;
  width: 100%;
}

.mailchimp-popup-fname:focus,
.mailchimp-popup-lname:focus,
.mailchimp-popup-email:focus {
  outline: none;
  border-color: #166534;
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.2);
}

.mailchimp-popup-fname::placeholder,
.mailchimp-popup-lname::placeholder,
.mailchimp-popup-email::placeholder {
  color: #6b7280;
}

.mailchimp-popup-submit {
  background: #166534;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mailchimp-popup-submit:hover {
  background: #14532d;
}

.mailchimp-popup-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.mailchimp-popup-status-message {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid;
}

.mailchimp-popup-status-message.success {
  background: #dcfce7;
  color: #166534;
  border-color: #16a34a;
}

.mailchimp-popup-status-message.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mailchimp-popup {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .mailchimp-popup-content {
    padding: 1rem;
  }
  
  .mailchimp-popup-title {
    font-size: 1rem;
  }
  
  .mailchimp-popup-message {
    font-size: 0.8125rem;
  }
  
  .mailchimp-popup-form-row {
    grid-template-columns: 1fr;
  }
  
  .mailchimp-popup-submit {
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 