/* Chatbot Root */
#qc-chatbot-root {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Action Button */
.qc-fab {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease;
}
.qc-fab:hover {
    transform: scale(1.05);
}
.qc-fab svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Chatbot Window */
.qc-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}
.qc-window.open {
    display: flex;
}

/* Header */
.qc-header {
    background: #1e293b;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qc-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qc-agent-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}
.qc-agent-details {
    display: flex;
    flex-direction: column;
}
.qc-agent-name {
    font-weight: 600;
    font-size: 14px;
}
.qc-agent-status {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}
.qc-agent-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}
.qc-header-actions {
    display: flex;
    gap: 10px;
}
.qc-icon-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.qc-icon-btn:hover {
    background: rgba(255,255,255,0.2);
}
.qc-icon-btn svg {
    fill: #fff !important;
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

/* Body */
.qc-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}
.qc-progress {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qc-progress-bar-bg {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    margin-left: 15px;
    border-radius: 2px;
    overflow: hidden;
}
.qc-progress-bar-fill {
    height: 100%;
    background: #1e293b;
    width: 0%;
    transition: width 0.3s ease;
}
.qc-question-text {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
}
.qc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qc-option-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: #334155 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.qc-option-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

/* Form inputs for lead capture */
.qc-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
.qc-submit-btn {
    width: 100%;
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.qc-submit-btn:hover {
    background: #0f172a;
}
.qc-success-msg {
    text-align: center;
    color: #10b981;
    padding: 30px 0;
}

/* Category Buttons */
.qc-cat-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #334155 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}
.qc-cat-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
.qc-cat-icon {
    font-size: 18px;
}
