/* Email Capture Modal Styles */
.email-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.email-modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
}

.email-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 1;
}

.email-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.email-modal-content {
  padding: 40px 30px 30px;
}

.email-modal-content h3 {
  font-size: 1.5rem;
  color: #1a202c;
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 600;
}

.email-modal-content > p {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.email-capture-form {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--bidflow-primary, #3182ce);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  min-height: 1.25rem;
}

.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkmark {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.checkbox-label:hover input ~ .checkmark {
  border-color: var(--bidflow-primary, #3182ce);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--bidflow-primary, #3182ce);
  border-color: var(--bidflow-primary, #3182ce);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.email-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--bidflow-primary-gradient, linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.email-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.email-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.email-submit-btn i {
  width: 18px;
  height: 18px;
}

.privacy-note {
  text-align: center;
  color: #718096;
  margin-top: 0.5rem;
}

.privacy-note small {
  font-size: 0.75rem;
}

.success-message {
  text-align: center;
  padding: 1rem;
}

.success-message h4 {
  color: #38a169;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.success-message p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .email-modal {
    width: 95%;
    margin: 1rem;
  }
  
  .email-modal-content {
    padding: 30px 20px 20px;
  }
  
  .email-modal-content h3 {
    font-size: 1.25rem;
  }
  
  .email-modal-content > p {
    font-size: 0.875rem;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .email-modal {
    background: #2d3748;
    color: #f7fafc;
  }
  
  .email-modal-content h3 {
    color: #f7fafc;
  }
  
  .email-modal-content > p {
    color: #cbd5e0;
  }
  
  .form-group label {
    color: #e2e8f0;
  }
  
  .form-group input[type="email"],
  .form-group input[type="text"] {
    background-color: #4a5568;
    border-color: #718096;
    color: #f7fafc;
  }
  
  .form-group input[type="email"]::placeholder,
  .form-group input[type="text"]::placeholder {
    color: #a0aec0;
  }
  
  .checkbox-label {
    color: #cbd5e0;
  }
  
  .checkmark {
    background-color: #4a5568;
    border-color: #718096;
  }
  
  .success-message p {
    color: #cbd5e0;
  }
  
  .privacy-note {
    color: #a0aec0;
  }
} 