html {
    font-size: 10px !important;
}
@media(max-width: 1280px) {
    html,body * {
        outline: transparent !important;
        user-select: none;
    }
}
@media screen and (min-width: 992px) and (max-width: 1280px){
    html {
        font-size: calc(100vw / 92) !important;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px){
    html {
        font-size: calc(100vw / 86) !important;
    }
}
@media(max-width: 767px){
    html {
        font-size: calc(100vw / 37.5) !important;
    }
}
html,body * {
    font-size: 1.6rem;
    line-height: normal;
    box-sizing: border-box;
    font-family: Lato, sans-serif;
}

body {
    margin: 0;
}

.header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 10rem;
    width: 100%;
    padding: 2.9rem 20rem;
    background-color: #fff;
}
.header__logo {
    width: 28.2rem;
    height: 2.9rem;
}
.header__logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.header__info{
    display: flex;
    flex-direction: column;
    grid-gap: .5rem;
}
.header__info-phone{
    font-family: Lato;
    font-weight: 700;
    font-size: 2rem;
    line-height: 100%;
    color: #000000;
    text-decoration: none;
}
.header__info-address{
    font-family: Lato;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 100%;
    color: #00000080;
    margin: 0;
}

.chat__inner {
    position: relative;
    background-image: url("../img/chat-bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all .2s ease-in-out;
    padding: 5.1rem 0 2rem;
}
.chat__title {
    margin-bottom: 1rem;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}
.chat__subtitle {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.chat {
    display: flex;
    flex-direction: column;
    border-radius: 3rem 3rem;
    overflow: hidden;
    box-shadow: 0 3rem 3rem #00000014;
    transition: all .2s ease-in-out;
    width: 97.6rem;
    margin: auto;
}
.chat__header{
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 10rem;
    padding: 3rem 9.5rem;
    height: 12.1rem;
    background-color: #2C2C2C;
    border-radius: 3rem 3rem 0 0;
}
.chat__header-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;

}
.chat__header-item svg {
    width: 6.1rem;
    height: 6.1rem;
    object-fit: contain;
}
.chat__header-item span {
    font-family: Lato;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 100%;
    color: #fff;
}
.chat__body{

}
.chat__footer{
    display: flex;
    padding: 2rem;
    background-color: #2C2C2C;
    border-radius: 0 0 3rem 3rem;
}
#chat{
    min-height: 48.4vh;
    width: 100%;
    padding: 3rem 3rem 3rem 20.6rem;
    background-color: rgba(255,255,255, .15);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    scroll-behavior: smooth;
    transition: all .2s ease-in-out;
}

.chat__btn-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
    margin-top: 3rem;
    width: 100%;
}
.chat__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 6rem;
    padding: 2rem;
    border-radius: 2rem;
    background-color: #54585A;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.chat__btn:not(.chat__btn[disabled]):hover {
    background-color: #DA291C;
}
.chat__btn[disabled]{
    opacity: 0;
    background-color: #DA291C;
    pointer-events: none;
    cursor: default;
}
.chat__btn.previous-stage {
    opacity: 1;
}
.chat__btn.skip-btn.previous-stage {
    background-color: #fff;
    color: #DA291C;
}
.message {
    font-size: 1.8rem;
    line-height: 110%;
    border-radius: 2rem;
    padding: 2rem;
    position: relative;
    width: fit-content;
    max-width: 56rem;
}
.message:not(.typing) {

}
.message.typing {
    color: #fff;
}

.bot-message {
    margin: 0 0 2rem;
    opacity: 0;
    box-shadow: 0 .3rem 1rem rgba(38, 36, 60, 0.07);
    animation: fadeIn 1s forwards;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #282d30;
}
.skip-message {
    margin-top: 2rem;
}
.error-message:not(.form .error-message ) {
    margin-top: 2rem;
    color: red;
}
.form .error-message {
    transition: opacity 0.5s ease;
    opacity: 1;
    color: red;
    margin-bottom: 2rem;
}

.user-message {
    background-color: #000;
    text-align: right;
    color: #fff;
    margin: 2rem 0 2rem auto !important;
}

.user-message * {
    color: initial;
}
.operator-avatar {
    width: 8.8rem;
    height: 8.8rem;
    object-fit: contain;
    border-radius: 50%;
    position: absolute;
    left: calc(-20.6rem + 8.8rem);
    top: calc(50% - 4.4rem);
}










/* width */
#chat::-webkit-scrollbar {
    width: .7rem;
}

/* Track */
#chat::-webkit-scrollbar-track {
    background: #fff;
    border-left: 1px solid #aaaaaa60;
}

/* Handle */
#chat::-webkit-scrollbar-thumb {
    background: #aaaaaa;
    cursor: pointer;
    border-radius: .25rem;
}

/* Handle on hover */
#chat::-webkit-scrollbar-thumb:hover {
    background: #222;
}




.options {
    display: flex;
    grid-gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}
.options:not(.options-images) {
    flex-direction: column;
}
.options.options-images {
    flex-direction: row;
    flex-wrap: wrap;
}
.option-card {

}
.option-card label {
    cursor: pointer;
}
.option-card input[type="radio"]{
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    visibility: hidden;
}
.option-card input[type="checkbox"]{
}


.option-card-image {
    display: flex;
    flex-direction: column-reverse;
    width: 32.4rem;
    height: 24.7rem;

    background: #fff;
    color: #000;
    padding: 2rem;
    font-size: 2rem;
    line-height: 110%;
    opacity: 0;
    border-radius: 2rem;
    box-shadow: 0 .3rem 1rem rgba(38, 36, 60, 0.07);
    animation: fadeIn 1s forwards;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, background-color 0.3s ease;

}
.option-card-image .option-card__image {
    margin-top: auto;
    margin-bottom: auto;
}
.option-card-image .option-label {
    /*margin-bottom: auto;*/
}
.option-card:not(.option-card-image):has(input:checked){
    transform: scale(1.02);
}

.option-card.option-card-image:has(input:checked),
.option-card.option-card-image:hover {
    transform: scale(1.02);
    border: 3px solid #DA291C;
}
.option-card.disabled {
    pointer-events: none;
    cursor: default;
}
.option-card-image img{
    min-width: 20.2rem;
    max-width: 28.5rem;
    min-height: 9rem;
    max-height: 16.7rem;
    object-fit: scale-down;
}

.options-texts {
    background: #fff;
    color: #000;
    padding: 2rem;
    font-size: 1.8rem;
    line-height: 110%;
    opacity: 0;
    border-radius: 2rem;
    box-shadow: 0 .3rem 1rem rgba(38, 36, 60, 0.07);
    animation: fadeIn 1s forwards;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: fit-content;
}

.option-card-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
}
}
.option-card-text  input[type="checkbox"]{
    margin-right: 1rem;
}
.option__input-inner {

}
.option__input-inner .option__input{
    border: 1px solid #000000;
    width: 37.4rem;
    height: 6rem;
    outline: none;
    user-select: none;
    border-radius: 2rem;
    background-color: #fff;
    color: #000000;
    font-family: Lato;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 110%;
    padding: 1.6rem;
}
.option__input-inner .option__input::placeholder{
    color: #0000004D;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.option-card {
    transform: scale(1);
}


.form {
    display: flex;
    flex-direction: column;
    grid-gap: 1rem;
    width: 41.4rem;
    background-color: #fff;
    border-radius: 2rem;
    padding: 2rem;
}
.form__title {
    margin-bottom: 1rem;
    font-family: Lato;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 110%;
    color: #000;
}
.form__item {
    width: 100%;
    height: 6rem;
}
.form__item input {
    border: 1px solid #000;
    width: 100%;
    height: 100%;
    outline: none;
    user-select: none;
    border-radius: 2rem;
    padding: 1.6rem;
    background-color: #fff;
    color: #000;
    font-weight: 400;
    font-size: 1.8rem;
}
.form__item input::placeholder {
    color: #0000004D;
}
.form__btn-inner .form__btn {
    width: 100%;
}
.form__btn-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    grid-gap: 1rem;
}
input[type="checkbox"] {
    display: none;
}
input[type="checkbox"] + .custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #d32f2f;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #d32f2f;
    border-color: #d32f2f;
}
input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '✔';
    position: absolute;
    top: -1px;
    left: 2px;
    color: white;
    font-size: 1.6rem;
    line-height: 1.6rem;
}
input[type="checkbox"]:hover + .custom-checkbox {
    border-color: #c62828;
}

@media(min-width: 768px) and (max-width: 1280px){
    .header {
        padding: 2.9rem 5.8rem;
    }
    .chat__inner:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,.5);
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
    }
    .chat__title {
        z-index: 2;
        position: relative;
    }
    .chat__subtitle  {
        z-index: 2;
        position: relative;
    }
    .chat {
        z-index: 2;
        position: relative;
        width: calc(100% - 3rem);
    }
    .chat__header {
        grid-gap: 2.8rem;
        padding: 3rem 5.8rem;
        justify-content: center;
    }
    #chat {
        z-index: 2;
        position: relative;
        background-color: rgba(255, 255, 255, .33);
        min-height: 66vh;
        padding: 3rem 3rem 3rem 12.9rem;
    }
    .option-card-image {
        width: calc(50% - .5rem);
    }
}

@media(max-width: 767px){
    .header {
        flex-direction: column;
        grid-gap: 1.5rem;
        height: 11rem;
        padding: 1.5rem 2.2rem;
    }
    .header__info-phone {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: .5rem;
    }
    .header__info-address {
        text-align: center;
        font-size: 1.4rem;
    }
    .chat {
        width: 100%;
        z-index: 2;
        position: relative;
    }
    .chat__inner {
        padding: 2rem 1rem;
        position: relative;
    }
    .chat__inner:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,.5);
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
    }
    .chat__title {
        font-size: 2.6rem;
        margin-bottom: 1rem;
        z-index: 2;
        position: relative;
    }
    .chat__subtitle  {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        z-index: 2;
        position: relative;
    }
    .chat__header {
        flex-direction: column;
        grid-gap: 1.5rem;
        height: 18rem;
        padding: 1.5rem;
        align-items: baseline;
    }
    .chat__header-item svg {
        width: 4rem;
        height: 4rem;
    }
    .chat__header-item span br {
        display: none;
    }
    #chat {
        padding: 1.5rem 1.5rem 1.5rem 7.9rem;
        z-index: 2;
        position: relative;
        background-color: rgba(255, 255, 255, .33);
    }
    .operator-avatar {
        width: 5.4rem;
        height: 5.4rem;
        left: calc(-7.9rem + 1.7rem);
        top: 0;
    }
    .message {
        font-size: 1.4rem;
        padding: 1.5rem;
        max-width: 26rem;
    }
    .option-card-image {
        width: 26rem;
        height: 19.8rem;
        padding: 1.5rem;
    }
    .option__input-inner .option__input {
        width: 26rem;
    }
    .form {
        width: 26rem;
        padding: 1.5rem;
    }
    .form__item input {
        font-size: 1.4rem;
        height: 4.7rem;
    }
    .form__btn-inner .form__btn {
        font-size: 1.4rem;
        padding: 1.6rem;
        height: 4.7rem;
    }
    .chat__btn {
        font-size: 1.4rem;
        padding: 1.6rem;
        height: 4.7rem;
        box-shadow: 1px 3px 15px rgba(0, 0, 0, .33);
    }
    .form__title {
        font-size: 1.4rem;
    }
}

.info-widget {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    border-radius: 1rem 1rem 0 0;
    background-color: #000;
    z-index: 10000000001;
    box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.66);
    height: 7.6rem;
    overflow: hidden;
}
.info-widget__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.info-widget__content p{
    font-size: 1.6rem;
    line-height: 1.6rem;
    color: #fff;
    margin: 0 0 1rem;
}
.info-widget__content a{
    font-size: 2rem;
    font-weight: 600;
    line-height: 2rem;
    text-decoration: none;
    color: #fff;
}
@media(max-width: 767px){
    .info-widget{
        display: none;
        bottom: env(safe-area-inset-bottom, 0);
    }
}
