:root {
    --color-white: #F9F9F9;
    --color-white-2: #E9E9E9;
    --color-purple: #7462F0;
    --color-darkgray: #636363;
    --color-lightgray: #DADADA;
    --color-turquoise: #59b3b6;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
    background: #fff;
  	font-family: 'Inter-Regular';
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

section.main-chat-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 5vh 0 5vh 0;
}

section.main-chat-section .chat-wrapper {
    max-width: 1000px;
    width: 100%;
    border: 1px solid var(--color-lightgray);
    border-radius: 16px;
    padding: 0 100px;
    min-height: unset;
}

section.main-chat-section .chat-wrapper header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 30px 0;
}

section.main-chat-section .chat-wrapper header .logo {
    width: 140px;
    height: auto;
}

section.main-chat-section .chat-wrapper header .desc {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

section.main-chat-section .chat-wrapper header .desc span,
section.main-chat-section .chat-wrapper header .desc img {
    cursor: pointer;
}

section.main-chat-section .chat-wrapper .tab-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: unset;
    margin: 0;
    position: relative;
    min-height: 70vh;
}

section.main-chat-section .chat-wrapper .tab-section h2 {
    font-size: 35px;
    line-height: 48px;
    width: 100%;
    text-align: center;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body {
    padding-bottom: 50px;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item {
    border-radius: 15px;
    border: 1px solid var(--color-lightgray);
    padding: 2px 20px;
    height: 65px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #0000006E;
    cursor: pointer;
    width: 100%;
    transition: 0.3s all ease-in-out;
    max-height: 65px;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item:hover {
    border: 1px solid var(--color-turquoise);
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item.reg-button,
section.main-chat-section .chat-wrapper .tab-section .answer-body .answer-text .form-register .reg-button {
    background: linear-gradient(90deg, #5EB5C0 0%, #48AC98 100%);
    color: var(--color-white);
    transition: 0.3s all ease-in-out;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item.reg-button:hover,
section.main-chat-section .chat-wrapper .tab-section .answer-body .answer-text .form-register .reg-button:hover {
    background: linear-gradient(90deg, #5EB5C0 0%, #054e40 100%);
    color: #fff;
    background-position: right center;
    background-size: 200% auto;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item p {
    font-family: 'Inter-SemiBold';
    margin: 0;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input {
    border: 0.5px solid var(--color-lightgray);
    border-radius: 25px;
    background: #F5F5F5;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input input::placeholder {
    color: #AEAEAE;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input input {
    all: unset;
    color: var(--color-darkgray);
    background: transparent;
    outline: none;
    border: none;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input .buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input .buttons .attach-btn {
    background: #fff;
    border: 0.5px solid var(--color-lightgray);
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input .buttons button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input .buttons .audio-btn {
    background: #000;
    border: 0.5px solid var(--color-lightgray);
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-header p {
    margin: 0;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-header .content {
    background: #F6F6F6;
    border-radius: 12px;
    color: #636363;
    font-family: 'Inter-SemiBold';
    letter-spacing: 0%;
    padding: 10px 25px;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 0;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-header .avatar {
    font-size: 14px;
    line-height: 30px;
    color: var(--color-purple);
    background: #F4F4FE;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .img {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-white-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text {
    width: 100%;
    margin-bottom: 20px;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text {
    font-family: 'Inter-Medium';
    letter-spacing: 0%;
    font-size: 18px;
    line-height: 26px;
    margin-left: 15px;
    /* animation: blink 0.7s step-end infinite; */
    /* animation: typing 3s steps(30, end), blink 0.7s step-end infinite; */
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text ol {
    list-style: none;
    counter-reset: li;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    margin-top: unset;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text ol li {
    position: relative;
    padding-left: 28px;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text ol li.typing {
    display: inline-block;
    overflow: hidden;
    animation: typing 5s steps(30, end);
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text ol li::before {
    opacity: 0;
}
section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text ol li.has-text::before {
    opacity: 1;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text ol li::before {
    counter-increment: li;
    content: counter(li) ". ";
    position: absolute;
    left: 0;
    top: 0;
    color: #000;
    transition: 0.2s opacity ease-in-out;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .action-icons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    margin-left: 15px;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .action-icons img {
    width: 18px;
    cursor: pointer;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register {
    margin: 30px auto 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 360px;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper {
    position: relative;
    width: 100%;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper input {
    font-family: 'Inter-Regular';
    font-size: 18px;
    color: var(--color-darkgray);
    line-height: 24px;
    letter-spacing: 0%;
    padding: 10px 15px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.33);
    border-radius: 10px;
    outline: none;
    height: 50px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper input::placeholder {
    color: #989898;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper input:focus {
    border: 1px solid var(--color-turquoise);
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper input.error-input {
    border: 1px solid red;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper .error {
    display: none;
}

section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper .error.active {
    display: block;
    padding-top: 5px;
}

section.main-chat-section .chat-wrapper .tab-section .answer-body .answer-text .form-register .reg-button {
    font-family: 'Inter-SemiBold';
    height: 50px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.all-unset {
    all: unset;
}

.tab-body-move {
    top: unset;
    bottom: 26px;
}

.iti-cutsom {
    width: 100%;
}

.iti-cutsom.error-input {
    border: 1px solid red;
}

.iti-cutsom .iti__selected-flag {
    padding: 0 7px 0 15px;
    border-radius: 10px 0 0 10px;
}

.iti-cutsom .iti__selected-dial-code {
    font-size: 18px;
}

.form_message.error.inactive,
.form_message.success.inactive {
    display: none;
}

.form_message.error.active,
.form_message.success.active {
    display: block !important;
}

.form_message {
    width: 100%;
    min-height: 50px;
    align-content: center;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 10px 15px !important;
    font-size: 16px !important;
}

.form_message.error {
    background-color: #ff7f7f;
    border: 2px dashed #ce0909;
    color: #fff;
}

.form_message.success {
    background-color: #d4ffe0;
    border: 2px dashed #1f6b34;
    color: #000;
}

.form-submit-loader {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 800px) {
    section.main-chat-section .chat-wrapper {
        padding: 0 60px;
    }
}

@media (max-width: 700px) {
    section.main-chat-section .chat-wrapper {
        padding: 0 40px;
    }

    section.main-chat-section .chat-wrapper .tab-section h2 {
        font-size: 30px;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input {
        padding: 10px 15px;
        border-radius: 20px;
    }

    section.main-chat-section .chat-wrapper .tab-section .answer .answer-header .content,
    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper input,
    .iti-cutsom .iti__selected-dial-code {
        font-size: 16px;
    }

    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body {
        flex-direction: column;
    }

    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text {
        font-size: 16px;
        margin-left: unset;
    }

    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .action-icons {
        margin-left: unset;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item {
        padding: 2px 20px;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item p {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 500px) {
    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register {
        margin: 30px 0 0;
        max-width: unset;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input input,
    section.main-chat-section .chat-wrapper .tab-section .answer .answer-header .content,
    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .text,
    section.main-chat-section .chat-wrapper .tab-section .answer .answer-body .answer-text .form-register .input-wrapper input,
    .iti-cutsom .iti__selected-dial-code,
    .form_message {
        font-size: 14px !important;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input .buttons button {
        width: 35px;
        height: 35px;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .message-input .buttons button img {
        width: 18px;
        height: 18px;
    }

    section.main-chat-section .chat-wrapper .tab-section .tab-body .questions .questions-group .question-item p {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}
/*  */

@keyframes blink {
  50% { opacity: 0; }
}

@-webkit-keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}