@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');



:root {
    --openSans: 'Open Sans', sans-serif;
    --redHat: 'Red Hat Display', sans-serif;
}

.mt-0{
    margin-top:0 !important;
}

.inline{
    display:inline-block !important;
}







#clickMeText{
color: transparent;
}






#role-selection-message,
#hope-you-found,
#final-message,
#hope-we-made-easy,
#thankyou {
    height: 50px !important;
}

#starRatingContainer {
    line-height: normal;
    padding: 12px 24px;
}

.trade-mark {
    margin-left: 0.5px;
    top: -5.3px;
    font-size: 14px;
    font-weight: 300 !important;
}

#chatMessages {
    scroll-behavior: smooth;
}

#check-in-message {
    margin-top: -18px !important;
}

#welcome-message-2 {
    margin-top: -24px !important;
}

#was-this-helpful {
    margin-top: -8px !important;
}

/* .message:first-child {
    scroll-margin-top: 20px;
} */

.close-btn-custom {
    /*height: 45px;*/
    /*width: 45px;*/
    height: 40px;
    width: 40px;
    position: absolute;
    z-index: 999;
    right: 25px;
    top: 18px;
    cursor: pointer;
    border-radius: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(77deg, #02BCDD 0%, #06D1E5 22.14%, #64EDA8 52.07%, #D0F88D 100.25%);
    justify-content: center;
}

.close-btn-custom::before {
    height: 3px;
    position: absolute;
    content: ' ';
    width: 42%;
    border-radius: 3px;
    background-color: black;
}

.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/framework/global/chat-bot/chat-bot-images/mr-doit-by-i-Smokestack.gif') no-repeat center;
    background-size: contain;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 230, 185, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon.hidden {
    display: none;
}

.chat-container {
    font-family: var(--openSans);
    /* width: 550px; */
    width: 500px;
    max-width: 34vw;
    height: 95vh;
    position: fixed;
    top: 50%;
    right: 40px;
    transform: scale(0) translateY(-50%);
    /* Start with scale(0) for smooth opening */
    transform-origin: bottom right;
    opacity: 0;
    /* Start hidden */
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(77deg, #02BCDD 0%, #06D1E5 22.14%, #64EDA8 52.07%, #D0F88D 100.25%);
    background-clip: padding-box;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
        opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Smooth cubic-bezier transition */
    padding-bottom: 10px;
    padding-top: 10px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
}

.chat-container.active {
    display: flex;
    /* Show when active */
    /* Transform and opacity will be handled by JavaScript for smooth animation */
}


.chat-header {
    /* height: 280px; */
    /* height: 295px; */
    height: 41.5vh;
    min-height: 300px !important;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    transition: height 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.chat-header.compact {
    height: 100px;
    min-height: 100px !important;
}

.chat-header.compact .close-btn-custom {
    /* background-color: red !important; */
    box-shadow: 0 -2px 4px 2px rgba(0, 0, 0, 0.30) inset;
    background: white;
    top: 25px;
}

.chat-messages {
     overflow-y: auto;
    padding-top: 38px;
    padding-bottom: 80px;
    width: 96%;
    border-radius: 20px;
    margin: 0 auto;
    /*background: linear-gradient(0deg, #000 0%, #02253D 75.19%);*/
    background: #02253D;
    scrollbar-width: none;
    padding-right: 50px;
    transition: all 0.4s ease;
    box-sizing: border-box;
    flex: 1;
    height: auto;
    margin-bottom: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 0;
}

.chat-bot-main-heading {
    font-size: 16px;
    color: #02253D;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 0 !important;
    font-family: var(--redHat) !important;
    font-weight: 800;
    letter-spacing: 0.7px;
}


.chat-header-content {
      display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 96%;
    height: 96%;
    padding: 0px;
    margin: 10px auto;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2;
    left: 50%;
    background: white;
    transform: translateX(-50%);
    border-radius: 20px
}


.chat-header-content.fade-out {
    opacity: 0;
    scale: 0;
    /*transform: translateY(-30px);*/
}

.chat-header-content img {
    width: 230px;
    /* margin-top: -15px; */
}

.chat-header-content h2 {
    font-size: 12px;
    text-transform: uppercase;
    color: #02253D;
    margin-top: 8px;
    margin-bottom: 0;
    /* width: 60%; */
    font-family: var(--redHat);
    font-weight: 700 !important;
    letter-spacing: 0.7px;
}

.chat-header-content p {
    font-size: 14px !important;
    margin-top: 24px;
    margin-bottom: 20px;
    font-family: var(--openSans) !important;
    color: #02253D;
    padding: 0 24px;
    /*font-weight: 300;*/
    line-height: 1.9;
}

.chat-header-content a {
    background: white;
    color: #02253D;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 46px;
    font-size: 12px;
    border-radius: 50px;
    background: linear-gradient(77deg, #02BCDD 0%, #06D1E5 22.14%, #64EDA8 52.07%, #D0F88D 100.25%);
    margin-top: -15px; 
    font-weight: 800;
    letter-spacing: 1px;
    font-family: var(--redHat);
}

.chat-header-content a,
.chat-header-content a:visited,
.chat-header-content a:active,
.chat-header-content a:focus {
  color: #02253D !important; /* Your original text color */
  text-decoration: none;
}

/* Header vertical content styles with transition effects */
.chat-header-content-vertical {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 35px;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.chat-header-content-vertical.fade-in {
    opacity: 1;
    transform: translateY(0);
    z-index: 3;
}

.chat-header-content-vertical img {
    width: 55px;
    object-fit: contain;
    height: 55px;
    background: white;
    border-radius: 50%;
}

.chat-header-content-vertical-right-side {
    min-width: 230px;
    align-self: center;
    margin-left: 20px;
}

.chat-header-content-vertical h2 {
    font-size: 18px;
    font-family: var(--openSans) !important;
    color: black;
    margin-top: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

.chat-header-content-vertical p {
    font-size: 14px !important;
    color: black;
    font-family: var(--openSans) !important;
    margin-top: 5px;
    font-size: 12px !important;
    /*font-weight: 300;*/
}

.close-btn {
    background: none;
    border: none;
    color: #5fffa3;
    font-size: 35px;
    font-weight: thin;
    cursor: pointer;
    transition: transform 0.2s;
}

.message {
    display: flex;
    /*margin-bottom: 20px;*/
    /* align-items: flex-end; */
    align-items: end;
    /* margin-bottom: 30px; */
    /*margin-bottom: 25px;*/
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease forwards;
}

.bot-message {
    justify-content: flex-start;
    width: 100%;
}

.user-message {
    justify-content: flex-end;
    width: 73%;
    margin-left: auto;
}

.bot-avatar {
    /* width: 105px; */
    width: 85px;
    height: 65px;
    margin-right: 12px;
    background: url('https://24108406.fs1.hubspotusercontent-na1.net/hubfs/24108406/%5Bi-SmokeStack%5D%20%28DON%E2%80%99T%20TOUCH%29/Human%20Resources/Website%20Forms%20GIFs/White/Mr%20DoIT%20-%20Half%20Body/Laptop-Automation-with-haww-expression-in-cave.gif') no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    z-index: 1;
}

.bot-msg-without-avatar {
    /* width: 102px; */
    width: 83px;
    visibility: hidden !important;
}

.bot-bubble.remove-tail {
    border-radius: 8px !important;
}

.remove-tail::after,
.remove-tail::before {
    display: none !important;
}

.message-content {
    display: flex;
    /*flex-direction: column;*/
    width: 100%;
    word-wrap: break-word;
}

.message-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bot-bubble,
.user-bubble {
    position: relative;
    font-size: 12px;
}

.bot-bubble::before {
    position: absolute;
    content: '';
    height: 35px;
    width: 35px;
    bottom: -10px !important;
    left: -26px;
    /* background-color: #003050; */
    background-image: url('/framework/global/chat-bot/chat-bot-images/curve.svg');
    background-repeat: no-repeat;
}

/* .bot-bubble::after {
    position: absolute;
    content: '';
    height: 34px;
    width: 35px;
    bottom: 0;
    left: -35px;
    border-bottom-right-radius: 30px;
    background: #02253D;
} */

.bot-bubble {
    background: #003050;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    /* font-size: 14px; */
    line-height: 1.9;
    border-bottom-left-radius: 0 !important;
    width: 100% !important;
}

.user-bubble {
    /*background: linear-gradient(135deg, #12eec6 0%, #b5f982 100%);*/
    background: linear-gradient(77deg, #02BCDD 0%, #06D1E5 22.14%, #64EDA8 52.07%, #D0F88D 100.25%);
    color: #001624;
    padding: 14px 18px;
    border-radius: 8px;
    /* font-size: 14px; */
    line-height: 1.5;
    font-weight: 500;
    border-bottom-right-radius: 0;
    width: fit-content;
    margin-left: auto;
    font-weight: 400;
}

/* .user-bubble::before {
    position: absolute;
    content: '';
    height: 34px;
    width: 34px;
    bottom: 0px;
    right: -28px;
    background: #C3F790;
    z-index: -1;
} */


/* .user-bubble::after {
    position: absolute;
    content: '';
    height: 35px;
    width: 34px;
    bottom: 0;
    right: -34px;
    border-bottom-left-radius: 29px;
    background: #02253D;
} */


.user-bubble::before {
    position: absolute;
    content: '';
    height: 23px;
    width: 25px;
    bottom: 0px;
    right: -22px;
    background: #C3F790;
    z-index: -1;
}

.user-bubble::after {
    position: absolute;
    content: '';
    height: 25px;
    width: 25px;
    bottom: 0;
    /* bottom: -1px; */
    right: -25px;
    border-bottom-left-radius: 29px;
    /* background-color: red; */
    /* background: linear-gradient(0deg, #000 0%, #02253D 75.19%); */
    background: #02253D;
}


.link-message {
    background: #003050;
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.9;
    width: 100%;
    border-bottom-left-radius: 0;
    position: relative;
}

.link-message::before {
    position: absolute;
    content: '';
    height: 35px;
    width: 35px;
    bottom: -10px;
    left: -26px;
    /* background-color: #003050; */
    background-image: url('/framework/global/chat-bot/chat-bot-images/curve.svg');
    background-repeat: no-repeat;
}

.link-message .link-url {
    color: var(--white-color);
    text-decoration: none;
    font-size: 12px;
    display: block;
    background: #003050;
    /* padding: 8px 14px; */
    border-radius: 20px;
    margin-top: 8px;
    transition: all 0.3s ease;
    /*margin-top: 20px;*/
    margin-top: 10px;
    width: fit-content;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--openSans) !important;
}

.link-message .inline{
    display:inline-block !important;
}

a.link-url{
    color: var(--white-color);
    text-decoration: none;
    font-size: 12px;
    display: block;
    background: #003050;
    /* padding: 8px 14px; */
    border-radius: 20px;
    margin-top: 8px;
    transition: all 0.3s ease;
    /*margin-top: 20px;*/
    margin-top: 10px;
    width: fit-content;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--openSans) !important;
}


a.link-url:hover .gradient-text{
      background: linear-gradient(77deg, #02BCDD 0%, #06D1E5 22.14%, #64EDA8 52.07%, #D0F88D 100.25%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for Firefox */
    text-fill-color: transparent;
}

/*.link-message .link-url:hover {*/
/*    color: #34b849 !important;*/
/*}*/


.chat-input-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(26, 60, 92, 0.3);
    backdrop-filter: blur(10px);
    display: none;
}





/* -------------------------------- Start style -------------------------------- */



.user-rating-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 18px;
}

.user-star {
    display: inline-block;
    transition: all 0.3s ease;
}

.user-star.filled {
    color: #FFD700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.user-star.empty {
    color: #ddd;
    opacity: 0.6;
}

.rating-bubble {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    padding: 12px 16px !important;
    min-width: 150px;
    text-align: center;
}


/* ----------------------- Footer style related to chat bot start ----------------------- */
/*.mr_doit img {*/
/*    height: 134px !important;*/
/*}*/

p.click-me {
    margin-top: 8px;
    color:rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
}

#chatIcon{
    cursor: pointer;
}

#clickMeText {
    transition: all 0.3s ease;
    cursor: pointer;
}

#clickMeText:hover {
    color: #3574e3 !important;
}


/* ----------------------- Footer style related to chat bot end  ----------------------- */




/* Replace your existing option-buttons styles with these enhanced versions */

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    /* padding-left: 92px; */
    /* padding-left: 114px; */
    padding-left: 96px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInOptions 0.8s ease forwards;
}

.option-btn {
    background: #344a58;
    color: #fff;
    border: 1px solid transparent;
    padding: 10px 18px;
    border-radius: 25px;
    width: 90%;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    text-align: left;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInButton 0.6s ease forwards;
    font-family: var(--openSans) !important;
    font-size: 12px;
    font-weight: 300;
}

.option-btn:focus {
    outline: none;
}

/* Stagger the button animations */
.option-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.option-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.option-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.option-btn:nth-child(4) {
    animation-delay: 0.4s;
}

.option-btn:nth-child(5) {
    animation-delay: 0.5s;
}

.option-btn:nth-child(6) {
    animation-delay: 0.6s;
}

.option-btn:nth-child(7) {
    animation-delay: 0.7s;
}

.option-btn:hover {
    background: linear-gradient(#344a58, #344a58) padding-box,
        linear-gradient(135deg, #12eec6, #b5f982) border-box;
    z-index: 1;
    transform: translateX(0) scale(1.02);
}

/* Yes/No buttons with smoother animation */
.yes-no-buttons {
    /* margin-left: -18px; */
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-start;
    /* margin-top: -20px; */
    opacity: 0;
    transform: translateY(20px);
    animation: slideInOptions 0.6s ease forwards;
}

.yes-no-buttons .option-btn {
    text-align: center;
    padding: 10px 20px !important;
    max-width: fit-content !important;
    animation: slideInButton 0.5s ease forwards;
    font-size: 12px !important;
}

.yes-no-buttons .option-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.yes-no-buttons .option-btn:nth-child(2) {
    animation-delay: 0.2s;
}

/* Sub-option buttons with smoother animation */
.sub-option-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(25px);
    animation: slideInOptions 0.7s ease forwards;
}

.sub-option-buttons .option-btn {
    font-size: 12px;
    /*padding: 10px 14px;*/
    padding: 12px 18px;
    animation: slideInButton 0.5s ease forwards;
}

.sub-option-buttons .option-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.sub-option-buttons .option-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.sub-option-buttons .option-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.sub-option-buttons .option-btn:nth-child(4) {
    animation-delay: 0.4s;
}

.sub-option-buttons .option-btn:nth-child(5) {
    animation-delay: 0.5s;
}

.sub-option-buttons .option-btn:nth-child(6) {
    animation-delay: 0.6s;
}

.sub-option-buttons .option-btn:nth-child(7) {
    animation-delay: 0.7s;
}

.sub-option-buttons .option-btn:nth-child(8) {
    animation-delay: 0.8s;
}


/* Enhanced animation keyframes */
@keyframes slideInOptions {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInButton {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keep the existing fadeIn animation but make it smoother */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

/*@media (min-height: 650px) and (max-height: 700px) {*/
/*   footer#footer{*/
/*    height: 105vh;*/
/*  }*/
/*}*/


@media (max-width: 767px){
    .copyright-text{
        text-align:left !important;
    }
    .align-items-center{
        align-items: start !important;
    }
}

@media (min-height: 690px) and (max-height: 699px) { 
    .chat-header{
     height: 46.5vh;
  }
}

@media (min-width: 1025px) and (max-width: 1280px){
    /* .chat-container{*/
    /*    max-width: 44vw !important;*/
    /*}*/
    
    
    #hope-you-found{
        height:fit-content !important;
    }
}

@media (max-width: 1024px) {
    .chat-container {
        right: 30px;
        max-width: 82vw;
    }
    
    #hope-that-helps .bot-bubble{
        padding-right:10px !important;
    }
    
    #hope-that-helps{
        height:50px !important;
    }
}

@media (max-width: 650px) {
    .chat-container {
        right: 50px;
    }
}


@media (min-height: 650px) and (max-height: 741px) {
    .chat-header {
        height: 47vh !important;
    }
    
    .chat-header.compact{
        height: 100px !important;
    }
}


@media (max-width: 541px) {

    /* .chat-header.compact {
        height: 100px;
        min-height: 100px;
    } */

    .chat-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        right: 0;
    }

    .chat-header-content img {
        width: 200px;
    }

    .chat-header-content p {
        margin-top: 12px;
        padding: 10px;
    }

    .chat-header-content img {
        margin-top: 0;
    }

}


@media (max-width: 480px) {
    #thankyou, 
    #hope-that-helps
    {
        height: fit-content !important;
    }

    .chat-header.compact .close-btn-custom {
        top: 32px;
    }

    #check-in-message {
        margin-top: -4px !important;
    }

    .close-btn-custom {
        width: 30px;
        height: 30px;
    }

    .close-btn-custom::before {
        height: 2px;
        width: 42%;
    }

    .chat-icon {
        bottom: 20px;
        right: 20px;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }


    .chat-header-content p {
        font-size: 12px !important;
        margin-bottom: 40px;
    }

    .bot-avatar {
        width: 65px;
        height: 50px;
        /*height: 65px;*/
    }

    .bot-bubble::before {
        bottom: -10.5px !important;
        left: -24px;
    }

    .bot-message {
        align-items: flex-end !important;
    }

    .chat-messages {
        padding-right: 35px;
    }

    .option-buttons {
        /* padding-left: 50px; */
        padding-left: 76px;
    }

    .star-rating-container {
        margin-left: 73px !important;
    }

    .bot-bubble,
    .option-btn,
    .link-message {
        font-size: 12px !important;
    }

    .yes-no-buttons {
        /* flex-direction: column; */
        flex-wrap: wrap;
    }

    .yes-no-buttons .option-btn {
        max-width: fit-content !important;
    }

    #role-selection-message,
    #hope-you-found,
    #final-message,
    #hope-we-made-easy,
    #hope-that-helps
    #thankyou {
        height: fit-content !important;
    }

}


/* For both ma'am screens (sonia ma'am and ruchita ma'am) or grater then there screen */
@media (min-width: 1441px) {
    .chat-bot-main-heading {
        font-size: 20px;
    }

    .chat-header-content p {
        font-size: 13px !important;
        padding: 0;
    }

    .bot-bubble,
    .user-bubble,
    .yes-no-buttons .option-btn,
    .option-btn,
    .chat-header-content p,
    .link-message,
    .chat-header-content-vertical p,
    .chat-header-content h2,
    .chat-header-content a, 
    .link-message .link-url{
        font-size: 14px !important;
    }

    .yes-no-buttons .option-btn {
        padding: 12px 26px;
    }
    
    #hope-you-found .bot-bubble{
        padding-right:10px !important;
    }

    #hope-you-found {
        height: 53px !important;
    }

    .chat-container {
        right: 70px;
        height: 90vh;
    }
}