:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1f2a44;
  --muted: #6b7280;
  --primary: #e63935;
  --brand: #2f6fed;
  --chip: #e9eeff;
  --chip-text: #4b5aa5;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  padding: 24px 120px;
  z-index: 8888;
  height: 100%;
}

/* Chatbot Modal */
.chatbot-modal {
  background: var(--panel);
  width: min(98%, 1120px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  top: 200px;
}
#afib-chatbot-root > div {
	bottom: 35% !important;
	right: 0 !important;
}
#afib-chatbot-root > div.overlay {
	bottom: unset !important;
}

/* Close button */
.close-btn {
	position: absolute;
    top: 18px;
    right: 18px;
    width: 64px;
    height: 64px;
    border-radius: 100% !important;
    background: transparent !important;
    border: none !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
    overflow: hidden;
    opacity: 1;
    padding: 0 !important;
}
.close-btn img{
    width: 100%;
    height: 100%;
}
.close-btn:hover { transform: scale(1.05); background: #e9e9ed; }
.close-btn:active { transform: scale(0.98); }

.close-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* Layout */
.modal-grid {
  display: flex;
  gap: 24px;
  padding: 80px 120px;
}

/* Left column */
.intro-col { flex: 1; }
.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #D9DDF1;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
}
.logo-circle .bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d6dfff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px #c8d4ff;
}
.logo-circle .bubble::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #2f6fed;
  border-top-color: transparent;
  display: block;
}

h2.title {
    margin: 0px;
    font-size: clamp(20px, 3.5vw, 44px) !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #8E0606 !important;
}
p.subtitle {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}
.chat-height{
    min-height: 210px;
    max-height: 360px;
}
.chat-height::-webkit-scrollbar {
  width: 10px;
  border-radius: 40px;
}
.chat-height::-webkit-scrollbar-track {
  background-color: #d9d9d9;
  border-radius: 10px;
}
.chat-height::-webkit-scrollbar-thumb {
  background: rgb(69 69 69 / 40%); 
  border-radius: 20px;
}
.chat-height::-webkit-scrollbar-thumb:hover {
  background: rgb(69 69 69 / 40%); 
}
.default-msg{
    font-size: 22px;
    line-height: 35px;
    font-weight: 500;
    text-align: center;
    margin: 0px auto;
}
textarea#msg {
    padding: 8px 16px;
    height: 170px;
}
/* Input row */
.input-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  align-items: center;
}
@media (max-width: 520px) {
  .input-row { grid-template-columns: 1fr; }
}
.text-input {
    height: 70px;
    padding: 0px 16px;
    border-radius: 8px;
    border: 1px solid #c2c1c1;
    outline: none;
    background: #ffffff;
    font-size: 22px !important;
    font-weight: 500;
    color: #333333;
    flex: 1;
    flex: 0 0 75%;
}
.text-input::placeholder { color: #333333; }
.text-input:focus { border-color: #c7d2fe; box-shadow: none; outline: none; }

.send-btn {
    height: 70px;
    border-radius: 999px !important;
    background: var(--primary) !important;
    background: #FF2515 !important;
    color: #ffffff !important;
    border: none;
    padding: 0 28px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    flex: 1;
}
.send-btn:hover { filter: brightness(0.95); }
.send-btn:active { transform: translateY(1px); }

.disclaimer {
  margin-top: 24px;
  color: #787878;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
button.accordion-button:focus {
    box-shadow: none !important;
}
/* Right column */
.faq-col { width: 240px; flex-shrink: 1; }
.faq-title {
    margin: 0 0 16px;
    color: #333333;
    font-size: 22px;
    line-height: 35px;
    font-weight: 700;
    text-align: center;
}
.faq-list { display: grid; gap: 8px; }
.faq-chip {
    text-align: left;
    border: none !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    transition: transform .1s ease, background .2s ease;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    background: #D9DDF1 !important;
    color: #00419F !important;
}
.faq-chip:hover { background: #dde6ff; transform: translateY(-1px); }
.faq-chip:active { transform: translateY(0); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.main-wrap {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-bottom: 40px;
}
.main-wrap,
.logo-circle,
.logo-circle img,
.text-input,
.send-btn{
    transition: all ease-in-out 0.5s;
}
.logo-circle img{
    width: 46px;
}
.main-wrap.top-wrap{
    padding: 8px 0 24px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    box-shadow: 0px 4px 10px 0px #FFFFFF;
    filter: drop-shadow(0px 4px 10px #ffffff);
}
.main-wrap.top-wrap .logo-circle{
    margin: 0;
    height: 40px;
    width: 40px;
}
.main-wrap.top-wrap .logo-circle img{
    width: 20px;
}
.main-wrap.top-wrap .title{
    margin: 0;
    font-size: 26px;
}
button.accordion-button {
    background: transparent !important;
    border: 0px !important;
    box-shadow: none !important;
}
/* .logo-circle {
    margin: 0 auto 24px;
} */
.form-wrap {
    margin: 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.typing-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 59px;
    border-radius: 8px;
    gap: 6px;
    background-color: #FBF2E0;
    padding: 0px 10px 26px;
}

.typing-wrap span {
    color: #787878;
    font-size: 42px;
}
.form-wrap .send-btn{
    width: 118px;
    flex-shrink: 0;
	  flex: 0 0 22%;
}

.faq-col .accordion-item{
    border: 0;
    background-color: transparent;
    border-radius: 0 !important;
}
.faq-col .accordion-button{
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #333333;
    font-size: 22px;
    line-height: 35px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.faq-col .accordion-button img{
    width: 48px;
    object-fit: contain;
    display: none;
    transform: scaleY(1);
}
.faq-col .accordion-button.collapsed img{
    transform: scaleY(-1);
}
.faq-col .accordion-button::after{
    display: none;
}
.faq-col .accordion-body{
    padding: 0;
}
 .chatbot-modal {
    bottom: 20px;
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
}
@media (min-width: 768px){
    .faq-col .accordion-collapse.collapse{
        display: block;
    }
    .chatbot-modal{
        max-height: 758px;
    }
}
@media (max-width: 767px) {
	#afib-chatbot-root > div {
		bottom: 50px !important;
    padding: 24px;
	}
  .msg-text-wrap {
    padding: 16px 24px !important;
  }
  .main-wrap img {
      width: 24px;
      height: 24px;
    }
    .main-wrap{
      justify-content: flex-start !important;
      gap: 8px !important;
    }
    .chatbot-modal{
        overflow-y: auto;
    }
    .close-btn{
        height: 40px !important;
        width: 40px !important;
        top: 14px !important;
        right: 24px !important;
    }
    .modal-grid{
        padding: 20px;
        flex-direction: column;
    }
    .chat-height{
        padding: 0;
    }
    .faq-col{
        padding: 0;
        width: 100%;
    }
    .logo-circle{
        width: 80px;
        height: 80px;
    }
    .logo-circle img{
        width: 32px;
    }
    .default-msg {
        margin-bottom: 16px;
        font-size: 19px;
        line-height: 27px;
        background: #E3E2E3;
        border-radius: 8px;
        padding: 12px 16px;
    }
    .form-wrap{
        margin-top: 16px;
        flex-direction: column;
    }
    .text-input,
    .send-btn{
        font-size: 19px !important;
		flex: none !important;
        width: 100% !important;
    }
    .disclaimer{
        margin-bottom: 40px;
    }
    .faq-col .accordion-button{
        justify-content: space-between;
        pointer-events: all;
    }
    .faq-col .accordion-button img{
        display: block;
    }
    .chat-height div{
        font-size: 19px !important;
    }
	.faq-list {
		margin-bottom: 30px;
	}
	.chatbot-modal{
		top: 160px;
		bottom:10px;
        width: calc(100% - 40px) !important;
	}
}

.typing-wrap span {
  animation: bounce 1.4s infinite;
}

.typing-wrap span:nth-child(1) {
  animation-delay: 0s;
}
.typing-wrap span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-wrap span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}


.faq-col{
	display: none !important;
}