/**
 * AI Chat Lead Capture - Styles
 *
 * Styles for the lead capture form in the AI chat widget.
 */

/* Lead button in chat header */
.flashgl-chat-lead-btn {
    background: #D00020;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.flashgl-chat-lead-btn:hover {
    background: #b0001a;
    transform: translateY(-1px);
}

/* Lead form container */
.flashgl-chat-lead-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 10px 0;
    overflow: hidden;
    animation: flashglSlideIn 0.3s ease;
}

@keyframes flashglSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flashgl-chat-lead-form__header {
    background: #1A2B8C;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.flashgl-chat-lead-form__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.flashgl-chat-lead-form__close:hover {
    opacity: 0.8;
}

.flashgl-chat-lead-form__body {
    padding: 12px;
}

.flashgl-chat-lead-form__body input,
.flashgl-chat-lead-form__body select,
.flashgl-chat-lead-form__body textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}

.flashgl-chat-lead-form__body input:focus,
.flashgl-chat-lead-form__body select:focus,
.flashgl-chat-lead-form__body textarea:focus {
    outline: none;
    border-color: #1A2B8C;
    box-shadow: 0 0 0 2px rgba(26, 43, 140, 0.1);
}

.flashgl-chat-lead-form__body textarea {
    resize: vertical;
    min-height: 60px;
}

.flashgl-chat-lead-form__body button[type="button"] {
    background: #1A2B8C;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.flashgl-chat-lead-form__body button[type="button"]:hover {
    background: #142160;
}

.flashgl-chat-lead-form__body button[type="button"]:disabled {
    background: #999;
    cursor: not-allowed;
}

.flashgl-chat-lead-form__status {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
}

/* Consent checkbox (GDPR/PIPL) */
.flashgl-chat-lead-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #444;
    cursor: pointer;
}

.flashgl-chat-lead-form__consent input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0 0;
    flex: 0 0 auto;
    accent-color: #1A2B8C;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .flashgl-chat-lead-form {
        margin: 8px -10px;
        border-radius: 0;
    }
    
    .flashgl-chat-lead-form__body {
        padding: 10px;
    }
}
