/**
 * Legal Chat AI - Gravity Forms Collection Styles
 *
 * Styles for conversational form collection UI
 *
 * @package LegalChatAIGravityForms
 * @since   1.0.0
 */

/* Confirmation Panel */
.legal-chat-gf-confirmation {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

.legal-chat-gf-confirmation h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

/* Field Preview */
.legal-chat-gf-preview {
    margin-bottom: 20px;
}

.legal-chat-gf-field-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 6px;
}

.legal-chat-gf-field-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-chat-gf-field-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.legal-chat-gf-field-value {
    color: #333;
    font-size: 14px;
    word-break: break-word;
    padding: 2px 0;
    line-height: 1.4;
}

.legal-chat-gf-edit-field {
    background: #fff;
    border: 1px solid #2c5282;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 11px;
    color: #2c5282;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    font-weight: 500;
    margin-top: 2px;
}

.legal-chat-gf-edit-field:hover {
    background: #2c5282;
    color: #fff;
}

/* Action Buttons */
.legal-chat-gf-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.legal-chat-gf-confirm-submit,
.legal-chat-gf-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-chat-gf-confirm-submit {
    background: #2c5282;
    color: #fff;
}

.legal-chat-gf-confirm-submit:hover {
    background: #1a365d;
}

.legal-chat-gf-confirm-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.legal-chat-gf-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.legal-chat-gf-cancel:hover {
    background: #cbd5e0;
}

/* Success Message */
.legal-chat-gf-success {
    margin: 10px 0;
}

.legal-chat-gf-success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #22543d;
    font-weight: 500;
}

.legal-chat-gf-success-message svg {
    color: #38a169;
    flex-shrink: 0;
}

/* Field Prompt */
.legal-chat-gf-prompt {
    margin: 10px 0;
}

.legal-chat-field-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Validation Errors */
.legal-chat-gf-validation-errors {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.legal-chat-gf-validation-errors ul {
    margin: 0;
    padding-left: 20px;
}

.legal-chat-gf-validation-errors li {
    color: #c53030;
    font-size: 13px;
    margin: 5px 0;
}

/* Progress Indicator (optional) */
.legal-chat-gf-progress {
    background: #e2e8f0;
    border-radius: 4px;
    height: 6px;
    margin: 10px 0;
    overflow: hidden;
}

.legal-chat-gf-progress-bar {
    background: #2c5282;
    height: 100%;
    transition: width 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .legal-chat-gf-field-preview {
        padding: 12px;
    }

    .legal-chat-gf-actions {
        flex-direction: column;
    }

    .legal-chat-gf-confirm-submit,
    .legal-chat-gf-cancel {
        width: 100%;
    }

    .legal-chat-gf-edit-field {
        width: 100%;
        text-align: center;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-chat-gf-confirmation-message {
    animation: slideIn 0.3s ease;
}
