:root {
    --grey-hover: #4D4D4D;
    --grey-color: #333333;
    --main: #F4E2D4;
    --main-lighter: #F7F2EF;
    --border-color: #DEBEA5;
    --border-light-grey: rgba(51, 51, 51, 0.1);
    --shadow: rgba(114, 114, 114, 0.15);
    --green-online: #58B640;
    --input-border: #CCCCCC;
    --success-msg-bg: rgba(118, 183, 118, 0.4);
    --failure-msg-bg: rgba(164, 47, 47, 0.4);
    --success-msg-logo-bg: #76B776;
    --failure-msg-logo-bg: #A42F2F;
    --alert-strong: #B06111;
    --form-text: #454545;
    --loader-highlighted: #7B7B7B;
    --loader-faded: #D2D2D2;
    --copyright-light-grey: #919191;
}

body {
    background-color: transparent;
    font-family: "Roboto", sans-serif;
    margin: 0;
}

.bot-name {
    font-size: 24px;
    font-weight: 700;
}

.chat-header a {
    text-decoration:none;
    color: white;
}

.copyright{
    color: var(--copyright-light-grey);
    font-size:12px;
    line-height: 16px;
    padding: 12px 20px;
}

.copyright a {
    color: #343c41;
    text-decoration:none;
}

#chatbot-toggle-btn {
    background-color: var(--grey-color);
    border-radius: 100%;
    border: none;
    bottom: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    padding: 13.5px 13.5px;
    position: fixed;
    right: 8px;
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure the button is above the chatbot popup */
    box-shadow: 2px 4px 6px 0px #33333340;
}

#chatbot-toggle-btn:hover {
    background-color: var(--grey-hover);
}

.chatbot-logo {
    background-color: var(--grey-color);
    border-radius: 100%;
    color: #fff;
    display: flex;
    font-size: 16px;
    padding: 12px 12px;
    position: relative;
}

.chatbot-logo::before {
    background-color: var(--main);
    border-radius: 50%;
    bottom: 0;
    content: '';
    height: 18px;
    position: absolute;
    right: 0;
    width: 18px;
}

.chatbot-logo::after {
    background-color: var(--green-online);
    border-radius: 50%;
    bottom: 2px;
    content: '';
    height: 14px;
    position: absolute;
    right: 2px;
    width: 14px;
}

.chatbot-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 24px;
    font-weight: 300;
}

.chatbot-popup {
    background-color: #fff;
    bottom: 116px;
    box-shadow: 0px 0px 12px 2px var(--shadow);
    display: none;
    max-width: 90%;
    position: fixed;
    right: 32px;
    width: 390px;
    z-index: 1000;
    flex-direction: column;
}

.chat-header {
    background-color: var(--main);
    display: flex;
    color: var(--grey-color);
    padding: 24px;
}

.close-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 24px;
}

.close-btn:hover svg path{
    stroke: var(--grey-hover);
}

.chat-box {
    max-height: 455px;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.chat-input {
    align-items: center;
    border-bottom: 1.5px solid var(--border-light-grey);
    border-top: 1.5px solid var(--border-light-grey);
    display: flex;
    padding: 16px 20px;
}

#user-input {
    border: none;
    flex: 1;
    font-family: "Roboto";
    font-size: 16px;
    outline: none;
    padding: 0;
    resize: none;
}

#send-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    font-family: "Roboto", sans-serif;
    padding: 10px;
    transition: background-color 0.3s ease;
}

#send-btn:hover svg path {
    stroke: var(--grey-hover);
}

.user-message,
.bot-message,
.pre-form-container,
.chatbot-alert {
    align-items: center;
    display: flex;
    padding: 16px 24px;
    position: relative;
}

.user-message::before,
.bot-message::before,
.pre-form-container::before,
.chatbot-alert::before {
    background-color: var(--border-color);
    content: '';
    height: 100%;
    position: absolute;
    width: 3px;
}

.user-message {
    background-color: var(--main);
    color: #333;
    justify-content: end;
    margin: 12px 0 12px 32px;
    overflow-wrap: anywhere;
    justify-content: end;
}

.user-message::before {
    right: 0;
}

.bot-message,
.pre-form-container,
.chatbot-alert {
    background-color: var(--main-lighter);
    color: var(--grey-color);
    margin-bottom: 12px;
    margin-right: 32px; /* Push bot message to the right */
}

.bot-message {
    flex-direction: column;
    align-items: start;
}

.bot-message .read-more span {
    padding-right: 6px;
    padding-left: 16px;
}

.bot-message .read-more:hover span,
.bot-message .read-more:hover svg path {
    color: var(--grey-hover);
    stroke: var(--grey-hover);
    text-decoration: underline;
}

.bot-message .read-more {
    align-self: end;
    color: var(--grey-color);
    display: flex;
    font-family: 'Inter';
    font-weight: 500;
    margin-top: 12px;
    text-decoration: none;
    text-underline-offset: 3px;
    width: 100%;
}

.bot-message .read-more::before {
    align-self: center;
    background-color: var(--border-color);
    content: '';
    display: flex;
    height: 3px;
    position: absolute;
    width: 8px;
    margin-right: 8px;
}

.bot-message::before,
.pre-form-container::before,
.chatbot-alert::before {
    left: 0;
    top: 0;
}

.bot-message + .user-message,
.user-message + .bot-message,
.pre-form-container + .user-message,
.user-message + .pre-form-container,
.response-wrapper + .user-message,
.response-wrapper + .usermessage,
.user-message + .response-wrapper,
.bot-message + .response-wrapper,
.button-container + .user-message,
.form-container + .user-message,
.user-message + .form-container {
    margin-top: 24px;
}

.bot-message ol,
.bot-message ul {
    padding-left: 15px;
}

.bot-message ol {
    margin: 0;
}

.pre-form-container {
    justify-content: center;
    flex-direction: column;
}

button {
    cursor: pointer;
    padding: 12.5px 24px;
    transition: background-color 0.3s ease;
}

#contact-form {
    display: grid;
    padding-bottom: 12px;
}

#contact-form strong {
    font-weight: 500;
}

.yes-btn,
.no-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 15px;
    max-height: 44px;
    width: 100%;
    padding: 12.5px 0px;
}

.yes-btn {
    background-color: var(--grey-color);
    border: 2px solid var(--grey-color);
    color: white;
    margin-top: 12px;
}

.yes-btn:hover,
.no-btn:hover {
    background-color: var(--grey-hover);
}

.no-btn {
    background-color: white;
    color: var(--grey-color);
    border: 2px solid var(--grey-color);
    margin-top: 12px;
}

.no-btn:hover {
    color: white;
}

.button-container {
    display: flex;
    gap: 8px;
    margin-right: 30px;
    margin-bottom: 12px;
}

.black-btn {
    background-color: var(--grey-color);
    border: 2px solid var(--grey-color);
    color: white;
    margin-top: 0;
}

.black-btn:hover {
    background-color: var(--grey-hover);
}

.yes-btn.black-btn,
.no-btn.black-btn {
    font-size: 16px;
}

.form-container {
    box-shadow: 0px 1px 5px 0px var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.form-container input,
.form-container textarea {
    font-family: 'Roboto';
    padding: 16px;
    border: 1px solid var(--input-border);
    margin-bottom: 12px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--form-text);
}

.form-title {
    align-self: center;
    display: flex;
    font-size: 22px;
    font-weight: 500;
    padding-bottom: 24px;
}

.old-alert {
    margin-top: 12px;
    margin-bottom: 0;
}

.old-alert strong {
    color: var(--alert-strong);
    font-weight: 700;
}

.chatbot-alert {
    flex-direction: row;
    align-items: start;
    max-width: 280px;
    margin: 0;
    padding: 12px 12px 24px 24px;
    position: fixed;
    right: 8px;
    bottom: 92px;
    box-shadow: 2px 2px 8px 0px #33333333;
    display: none;
}

.chatbot-alert .chatbot-alert-content {
    max-width: 221px;
}

.chatbot-alert .chatbot-alert-content .chatbot-alert-title {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 24px;
    margin: 0;
    margin-top: 12px;
}

.chatbot-alert .chatbot-alert-content .chatbot-alert-text {
    margin: 16px 0;
}

.chatbot-alert .black-btn {
    font-family: 'Roboto';
    font-size: 16px;
    font-weight: 600;
}

.chatbot-alert .close-btn {
    position: relative;
    right: 0;
}

.response-wrapper {
    align-items: center;
    display: flex;
    margin-bottom: 24px;
    padding: 16px;
}

.response-logo {
    display: flex;
    padding: 10px;
    border-radius: 100%;
}

.response-logo.is_valid {
    background-color: var(--success-msg-logo-bg);
}

.response-logo.non_valid {
    background-color: var(--failure-msg-logo-bg);
}

.response-title-wrapper {
    display: flex;
    flex-direction: column;
    padding-left: 9px;
    gap: 6px;
}

.response-title {
    font-weight: 500;
}

.response-content {
    font-size: 14px;
}

.response-wrapper.is_valid {
    background-color: var(--success-msg-bg);
}

.response-wrapper.non_valid {
    background-color: var(--failure-msg-bg);
}

.loader {
    visibility: hidden;
    bottom: 260px;
    display: flex;
    position: fixed;
    width: 40px;
}

.dot {
    animation: changeColor 1s infinite;
    background-color: var(--loader-faded);
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-right: 2px;
    width: 6px;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes changeColor {
    0%, 100% { background-color: var(--loader-faded); }
    50% { background-color: var(--loader-highlighted); }
}

#full-disclaimer-text {
    display: none;
}

#read-more {
    color: var(--grey-color);
    font-weight: 500;
}

@media only screen and (max-width: 768px) {
    .chatbot-popup {
        bottom: 0;
        flex-direction: column;
        height: 100dvh;
        max-width: 100%;
        right: 0;
        touch-action: manipulation;
        width: 100%;
        z-index: 2;
    }

    #chatbot-toggle-btn {
        z-index: 1;
    }

    .chat-box {
        flex-grow: 1;
        max-height: 100%;
    }

    .bot-name {
        font-size: 22px;
    }

    .chat-input {
        margin: 16px 24px;
        padding: 6px 12px;
        border: 1px solid var(--input-border);
    }

    .loader {
        bottom: 140px;
    }
}
