﻿.d-none {
    display: none !important;
}
.error {
    border: 1px solid #ff0000 !important;
    background-color: #fff5f5;
}
#formSentModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease-out;
}

.success-container {
    position: absolute;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.4s ease-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .success-container h3 {
        color: #2C3537;
        font-size: 22px;
        margin-bottom: 16px;
        font-weight: 500;
    }

    .success-container p {
        color: #666;
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
#formSentModal.show {
    display: flex;
}
.widget-container {
    right: 6px;
    bottom: 57px;
    z-index: 10;
    line-height: 1;
    font-size: 18px;
    position: fixed;
    text-align: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    position: fixed;
    padding: 0;
}

button.widget-icon {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    padding: 0;
}

.widget-icon img {
    object-fit: cover;
    width: 64px;
    height: 64px;
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #D4F1E8;
    box-shadow: 0px 0px 8.6px 0px #5E5E5E21;
    /* justify-self: flex-end; */
    /* align-self: flex-end; */
    /* margin-left: auto; */
}

.widget-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    bottom: 130%;
    right: 10px;
}

.widget-icon .icon-wrapper img {
    object-fit: cover;
}

.widget-icon .icon-wrapper:hover {
    background: #006060;
}

#chatIcon:hover svg path {
    fill: #fff;
    stroke: #fff;
}

#chatIcon:hover svg circle {
    fill: #0E7D7D;
}

.icon-wrapper:hover svg path {
    fill: #fff;
    stroke: #fff;
}

.icon-wrapper:hover {
    background: #006060;
}

#chatModal, #formModal, #linksModal {
    width: 450px;
    height: 650px;
    position: absolute;
    background: #fff;
    bottom: 0%;
    right: 80px;
    box-shadow: 0px 4px 32px 0px #0010272B;
    border-radius: 24px !important;
    font-family: "Ubuntu";
}

.linksContainer {
    margin: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .linksContainer .header {
        display: flex;
        align-items: center;
        border-bottom: none;
    }

    .linksContainer .close-btn {
        all: unset;
        border: none;
        font-size: 24px;
        color: #888;
        cursor: pointer;
        padding: 5px;
    }

    .linksContainer .header-title {
        all: unset;
        color: var(--Dark, #333839);
        text-align: center;
        font-family: Ubuntu;
        font-size: 17px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        margin: 0 auto;
    }

.chat-container {
    background: #f5f5f5;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0px 4px 32px 0px #0010272B;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    background: white;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.linksContainer .header {
    padding: 0;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 auto;
    padding-left: 40px;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

    .icon:hover {
        opacity: 1;
    }

.chat-area {
    flex: 1;
    background: #EBEFF1;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.date-separator {
    text-align: center;
    margin: 20px 0;
}

.date-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #888;
    padding: 6px 12px;
    border-radius: 15px !important;
    font-size: 13px;
    display: inline-block;
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    background: #20a085;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    align-self: flex-end;
    flex-shrink: 0;
    background: url('../Images-baspana/Widget/botAvatar.svg');
}

.avatar-icon {
    width: 20px;
    height: 20px;
    border-radius: 50% !important;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.sender-name {
    font-weight: 600;
    color: #333;
    text-align: left;
}

.bot-label {
    background: #20a085;
    color: white;
    padding: 2px 6px;
    border-radius: 8px !important;
    font-size: 11px;
    font-weight: 500;
}

.message-bubble {
    background: white;
    padding: 10px;
    border-radius: 12px !important;
    max-width: 280px;
    word-wrap: break-word;
    position: relative;
}
    .message-bubble .sender-name span {
        color: var(--Mid-Gray-2, #ADB0B2);
        font-family: Ubuntu;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%; 
    }

.message-text {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 2px;
    text-align: left;
}

.message-time {
    color: #888;
    font-size: 12px;
    text-align: right;
}

.disclaimer {
    background: #fff;
    color: #666;
    padding: 6px 10px;
    border-radius: 12px !important;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.3;
}

.message-text ul {
    padding-left: 20px;
}

.input-area {
    background: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    justify-content: space-between;
}

.menu-btn {
    background: #008F91;
    color: white;
    border: none;
    padding: 4px 6.5px;
    border-radius: 10px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    align-self: flex-end;
    color: #FFF;
    font-family: Ubuntu;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.menu-icon {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 2px !important;
}

.input-container {
    flex: 1;
}

.message-input {
    display: flex;
    height: 80px;
    padding: 8px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1 0 0;
    background: rgba(245, 246, 248, 1);
    border-radius: 8px !important;
    border: none;
    outline: none;
    font-family: Ubuntu;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    width: 100%;
    resize: none;
}

    .message-input::placeholder {
        color: #aaa;
    }

.input-icons {
    right: 8px;
    top: 50%;
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: flex-end;
}

.input-icon {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .input-icon:hover {
    }

.send-btn {
    background: none;
}

.file-upload-btn {
    background: none;
}

.send-btn:hover {
}

/* Scrollbar styling */
.chat-area::-webkit-scrollbar {
    width: 4px;
}

.chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px !important;
}

.closeChat {
    padding: 0;
    display: flex;
    align-items: center;
    border: none;
    background: none;
}

.icon {
    opacity: 1;
}

.typing-indicator {
    opacity: 0.8;
    animation: fadeIn 0.3s ease-in;
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    color: #ADB0B2;
    font-family: Ubuntu;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    line-height: 140%;
    border-radius: 12px;
    background: #FFF;
    border: none;
    background: #fff;
}

.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

    .typing-dots span {
        width: 6px;
        height: 6px;
        background-color: #008F91;
        border-radius: 50%;
        animation: typingDots 1.4s infinite;
    }

        .typing-dots span:nth-child(1) {
            animation-delay: 0s;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typingDots {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    30% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.widget-item {
    display: grid;
    grid-template-columns: 1fr max-content;
    /* justify-content:space-between; */
    gap: 10px;
    align-items: center;
}

.widget-item {
    position: relative;
}

.widget-container .widget-item span.widget-text {
    opacity: 0;
    visibility: hidden;
}

.widget-item:hover span.widget-text {
    opacity: 1;
    visibility: visible;
    z-index: 1001;
}

.widget-container .widget-item span.widget-text {
    display: block;
    color: #FFF;
    text-align: center;
    font-family: Ubuntu;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    border-radius: 10px !important;
    background: var(--Teal-600, #006060);
    display: flex;
    padding: 10px 13px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: max-content;
    justify-self: flex-end;
}


.widget-item.active div.icon-wrapper {
    background: #0E7D7D;
}

    .widget-item.active div.icon-wrapper svg path {
        fill: #fff;
        stroke: #fff;
    }

    .widget-item.active div.icon-wrapper svg circle {
        color: #0E7D7D;
        fill: #0E7D7D;
    }




.form-container {
    background: white;
    padding: 20px 16px;
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-radius: inherit !important;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

    .close-btn:hover {
        background-color: #f0f0f0;
    }

.form-title {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

    .form-title h2 {
        /* flex: 1 0 80%; */
        /* all: unset; */
        color: var(--Dark, #333839);
        text-align: center;
        font-family: 'Ubuntu-Medium';
        font-size: 17px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        /* width: fit-content; */
        max-width: 338px;
        /* margin: 0 auto; */
    }



.form-field {
    margin-bottom: 20px;
    position: relative;
}


    .form-field select {
        width: 100%;
        padding: 16px 20px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        font-size: 16px;
        background: white;
        transition: border-color 0.3s, box-shadow 0.3s;
        appearance: none;
    }

    .form-field input {
        width: 100%;
        display: flex;
        flex: 1;
        height: 58px;
        padding: 8px 12px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        align-self: stretch;
        border-radius: 12px !important;
        border: 1px solid var(--Gray-150, #E1E2E2);
        background: var(--Gray-0, #FFF);
    }

        .form-field input:focus,
        .form-field select:focus {
            outline: none;
            border-color: #00b4a6;
            box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
        }

        .form-field input::placeholder {
            color: var(--Gray-600, #838386);
            /* Body L */
            font-family: Ubuntu;
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 140%; /* 22.4px */
        }

    .form-field select {
        cursor: pointer;
        color: #aaa;
    }

        .form-field select:valid {
            color: #333;
        }

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #aaa;
    font-size: 12px;
}

.submit-btn {
    width: 100%;
    display: flex;
    height: 48px;
    padding: 6px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 6px !important;
    background: var(--Teal, #008F91);
    color: var(--White-Background, #FFF);
    text-align: center;
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    border: none;
    margin-bottom: 10px;
}



    .submit-btn:active {
        transform: translateY(0);
    }

.privacy-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .form-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .form-title h2 {
        font-size: 18px;
    }

    .form-title p {
        font-size: 14px;
    }
}

.contact-methods {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-card {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: px;
    margin: 16px;
    border-radius: 16px !important;
    background: #FFF;
}

.card-wrapper {
    flex: 1 0 47%;
    display: flex;
    flex-direction: column;
    border-radius: 20px !important;
    background: var(--Gray-100, #EBEBEC);
}

.qr-code img {
    width: 120px;
    height: 120px;
}

.contact-icon {
    color: var(--Dark, #333839);
    text-align: center;
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.social-title {
    text-align: left;
    color: var(--Dark, #333839);
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.social-section {
    display: flex;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    border-radius: 12px !important;
    background: var(--Gray-100, #EBEBEC);
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
    align-self: stretch;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: block;
}

    .social-icon a {
        object-fit: cover;
        width: 100%;
    }

    .social-icon img {
        width: 48px;
        height: 48px;
    }

.app-section {
    display: flex;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    align-self: stretch;
    border-radius: 12px !important;
    background: var(--Gray-100, #EBEBEC);
}

.app-title {
    color: var(--Dark, #333839);
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-align: left;
}

.app-button img {
    width: 135px;
    height: 40px;
}

.app-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feedback-section {
    border-radius: 12px !important;
    background: var(--Gray-100, #EBEBEC);
    display: inline-flex;
    padding: 14px;
    /* justify-content: space-between; */
    align-items: center;
    /* align-self: stretch; */
    width: 100%;
}

.feedback-btn {
    display: flex;
    height: 36px;
    padding: 6px 12px;
    align-items: center;
    gap: 8px;
    border-radius: 6px !important;
    border: 1px solid var(--Mid-Gray, #D1D4D7);
    background: var(--Teal-500, #0E7D7D);
}

    .feedback-btn span {
        color: var(--Gray-0, #FFF);
        text-align: center;
        font-family: Ubuntu;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
    }

.feedback-text {
    color: var(--Dark, #333839);
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
    text-align: left;
    width: 100%;
    flex: 1;
}

.main-widget-tooltip {
    position: absolute;
    bottom: 111%;
    right: 5%;
    background: #fff;
    border-radius: 14px !important;
    border: 1px solid #e1e4ea;
    padding: 16px 20px;
    width: max-content;
    box-shadow: 0 10px 20px 0 rgba(132,146,166,0.16);
}

.contact-info {
    color: var(--Dark, #333839);
    text-align: center;
    /* Body L */
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
}

.main-widget-tooltip span {
    color: var(--Dark, #333839);
    font-family: Ubuntu;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.close-toolip-icon {
    position: absolute;
    top: -5px;
    right: -3px;
}

.main-widget-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 13%;
    transform: translateX(-13%);
    border: 8px solid transparent;
    border-top: 8px solid white;
    z-index: 1;
    margin-top: -2px;
}

.main-widget-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 7%;
    transform: translateX(-53%);
    border: 10px solid transparent;
    border-top: 8px solid #e1e4ea;
}

.close-toolip-icon {
    cursor: pointer;
}

@media (max-width: 768px) {
    #chatModal, #formModal, #linksModal {
        z-index: 10011;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        /* min-height: 91vh; */
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0px -4px 32px 0px #0010272B;
    }

    .form-container {
        padding: 20px 16px;
        margin: 0;
    }

    .form-title h2 {
        color: var(--Dark, #333839);
        text-align: center;
        font-family: Ubuntu;
        font-size: 17px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }

    .form-field {
        margin-bottom: 12px;
    }

        .form-field input {
            display: flex;
            height: 58px;
            padding: 8px 12px;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 10px;
            align-self: stretch;
        }

    .form-container {
        border-radius: 24px !important;
        overflow: hidden;
        box-shadow: 0px 4px 32px 0px #0010272B;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .widget-item span {
        opacity: 1;
        visibility: visible;
        border-radius: 10px !important;
        background: #3F5E5E;
    }


    .icon-wrapper {
        background: #3F5E5E;
    }

        .icon-wrapper svg {
            fill: #fff;
        }

            .icon-wrapper svg path {
                stroke: #fff;
                fill: #fff;
            }

            .icon-wrapper svg circle {
                fill: #3F5E5E;
                stroke: #3F5E5E;
            }

    .widget-icon img {
        width: 54px;
        height: 54px;
    }

    .widget-item:hover span.widget-text {
        z-index: 0;
    }

    .widget-container {
        right: 8px;
    }

    .contact-methods {
        flex-direction: column;
    }

    .qr-code {
        display: none;
    }

    .card-wrapper {
        width: 100%;
    }

    .contact-icon whatsapp-icon span {
        display: none;
    }

    .contact-card {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .contact-icon.whatsapp-icon span {
        display: none;
    }

    .contact-icon.telegram-icon span {
        display: none;
    }

    .contact-info span {
        color: var(--Dark, #333839);
        text-align: center;
        /* Accent M */
        font-family: Ubuntu;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 25.2px */
    }
}
