/* Smart Ai Forms Lite Frontend Styles */
.smart-ai-forms-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ef-form-description {
    margin: 0 0 20px 0;
    color: #646970;
    line-height: 1.6;
}

.ef-form-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ef-field-wrapper {
    position: relative;
}

.ef-field-wrapper label,
.ef-field-wrapper .ef-field-label,
.ef-field-wrapper .ef-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
}

.ef-field-wrapper .required {
    color: #d63638;
    margin-left: 4px;
}

.ef-input,
.ef-textarea,
.ef-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
}

.ef-textarea {
    resize: vertical;
    min-height: 110px;
}

.ef-input:focus,
.ef-textarea:focus,
.ef-select:focus {
    outline: 2px solid rgba(34, 113, 177, 0.25);
    outline-offset: 2px;
    border-color: #2271b1;
}

.ef-field-help {
    display: block;
    margin-top: 6px;
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

.ef-checkbox-group,
.ef-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ef-html-content {
    padding: 12px 14px;
    border: 1px dashed #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
    color: #1d2327;
}

.ef-form-submit {
    margin-top: 8px;
}

.ef-submit-btn {
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.ef-submit-btn:hover {
    background: #135e96;
    border-color: #135e96;
}

.ef-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ef-form-messages {
    margin-top: 12px;
}

.ef-success-message,
.ef-error-message {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.ef-success-message {
    background: #edfaef;
    border-color: #b7e1c1;
    color: #0a3b18;
}

.ef-error-message {
    background: #fcf0f1;
    border-color: #f2c1c6;
    color: #5a1a21;
}

@media (max-width: 768px) {
    .smart-ai-forms-container {
        padding: 14px;
    }

    .ef-input,
    .ef-textarea,
    .ef-select {
        font-size: 16px;
    }

    .ef-submit-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ef-submit-btn,
    .ef-input,
    .ef-textarea,
    .ef-select {
        transition: none;
    }
}

@media print {
    .ef-submit-btn,
    .ef-form-messages {
        display: none;
    }

    .smart-ai-forms-container {
        padding: 0;
    }

    .ef-input,
    .ef-textarea,
    .ef-select {
        border: 1px solid #000;
    }
}
