/* 添加到现有CSS的末尾 */

/* AJAX加载状态 */
.hfc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 消息动画 */
.hfc-message {
    margin-top: 1rem;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

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

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

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

/* 表单验证样式 */
.inp:invalid {
    border-color: #dc3545;
}

.inp:valid {
    border-color: #28a745;
}

/* 加载指示器 */
.hfc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}