.overlay,
.overlay_record {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    display: flex;
}

.overlay_loading {
    display: none;
}

.overlay_record {
    background-color: white;
    display: flex;
}

.block_record {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.container {
    background-image: url(/cv365/images/avatar_ai/background.png);
    /* height: 100vh; */
    padding-top: 1px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.block1 {
    padding: 0;
    height: fit-content;
    margin: 0 auto;
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
    width: 750px;
    /* text-align: center; */
    display: flex;
    width: 1200px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.block1_heading {
    display: flex;
    gap: 280px;
    width: 100%;
    height: 60px;
    background-color: var(--4C5DB4, #4C5BD4);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding-left: 15px;
    align-items: center;
    justify-content: start;
}

.block1 .img_robot {
    width: 160px;
    height: 160px;
}

.step2 {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
}

.block2 {
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 12px;
    padding: 20px;
}

.block2 button,
.block2 a {
    height: 42px;
    width: 120px;
    border-radius: 32px;
    font-weight: 600;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.block3 {
    overflow-y: scroll;
    margin: 20px auto;
    width: 100%;
}

.block3 img {
    width: 100%;
}

.block4 {
    padding: 0;
    height: 100%;
    width: 35%;
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.block4 .img_robot {
    margin-top: 50px;
    width: 125px;
    height: 125px;
}

.block1_title,
.block4_title {
    color: black;
    font-size: 18px;
    font-weight: 700;
}

.wrap_input {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 5px;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

.block1 .wrap_input {
    flex-direction: column;
}

.wrap_input label {
    color: #4c5bd4;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.block1 .wrap_input label {
    width: 100%;
}

.input {
    position: relative;
    width: 100%;
}

.wrap_input input {
    width: 100%;
    height: 50px;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding-right: 50px;
    border: none;
    font-size: 16px;
    border: 1px solid #4C5BD4
}

.wrap_input_container {
    display: flex;
    width: 100%;
}

.icon_mic {
    position: absolute;
    right: 16px;
    top: 9px;
    cursor: pointer;
}

.block1_btn_submit {
    width: 140px;
    height: 44px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--Logo, #4C5BD4);
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 30px;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 80px;
    margin: auto;
}


.big_robot {
    position: fixed;
    bottom: 2%;
    right: 5%;
    z-index: 9999;
}

.big_robot img {
    width: 100px;
}

.btn_close_block_ai {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    border: none;
    background-color: white;
}

.chatbot {
    width: 1000px;
    border-radius: 14px;
    box-shadow: 0px 0px 16px 0px #00000040;
    margin-top: 20px;
    margin-bottom: 40px;

}

.chatbox {
    overflow-y: auto;
    padding: 30px 20px 100px;
    height: 390px;
}

.to_chat {
    display: flex;
    list-style: none;
    gap: 16px;
}

.box_chat {
    max-width: 80%;
    color: #000;
    background: #f2f2f2;
    white-space: pre-wrap;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px;

}
.chat_input {
    display: flex;
    gap: 5px;
    position: relative;
    bottom: 0;
    width: 96%;
    margin: 0 auto;
    background: #eeefff;
    padding: 0px 20px;
    border-radius: 32px;
    margin-bottom: 10px;
    border-top: 1px solid #CDCDCD;
    margin-top: 10px;
}

.chat_input textarea {
    height: 50px;
    min-height: 50px;
    width: 100%;
    max-height: 180px;
    border: none;
    outline: none;
    overflow-y: auto;
    resize: none;
    padding: 15px 15px 10px 0px;
    font-size: 0.95rem;
    background: #eeefff;
    font-family: Roboto-Regular, sans-serif;
}

@media (max-width: 1365px) {
    .block1 {
        width: 1000px;
    }
    .block1_heading {
        gap: 200px;
    }
}

@media (max-width: 1023px) {
    .block1 {
        width: 90%;
    }
    .chatbot {
        width: 95%;
    }
    .block1_heading {
        gap: 130px;
    }
}
@media (max-width:900px) {
    .block1_heading {
        gap: 100px;
    }
}
@media (max-width:1024px) {
    .step2 {
        flex-direction: column;
    }
    .wrap_input input {
        padding-right: 0px;
    }

    .block2 {
        order: 2;
        flex-direction: row;
        height: fit-content;
        margin-bottom: 10px;
    }

    .block4 {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 999;
    }
}

@media (max-width: 767px) {
    .container {
        height: auto;
    }
    .block1 {
        width: 100%;
        margin: 0;
        margin-bottom: 20px;
    }
    .wrap_input_container {
        flex-direction: column;
        gap: 20px;
    }
    .block1_heading {
        gap: 70px;
    }

    .img_robot {
        display: none;
    }

    .chatbot {
        height: 100%;
        margin: 20px;
    }

    .to_chat img {
        width: 40px;
        height: 40px;
    }

    .chatbox {
        padding-top: 0px;
        padding-left: 5px;
        height: 490px;
    }
}
@media (max-width:768px) {
    .block3 {
        width: 100%;
    }

    .block3 img {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .block1_heading {
        gap: 40px;
    }
}
@media (max-width: 480px) {
    .block1 {
        width: 100%;
        
    }

    .block_record {
        gap: 25px;
    }

    .block2_btn_respon {
        width: 44px !important;
        border-radius: 100% !important;
    }

    .big_robot img {
        width: 75px;
    }

    .step2 {
        gap: 0;
    }

    .block1_title {
        text-align: center;
    }
    .block1_heading {
        gap: 10px;
    }
    .header_text {
        font-size: 16px;
    }

    .wrap_input_container {
        flex-direction: row;
        gap: 0px;
    }

}