
/* =========================================
   CAREER LINES - CLARITY FAQ CHATBOT
========================================= */

.chatbot-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 64px;
    height: 64px;

    border-radius: 50%;
    border: 4px solid #ffffff;

    background: linear-gradient(135deg, #008b82, #00645f);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    cursor: pointer;

    box-shadow: 0 12px 35px rgba(0, 91, 86, 0.30);

    z-index: 999999;

    transition: 0.25s ease;
}

.chatbot-launcher:hover {
    transform: translateY(-3px) scale(1.05);
}


/* CHAT WINDOW */

.chatbot-container {
    position: fixed;

    right: 24px;
    bottom: 100px;

    width: 400px;

    height: 620px;
    max-height: calc(100vh - 130px);

    background: #ffffff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 60, 58, 0.20);

    border: 1px solid rgba(0, 120, 113, 0.10);

    display: none;
    flex-direction: column;

    z-index: 999998;

    font-family: Arial, Helvetica, sans-serif;
}

.chatbot-container.active {
    display: flex;
}


/* HEADER */

.chatbot-header {
    flex-shrink: 0;

    min-height: 76px;

    box-sizing: border-box;

    padding: 15px 18px;

    background: linear-gradient(
        135deg,
        #006861,
        #009087
    );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.chatbot-avatar {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
}

.chatbot-header h3 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.2;
}

.chatbot-header p {
    margin: 4px 0 0;

    color: rgba(255,255,255,.85);

    font-size: 12px;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.online-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #64ef8c;
}

.chatbot-close {
    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 29px;
    line-height: 1;

    cursor: pointer;

    padding: 4px;
}


/* MESSAGES */

.chatbot-messages {
    flex: 1;

    overflow-y: auto;

    padding: 18px 16px;

    background:
        linear-gradient(
            180deg,
            #f8fcfb 0%,
            #f3f9f8 100%
        );

    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #b8d9d5;
    border-radius: 20px;
}


/* MESSAGE BUBBLES */

.bot-message,
.user-message {
    width: fit-content;
    max-width: 82%;

    box-sizing: border-box;

    padding: 12px 14px;

    margin-bottom: 12px;

    border-radius: 16px;

    font-size: 14px;
    line-height: 1.55;
}

.bot-message {
    background: #ffffff;

    color: #153f3c;

    border-bottom-left-radius: 5px;

    box-shadow:
        0 5px 16px rgba(0,0,0,.055);
}

.user-message {
    margin-left: auto;

    background: #dcf6df;

    color: #123f3b;

    border-bottom-right-radius: 5px;
}


/* FAQ QUICK BUTTONS */

.quick-questions {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin: 12px 0 5px;
}

.quick-questions button {
    width: 100%;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #d9e9e7;

    border-radius: 13px;

    color: #006d67;

    text-align: left;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}

.quick-questions button:hover {
    background: #eafaf5;

    border-color: #9ddbd3;

    transform: translateX(2px);
}


/* INPUT AREA */

.chatbot-input-area {
    flex-shrink: 0;

    min-height: 76px;

    box-sizing: border-box;

    padding: 12px;

    background: #ffffff;

    border-top: 1px solid #e3eeee;

    display: flex;
    align-items: center;
    gap: 9px;
}

.chatbot-input-area input {
    flex: 1;

    min-width: 0;

    height: 47px;

    box-sizing: border-box;

    padding: 0 16px;

    border: 1px solid #d4e4e2;

    border-radius: 25px;

    outline: none;

    font-size: 14px;

    color: #163e3b;

    background: #ffffff;
}

.chatbot-input-area input:focus {
    border-color: #008a82;

    box-shadow:
        0 0 0 3px rgba(0,138,130,.08);
}

.chatbot-input-area button {
    flex-shrink: 0;

    width: 47px;
    height: 47px;

    border-radius: 50%;

    border: none;

    background: #00736d;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition: .2s;
}

.chatbot-input-area button:hover {
    background: #005f5a;

    transform: scale(1.04);
}


/* CONTACT FORM */

.contact-form {
    margin-top: 13px;

    padding: 14px;

    border-radius: 14px;

    background: #f8fcfb;

    border: 1px solid #e1efed;
}

.contact-form-title {
    margin-bottom: 8px;

    color: #007169;

    font-size: 13px;
    font-weight: 700;
}

.contact-form input {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    margin-top: 8px;

    border: 1px solid #d5e6e4;

    border-radius: 9px;

    outline: none;

    font-size: 13px;
}

.contact-form input:focus {
    border-color: #008a82;
}

.contact-form button {
    display: block;

    width: 100%;

    padding: 11px;

    margin-top: 10px;

    border: none;

    border-radius: 9px;

    background: #00736d;

    color: #ffffff;

    font-weight: 600;

    cursor: pointer;
}

.contact-error {
    display: none;

    margin-top: 7px;

    color: #c0392b;

    font-size: 12px;
}


/* TYPING */

.typing-message {
    opacity: .7;
    font-style: italic;
}


/* MOBILE */

@media (max-width: 600px) {

    .chatbot-launcher {
        right: 15px;
        bottom: 15px;

        width: 58px;
        height: 58px;
    }

    .chatbot-container {
        right: 10px;
        bottom: 82px;

        width: calc(100% - 20px);

        height: calc(100vh - 105px);

        max-height: none;

        border-radius: 18px;
    }

}


/* SMALL HEIGHT LAPTOP */

@media (max-height: 720px) and (min-width: 601px) {

    .chatbot-container {
        height: calc(100vh - 120px);
    }

}
/* =====================================================
   CLARITY CHATBOT - FINAL POSITION FIX
===================================================== */

/* Chat Button */
.chatbot-launcher {
    position: fixed !important;

    right: 28px !important;
    bottom: 24px !important;

    width: 62px !important;
    height: 62px !important;

    z-index: 2147483646 !important;
}


/* Chat Window */
.chatbot-container {
    position: fixed !important;

    /* navbar se neeche */
    top: 105px !important;

    /* launcher se upar */
    bottom: 100px !important;

    right: 24px !important;

    width: 400px !important;

    /* IMPORTANT:
       fixed 620px ko hata diya
       ab available screen ke according height hogi
    */
    height: auto !important;

    max-height: none !important;

    z-index: 2147483645 !important;

    border-radius: 20px !important;

    overflow: hidden !important;
}


/* message area must shrink */
.chatbot-messages {
    min-height: 0 !important;
    flex: 1 1 auto !important;

    overflow-y: auto !important;
}


/* header hamesha visible */
.chatbot-header {
    position: relative !important;

    flex: 0 0 auto !important;

    min-height: 76px !important;

    z-index: 2 !important;
}


/* input hamesha bottom par */
.chatbot-input-area {
    position: relative !important;

    flex: 0 0 auto !important;

    z-index: 2 !important;

    background: #fff !important;
}


/* =========================================
   MOVE WEBSITE SCROLL BUTTON
========================================= */

.scroll-top-percentage {
    right: 105px !important;
    bottom: 28px !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .chatbot-container {
        top: 90px !important;

        right: 15px !important;
        bottom: 90px !important;

        width: min(390px, calc(100vw - 30px)) !important;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .chatbot-container {
        top: 75px !important;

        left: 10px !important;
        right: 10px !important;

        bottom: 82px !important;

        width: auto !important;

        height: auto !important;

        border-radius: 18px !important;
    }


    .chatbot-launcher {
        right: 14px !important;
        bottom: 14px !important;

        width: 58px !important;
        height: 58px !important;
    }


    .scroll-top-percentage {
        right: 82px !important;
        bottom: 18px !important;
    }

}
.chatbot-welcome {
    position: fixed;
    right: 25px;
    bottom: 100px;

    width: 330px;
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #dcebea;
    border-radius: 16px;

    box-shadow: 0 15px 45px rgba(0, 70, 65, 0.18);

    display: none;
    align-items: center;
    gap: 12px;

    z-index: 2147483644;

    font-family: Arial, sans-serif;
}

.chatbot-welcome.show {
    display: flex;
}

.welcome-icon {
    width: 44px;
    height: 44px;

    background: #e7f8f2;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.welcome-content {
    flex: 1;
}

.welcome-content strong {
    display: block;
    color: #064e49;
    font-size: 14px;
}

.welcome-content span {
    display: block;
    margin-top: 3px;
    color: #657b79;
    font-size: 12px;
}

.welcome-chat-btn {
    border: none;
    border-radius: 8px;
    background: #00736d;
    color: white;

    padding: 8px 11px;

    font-size: 12px;
    cursor: pointer;
}

.welcome-close {
    position: absolute;
    top: 5px;
    right: 8px;

    border: none;
    background: transparent;

    color: #7c8c8b;
    cursor: pointer;
}

@media (max-width: 600px) {
    .chatbot-welcome {
        right: 12px;
        left: 12px;
        bottom: 85px;
        width: auto;
    }
}/* =========================================
   CLARITY SMART SUGGESTION BUTTONS
========================================= */

.clarity-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    max-width: 92%;

    margin: 4px 0 15px;
}

.clarity-suggestion-btn {
    border: 1px solid #cfe8e3;

    background: #ffffff;

    color: #08766f;

    border-radius: 20px;

    padding: 8px 12px;

    font-size: 12px;

    line-height: 1.3;

    cursor: pointer;

    transition: 0.2s ease;
}

.clarity-suggestion-btn:hover {
    background: #eaf9f4;

    border-color: #8fd7ca;

    transform: translateY(-1px);
}

.typing-dots {
    letter-spacing: 2px;
}
/* =========================================================
   CLARITY PROFESSIONAL V5
   Add after your existing chatbot CSS.
========================================================= */

.clarity-natural-opening{
    margin:0 0 7px;
    line-height:1.4;
}

.clarity-source-answer{
    margin:0;
    line-height:1.58;
    white-space:normal;
}

.clarity-answer-divider{
    height:1px;
    margin:12px 0;
    background:rgba(0,118,112,.12);
}

.clarity-suggestions{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:9px 0 3px;
}

.clarity-suggestion-btn{
    border:1px solid rgba(0,128,122,.18);
    background:#fff;
    color:#007b76;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    line-height:1.2;
    cursor:pointer;
    transition:.2s ease;
}

.clarity-suggestion-btn:hover{
    transform:translateY(-1px);
    border-color:rgba(0,128,122,.35);
}

.typing-message{
    opacity:.85;
}

.typing-dots{
    display:inline-block;
    min-width:18px;
    animation:clarityTyping 1.2s infinite;
}

@keyframes clarityTyping{
    0%,20%{opacity:.25}
    50%{opacity:1}
    80%,100%{opacity:.25}
}

.contact-form{
    margin-top:14px;
    padding:16px;
    background:#f7fbfa;
    border:1px solid rgba(0,128,122,.12);
    border-radius:16px;
}

.contact-form-title{
    font-size:16px;
    font-weight:700;
    color:#006f6b;
    margin-bottom:5px;
}

.contact-form-subtitle{
    font-size:12px;
    line-height:1.5;
    color:#718786;
    margin-bottom:13px;
}

.contact-form input{
    width:100%;
    box-sizing:border-box;
    padding:11px 13px;
    margin-bottom:9px;
    border:1px solid #d7e5e3;
    border-radius:10px;
    background:#fff;
    color:#214746;
    font-size:13px;
    outline:none;
}

.contact-form input:focus{
    border-color:#22b573;
    box-shadow:0 0 0 3px rgba(34,181,115,.10);
}

.contact-error{
    display:none;
    color:#c94b4b;
    font-size:11px;
    line-height:1.4;
    margin:2px 0 9px;
}

.contact-submit-btn{
    width:100%;
    border:0;
    padding:11px 14px;
    border-radius:10px;
    background:linear-gradient(135deg,#49d66c,#27bd8a);
    color:#fff;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.contact-success{
    text-align:center;
    padding:8px 2px;
}

.contact-success-icon{
    width:38px;
    height:38px;
    margin:0 auto 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#49d66c;
    color:#fff;
    font-weight:700;
}
/* Quick Reply Buttons */
.clarity-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
}

.clarity-quick-reply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clarity-quick-reply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.clarity-quick-reply-btn:active {
    transform: translateY(0);
}
