.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'Arial', sans-serif;
    z-index: 9999;
}
.chat-button {
    position: fixed;
    bottom: 18px;
    right: 10px;
    background-color: #ffd700;
    color: black;
    padding: 12px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: bold;
    z-index: 9999;
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 8px;
}
.chat-button:hover {
    background-color: #ffcc00;
    color: white;
}
.chat-box {
    display: none;
    width: 440px;
    height: 600px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
    color: #fff;
    margin-bottom: 5vh;
}
.chat-header {
    background-color: #dbdbdb;
    color: #000000;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: none;
    border: none;
    color: black;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
}
.close-btn:hover {
    transform: rotate(90deg);
}
.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    height: 80%;
}
.message {
    max-width: 75%;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    position: relative;
    line-height: 1.4;
    word-wrap: break-word;
}
.user-message {
    align-self: flex-end;
    background-color: white;
    font-size: 16px;
    color: black;
    background: rgba(238, 238, 238, 0.3);
    box-shadow: 0 4px 10px rgb(0 0 0 / 39%);
    min-width: 40%;
}
.admin-message {
    align-self: flex-start;
    background-color: #222;
    font-size: 18px;
    background-color: white;
    color: black;
    box-shadow: 0 4px 10px rgb(0 0 0 / 39%);
    min-width: 40%;
}
.message-time {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
}
.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #333;
    background-color: #dbdbdb;
}
.chat-input input {
    flex: 1;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 18px;
    background-color: #ffffff;
    color: #000000;
    outline: none;
    transition: border-color 0.3s;
}
.chat-input input:focus {
    border-color: #555;
}
.chat-input button {
    margin-left: 8px;
    background-color: #ffffff;
    color: black;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}
.chat-input button:hover {
    background-color: #222;
}
.sender-label{
font-weight: 500;
}
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.modal-content02 {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: black;
}
.modal-content02 h3 {
    margin-bottom: 16px;
    font-size: 20px;
    color: black;
}
.modal-content02 input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #444;
    border-radius: 12px;
    font-size: 14px;
    color: white;
    text-align: left;
}
.modal-actions {
    display: flex;
    justify-content: space-between;
}
.cancel-btn,
.confirm-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}
.cancel-btn {
    background-color: #333;
    color: #fff;
    margin-right: 8px;
}
.confirm-btn {
    background-color: #000;
    color: white;
}
.confirm-btn:hover {
    background-color: #222;
}
.chat-error {
    background: #ff4d4f;
    color: white;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    margin: 10px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 1024px) {
    .chat-box {
        width: 380px;
        height: 520px;
    }
    .chat-input input {
        font-size: 16px;
    }
    .chat-input button {
        font-size: 14px;
    }
    .user-message,
    .admin-message {
        font-size: 15px;
    }
}
@media (max-width: 768px) {
    .chat-widget {
        right: 10px;
        bottom: 10px;
    }
    .chat-box {
        width: 90vw;
        height: 70vh;
        margin-bottom: 10vh;
        /* margin-right: 3vh; */
        border-radius: 12px;
    }
    .chat-header {
        font-size: 16px;
        padding: 10px 12px;
    }
    .close-btn {
        font-size: 20px;
    }
    .chat-input input {
        font-size: 16px;
        padding: 8px 12px;
    }
    .chat-input button {
        padding: 8px 12px;
        font-size: 14px;
    }
    .message {
        font-size: 14px;
        padding: 8px 10px;
    }
    .user-message,
    .admin-message {
        font-size: 14px;
        min-width: 50%;
    }
    .chat-button {
        padding: 10px 14px;
        font-size: 14px;
    }
    .modal-content02 {
        width: 90vw;
        height: 75vh;
        margin-top: 4vh;
    }
    .modal-content02 input {
        font-size: 13px;
    }
    .cancel-btn,
    .confirm-btn {
        font-size: 13px;
        padding: 8px;
    }
}
@media (max-width: 480px) {
    .chat-box {
        width: 90vw;
        height: 70vh;
        border-radius: 0;
    }
    .chat-header {
        font-size: 15px;
    }
    .chat-input {
        padding: 8px;
        flex-direction: column;
        gap: 6px;
    }
    .chat-input input {
        padding: 8px;
        font-size: 15px;
        margin: 0;
    }
    .chat-input button {
        width: 100%;
        margin-left: 0;
    }
    .chat-button {
        padding: 10px;
        font-size: 13px;
    }
    .modal-content02 {
        padding: 16px 20px;
    }
    .modal-content02 h3 {
        font-size: 18px;
    }
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    .cancel-btn,
    .confirm-btn {
        width: 100%;
        margin: 0;
    }
}