/**
 * Styles for inline lead capture component + sticky mobile CTA.
 * Owns: .dc-lead-capture, .dc-lc-*, .dc-sticky-cta.
 */

/* ── Inline Lead Capture Box ──────────────────────────────── */
.dc-lc-box {
  background: linear-gradient(135deg, #0A1628 0%, #122A4A 100%);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.dc-lc-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #C9A96E;
  margin-bottom: 0.75rem;
}
.dc-lc-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #FAF8F5;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.dc-lc-sub {
  font-size: 0.95rem;
  color: rgba(250,248,245,0.65);
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.dc-lc-row {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto 0.75rem;
}
.dc-lc-email {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(201,169,110,0.3);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #FAF8F5;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.dc-lc-email::placeholder { color: rgba(250,248,245,0.35); }
.dc-lc-email:focus { border-color: #C9A96E; }
.dc-lc-btn {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #C9A96E, #D4BC8E);
  color: #0A1628;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dc-lc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.35);
}
.dc-lc-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.dc-lc-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  font-size: 0.78rem;
  color: rgba(250,248,245,0.5);
  line-height: 1.5;
}
.dc-lc-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #C9A96E;
  cursor: pointer;
}
.dc-lc-error {
  color: #FCA5A5;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
}
.dc-lc-success {
  color: #FAF8F5;
  font-size: 1.05rem;
  padding: 1rem 0;
  line-height: 1.6;
}

/* ── Sticky Mobile CTA Bar ────────────────────────────────── */
.dc-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(135deg, #C9A96E 0%, #D4BC8E 100%);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.dc-sticky-cta.dc-sticky-visible {
  transform: translateY(0);
}
.dc-sticky-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: #0A1628;
  text-decoration: none;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dc-sticky-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.dc-sticky-link:hover .dc-sticky-arrow {
  transform: translateX(3px);
}

/* Ensure body has bottom padding when sticky is visible */
body.dc-sticky-active {
  padding-bottom: 60px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .dc-lc-box { padding: 2rem 1.25rem; }
  .dc-lc-heading { font-size: 1.3rem; }
  .dc-lc-row {
    flex-direction: column;
  }
  .dc-lc-btn {
    width: 100%;
  }
}

/* Pulse dot in sticky CTA to draw attention */
.dc-sticky-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0A1628;
  animation: dc-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes dc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* On desktop, make sticky subtler — right-aligned floating pill */
@media (min-width: 769px) {
  .dc-sticky-cta {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    width: auto;
  }
  .dc-sticky-link {
    padding: 0.85rem 1.5rem;
  }
}
