/*
 * Lead Capture — shared card + modal styling.
 *
 * Pairs with /components/LeadCapture/lead-capture.js. Load this on surfaces
 * that let the handler inject its own modal markup (the company-profile
 * article shell). The advanced map and the legacy /article page ship the
 * dialog inline and carry their own equivalent rules in map-page-new.css /
 * css/article.css — do NOT also load this file there, or the map's narrower
 * sidebar card treatment would be overridden.
 */

/* ---------- Inline "Stay Updated" card ---------- */

.lead-capture-card {
  margin: 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f9fb 0%, #e6f4f7 100%);
  border: 1px solid #b8e0e8;
  border-radius: 12px;
}

.lead-capture-card .lead-capture-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lead-capture-card .lead-capture-card-text h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0a4a5a;
}

.lead-capture-card .lead-capture-card-text p {
  margin: 0;
  font-size: 14px;
  color: #3d7a8a;
  line-height: 1.5;
}

.lead-capture-card .lead-capture-card-btn {
  background: linear-gradient(135deg, #0091af 0%, #007a94 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 145, 175, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.lead-capture-card .lead-capture-card-btn:hover {
  background: linear-gradient(135deg, #007a94 0%, #006578 100%);
  box-shadow: 0 4px 16px rgba(0, 145, 175, 0.4);
  transform: translateY(-1px);
}

.lead-capture-card .lead-capture-card-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 145, 175, 0.3);
}

/* Narrow columns: stack the copy above a full-width button rather than
   squeezing the CTA — the legacy article page swapped to a fixed bottom bar
   here, which would collide with the article shell's sticky tab strip. */
@media (max-width: 599px) {
  .lead-capture-card {
    padding: 16px;
  }
  .lead-capture-card .lead-capture-card-content {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .lead-capture-card .lead-capture-card-btn {
    width: 100%;
  }
}

/* ---------- Subscribe modal ---------- */

#lead-capture-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#lead-capture-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.lead-capture-modal-content {
  display: flex;
  flex-direction: column;
}

.lead-capture-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.lead-capture-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.lead-capture-modal-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.lead-capture-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.lead-capture-modal-body {
  padding: 24px;
}

.lead-capture-description {
  margin: 0 0 20px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.lead-capture-form-group {
  margin-bottom: 20px;
}

.lead-capture-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.lead-capture-form-group input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.lead-capture-form-group input[type="email"]:hover {
  border-color: #9ca3af;
}

.lead-capture-form-group input[type="email"]:focus {
  outline: none;
  border-color: #0091af;
  box-shadow: 0 0 0 3px rgba(0, 145, 175, 0.1);
}

.lead-capture-form-group input[type="email"]::placeholder {
  color: #9ca3af;
}

.lead-capture-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-capture-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lead-capture-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #0091af;
}

.lead-capture-checkbox label {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.lead-capture-checkbox label a {
  color: #0091af;
  text-decoration: none;
}

.lead-capture-checkbox label a:hover {
  text-decoration: underline;
}

.lead-capture-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.lead-capture-btn-cancel {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lead-capture-btn-cancel:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.lead-capture-btn-submit {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(135deg, #0091af 0%, #007a94 100%);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lead-capture-btn-submit:hover {
  background: linear-gradient(135deg, #007a94 0%, #006578 100%);
  box-shadow: 0 2px 8px rgba(0, 145, 175, 0.3);
}

.lead-capture-btn-submit:active {
  transform: translateY(1px);
}

.lead-capture-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.lead-capture-error {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
}
