/* Chat Widget Styles */
.chat-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-widget-btn {
    background: linear-gradient(135deg, #0891b2 0%, #08687e 100%);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    font-size: 24px;
    transition: all 0.3s ease;
    border: none;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.chat-widget-window {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: 90vw;
    height: 500px;
    z-index: 9999;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #083344;
}

.chat-widget-header {
    background: #083344;
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-close {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.chat-widget-close:hover { opacity: 1; }

.chat-widget-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    height: 350px;
    background: #f8f9fa;
}

.chat-message { margin-bottom: 15px; display: flex; flex-direction: column; }
.chat-message.user { align-items: flex-end; }
.chat-message.ai { align-items: flex-start; }

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user .message-content {
    background: #0891b2;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai .message-content {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-sender { font-size: 12px; color: #6c757d; margin-bottom: 4px; font-weight: 600; }

.chat-widget-form { display: flex; border-top: 1px solid #e9ecef; background: #fff; padding: 15px; }

.chat-widget-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.chat-widget-input:focus { border-color: #0E7490; background: white; }

.chat-widget-send {
    background: #0E7490;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-widget-send:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); }
.chat-widget-send:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.chat-spinner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: white; border-radius: 18px; border: 1px solid #e9ecef; margin-bottom: 15px; max-width: 80%; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.spinner { width: 16px; height: 16px; border: 2px solid #0E7490; border-top: 2px solid transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.contact-form { background: white; padding: 20px; border-radius: 15px; margin-top: 15px; border: 1px solid #e9ecef; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.contact-form h3 { color: #2c3e50; font-size: 16px; margin-bottom: 15px; text-align: center; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 14px; margin-bottom: 10px; transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #0E7490; }
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-submit { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; width: 100%; transition: all 0.3s ease; }
.contact-submit:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); }

.error-message { color: #dc3545; background: #f8d7da; padding: 10px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.success-message { color: #155724; background: #d4edda; padding: 10px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }

@media (max-width: 768px) {
    .chat-widget-window {
        width: calc(100vw - 48px);
        right: 24px;
        left: 24px;
        max-width: none;
    }
    .chat-widget-btn { width: 50px; height: 50px; font-size: 20px; }
}

.qa-tabs {
    display: flex;
    border-bottom: 0px solid #ddd;
    margin-bottom: 8px;
}
.qa-tab {
    flex: 1;
    padding: 5px;
    background: #eff2f3;
    border: none;
    cursor: pointer;
}
.qa-tab.active {
    background: #fff;
    font-weight: bold;
}
#qa-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
}

.qa-question {
    padding: 4px 8px;
    background: #eff2f3;
    border: 1px solid #bed0d5;
    border-radius: 15px;
    color: #052e38;
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    transition: background 0.2s ease;
}

.qa-question:hover {
    background: #e2e6ea;
}
.chat-message.ai a {
    color: #007bff;
    text-decoration: none;
}
.chat-message.ai a:hover {
    text-decoration: underline;
}



