@charset "utf-8";
/* CSS Document */
 /* Demo page hint */
  .demo-hint {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #9ba3b2;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: .04em;
    pointer-events: none;
  }

  /* ── FAB (launcher button) ── */
  #darto-fab {
	  font-family: 'Roboto Flex', sans-serif; /* Matches your index.html link */
    position: fixed;
        top: 21px;
    left: 320px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bbff 0%, #000f50 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(232,51,58,.45);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    z-index: 9999;
/*	  opacity: 0.5;*/
  }
  #darto-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(232,51,58,.6);
  }
  #darto-fab svg { width: 28px; height: 28px; }
  #darto-fab .fab-close { display: none; }
  #darto-fab.open .fab-chat { display: none; }
  #darto-fab.open .fab-close { display: block; }

  /* Pulse ring */
  #darto-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
/*    border: 2px solid rgba(232,51,58,.4);*/
    animation: pulse 2s ease-out infinite;
  }
  @keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
  }

  /* ── Widget container ── */
  #darto-widget {
	  font-family: 'Roboto Flex', sans-serif; /* Matches your index.html link */
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 140px);
    background: #000f29;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(232,51,58,.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transform: translateY(24px) scale(.95);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.34,1.26,.64,1), opacity .22s ease;
  }
  #darto-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
  }



/* ── Widget Container ── */

  /* ── Header ── */
  .w-header {
    background: #000f50;
    padding: 16px 18px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
  }
  .w-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: #ec038a;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 20px;
    color: #fff;
    letter-spacing: .04em;
    flex-shrink: 0;
  }
  .w-header-text { flex: 1; }
  .w-header-text h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 18px;
    color: #fff;
    letter-spacing: .08em;
    line-height: 1;
  }
  .w-header-text p {
    font-size: 11.5px;
    color: #9ba3b2;
    margin-top: 3px;
    font-weight: 400;
  }
  .w-status {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
    flex-shrink: 0;
  }

  /* ── Messages area ── */
  .w-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
  }
  .w-messages::-webkit-scrollbar { width: 4px; }
  .w-messages::-webkit-scrollbar-track { background: transparent; }
  .w-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

  /* Bubble base */
  .msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: msgIn .22s ease both;
  }
  @keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .msg.user { flex-direction: row-reverse; }

  .bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
  }
  .msg.bot .bubble {
    background: #1e2230;
    color: #dde2ef;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .msg.user .bubble {
    background: linear-gradient(135deg, #e8333a, #c62a30);
    color: #fff;
    border-bottom-right-radius: 4px;
  }
  .msg-icon {
    width: 28px; height: 28px;
    border-radius: 36px;
    background: #ec038e;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .msg-icon svg { width: 14px; height: 14px; }

  /* Typing dots */
  .typing-dots span {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #9ba3b2;
    margin: 0 2px;
    animation: dot .9s ease-in-out infinite;
  }
  .typing-dots span:nth-child(2) { animation-delay: .2s; }
  .typing-dots span:nth-child(3) { animation-delay: .4s; }
  @keyframes dot {
    0%,80%,100% { transform: scale(1); opacity: .4; }
    40%          { transform: scale(1.3); opacity: 1; }
  }

  /* Quick replies */
  .quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 10px;
    flex-shrink: 0;
  }
  .qr-btn {
    background: rgba(0, 15, 80, 0.3);
    border: 1px solid rgba(0, 15, 80, .9);
    color: #e8777a;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
  }
  .qr-btn:hover {
    background: rgba(232,51,58,.25);
    color: #ff9a9c;
  }

  /* ── Input row ── */
  .w-input-row {
    padding: 12px 14px 16px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
  }
  .w-input {
    flex: 1;
    background: #1e2230;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #dde2ef;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    padding: 10px 14px;
    resize: none;
    outline: none;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
    transition: border-color .15s;
  }
  .w-input::placeholder { color: #505668; }
  .w-input:focus { border-color: rgba(232,51,58,.5); }

  .w-send {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8333a, #c62a30);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 4px 14px rgba(232,51,58,.4);
  }
  .w-send:hover { opacity: .88; transform: scale(1.05); }
  .w-send:disabled { opacity: .35; cursor: default; transform: none; }
  .w-send svg { width: 17px; height: 17px; }

  /* ── Footer branding ── */
  .w-footer {
    text-align: center;
    font-size: 10.5px;
    color: #3e4558;
    padding: 0 0 12px;
    flex-shrink: 0;
  }
  .w-footer a { color: #e8333a; text-decoration: none; }

/* Update FAB for Font Awesome */
#darto-fab i {
  color: #fff;
  font-size: 12px;
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}

#darto-fab .fa-xmark {
  opacity: 0;
  transform: scale(0.5);
}

#darto-fab.open .fa-comments {
  opacity: 0;
  transform: scale(0.5);
}

#darto-fab.open .fa-xmark {
  opacity: 1;
  transform: scale(1);
}

/* Avatar Header font */
.w-avatar {
  font-family: 'Bebas Neue', cursive; /* Keeping this for the 'D' logo as per your design */
}


/* --- Desktop Position Controls --- */
:root {
    /* Change these values to move the agent on Desktop */
    --agent-desktop-right: 30px;  
    --agent-desktop-bottom: 30px; 
    --agent-width: 380px;
    --agent-height: 560px;
}

/* ── FAB (Launcher Button) ── */




/* ── Desktop-Specific Adjustments ── */
@media (min-width: 1025px) {
	#darto-widget{
		
	}
	
	#darto-fab{
		left: 500px;
		
	}
    /* If you want the agent on the LEFT side for desktop only, 
       uncomment the lines below and comment out the 'right' lines above: */
    /*
    #darto-fab { right: auto; left: var(--agent-desktop-right); }
    #darto-widget { right: auto; left: var(--agent-desktop-right); }
    */
}

/* Mobile Adjustments: Keep it compact for smaller screens */
@media (max-width: 1024px) {
    #darto-fab {
        width: 24px;
        height: 24px;
        bottom: 20px;
        right: 20px;
    }
    #darto-widget {
        bottom: 85px;
        right: 15px;
        width: calc(100vw - 30px);
    }
}


/* Lead Form at the Bottom */
.dw-lead-bottom {
    padding: 16px;
    background: #1d2130;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dw-lead-bottom p {
    font-size: 12px;
    color: #7a8298;
    margin-bottom: 5px;
}

.dw-input-field {
    width: 100%;
    background: #13161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    padding: 10px;
    font-size: 13px;
    outline: none;
}

.dw-input-field:focus {
    border-color: #e8333a;
}

.dw-submit-btn {
    background: linear-gradient(135deg, #e8333a, #c42a31);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Visibility Utility */
.hidden-ui {
    display: none !important;
}

#dw-lead-container input.dw-input-field, 
#dw-lead-container input {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Ensure the widget doesn't collapse the form */

#darto-widget.open {
    display: flex !important;
    flex-direction: column;
}

#messages {
    flex-grow: 1;
    overflow-y: auto;
}

