/**
 * Homepage RCS Webinar promo strip
 */
#rcs-webinar-strip {
  --rcs-strip-brand: #122089;
  --rcs-strip-accent: #1a73e8;
  --rcs-strip-glow: rgba(26, 115, 232, 0.35);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background:
    radial-gradient(ellipse 80% 120% at 10% 50%, rgba(26, 115, 232, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 100% at 95% 30%, rgba(73, 49, 108, 0.18), transparent 50%),
    linear-gradient(105deg, #0d1a6e 0%, #122089 38%, #2b4fd4 72%, #49316c 100%);
  color: #fff;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(18, 32, 137, 0.22);
}

#rcs-webinar-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

.rcs-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
  min-height: 46px;
}

/* Desktop: hard cap height (override any conflicting CSS) */
@media (min-width: 768px) {
  #rcs-webinar-strip .rcs-strip-inner{
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    min-height: 40px !important;
  }

  /* One-line strip on desktop for minimal height */
  #rcs-webinar-strip .rcs-strip-meta{
    display: none !important;
  }

  #rcs-webinar-strip .rcs-strip-title{
    line-height: 1.1 !important;
  }

  #rcs-webinar-strip .rcs-strip-cta{
    padding: 0.45rem 0.95rem !important;
    font-size: 0.86rem !important;
  }

  #rcs-webinar-strip .rcs-strip-phone{
    width: 36px !important;
    height: 48px !important;
  }
}

.rcs-strip-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.rcs-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.rcs-strip-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
  animation: rcsStripPulse 2s ease-in-out infinite;
}

@keyframes rcsStripPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.2); }
}

.rcs-strip-text {
  min-width: 0;
}

.rcs-strip-title {
  font-weight: 800;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rcs-strip-title-sep{
  opacity: 0.65;
  margin: 0 .25rem;
}

.rcs-strip-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
}

.rcs-strip-link:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.rcs-strip-meta {
  font-size: 0.76rem;
  opacity: 0.88;
  margin: 0.05rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rcs-strip-phone {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 54px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.rcs-strip-phone-screen {
  position: absolute;
  inset: 6px 4px;
  border-radius: 6px;
  background: #f8f9fa;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rcs-strip-bubble {
  height: 6px;
  border-radius: 4px;
  background: #e8eaed;
}

.rcs-strip-bubble--brand {
  width: 70%;
  background: linear-gradient(90deg, var(--rcs-strip-accent), #49316c);
  animation: rcsStripBubble 3s ease-in-out infinite;
}

.rcs-strip-bubble--sm { width: 55%; }
.rcs-strip-bubble--md { width: 80%; }

@keyframes rcsStripBubble {
  0%, 100% { opacity: 0.7; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.05); }
}

.rcs-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: #fff;
  color: var(--rcs-strip-brand);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rcs-strip-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  color: var(--rcs-strip-brand);
  text-decoration: none;
}

.rcs-strip-cta-arrow {
  transition: transform 0.18s ease;
}

.rcs-strip-cta:hover .rcs-strip-cta-arrow {
  transform: translateX(3px);
}

.rcs-strip-close {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  z-index: 3;
  opacity: 0.55;
}

.rcs-strip-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.rcs-strip-close:focus-visible{
  outline: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
}

/* keep the close button on the far-right edge */
#rcs-webinar-strip .rcs-strip-inner{
  padding-right: 2rem;
}

#rcs-webinar-strip.rcs-strip-dismissed {
  display: none;
}

@media (min-width: 768px) {
  .rcs-strip-phone { display: block; }
  .rcs-strip-inner { padding-right: 2.15rem; }
}

@media (max-width: 767px) {
  .rcs-strip-inner {
    flex-wrap: wrap;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    min-height: unset;
  }

  .rcs-strip-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Mobile: keep the strip minimal (one line + CTA) */
  .rcs-strip-meta{
    display: none;
  }

  .rcs-strip-title{
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .rcs-strip-cta {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-strip-badge-dot,
  .rcs-strip-bubble--brand { animation: none; }
}
