/* Styles for Lead Capture Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #ffffff;
  color: #0a1433;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.modal-content input {
  width: calc(100% - 2rem);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-content button[type="submit"] {
  width: 100%;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #0a1433;
}

.form-message {
  margin-top: 1rem;
  font-weight: 600;
}

/* Consent Section Styles */
.consent-section {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #e0e0e0;
}

.consent-item {
  margin-bottom: 1rem;
}

.consent-item.required {
  margin-bottom: 1.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  gap: 0.75rem;
}

.consent-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #64D88E;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.consent-label input[type="checkbox"]:checked + .checkmark {
  background-color: #64D88E;
}

.consent-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.consent-text {
  flex: 1;
  color: #333;
}

.consent-text a {
  color: #64D88E;
  text-decoration: none;
  font-weight: 500;
}

.consent-text a:hover {
  text-decoration: underline;
}

.required-indicator {
  color: #e74c3c;
  font-weight: bold;
}

.consent-item.required .consent-text {
  font-weight: 500;
}

.consent-item.optional .consent-text {
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .consent-label {
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .checkmark {
    width: 16px;
    height: 16px;
  }
  
  .consent-label input[type="checkbox"]:checked + .checkmark::after {
    font-size: 12px;
    left: 1px;
  }
}
