/* RingCentral-style Use Case Carousel */
.rc-carousel-section{
  padding: 70px 20px; /* align with other sections (calculator/testimonials) */
  background: var(--bg-light);
}
.rc-carousel-wrap{
  max-width: 900px; /* match calculator outer box width (.calc-outer-box) */
  margin: 0 auto;
}
.rc-carousel-header{
  text-align:center;
  margin-bottom: 22px;
}

/* Proof text (Common calls) shown on-image */
.rc-proof{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,26,43,0.08);
  box-shadow: 0 12px 34px rgba(0,0,0,0.16);
  color: rgba(15,26,43,0.72);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1;
  max-width: calc(100% - 44px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 3;
}

@media (max-width: 768px){
  .rc-proof{ display:none; }
}

.rc-proof-line{ display:none; }

/* Optional: hide chips everywhere if you ever want a cleaner image-only carousel */
/* .rc-label{ display:none !important; } */
.rc-carousel-header h2{
  font-size: 2.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: rgba(15, 26, 43, 0.95);
  margin: 0;
}

@media (max-width: 768px){
  .rc-carousel-header h2{ font-size: 2.05rem; }
}

.rc-carousel-subhead{
  margin: 10px auto 0;
  max-width: 720px;
  color: rgba(15, 26, 43, 0.70);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 600;
}

/* CTA row under carousel */
.rc-cta-row{
  display:flex;
  gap: 12px;
  justify-content:center;
  align-items:center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.rc-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.rc-cta--primary{
  background: linear-gradient(135deg, #2f56c9 0%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 18px 45px rgba(47,86,201,0.25);
}

.rc-cta--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(47,86,201,0.32);
}

.rc-cta--secondary{
  background: rgba(255,255,255,0.92);
  color: rgba(15,26,43,0.92);
  border: 1px solid rgba(15,26,43,0.10);
}

.rc-cta--secondary:hover{ transform: translateY(-1px); }

.rc-carousel{
  position: relative;
}

.rc-stage{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 18px 55px rgba(15, 26, 43, 0.16);
}

.rc-slide{
  display:none;
  position: relative;
  width: 100%;
  height: 520px;
}

.rc-slide.is-active{display:block;}

.rc-slide img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* subtle gradient like RingCentral for readable bottom text */
.rc-slide::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.72) 100%);
  pointer-events:none;
}

/* animated labels */
.rc-label{
  position:absolute;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(15,26,43,0.08);
  color: rgba(15,26,43,0.88);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  backdrop-filter: blur(8px);
}

/* Organized badge layout: 1 badge in top-left */
/* Outcome badge removed per request */
.rc-slide .rc-label{ display:none !important; }

@media (max-width: 768px){
  /* On small screens the overlay chips feel busy */
  .rc-slide .rc-label{ display:none; }
}
.rc-label i{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1aa37a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  flex: 0 0 auto;
}

.rc-slide.is-active .rc-label{
  opacity: 1;
  transform: translateY(0);
}

/* stagger label entrance */
.rc-slide.is-active .rc-label:nth-of-type(1){ transition-delay: .06s; }


/* tabs */
.rc-tabs{
  display:flex;
  gap: 18px;
  justify-content: center;
  align-items:center;
  padding: 16px 10px 0;
  flex-wrap: wrap;
}

.rc-tab{
  appearance:none;
  border:0;
  background: transparent;
  color: rgba(15, 26, 43, 0.55);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 6px;
  cursor:pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.rc-tab:hover{ color: rgba(15, 26, 43, 0.8); }

.rc-tab[aria-selected="true"]{
  color: #0f1a2b;
  border-color: #ffffff;
}

/* Tabs bar sits UNDER the image (not overlay) */
.rc-tabs-shell{
  margin-top: 14px;
  position: relative;
  z-index: 3;
  padding-bottom: 0;
}

/* Quote box under carousel */
.rc-quote{
  margin-top: 26px;
  background: #ffffff;
  border: 1px solid rgba(15, 26, 43, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 26, 43, 0.08);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 10px;
  align-items: start;
}

.rc-quote__stars{
  grid-column: 1;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding-top: 4px;
}

.rc-quote__stars .fa-star{
  color: #f5a623;
  font-size: 18px;
}

.rc-quote__text{
  grid-column: 2;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(15, 26, 43, 0.9);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.rc-quote__by{
  grid-column: 2;
  color: rgba(15, 26, 43, 0.65);
  font-weight: 650;
  font-size: 0.95rem;
}

/* Inline attribution appended to quote by JS */
.rc-quote__by-inline{
  font-size: 0.86em;
  font-weight: 600;
  color: rgba(15, 26, 43, 0.65);
  white-space: nowrap;
}

@media (max-width: 640px){
  .rc-quote{
    grid-template-columns: 1fr;
    padding: 18px 18px;
  }
  .rc-quote__text,
  .rc-quote__by{
    grid-column: 1;
  }
}

.rc-tabs-shell::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  border-radius: 18px;
  background: rgba(15,26,43,0.06);
  border: 1px solid rgba(15,26,43,0.08);
  z-index: -1;
}

.rc-tabs{
  padding: 12px 24px;
}

.rc-tab{
  color: rgba(15,26,43,0.60);
}
.rc-tab:hover{ color: rgba(15,26,43,0.85); }
.rc-tab[aria-selected="true"]{ color: rgba(15,26,43,0.95); border-color: rgba(15,26,43,0.35); }

/* Responsive */
@media (max-width: 980px){
  .rc-slide{ height: 460px; }
}
@media (max-width: 640px){
  .rc-carousel-section{ padding: 52px 14px; }
  .rc-stage{ border-radius: 22px; }
  .rc-slide{ height: 340px; }
  .rc-label{ font-size: 0.9rem; padding: 9px 12px; }
  .rc-tabs-shell{ margin-top: 12px; }
  .rc-tabs-shell::before{ height: 66px; }
  .rc-tabs{ gap: 10px; justify-content: flex-start; overflow-x:auto; flex-wrap: nowrap; }
  .rc-tabs::-webkit-scrollbar{ height: 0; }
  .rc-tab{ white-space: nowrap; }
}
