@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300,600,700&display=swap');

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* This is the fix */
}

/* Hero Section Styling */
#hero-parallax {
  /* This section is now just a padded container with a light gray background */
  padding-top: 100px;
  padding-bottom: 50px;
  background: linear-gradient(135deg, #3D52D5, #2B3EAD);
  /*! background: linear-gradient(to bottom, #ffffff, #edf0f3); */
}

footer a[href="https://mychurchwebsite.com"] {
  color: #8EB3FB;
  /* Tailwind's yellow-400 */
}

.hero-container {
  position: relative;
  /* Blue gradient background */
  color: white;
  border-radius: 24px;
  /* This creates the rounded corners! */
  /* Adds a subtle shadow */
  overflow: visible !important;
  padding-left: 8em;
  max-width: 1440px;
  margin-top: 84px;
}

.no-typing {
  pointer-events: none;
}

.textsection {
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.feature-icon-nav .icon-container {
  margin-right: 27px;
}

#features-content-container .button-label {
  margin: 7px;
}

/* Add negative margins to the phone column to make it overlap */
.phone-column {
  margin-top: -70px;
  margin-bottom: -70px;
}

@media (max-width: 1250px) {
  .hero-container {
    padding-left: 3em;
    /* Still keeps it from the edge */
    border-radius: 0px;
  }
  
  #hero-parallax {
    padding-top: 150px;
    padding-bottom: 50px;
    background-color: #F9FAFB;
    /* This is a light gray like Tailwind's bg-gray-50 */
  }
  
  .textsection {
    padding-bottom: 4rem;
    padding-top: 0rem;
    transform: scale(0.85);
    transform-origin: center;
  }
}

@media (max-width: 850px) {
  .hero-container {
    padding: 40px;
    /* This creates the rounded corners! */
  }
}

@media (max-width: 768px) {
  .feature-animation .ccd-chat-container, .feature-animation .chb-chat-container, .feature-animation .mobile-mockup {
    pointer-events: none;
  }
  
  #hero-parallax {
    padding-top: 84px;
    /* 64px nav height + 20px */
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
  }
  
  .hero-container {
    padding: 20px;
    border-radius: 0;
    margin-top: -20px;
  }
  
  .textsection {
    padding-top: 4rem;
    padding-bottom: 0rem;
    transform: none;
    text-align: center;
  }
  
  .textsection .justify-left {
    justify-content: center;
  }
  
  .phone-column {
    margin-top: 20px;
    margin-bottom: 0;
    padding-right: 0;
  }
  
  .maintitleofpage .headline {
    font-size: 2.25rem !important;
    /* 36px */
    line-height: 1.2 !important;
  }
}

/* Styles for the main headline text */
.headline-text {
  color: #000;
  font-size: 32px !important;
  /* Added !important to override other headline styles if needed */
  line-height: 1.2;
}

/* Styles for the green 'free' badge inside the headline */
.headline .btn-primary.free {
  color: white;
  background-color: #39B78E;
  padding: 2px 12px;
  border-radius: 8px;
}

/* Styles for the sub-headline box */
.h1sub {
  background-color: #E4E4E4;
  color: #000;
}

/* Tabbed Features Section */
.feature-button.active {
  position: relative;
  /* This is needed to position the arrow correctly */
  transform: translateY(-2px);
  border-color: #374BC7;
  border-width: 3px;
  /*! border-style: double; */
}

/* This new rule creates the downward-pointing arrow */
.feature-button.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  /* Adjusts the arrow's distance from the button */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #374BC7;
  /* This creates the triangle shape and color */
}

/* New Grid Layout for Fading */
#features-content-container {
  display: grid;
}

.feature-content-wrapper {
  /* All sections occupy the same space in the grid */
  grid-area: 1 / 1;
  /* Make non-active sections invisible and non-interactive */
  opacity: 0;
  visibility: hidden;
  /* Define the 1000ms fade transition */
  transition: opacity 500ms ease-in-out, visibility 500ms ease-in-out;
}

.feature-content-wrapper.active {
  /* Make the active section visible */
  opacity: 1;
  visibility: visible;
}

.feature-content-inner {
  padding: 0px 20px;
  border-radius: 12px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .feature-content-inner {
    padding: 24px 15px;
  }
}

/* Icon Button Navigation within Feature Sections */
.feature-icon-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  /* Adjust gap as needed */
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E5E7EB;
  /* tailwind gray-200 */
}

.feature-icon-button {
  color: #9CA3AF;
  /* tailwind gray-400 */
  background-color: transparent;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-icon-button:hover {
  color: #374BC7;
  background-color: #EEF2FF;
  /* tailwind indigo-50 */
}

.feature-icon-button.active {
  color: #374BC7;
  background-color: #E0E7FF;
  /* tailwind indigo-100 */
  border-color: #C7D2FE;
  /* tailwind indigo-200 */
  transform: scale(1.1);
}

/* Adjust icon size within the buttons */
.feature-icon-button i {
  font-size: 24px;
}

/* --- Animation Control --- */
/* Define the fade-in-up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* By default, hide all animated chat bubbles */
.ccd-chat-body > .ccd-message-group, .chb-chat-body > .chb-message-group {
  opacity: 0;
  /* This ensures they stay hidden until the animation is applied */
  animation-fill-mode: forwards;
}

/* --- Trigger Animations for AI Chat --- */
/* Only apply animations when the container has the .start-animation class */
.ccd-chat-container.start-animation #ccd-bot-bubble-1-anim {
  animation: fadeInUp 0.5s 0.3s forwards;
}

.ccd-chat-container.start-animation #ccd-user-bubble-1-anim {
  animation: fadeInUp 0.5s 1.1s forwards;
}

.ccd-chat-container.start-animation #ccd-bot-bubble-2-anim {
  animation: fadeInUp 0.5s 1.9s forwards;
}

.ccd-chat-container.start-animation #ccd-bot-form-anim {
  animation: fadeInUp 0.5s 2.7s forwards;
}

/* --- Trigger Animations for Live Human Chat --- */
/* Only apply animations when the container has the .start-animation class */
.chb-chat-container.start-animation #chb-bot-bubble-1-anim {
  animation: fadeInUp 0.5s 0.3s forwards;
}

.chb-chat-container.start-animation #chb-user-bubble-1-anim {
  animation: fadeInUp 0.5s 1.1s forwards;
}

.chb-chat-container.start-animation #chb-bot-bubble-2-anim {
  animation: fadeInUp 0.5s 1.9s forwards;
}

.chb-chat-container.start-animation #chb-user-bubble-2-anim {
  animation: fadeInUp 0.5s 2.7s forwards;
}

.hero-section {
  padding-bottom: 100px;
  background: linear-gradient(to bottom, #FFF, #F7FAFC);
}

.btn-demo1 {
  border: 2px solid #394DCC;
  color: #394DCC;
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
}

.btn-primary1 {
  border: 2px solid #39B78E;
  color: #39B78E;
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
}

.btn-primary2 {
  border: 2px solid #39B78E;
  color: #FFF;
  background: #39B291;
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 18px;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

.subtoptitle {
  font-style: italic;
  line-height: 22px;
  margin-bottom: 10px;
  font-size: 18px;
  background-color: #E8ECF4;
  display: inline-block;
  padding: 7px 18px 7px 20px;
  /*+border-radius: 46px;*/
  -moz-border-radius: 46px;
  -webkit-border-radius: 46px;
  -khtml-border-radius: 46px;
  border-radius: 46px;
  font-weight: 300;
  margin-left: -3px;
}

.text-lg.italic {
  color: #D72542;
}

.blue {
  background-color: #394DCC;
}

.headline {
  font-family: roboto;
  font-size: 58px !important;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 9px;
  padding-top: 7px;
  color: #FFF;
}

.maintitleofpage .headline b {
  color: #9EBFEA;
  font-style: italic;
  font-weight: 700;
  font-family: playfair display;
}

.secondheaderline {
  font-size: 28px !important;
  font-weight: 300;
  margin-bottom: 5px;
  line-height: 1.2;
  margin-top: 10px;
}

.faq-toggle {
  border: 1px solid #4B5563;
}

.btn-demo, .btn-primary, .btn-demo-hero {
  background-color: #394DCC;
  color: #FFF;
  padding: 0.65rem 1.5rem 0.65rem 1.5rem;
  border-radius: 100px !important;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  display: block;
  max-width: 100%;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin: 0px !important;
}

.hero-container .items-center a {
  margin-right: 17px !important;
}

.btn-demo-hero {
  background-color: #D43550;
}

.btn-primary {
  background-color: #39B78E;
  color: white;
  padding: 0.75rem 1.5rem 0.65rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.openingsubtitle {
  padding-bottom: 32px;
  font-size: 18px;
  font-weight: 300;
}

.h1sub {
  font-size: 23px;
  font-style: normal;
  background-color: rgba(255, 255, 255, 0.185);
  margin-top: 8px;
  padding: 8px 28px 10px 20px;
  line-height: 25px;
  display: inline-block;
  font-weight: 400;
  color: #FFFFFF;
  font-style: italic;
  /*+border-radius: 0;*/
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  -khtml-border-radius: 0;
  border-radius: 0;
  font-family: roboto;
}

.h1sub b {
  color: #FFD967;
}

.plus {
  font-weight: bold;
  color: #000000 !important;
}

.highlight {
  color: #FFD967;
  font-weight: 600;
}

.desktop {
  display: none;
}

.maintitleofpage b {
  font-weight: 600;
}

.plus {
  font-size: 22px;
  color: #727272;
}

.add-ons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.add-on-item {
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.add-on-item i {
  color: #000;
  margin-right: 12px;
  margin-top: 4px;
  width: 28px;
  font-size: 1.5rem;
}

.add-on-title {
  color: #000;
  font-size: 1.25rem;
}

.video-outer {
  background: white;
  /* or transparent if you want no background */
  border-radius: 41px 41px 0 0;
  max-width: 1312px;
  margin: 0 auto;
  max-width: 1175px;
}

.outerhero {
  background: #F7FAFC;
  /*! padding-top: 50px; */
}

.video-container {
  background: transparent;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border: 2px solid #E0E0E0;
  padding: 10px;
  border-radius: 35px 35px 0 0;
  border-bottom: 0px;
}

.video-inner {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  width: 100%;
  height: 100%;
}

.video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px 20px 0 0;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 140px;
    padding-bottom: 20px;
  }
  
  .headline {
    font-size: 48px;
  }
  
  .big {
    font-size: 60px;
  }
  
  .desktop {
    display: block;
  }
  
  .add-ons {
    grid-template-columns: 1fr 1fr;
  }
}

*:focus {
  outline: none !important;
}

.hero-container .mr-2 span {
  font-size: 14px;
}

.button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 640px) {
  .button-container {
    flex-direction: row;
    gap: 15px;
  }
}

.rounded-button {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  margin-right: 13px;
  margin-left: 12px;
}

.white-button {
  background-color: #FFFFFF;
  color: #000000;
  border: none;
}

.white-button:hover {
  background-color: #F5F5F5;
}

.demo-button {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

@media (max-width: 768px) {
  .maintitleofpage .headline b {
    display: block;
  }
  
  .btn-demo, .btn-primary, .btn-demo-hero {
    font-size: 16px;
  }
  
  .textsection {
    text-align: center;
  }
  
  .textsection .justify-left {
    justify-content: center;
  }
  
  .textsection .justify-left a {
    margin-right: 10px !important;
    margin-left: 10px !important;
  }
  
  .secondheaderline {
    padding: 0;
    margin: 0 0 8px 0;
  }
  
  .maintitleofpage h1.headline {
    font-size: 40px !important;
    line-height: 1.1 !important;
  }
  
  .subtoptitle {
    font-size: 15px;
    display: none;
  }
  
  #addons .italic {
    color: #D82542;
  }
  
  #addons .textsection .flex {
    justify-content: center;
  }
  
  .demo-button:hover {
    background-color: #FFFFFF;
    color: #0056B3;
  }
  
  .rounded-button {
    width: 231px;
    margin-bottom: 20px;
  }
  
  .justify-leftitems-center {
    justify-content: center;
  }
}

/* Custom styles */
:root {
  --primary: #394dcc;
  --primary-dark: #394dcc;
  --secondary: #10B981;
  --accent: #8B5CF6;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --bg-light: #F9FAFB;
}

li.flex.items-start {
  padding-bottom: 10px;
  text-align: left;
}

li.flex.items-start span {
  font-size: 17px;
}

.featureslabel {
  color: #394DCC;
  font-size: 20px;
}

.icon-style {
  min-width: 50px;
  display: flex;
  text-align: center;
  align-items: center;
  font-size: 1.5rem;
  margin-right: 10px;
  margin-top: 3px;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background-color: #4BAA86;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  display: inline-block;
}

.btn-primary.tryfree {
  font-size: 15px;
  margin-bottom: 5px !important;
  border-radius: 0.5rem !important;
}

.btn-primary.free {
  background-color: #4BAA86;
  color: white;
  padding: 0.35rem 1.0rem;
  border-radius: 0.5rem;
  margin-bottom: 6px;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 17px;
  text-align: center;
  position: relative;
  display: inline-block;
  top: -5px;
  /* move up 20px */
}

.plus {
  font-size: 22px !important;
  color: #727272;
}

.btn-outline {
  border: 2px solid #39B78E;
  color: #39B78E;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.shadow-custom {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chat-window {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-card {
  border-radius: 0.75rem;
  border: 1px solid #E5E7EB;
  padding: 1.5rem;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pricing-card {
  border-radius: 0.75rem;
  border: 1px solid #E5E7EB;
  padding: 1.7rem;
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: #39B78E;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: 130px;
  }
  
  li.flex.items-start {
    font-size: 15px;
  }
  
  .headline, .secondheaderline {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  
  .h1sub {
    font-size: 18px;
  }
  
  .desktop {
    margin-top: -10px;
  }
  
  .add-ons {
    margin-bottom: 48px;
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  #chatbot-container video {
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
  }
  
  .hero-section {
    padding-bottom: 20px;
  }
  
  .flex.justify-end {
    justify-content: center !important;
  }
  
  .pr-8, .md\:pr-12 {
    padding-right: 0 !important;
  }
}

@media (max-width: 508px) {
  .h1sub {
    font-size: 15px;
    line-height: 18px;
  }
}

/* Center videos in their container */
.responsive-video {
  left: 50%;
  transform: translateX(-50%);
}

/* Default width for desktop */
@media (min-width: 769px) {
  .responsive-video {
    width: 325px;
    height: 710px;
  }
}

/* Full width on mobile, but keep aspect and center */
@media (max-width: 768px) {
  .responsive-video {
    width: 90vw;
    height: auto;
    max-height: 700px;
  }
  
  .flex.justify-end {
    justify-content: center !important;
  }
  
  .pr-8, .md\:pr-12 {
    padding-right: 0 !important;
  }
  
  #chatbot-container {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .video-wrapper {
    width: 90vw;
    height: auto;
  }
  
  .video-wrapper video {
    position: relative;
    width: 100%;
    height: auto;
    padding: 8px;
    border-radius: 20px;
  }
  
  .flex.justify-end {
    justify-content: center !important;
  }
  
  .pr-8, .md\:pr-12 {
    padding-right: 0 !important;
  }
  
  #chatbot-container {
    display: flex;
    justify-content: center;
  }
}

.video-wrapper {
  width: 400px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 2px solid #E0E0E0;
  padding: 10px;
  border-radius: 35px;
}

@media (max-width: 768px) {
  .video-wrapper {
    width: 90vw;
    height: auto;
  }
  
  .video-wrapper video {
    width: 100%;
    height: auto;
    padding: 8px;
    border-radius: 20px;
  }
  
  .flex.justify-end {
    justify-content: center !important;
  }
  
  .pr-8, .md\:pr-12 {
    padding-right: 0 !important;
  }
}

.bonus li {
  padding-top: 5px;
}

@media (max-width: 767px) {
  .video-outer, .video-container, .video-inner {
    all: unset;
    display: flex;
    justify-content: center;
    padding: 0 15px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
  }
  
  #heroVideo {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 95vh;
    border: 1px solid grey;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
  }
}

/*Features*/
.features-section {
  background-color: #FFF;
  padding: 80px 20px;
}

.features-container {
  max-width: 1300px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 6px;
}

.features-header p {
  font-size: 18px;
  color: #555;
  max-width: 829px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 15px;
  border: 1px solid #D9D9D9;
}

.icon-wrapper {
  background-color: #394DCC;
  width: 50px;
  height: 50px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #FFF;
}

.feature-item h3 {
  font-size: 22px;
  font-weight: 600;
}

.feature-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

#toggleSettingsBtn {
  position: fixed !important;
  bottom: 175px !important;
  left: auto !important;
  right: 0px !important;
  width: 40px !important;
  height: 40px !important;
  padding-left: 5px !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  border-radius: 100px 0px 0px 100px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 21 !important;
}

#toggleSettingsBtn .settings-text {
  display: none;
}

#toggleSettingsBtn .settings-icon {
  font-size: 20px;
  color: #FFF;
}

/* Mobile: position settings icon above chat button */
@media (max-width: 768px) {
  #toggleSettingsBtn {
    position: fixed !important;
    bottom: 25px !important;
    right: auto !important;
    left: 0px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-radius: 0 100px 100px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
  }
  
  #toggleSettingsBtn .settings-text {
    display: none !important;
  }
  
  #toggleSettingsBtn .settings-icon {
    display: inline-block !important;
    font-size: 20px !important;
    color: #FFF !important;
  }
}

:root {
  --brand-blue: #394dcc;
  --light-gray: #F3F4F6;
  --text-dark: #1F2937;
  --text-light: #FFFFFF;
  /* Total animation cycle duration, increased to accommodate longer pauses */
  --animation-duration: 10s;
}

/* --- Chat Widget Styles --- */
/* Replace your existing .chat-container block with this */
.chat-container {
  width: 380px;
  height: 700px;
  max-height: 90vh;
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  border: 1px solid #B0B0B0;
  position: relative;
  /* anchor for the circle */
  overflow: visible;
  /* let the circle extend outside */
}

/* Red circle beneath bottom right corner */
.chat-container::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #D43550;
  bottom: -22px;
  /* adjusts how far it sits below */
  right: -22px;
  /* adjusts how far it sits to the right */
  pointer-events: none;
  z-index: -1;
}

.chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Increased spacing between bubbles */
  overflow-y: hidden;
  /* Removed scrollbar */
}

/* Styling for individual messages */
.message-group {
  display: flex;
  gap: 0.75rem;
  /* 12px */
  opacity: 0;
  /* Initially hidden, controlled by animation */
  animation-fill-mode: forwards;
  align-items: flex-end;
  /* Align items to the bottom */
}

.message-group.user {
  justify-content: flex-end;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 80%;
  font-size: 15px;
  line-height: 1.4;
}

.message-bubble.bot {
  border: 1px solid #D1D5DB;
  color: #000;
  border-bottom-left-radius: 0.25rem;
}

.bluetext {
  font-weight: 500;
  color: #394DCC;
}

.message-bubble.user {
  background-color: #D1D5DB;
  color: var(--text-dark);
  border-bottom-right-radius: 0.25rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  /* 20px */
}

.avatar.user-avatar {
  background-color: #D1D5DB;
  color: white;
}

.avatar.bot-avatar {
  background-color: var(--brand-blue);
  color: white;
}

@media (max-width: 768px) {
  .chat-container {
    width: 100%;
    max-width: 380px;
    /* Constrain width */
    height: 700px;
    max-height: 90vh;
    background-color: white;
    border-radius: 1.5rem;
    /* 24px */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #B0B0B0;
  }
}

/* --- Animation Keyframes --- */
/* Animation: 800ms fade-in, 2000ms pause */
@keyframes bot-bubble-1-flow {
  0%, 3% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* ~0.5s delay */
  8%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  /* 0.8s fade in */
}

@keyframes user-bubble-1-flow {
  0%, 20% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* ~2s pause, starts at 3.2s */
  25%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  /* 0.8s fade in */
}

@keyframes bot-bubble-2-flow {
  0%, 37% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* ~2s pause, starts at 5.9s */
  42%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  /* 0.8s fade in */
}

@keyframes user-bubble-2-flow {
  0%, 54% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* ~2s pause, starts at 8.6s */
  59%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  /* 0.8s fade in */
}

@keyframes bot-bubble-3-flow {
  0%, 71% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* ~2s pause, starts at 11.3s */
  76%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  /* 0.8s fade in */
}

#bot-bubble-1-anim {
  animation: bot-bubble-1-flow var(--animation-duration) infinite ease-out;
}

#user-bubble-1-anim {
  animation: user-bubble-1-flow var(--animation-duration) infinite ease-out;
}

#bot-bubble-2-anim {
  animation: bot-bubble-2-flow var(--animation-duration) infinite ease-out;
}

#user-bubble-2-anim {
  animation: user-bubble-2-flow var(--animation-duration) infinite ease-out;
}

#bot-bubble-3-anim {
  animation: bot-bubble-3-flow var(--animation-duration) infinite ease-out;
}

/*chat2*/
:root {
  --ccd-brand-blue: var(--brand-blue);
  --ccd-text-light: var(--text-light);
  --ccd-text-dark: var(--text-dark);
  --ccd-animation-duration: 9s;
}

.bluegrey {
  background: #9B9B9B;
}

.ccd-chat-container {
  width: 100%;
  max-width: 380px;
  /* Constrain width */
  height: 700px;
  max-height: 90vh;
  background-color: white;
  border-radius: 1.5rem;
  /* 24px */
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #B0B0B0;
}

.ccd-chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Spacing between bubbles */
  overflow-y: auto;
  /* Enable scrolling */
  scroll-behavior: smooth;
  /* Animate the scroll */
}

/* Styling for individual messages */
.ccd-message-group {
  display: flex;
  gap: 0.75rem;
  /* 12px */
  opacity: 0;
  /* Initially hidden */
  animation-fill-mode: forwards;
  align-items: flex-end;
  /* Align items (avatar and bubble) to the bottom */
}

.ccd-message-group.ccd-user {
  justify-content: flex-end;
}

.ccd-message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.4;
}

.ccd-message-bubble.ccd-bot {
  border: 1px solid #D1D5DB;
  color: #000;
  border-bottom-left-radius: 0.25rem;
}

.ccd-message-bubble.ccd-user-bubble {
  background-color: #E5E7EB;
  color: var(--ccd-text-dark);
  border-bottom-right-radius: 0.25rem;
}

.ccd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  /* 20px */
}

.ccd-avatar.ccd-user-avatar {
  background-color: #D1D5DB;
  color: var(--ccd-text-dark);
}

.ccd-avatar.ccd-bot-avatar {
  background-color: var(--ccd-brand-blue);
  color: white;
}

/* Static Form Styles */
.ccd-static-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* 12px */
  background: #FFF;
}

.ccd-static-form label {
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: -4px;
  color: #000;
}

.ccd-form-field {
  height: 35px;
  border: 1px solid #000;
}

/* --- Looping Animation Keyframes --- */
@keyframes ccd-bot-bubble-1-flow {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  10%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes ccd-user-bubble-1-flow {
  0%, 29% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  30%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes ccd-bot-bubble-2-flow {
  0%, 49% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  50%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes ccd-bot-form-flow {
  0%, 69% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  70%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* --- Custom width for specific bubbles to ensure they match --- */
#ccd-bot-bubble-2-anim .ccd-message-bubble, #ccd-bot-form-anim .ccd-message-bubble {
  width: 85%;
}

/* Apply the looping animations */
#ccd-bot-bubble-1-anim {
  animation: ccd-bot-bubble-1-flow var(--ccd-animation-duration) ease-out infinite;
}

#ccd-user-bubble-1-anim {
  animation: ccd-user-bubble-1-flow var(--ccd-animation-duration) ease-out infinite;
}

#ccd-bot-bubble-2-anim {
  animation: ccd-bot-bubble-2-flow var(--ccd-animation-duration) ease-out infinite;
}

#ccd-bot-form-anim {
  animation: ccd-bot-form-flow var(--ccd-animation-duration) ease-out infinite;
}

/*chat3*/
:root {
  --chb-brand-blue: #394dcc;
  --chb-light-gray: #F3F4F6;
  --chb-text-dark: #1F2937;
  --chb-text-light: #FFFFFF;
  /* Total animation cycle: 7s for messages + 3s pause = 10s */
  --chb-animation-duration: 13s;
}

/* Scoped body style for the demo page */
/* --- Chat Widget Styles --- */
.chb-chat-container {
  width: 100%;
  max-width: 380px;
  /* Constrain width */
  height: 700px;
  max-height: 90vh;
  background-color: white;
  border-radius: 1.5rem;
  /* 24px */
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #B0B0B0;
}

/* Tab Bar styling */
.chb-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 0 1rem;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.chb-tab {
  padding: 0.75rem 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  /* Gray-500 */
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.chb-tab:hover {
  color: var(--chb-text-dark);
}

.chb-tab.chb-tab-active {
  color: var(--chb-brand-blue);
  border-bottom-color: var(--chb-brand-blue);
}

.chb-chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Spacing between bubbles */
  overflow-y: hidden;
  /* Removed scrollbar */
}

/* Styling for individual messages */
.chb-message-group {
  display: flex;
  gap: 0.75rem;
  /* 12px */
  opacity: 0;
  /* Initially hidden */
  animation-fill-mode: forwards;
  align-items: flex-end;
  /* Align items (avatar and bubble) to the bottom */
}

.chb-message-group.chb-user {
  justify-content: flex-end;
}

.chb-message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.4;
}

.chb-message-bubble.chb-bot {
  border: 1px solid #D1D5DB;
  color: #000;
  border-bottom-left-radius: 0.25rem;
}

.chb-message-bubble.chb-user-bubble {
  background-color: #E5E7EB;
  color: var(--chb-text-dark);
  border-bottom-right-radius: 0.25rem;
}

.chb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  /* 20px */
}

.chb-avatar.chb-user-avatar {
  background-color: #D1D5DB;
  color: var(--chb-text-dark);
}

.chb-avatar.chb-bot-avatar {
  background-color: var(--chb-brand-blue);
  color: white;
}

/* --- Looping Animation Keyframes --- */
@keyframes chb-bot-bubble-1-flow {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  10%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes chb-user-bubble-1-flow {
  0%, 29% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  30%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes chb-bot-bubble-2-flow {
  0%, 49% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  50%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes chb-user-bubble-2-flow {
  0%, 69% {
    opacity: 0;
    transform: translateY(20px);
  }
  
  70%, 99% {
    opacity: 1;
    transform: translateY(0);
  }
  
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Apply the looping animations */
#chb-bot-bubble-1-anim {
  animation: chb-bot-bubble-1-flow var(--chb-animation-duration) ease-out infinite;
}

#chb-user-bubble-1-anim {
  animation: chb-user-bubble-1-flow var(--chb-animation-duration) ease-out infinite;
}

#chb-bot-bubble-2-anim {
  animation: chb-bot-bubble-2-flow var(--chb-animation-duration) ease-out infinite;
}

#chb-user-bubble-2-anim {
  animation: chb-user-bubble-2-flow var(--chb-animation-duration) ease-out infinite;
}

/*chat4 video live*/
/* --- Mobile Mockup Container --- */
.mobile-mockup {
  width: 100%;
  max-width: 380px;
  /* Constrain width */
  height: 700px;
  max-height: 90vh;
  background-color: white;
  border-radius: 1.5rem;
  /* 24px */
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #B0B0B0;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background-color: #F0F0F0;
  /* Light grey background */
  border-radius: 2rem;
  /* 32px */
  overflow: hidden;
  /* UPDATED: Hide scrollbars */
  position: relative;
}

/* --- Webpage Content --- */
.webpage-content {
  padding: 1rem;
  text-align: center;
  color: #374151;
}

.webpage-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

.webpage-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* --- Chat Panel (Copied & Adapted) --- */
/* This is the element that will be animated */
.cvb-animated-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Animation properties */
  animation: slide-in-out 9s ease-in-out infinite;
  transform: translateX(100%);
  /* Start off-screen to the right */
}

/* The actual chat container styling */
.cvb-chat-container {
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Keyframes for the slide animation from the right */
/* Total duration: 9s */
@keyframes slide-in-out {
  /* 0s-2s: Webpage visible (chat panel is off-screen) */
  0%, 22% {
    transform: translateX(100%);
  }
  
  /* 2s-3s: Chat panel slides in */
  33% {
    transform: translateX(0%);
  }
  
  /* 3s-8s: Chat panel is paused and visible (6 seconds total) */
  88% {
    transform: translateX(0%);
  }
  
  /* 8s-9s: Chat panel slides out */
  100% {
    transform: translateX(100%);
  }
}

/* --- Inner Chat Widget Styles (from previous version) --- */
:root {
  --cvb-brand-blue: #394dcc;
  --cvb-light-gray: #F3F4F6;
  --cvb-text-dark: #1F2937;
  --cvb-text-light: #FFFFFF;
}

.cvb-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 0 1rem;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.cvb-tab {
  padding: 0.75rem 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.cvb-tab:hover {
  color: var(--cvb-text-dark);
}

.cvb-tab.cvb-tab-active {
  color: var(--cvb-brand-blue);
  border-bottom-color: var(--cvb-brand-blue);
}

.cvb-chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* --- Base Styling for Plan a Visit Chat --- */
.cplanb-chat-container {
  width: 100%;
  max-width: 380px;
  height: 700px;
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #B0B0B0;
}

.cplanb-chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cplanb-message-group {
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  animation-fill-mode: forwards;
  align-items: flex-end;
}

.cplanb-message-group.bot {
  justify-content: flex-start;
}

.cplanb-chat-container .btn-primary.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

#plan-visit-content .ccd-message-group {
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Constrain the width of the form bubble to match the others */
#plan-visit-content #pav-form-anim .ccd-message-bubble {
  width: 85%;
  box-sizing: border-box;
}

/* Animate them in when the container has the .start-animation class */
#plan-visit-content .ccd-chat-container.start-animation #pav-bubble-1-anim {
  animation: fadeInUp 0.6s 0.3s forwards;
}

#plan-visit-content .ccd-chat-container.start-animation #pav-bubble-2-anim {
  animation: fadeInUp 0.6s 1.5s forwards;
}

#plan-visit-content .ccd-chat-container.start-animation #pav-form-anim {
  animation: fadeInUp 0.6s 2.9s forwards;
}

#plan-visit-content .ccd-chat-container.start-animation #pav-bubble-3-anim {
  animation: fadeInUp 0.6s 4.1s forwards;
}

/* --- Base Styling for Sermon Hub Chat --- */
.cshb-chat-container {
  width: 100%;
  max-width: 380px;
  height: 700px;
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #B0B0B0;
}

.cshb-chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cshb-message-group {
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  animation-fill-mode: forwards;
  align-items: flex-end;
}

.cshb-message-group.cshb-user {
  justify-content: flex-end;
}

.cshb-message-group.cshb-bot {
  align-items: flex-start;
}

/* --- Sermon Card Styling --- */
.sermon-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #F8F9FA;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #DEE2E6;
  width: 100%;
}

.sermon-card-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.sermon-card-info {
  flex-grow: 1;
  text-align: left;
}

.sermon-card-title {
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}

.sermon-card-date {
  font-size: 12px;
  color: #6C757D;
}

.sermon-card-button {
  background-color: #394DCC;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sermon-card-button:hover {
  background-color: #2A3B9B;
}

/* By default, hide new animated elements */
.cplanb-chat-body > .cplanb-message-group, .cshb-chat-body > .cshb-message-group {
  opacity: 0;
  animation-fill-mode: forwards;
}

/* --- Trigger Animations for Plan A Visit --- */
.cplanb-chat-container.start-animation #pav-button-anim {
  animation: fadeInUp 0.5s 0.3s forwards;
}

.cplanb-chat-container.start-animation #pav-bubble-1-anim {
  animation: fadeInUp 0.5s 1.1s forwards;
}

.cplanb-chat-container.start-animation #pav-form-anim {
  animation: fadeInUp 0.5s 1.9s forwards;
}

/* --- Trigger Animations for Sermon Hub --- */
.cshb-chat-container.start-animation #shb-bubble-1-anim {
  animation: fadeInUp 0.5s 0.3s forwards;
}

.cshb-chat-container.start-animation #shb-bubble-2-anim {
  animation: fadeInUp 0.5s 1.1s forwards;
}

.cshb-chat-container.start-animation #shb-card-1-anim {
  animation: fadeInUp 0.5s 1.9s forwards;
}

.cshb-chat-container.start-animation #shb-card-2-anim {
  animation: fadeInUp 0.5s 2.2s forwards;
}

.sermon-hub-container {
  width: 100%;
  max-width: 380px;
  height: 700px;
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #B0B0B0;
}

.sermon-video-container {
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  position: relative;
  background-color: #000;
  flex-shrink: 0;
}

.sermon-video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sermon-tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
  background-color: #F9FAFB;
}

.sermon-tab-button {
  padding: 0.75rem 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-grow: 1;
}

.sermon-tab-button:hover {
  color: #1F2937;
  background-color: #F3F4F6;
}

.sermon-tab-button.active {
  color: #394DCC;
  border-bottom-color: #394DCC;
  font-weight: 600;
}

.sermon-tab-content {
  padding: 1rem 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
  display: none;
  /* Hide all tabs by default */
  font-size: 14px;
  color: #374151;
}

.sermon-tab-content.active {
  display: block;
  /* Show only the active tab */
}

.tab-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 1rem;
}

.tab-text {
  font-size: 14px;
  line-height: 1.6;
}

.transcript-line {
  display: flex;
  margin-bottom: 0.75rem;
  font-size: 14px;
}

.timestamp {
  color: #394DCC;
  font-weight: 600;
  margin-right: 1rem;
  min-width: 45px;
  font-size: 13px;
}

.transcript-text {
  line-height: 1.5;
}

.quiz-question {
  margin-bottom: 1.5rem;
}

.quiz-question p {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0.75rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-options label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Q&A Chat Styles */
#qa.sermon-tab-content {
  padding: 1rem;
}

.qa-chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa-message {
  display: flex;
  max-width: 85%;
}

.qa-message.user {
  align-self: flex-end;
}

.qa-message.bot {
  align-self: flex-start;
}

.qa-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  line-height: 1.5;
  font-size: 14px;
}

.qa-message.user .qa-bubble {
  background-color: #E5E7EB;
  color: #1F2937;
  border-bottom-right-radius: 0.25rem;
}

.qa-message.bot .qa-bubble {
  background-color: #DBEAFE;
  color: #1E40AF;
  border-bottom-left-radius: 0.25rem;
}

/* =============================================================== */
/* RESPONSIVE VISIBILITY CONTROL                                   */
/* =============================================================== */
#desktop-tabs-view {
  display: none;
}

#mobile-accordion-view {
  display: block;
  padding: 20px;
  margin-bottom: 40px;
}

@media (min-width: 769px) {
  #desktop-tabs-view {
    display: block;
  }
  
  #mobile-accordion-view {
    display: none;
  }
}

/* =============================================================== */
/* DESKTOP TAB STYLES                                              */
/* =============================================================== */
.feature-button {
  transform: perspective(1px) translateZ(0);
  cursor: pointer;
  border-radius: 0.75rem;
  background-color: white;
  padding: 1.25rem;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
}

.feature-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.feature-button.active {
  position: relative;
  transform: translateY(-2px);
  border-color: #374BC7;
  border-width: 3px;
  /*! border-style: double; */
}

.feature-button.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #374BC7;
}

#features-content-container {
  display: grid;
  padding-bottom: 70px;
}

.feature-content-wrapper {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease-in-out, visibility 500ms ease-in-out;
}

.feature-content-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.feature-icon-button:hover {
  color: #000;
  background-color: #EEF2FF;
}

.feature-icon-button {
  color: #FFF;
  background-color: #D73E3E;
  border-color: #000;
  transform: scale(1.1);
}

.feature-icon-button.active {
  color: #FFF;
  background-color: #D73E3E;
  border-color: #000;
  transform: scale(1.1);
}

.feature-icon-button i {
  font-size: 24px;
}

/* =============================================================== */
/* MOBILE ACCORDION STYLES                                         */
/* =============================================================== */
.accordion-container {
  width: 100%;
  /* Removed border and box-shadow from the container */
  margin-top: 2rem;
}

.accordion-item {
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  /* Added border-radius to each item */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  /* Moved shadow to each item */
  margin-bottom: 20px;
  /* This adds the space you wanted */
  overflow: hidden;
  /* Keeps the rounded corners neat */
}

.accordion-item:last-child {
  margin-bottom: 0;
  /* No margin on the last item */
}

.accordion-item.active .accordion-button {
  background-color: #F1F5F9;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background-color: #FFFFFF;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.accordion-button:hover {
  background-color: #F8FAFC;
}

.accordion-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374BC7;
  margin-right: 1.25rem;
}

.accordion-title {
  flex-grow: 1;
}

.accordion-title h3 {
  font-size: 1.125rem;
  color: #1E293B;
  font-weight: 700;
}

.accordion-title p {
  font-size: 0.875rem;
  color: #64748B;
  margin-top: 0.125rem;
}

.accordion-chevron {
  margin-left: 1rem;
  color: #94A3B8;
  transition: transform 0.3s ease-in-out;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: #FFFFFF;
  transition: max-height 0.4s ease-in-out;
}

.accordion-content .feature-content-inner {
  border-top: 1px solid #E2E8F0;
}

.accordion-content .feature-animation {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.accordion-content .feature-icon-nav {
  display: none;
}

.imagedash {
  display: flex;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 50px;
}

.imagedash img {
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

#testimonials ul {
  padding: 30px !important;
}
