/* CRO Quick Wins Styles - March 2026 */
/* Design tokens: Teal #2D9B87, Navy #1A365D, Beige #EBE1D5, Inter font, 8px grid */

/* ========================================
   1. HOMEPAGE EMAIL CAPTURE FORM
   ======================================== */

.email-capture-section {
  background: #EBE1D5; /* Beige */
  border-radius: 12px;
  padding: 24px;
  margin: var(--space-2xl) 0;
  text-align: center;
}

.email-capture-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A365D; /* Navy */
  margin: 0 0 8px 0;
}

.email-capture-section p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #4A5568; /* Darkened from #64748B for WCAG AA on beige bg */
  margin: 0 0 24px 0;
}

.email-capture-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  flex-direction: column;
}

@media (min-width: 480px) {
  .email-capture-form {
    flex-direction: row;
  }
}

.email-capture-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  min-height: 44px;
}

.email-capture-form input[type="email"]:focus {
  outline: 2px solid #1F7063; /* Teal */
  outline-offset: 2px;
}

.email-capture-form button {
  background: #227A6A; /* Teal — WCAG AA fix */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.email-capture-form button:hover {
  background: #258f81; /* Darker teal */
}

.email-capture-form button:active {
  background: #1f7a6f; /* Even darker teal */
}

/* ========================================
   2. CALCULATOR RESULT SHARING
   ======================================== */

.calculator-sharing {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid #E2E8F0;
}

.calculator-sharing h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1A365D; /* Navy */
  margin: 0 0 16px 0;
}

.sharing-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sharing-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: white;
  color: #1A365D; /* Navy */
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.sharing-button:hover {
  background: #F8FAFC;
  border-color: #1F7063; /* WCAG AA fix */ /* Teal */
}

.sharing-button svg {
  width: 20px;
  height: 20px;
}

.email-results-button {
  background: #227A6A; /* Teal — WCAG AA fix */
  color: white;
  border: none;
}

.email-results-button:hover {
  background: #258f81;
}

.upgrade-prompt {
  background: rgba(45, 155, 135, 0.1); /* Teal 10% opacity */
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
}

.upgrade-prompt p {
  font-size: 14px;
  color: #1E293B;
  margin: 0 0 8px 0;
}

.upgrade-prompt a {
  color: #1F7063; /* WCAG AA fix */ /* Teal */
  font-weight: 600;
  text-decoration: none;
}

.upgrade-prompt a:hover {
  text-decoration: underline;
}

/* ========================================
   3. BLOG IN-CONTENT CTAS
   ======================================== */

.blog-inline-cta {
  background: rgba(45, 155, 135, 0.1); /* Teal 10% opacity */
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.blog-inline-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1E293B;
  margin: 0 0 16px 0;
}

.blog-inline-cta .cta-button {
  display: inline-block;
  background: #227A6A; /* Teal — WCAG AA fix */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-inline-cta .cta-button:hover {
  background: #258f81;
}

.blog-bottom-cta {
  background: #EBE1D5; /* Beige */
  border-radius: 12px;
  padding: 32px 24px;
  margin: 48px 0 32px 0;
  text-align: center;
}

.blog-bottom-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A365D; /* Navy */
  margin: 0 0 8px 0;
}

.blog-bottom-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #64748B;
  margin: 0 0 24px 0;
}

.blog-bottom-email-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  flex-direction: column;
}

@media (min-width: 480px) {
  .blog-bottom-email-form {
    flex-direction: row;
  }
}

.blog-bottom-email-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  min-height: 44px;
}

.blog-bottom-email-form input[type="email"]:focus {
  outline: 2px solid #1F7063; /* Teal */
  outline-offset: 2px;
}

.blog-bottom-email-form button {
  background: #227A6A; /* Teal — WCAG AA fix */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.blog-bottom-email-form button:hover {
  background: #258f81;
}

/* ========================================
   4. STICKY MOBILE CTA
   ======================================== */

.sticky-mobile-cta {
  display: none; /* Hidden by default, shown on mobile only */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #227A6A; /* Teal — WCAG AA fix */
  height: 56px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999; /* Below cookie banner (usually 1000+) */
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .sticky-mobile-cta {
    display: flex;
  }
  
  /* Add bottom padding to body to prevent overlap */
  body {
    padding-bottom: 56px;
  }
}

.sticky-mobile-cta .cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.sticky-mobile-cta .cta-button {
  background: white;
  color: #1F7063; /* WCAG AA fix */ /* Teal */
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sticky-mobile-cta .cta-button:hover {
  background: #F8FAFC;
}

/* Ensure cookie banner is above sticky CTA */
#CybotCookiebotDialog {
  z-index: 1001 !important;
}
