/* ── Floating Trigger ── */
.ask-container {
  position: fixed;
  bottom: 36px;
  /* left: 50%;
  transform: translateX(-50%); */
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 998;
  right:25px;
  /* visibility: hidden; */
}
.active-modal {
   visibility:visible;
}
 
.ask-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 12px 12px 18px;
  /* width: 440px; */
  width:550px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
  border: 2px solid rgba(209, 209, 209, .3);
    background: #fff;
    gap: 8px;
}
 
.ask-box:hover {
  border-color: #ccc;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}
 
.ask-box input {
  border: none;
  outline: none;
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-mid);
  background: transparent;
}
 
.ask-box input::placeholder {
  color: var(--ink-light);
}
 
.sparkle {
  margin-right: 10px;
  color: var(--red);
  font-size: 16px;
  flex-shrink: 0;
}
 
.arrow {
  color: #db2128;
  font-size: 18px;
  font-weight: bold;
  transition: color var(--transition), transform var(--transition);
  width: 24px;
    height: 24px;
}
 
.ask-box:hover .arrow {
  color: #db2128;
  /* transform: translateY(-3px); */
  transform: translateX(3px);
  font-weight: bold;
  font-size: 18px;
}
 
/* Close circle button */
.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #db2128;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-light);
  transition: all var(--transition);

  border: 1px solid #db2128;
    color: #db2128;
    background: #fff;
    display: none;;
}
 
.close-btn:hover {
  background: #db2128;
  color: #fff;
  border-color:transparent;
}
 
/* ── Modal Overlay ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  z-index: 999;
  animation: fadeIn 0.25s ease;
  font-family: var(--font-body);
}
 
.modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* padding: 20px 48px 0;
  max-width: 860px; */
  max-width:100%;
  /* padding: 20px; */
  margin: 0 auto;
  width: 100%;
    overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
 
/* ── Header ── */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:8px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
}
 
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  display: flex;
    align-items: center;
    gap: 8px;
}

 
.logo span {
  color: var(--red);
      font-size: 14px;
    background: #fff;
    border: 1px solid #db2128;
    padding: 4px 8px;
    border-radius: 4px;
    height: 24px;
    display: flex;
    align-items: center;
}
 
/* "BETA" badge next to logo */
.logo-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 6px;
  vertical-align: super;
}
 
.close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-light);
  line-height: 1;
  transition: color var(--transition);
}
 
.close:hover {
  color: var(--ink);
}
 
/* ── Modal Body ── */
.modal-body {
  flex: 1;
  
  padding: 0 0 120px;

}
 
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
 
/* Welcome / Empty State */
.modal-body-welcome {
  text-align: center;
  margin-top: 80px;
}
 
.modal-body h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}
 
.modal-body h1 span {
  color: var(--red);
}
 
.subtitle {
  color: var(--ink-light);
  font-size: 15px;
  margin-bottom: 0;
}
 
.suggestions {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-mid);
}
 
.suggestions span {
  color: var(--red);
  font-weight: 500;
}
 
/* ── Prompt Box (welcome state) ── */
.prompt-box {
  margin: 32px auto 0;
  max-width: 580px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tint);
  text-align: left;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
}
 
/* ── Response Container ── */
.aimodal-body {
  width: 100%;
  max-width: 760px;
  padding-top: 28px;
  margin:0 auto;
}
 
.aimodal-body h1 {    
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    text-align: center;
    color: #db2128;
    margin-bottom: 16px;
}
 
/* User message bubble */
.user-msg {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 20px;
  padding:0 16px 0 0;
  position: relative;
}
 
.user-msg .user-msg-innerwrapper { 
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  width: auto;
  max-width: 68%;
  text-align: left;
  font-size: 14px;
  /* color: #201d1d; 
  background: #f9f9f9 !important;  */
  color: #000;
    background: #db212714 !important;
  border-radius: 8px 8px 0px 8px;
  border: 1px solid #d4d4d4;
}
 
/* ── AI Chat Bubble ── */
.chat-response {
  width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding:0 162px;
    flex-direction: column;;
}
.ai-indicator{
  /* width: 32px;
  height: 32px; */
  width: 40px;
  height: 40px;
  border-radius: 50%;
 /*  background:#db2128; */
  /* color: #fff; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 12px;
} 

.ai-indicator i{
   /*  width: auto;
    height: 14px; */
    width: 85%;
    height: 85%;
}
/* .ai-indicator i path{
    fill:#fff
} */


.ai-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 18px 18px 18px;
  padding: 0 24px 24px 0px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.3s ease;
  position: relative;
}
 
/* "Thinking" indicator row */
.ai-thinking-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 16px;
  font-style: italic;
  height: 100px;
}
 
.ai-thinking-bar .sparkle-sm {
  color: var(--red);
  font-size: 13px;
}
 
/* Query line */
.ai-bubble .ai-query {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
 
.ai-bubble .ai-query strong {
  font-weight: 600;
  color: var(--ink-mid);
}
 
/* Answer paragraphs */
.aimodal-body .response-container p,
.ai-bubble p {
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--ink);
}
 
/* Bullet lists */
.aimodal-body .response-container ul,
.ai-bubble ul {
  font-weight: 400;
  padding-left: 16px;
  list-style: disc;
  margin: 6px 0 14px;
}
 
.ai-bubble ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.65;
}
 
.ai-bubble ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
 
.ai-bullet-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: 18px 0 8px;
}
 
/* ── Confidence Badge ── */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 16px;
}
 
.confidence-badge.low {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
 
.confidence-badge.medium {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.2);
}
 
.confidence-badge.high {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
 
/* ── Sources Section ── */
.sources-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
 
.sources-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}
 
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.sources-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
 
.sources-list li a:hover {
  color: var(--red);
  border-color: var(--red);
}
 
.sources-list li a::before {
  content: '↗';
  font-size: 11px;
  color: var(--ink-light);
}
 
.sources-list li a:hover::before {
  color: var(--red);
}
 
/* ── Bottom Modal Input ── */
.modal-input-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 48px 28px;
  background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0));
  z-index: 10;
}
 
.modal-input {
  display: flex;
  align-items: center;

  border-radius: 100px;
  padding: 12px 16px;
  max-width: 760px;
  margin: 16px auto;
  background: #fff;
  border: 1px solid #d4d4d4;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
 
.modal-input:focus-within {
  border-color: #bbb;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}
 
.modal-input .sparkle {
  margin-right: 10px;
  color: var(--red);
  font-size: 15px;
}
 
.modal-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
 
.modal-input input::placeholder {
  color: var(--ink-light);
}
 


.no-scroll {
    overflow: hidden;
}
 
/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
 
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



.modal-input button.send-prompt-btn{
    border: none;
    background: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-light);
    transition: background var(--transition), color var(--transition);
}
 
.modal-input button.send-prompt-btn:hover {
  background:#db2129;
  color: #fff;
}

/* ===============================
   TIME AI THINKING STATE
================================= */

.ai-thinking-state{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:60px 0 30px;
    color:#6b7280;
    font-size:15px;
    font-weight:400;
    animation:fadeThinking .25s ease;
}

/* animated red sparkle */
.thinking-star{
    color:#db2128;
    font-size:18px;
    line-height:1;
    animation:thinkingPulse 1.4s ease-in-out infinite;
    transform-origin:center;
}

/* subtle typing feel */
.thinking-text{
    letter-spacing: .1px;
    color: #5f6368;
    position: relative;
    font-size: 13px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* moving dots animation */
.thinking-text::after{
    content:'';
    animation:dots 1.5s infinite;
}

/* ===============================
   SEND BUTTON ACTIVE STYLE
================================= */

.modal-input button.send-prompt-btn.active,
.modal-input button.send-prompt-btn.loading{
    background:#db2128;
    color:#fff;
    transform:scale(1.02);
    box-shadow:0 6px 18px rgba(219,33,40,.28);
}

/* arrow smooth */
.modal-input button.send-prompt-btn{
    transition:all .22s ease;
}

/* hover */
.modal-input button.send-prompt-btn:hover{
    background:#db2128;
    color:#fff;
}

/* loading spinner effect */
.modal-input button.send-prompt-btn.loading{
    animation:sendPulse 1s infinite;
}

/* ===============================
   ANIMATIONS
================================= */

@keyframes thinkingPulse{
    0%{
        opacity:.45;
        transform:scale(.85) rotate(0deg);
    }
    50%{
        opacity:1;
        transform:scale(1.15) rotate(12deg);
    }
    100%{
        opacity:.45;
        transform:scale(.85) rotate(0deg);
    }
}

@keyframes dots{
    0%{ content:''; }
    25%{ content:'.'; }
    50%{ content:'..'; }
    75%{ content:'...'; }
    100%{ content:''; }
}

@keyframes sendPulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}

@keyframes fadeThinking{
    from{
        opacity:0;
        transform:translateY(6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* Loader Styles */
.loaderWrapper {	
	position: relative;
    height: 40px;
    padding-left: 48px;
    display: flex;
    align-items: center;
}

.loaderContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.loaderContainer .loaderLogo {
	position: absolute;
	left: 50%;
	top: 50%;
	font-size: 11px;
	transform: translate(-50%, -50%);

}

.loaderAnimation {
border: .125rem solid #303030;
    border-left-color: #db2128;
    border-radius: 2rem;
   /*  width: 32px;
    height: 32px; */
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0)
	}

	to {
		transform: rotate(360deg)
	}
}
.aithinking-diactive{display:none}
.aithinking-active{
	  display: block;
    position: absolute;
    z-index: 9;   
    height: 40px;
    /* top: 0px;
    left: 17px; */
   top: 0;
    left: 163px;
   
}

.response-container{
	position: relative;
	/* overflow-y:auto;
    scroll-behavior:smooth; */
}

#chatContainer{
    height:400px;
    overflow-y:auto;
}

/* Feedback buttons */
.ai-feedback-section{
    margin-top:15px;
}

.feedback-btn{
    padding:6px 14px;
    border:none;
    cursor:pointer;
    margin-right:10px;
    border-radius:6px;
    font-size: 13px;
}

.feedback-email {
    width: 100%;
   
    margin-top: 10px;
    padding: 10px;
    font-size: 13px;
    border-radius: 8px;
}

.feedback-btn.active{
    background:#db2128;
    color:#fff;
}

.feedback-text{
    width:100%;
    height:70px;
    margin-top:10px;
    padding:10px;
    font-size: 13px;
    border-radius: 8px;
}
.feedback-text::placeholder{
    color:#999;
    font-size: 13px;
}
.save-feedback-btn{
    margin-top:10px;
    padding:8px 20px;
    background:#db2128;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size: 13px;
}

.feedback-success-msg{
  font-size: 14px;
    color: #db2128;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feedback-success-msg i{
  width: 16px;
    height: 16px;
    display: inline-flex;
}

/*Fix the css*/
/* ── Fix: Modal should NOT scroll, only chat container scrolls ── */
.modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  overflow: hidden; /* ← was overflow-y: auto — remove modal scroll */
}

/* ── Fix: Modal body takes remaining height ── */
.modal-body {
  flex: 1;
  overflow: hidden; /* ← contain the chat container inside */
  padding: 0 0 120px;
  display: flex;
  flex-direction: column;
}

/* ── Fix: aimodal-body fills modal body height ── */
.aimodal-body {
  width: 100%;
  max-width: 760px;
  padding-top: 28px;
  margin: 0 auto;
  height: 100%;          /* ← fill available height */
  display: flex;
  flex-direction: column;
}

/* ── Fix: Chat container — this is the ONLY element that scrolls ── */
#chatContainer {
  flex: 1;               /* ← grow to fill space */
  height: 100%;          /* ← was fixed 400px */
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  position: relative;
  padding-top: 24px;

  /* ── Custom Scrollbar ── */
  /* scrollbar-width: thin; */
  /* scrollbar-color: #db2128 #f1f1f1; */
}

/* Chrome/Safari scrollbar */
#chatContainer::-webkit-scrollbar {
  width: 4px;
}

#chatContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#chatContainer::-webkit-scrollbar-thumb {
  background: #db2128;
  border-radius: 10px;
  transition: background 0.2s ease;
}

#chatContainer::-webkit-scrollbar-thumb:hover {
  background: #b01a1f;
}

/* ── Fix: response-container fills height ── */
.response-container {
  position: relative;
  height: 100%;
}

.response-div{
  display: flex;
    align-items: flex-start;
}
/* width */

.search-query-container{
width: 100%;
}
.search-query-innerwrapper{
display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 10px 16px;
    width: auto;
    margin-top: 8px;  
    
}
.search-query-span{ font-size: 13px;   
    line-height: 1.7;}
    .search-query-container{
      display: none;
    }
.query_close{
  	background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--ink-light);
    line-height: 1;
    transition: color var(--transition);
 }

/* Updated CSS Loader */

@media (max-width: 600px) {
   .response-div {
        align-items: flex-start;
    	width: 100%;
    }
	.chat-response {
		width: 100%;
		display: flex;
		align-items: flex-start;
		gap: 4px;
		padding: 0 20px;
		flex-direction: column;
	}
}

.ai-logo-search{
  margin: 0 0px -4px 2px;
}

.voice-assist-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form__input {
    width: 100%;
    padding-left: 50px; /* space for AI icon */
    padding-right: 50px; /* space for mic button */
    height: 48px;
}

.ai-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.ai-icon svg {
    width: 24px;
    height: 24px;
}

.ai-icon .cls-2,
.ai-icon .cls-3 {
    fill: #da2129;
}

.mic-btn-wrapper {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.AI-icon-sp{
  position: absolute;
    z-index: 1;
    left: 8px;
    top: 8px;
}

 .samil_at_btn {
    /* border: 1px solid #120304; */
    border:none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    height: 36px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 12px;
    color: #120304;
    gap: 4px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}
@media(max-width:520px){
.ai-bubble {
    max-width: 100%;
    padding-right: 44px;
}
.button--cutiepie {
    padding: 10px 10px;
    min-width: 100%;
}
.search-form__input {margin:0px}
.ai-bubble li a {word-break: break-word;}

}

button.samil_at_btn:focus{
    outline: transparent dotted 1px;
}