/**
 * 表单提交锁定样式
 */

/* 提交按钮基础样式 */
.wpcf7-form input[type="submit"] {
    transition: all 0.3s ease;
    position: relative;
}

/* 提交中状态样式 */
.wpcf7-form input[type="submit"].wpcf7-submitting {
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* 提交中状态的加载动画 */
.wpcf7-form input[type="submit"].wpcf7-submitting::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #666;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wpcf7-spin 1s linear infinite;
    vertical-align: middle;
}

/* 加载动画关键帧 */
@keyframes wpcf7-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单提交成功后的短暂高亮效果 */
.wpcf7-form.wpcf7-mail-sent-ok input[type="submit"] {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* 表单提交失败后的短暂高亮效果 */
.wpcf7-form.wpcf7-mail-failed input[type="submit"],
.wpcf7-form.wpcf7-validation-errors input[type="submit"] {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wpcf7-form input[type="submit"].wpcf7-submitting::after {
        width: 10px;
        height: 10px;
        margin-left: 6px;
    }
}