/* Simple Form Builder - Frontend Styles */

.sfb-form {
    max-width: 600px;
    margin: 20px 0;
}

.sfb-field {
    margin-bottom: 20px;
}

.sfb-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.sfb-required {
    color: #d63638;
}

.sfb-field input[type="text"],
.sfb-field input[type="email"],
.sfb-field input[type="tel"],
.sfb-field input[type="number"],
.sfb-field input[type="date"],
.sfb-field select,
.sfb-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sfb-field input:focus,
.sfb-field select:focus,
.sfb-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.sfb-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio & Checkbox */
.sfb-radio-label,
.sfb-checkbox-label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    font-weight: normal;
}

.sfb-radio-label input,
.sfb-checkbox-label input {
    margin-right: 8px;
}

/* Submit Button */
.sfb-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sfb-submit:hover {
    background: #135e96;
}

.sfb-submit:disabled {
    background: #a7aaad;
    cursor: not-allowed;
}

.sfb-submit .sfb-loading {
    display: inline-block;
}

/* Message */
.sfb-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
}

.sfb-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sfb-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Validation */
.sfb-field.error input,
.sfb-field.error select,
.sfb-field.error textarea {
    border-color: #d63638;
}

.sfb-error-text {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
}

/* 防垃圾：蜜罐字段隐藏 */
.sfb-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
