/* GO USA - AI Career Assistant Chat Widget */

.gc-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.gc-chat-toggle {
    background: #002868; /* var(--gc-navy) */
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
}

.gc-chat-toggle:hover {
    transform: scale(1.05);
    background: #003a99;
}

.gc-chat-window {
    display: none; /* Controlled by JS */
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.gc-chat-header {
    background: #002868;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gc-chat-header h4 {
    margin: 0;
    font-size: 16px;
}

#ai-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.gc-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 85%;
    line-height: 1.5;
    word-wrap: break-word;
}

.msg.ai {
    background: #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: #002868;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.gc-chat-input {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: #fff;
}

.gc-chat-input input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.gc-chat-input button {
    background: #002868;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gc-chat-widget {
        bottom: 90px; /* Above mobile nav */
        right: 20px;
    }
    .gc-chat-window {
        width: calc(100vw - 40px);
        max-width: 350px;
        bottom: 60px;
        right: 0;
        height: 450px;
    }
}
