/* ═══════════════════════════════════════════════════════════════
   Free Car Foundation – Promo Popup
   Shows 4 s after load · close button appears after 40 s
   ═══════════════════════════════════════════════════════════════ */

/* Overlay */
.fcf-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 30, 30, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.fcf-popup-overlay.fcf-popup--visible {
  opacity: 1;
  visibility: visible;
}

/* Card */
.fcf-popup {
  position: relative;
  width: 94%;
  max-width: 440px;
  background: linear-gradient(160deg, #ffffff 0%, #f0fafa 100%);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28),
              0  4px 16px rgba(15, 92, 92, .12);
  padding: 44px 32px 36px;
  text-align: center;
  transform: translateY(32px) scale(.94);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
              opacity  .5s cubic-bezier(.22, 1, .36, 1);
}
.fcf-popup-overlay.fcf-popup--visible .fcf-popup {
  transform: translateY(0) scale(1);
}

/* Decorative top accent bar */
.fcf-popup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #0F5C5C, #14B8A6);
}

/* Close button */
.fcf-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none;
  background: rgba(15, 92, 92, .08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(.7);
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease,
              background .2s ease;
}
.fcf-popup-close.fcf-popup-close--show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.fcf-popup-close:hover,
.fcf-popup-close:focus-visible {
  background: rgba(15, 92, 92, .16);
}
.fcf-popup-close svg {
  width: 16px; height: 16px;
  stroke: #0F5C5C;
  stroke-width: 2.4;
}

/* Car icon circle */
.fcf-popup-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0F5C5C 0%, #14B8A6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(15, 92, 92, .3);
  animation: fcf-pulse 2.8s ease-in-out infinite;
}
.fcf-popup-icon svg {
  width: 36px; height: 36px;
  fill: #fff;
}

@keyframes fcf-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(15, 92, 92, .3); }
  50%      { box-shadow: 0 8px 30px rgba(20, 184, 166, .45); }
}

/* Title */
.fcf-popup-title {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0F3D3D;
  line-height: 1.3;
  margin: 0 0 12px;
}

/* Body text */
.fcf-popup-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: #3D5A5A;
  margin: 0 0 26px;
}

/* CTA button */
.fcf-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0F5C5C 0%, #117A6B 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 92, 92, .35);
  transition: transform .22s ease, box-shadow .22s ease, background .3s ease;
}
.fcf-popup-cta:hover,
.fcf-popup-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(15, 92, 92, .4);
  background: linear-gradient(135deg, #0E4F4F 0%, #0F6B5E 100%);
}
.fcf-popup-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(15, 92, 92, .3);
}
.fcf-popup-cta svg {
  width: 18px; height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* Limited time badge */
.fcf-popup-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0F5C5C;
  background: rgba(20, 184, 166, .14);
  border: 1px solid rgba(20, 184, 166, .3);
  border-radius: 100px;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .fcf-popup {
    padding: 36px 22px 30px;
    border-radius: 16px;
    max-width: 96%;
  }
  .fcf-popup-icon {
    width: 60px; height: 60px;
  }
  .fcf-popup-icon svg {
    width: 30px; height: 30px;
  }
  .fcf-popup-title {
    font-size: 1.2rem;
  }
  .fcf-popup-text {
    font-size: .88rem;
  }
  .fcf-popup-cta {
    padding: 12px 28px;
    font-size: .93rem;
    width: 100%;
    justify-content: center;
  }
}

/* Reduce motion for a11y */
@media (prefers-reduced-motion: reduce) {
  .fcf-popup-overlay,
  .fcf-popup,
  .fcf-popup-close,
  .fcf-popup-cta {
    transition-duration: 0s !important;
    animation: none !important;
  }
}
