/* ============================================
   CONVERSION BOOST STYLES
   Mobile CTA Bar + Exit-Intent Popup
   ============================================ */

/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.conversion-boost-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #f96b29;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9990;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.5s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.conversion-boost-sticky-bar.show {
  display: flex;
}

.conversion-boost-sticky-bar.hidden {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.conversion-boost-sticky-bar__text {
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  flex: 1;
  white-space: nowrap;
}

.conversion-boost-sticky-bar__button {
  background-color: white;
  color: #f96b29;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.conversion-boost-sticky-bar__button:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.conversion-boost-sticky-bar__button:active {
  transform: scale(0.98);
}

/* Hide sticky bar on desktop (768px+) */
@media (min-width: 768px) {
  .conversion-boost-sticky-bar {
    display: none !important;
  }
}

/* Adjust body padding when sticky bar is visible on mobile */
@media (max-width: 767px) {
  body.conversion-boost-sticky-active {
    padding-bottom: 60px;
  }
}

/* ============================================
   EXIT-INTENT POPUP
   ============================================ */
.conversion-boost-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.conversion-boost-modal-overlay.show {
  display: flex;
}

.conversion-boost-modal {
  background-color: white;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  animation: modalSlideIn 0.4s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.conversion-boost-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.conversion-boost-modal__close:hover {
  color: #000;
}

.conversion-boost-modal__headline {
  font-size: 24px;
  font-weight: 700;
  color: #394458;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.conversion-boost-modal__subtext {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.conversion-boost-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.conversion-boost-modal__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.conversion-boost-modal__input:focus {
  outline: none;
  border-color: #f96b29;
  box-shadow: 0 0 0 3px rgba(249, 107, 41, 0.1);
}

.conversion-boost-modal__input::placeholder {
  color: #999;
}

.conversion-boost-modal__cta {
  background-color: #f96b29;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.conversion-boost-modal__cta:hover {
  background-color: #e85a1a;
  transform: translateY(-2px);
}

.conversion-boost-modal__cta:active {
  transform: translateY(0);
}

.conversion-boost-modal__cta:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.conversion-boost-modal__dismiss {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
}

.conversion-boost-modal__dismiss:hover {
  color: #000;
}

.conversion-boost-modal__success {
  text-align: center;
  display: none;
}

.conversion-boost-modal__success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.conversion-boost-modal__success-message {
  font-size: 18px;
  font-weight: 700;
  color: #394458;
  margin-bottom: 8px;
}

.conversion-boost-modal__success-subtext {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .conversion-boost-modal {
    padding: 32px 24px;
  }

  .conversion-boost-modal__headline {
    font-size: 20px;
  }

  .conversion-boost-sticky-bar {
    height: 56px;
    padding: 0 12px;
  }

  .conversion-boost-sticky-bar__text {
    font-size: 14px;
  }

  .conversion-boost-sticky-bar__button {
    padding: 6px 12px;
    font-size: 13px;
  }

  body.conversion-boost-sticky-active {
    padding-bottom: 56px;
  }
}
