
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 500;
}
.left-inner-addon {
    position: relative;
}
.left-inner-addon i {
    position: absolute;
    padding: 15px 12px;
    pointer-events: none;
    color:#70a832;
}
.from-me {
    align-self: flex-end;
    background-color: #70a832;
    color: #fff; 
  }
  
.from-me::before {
    border-bottom-left-radius: 0.8rem 0.7rem;
    border-right: 1rem solid #70a832;
    right: -0.35rem;
    transform: translate(0, -0.1rem);
}
.from-me::after {
    background-color: #fff;
    border-bottom-left-radius: 0.5rem;
    right: -40px;
    transform:translate(-30px, -2px);
    width: 10px;
  }
  .from-them {
    align-items: flex-start;
    background-color: #e3ebd9;
    color: #000;
  }
  .from-them:before {
    border-bottom-right-radius: 0.8rem 0.7rem;
    border-left: 1rem solid #e3ebd9;
    left: -0.35rem;
    transform: translate(0, -0.1rem);
}
  
 .from-them::after {
    background-color: #fff;
    border-bottom-right-radius: 0.5rem;
    left: 20px;
    transform: translate(-30px, -2px);
    width: 10px;
  }
  .from-them::before, .from-them::after {
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
}
.from-me::before, .from-me::after {
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
}
.sb13:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    /* border-left: 15px solid #70a832;
    border-right: 15px solid transparent;
    border-top: 15px solid #70a832;
    border-bottom: 15px solid transparent;
    right: -16px;
    top: 0px; */
    right: -12px;
    top: 12px;
    border-top: 10px solid transparent;
    border-left: 16px solid #e3ebd9;
    border-bottom: 13px solid transparent;
  }
  
  
  /* speech bubble 14 */
  
  .sb14:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    /* border-left: 15px solid transparent;
    border-right: 15px solid #e3ebd9;
    border-top: 15px solid #e3ebd9;
    border-bottom: 15px solid transparent;
    left: -16px;
    top: 0px; */
    left: -12px;
    top: 12px;
    border-top: 10px solid transparent;
    border-right: 16px solid #e3ebd9;
    border-bottom: 13px solid transparent;
  }
  
/* #middle-wizard {
    background: url(../img/chatbg.jpg);
    background-size: 57%;
    background-position: center;
} */
.chatbg {
    background: url(../img/chatbg.png);
    background-size: cover;
    background-position: center;
}
#social svg {
    height: 24px;
} 
/* Chat Container */
.chat-container {
    width: 100%;
    max-width: 100%;
    /* height: 450px; */
    height: 415px;
    display: flex;
    flex-direction: column;
    /* background-color: #fff; */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    /* border-radius: 10px; */
    overflow: hidden;
}
/* Header */
.chat-header {
    background-color: #70a832;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    font-size: 18px;
}

/* Body */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* width */
.chat-body::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  .chat-body::-webkit-scrollbar-track {
    background: #f1f1f1; 
  }
   
  /* Handle */
  .chat-body::-webkit-scrollbar-thumb {
    background: #a9b7c3; 
  }
  .chat-body p{
    margin: 0;
  }
/* Message Animation (fade-in effect) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Message Styles */
.message {
    /* max-width: 80%; */
    width: 350px;
    padding: 12px 15px;
    /* border-radius: 20px; */
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    display: inline-block;
    position: relative;
    opacity: 0; /* Start invisible for fade-in effect */
    animation: fadeIn 0.5s forwards; /* Apply fade-in animation */
}

/* Typing Loader for Bot */
.typing-loader {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #70a832; /* Choose your desired color */
    margin: 0;
}

/* Each dot in the loader */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background-color: #70a832; /* Choose your desired color */
    border-radius: 50%;
    opacity: 0;
    animation: typing 1.5s infinite ease-in-out;
}

/* Add delay to each dot to create a sequence effect */
.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* Keyframe for typing effect */
@keyframes typing {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Optional: Add pulse effect to make it more dynamic */
.typing-loader .dot {
    animation: typing 1.5s infinite ease-in-out, pulse 1.5s infinite ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3); /* Increase size slightly for a pulse effect */
    }
}
.no-background-padding {
    background-color: transparent !important;
    padding: 0;
}
/* Bot and User Message Styles */
.bot-message {
    background-color: #e3ebd9; /* Lighter background */
    color: #333;
    align-self: flex-start;
    border-radius:10px;
}

.user-message {
    background-color: #70a832;
    color: #fff;
    align-self: flex-end;
    border-radius:10px;
}

/* User Input Box */
.user-input-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    align-self: flex-start; /* Aligns with bot message */
    width: 100%;
    
}
.select2-container--default .select2-selection--single {
    border: none !important;
}
.custinput{
    border: none;padding: 10px;border-radius: 0px;width: 100%;border-top: 1px solid #ddd;padding-left:35px;
}
.custbrd{
    border: none;padding: 10px;border-radius: 25px; background-color: #fff;
}
.input-group{
    display: block !important;
}
.custbrd:focus-visible, .custinput:focus-visible{
outline: none;
}
.chat-input-box {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    /* background-color: #f9f9f9; */
    color: #333;
    width: calc(350px - 40px);
    /* width: 100%; */
    padding-left: 35px;
}
.chat-dpd-box {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    /* background-color: #f9f9f9; */
    color: #333;
}
.submit-input-button {
    padding: 10px;
    background-color: #70a832;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-input-button i {
    font-size: 18px;
}

.submit-input-button:hover {
    background-color: #4e8c07;
}

/* Footer for Chat Input */
.chat-footer {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.send-button {
    margin-left: 10px;
    padding: 10px;
    background-color: #70a832;
    color: #fff;
    border: none;
    border-radius: 50%; /* Makes the button round */
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.send-button i {
    font-size: 18px; /* Icon size */
}

.send-button:hover {
    background-color: #4e8c07;
}
/* Style for radio buttons container */
.radio-options {
    margin-top: 10px;
    padding: 10px 15px;
    /* background-color: #f1f1f1; */
    border-radius: 20px 0px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Label for radio buttons */
/* .radio-options label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
} */
.radio-options label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    /* gap: 10px; */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: #e3ebd9;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #70a832;
    width: 100%;
    font-weight: bold;
    /* border-radius: 20px; */
}
.radio-options label:hover {background: #fff;}
/* Style radio buttons */
.radio-options input[type="radio"] {
    /* width: 18px;
    height: 18px; */
    border-radius: 50%;
    appearance: none;
    border: 2px solid #70a832;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

/* Style when radio button is checked */
.radio-options input[type="radio"]:checked {
    background-color: #70a832;
    border-color: #4e8c07;
    box-shadow: 0 0 5px rgba(0, 255, 34, 0.5);
}

/* Add hover effect for labels */
/* .radio-options label:hover {
    background-color: #e3ebd9;
    border-radius: 5px;
} */

/* Optional: Add animation when the radio button is selected */
@keyframes radioSelection {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.radio-options input[type="radio"]:checked {
    animation: radioSelection 0.3s ease-out forwards;
}
/* Styling for the typing loader container */
.typing-loader {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #70a435; /* Choose your desired color */
    margin:  0;
}

/* Each dot in the loader */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background-color: #70a435; /* Choose your desired color */
    border-radius: 50%;
    opacity: 0;
    animation: typing 1.5s infinite ease-in-out;
}

/* Add delay to each dot to create a sequence effect */
.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* Keyframe for typing effect */
@keyframes typing {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Optional: Add pulse effect to make it more dynamic */
.typing-loader .dot {
    animation: typing 1.5s infinite ease-in-out, pulse 1.5s infinite ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3); /* Increase size slightly for a pulse effect */
    }
}
.thankyouimg{
    height: 200px;
}
.thankyoutxt {
    margin-top: 10px;
    font-size: 50px;
    font-family: math;
    color: #5d9616;
    font-weight: bold;
}
.choosetxt{
    font-family: math;
    font-size: 20px;
    color: #000;
    margin-top: -15px;
    font-weight: bold;
}
.thankyoutxt span{
    color: #5d9618;
}
.countdown svg {
    margin: auto;
    /* margin-top: -35px; */
    width: 150px;
    height: 150px;
}
.countdown g > text {
    text-anchor: middle;
    font-size: 400px;
    fill: #5d9618;
    animation: scale-pulse 1s infinite alternate;
}
.countdown{
    font-family: math;
    font-size: 50px;
    font-weight: bold;
    color: #5d9616;
}
@keyframes scale-pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}
.ptxt{
    font-size: 18px;
    color: #000000;
    margin: 0;
    font-family: math;
}
.thankyoubg{
    background: url(../img/bgthankyou.png);
    background-position: center;
    background-size: 100% 100%;
    padding: 61px 45px;
    animation: unset;
}
@media(max-width:767px){
    .question_title p {
        font-size: 14px !important;
    }
    .thankyoubg{
        background: url(../img/bgthankyou.png);
        background-position: center;
        background-size: 100% 100%;
        padding: 61px 45px;
    }

.chat-container {
    height: 330px;
}
    .chat-body{
        padding: 0;
    }
    .thankyouimg{
        height: 150px;
    }
    .img-fluid {
        max-width: 100%;
        height: auto !important;
    }
    .ptxt{
        font-size: 16px; 
    }
    .countdown {
        font-family: math;
        font-size: 30px;
        font-weight: bold;
        color: #5d9616;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .thankyoutxt {
        font-size: 25px;
    }
    .choosetxt {
        margin-top: 0px;
    }
    .message{
        width: 100%;
        max-width: max-content;
    }
    .input-group{
        display: block;
    }
    .chat-input-box {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        font-size: 14px;
        outline: none;
        /* background-color: #f9f9f9; */
        color: #333;
        width: 100%;
        padding-left: 35px;
    }
    .radio-options label{
        width: 155px;
    }
}

.required{
	color:red;	
    font-size: 12px;
}