.chat-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.chat-toggle-btn:hover {
    background: #218838;
}

.chat-popup {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 360px;
    max-width: calc(100% - 20px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.chat-popup.active {
    display: block;
}

.chat-popup-header {
    background: #1f3a5f;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.chat-close-btn {
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.chat-popup-body {
    padding: 16px;
    background: #ffffff;
}

.chat-form {
    display: flex;
    flex-direction: column;
}

.chat-form label {
    margin-bottom: 6px;
    font-weight: bold;
    text-align: left;
    color: #333333;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: #1f3a5f;
}

.chat-form textarea {
    resize: vertical;
    min-height: 110px;
}

.chat-send-btn {
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.chat-send-btn:hover {
    background: #218838;
}

.chat-status {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

.chat-status.success {
    color: #1e7e34;
}

.chat-status.error {
    color: #c0392b;
}

@media (max-width: 768px) {
    .chat-toggle-btn {
        right: 12px;
        bottom: 12px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .chat-popup {
        right: 12px;
        bottom: 68px;
        width: calc(100% - 24px);
        max-width: none;
    }

    .chat-popup-header h3 {
        font-size: 16px;
    }
}