/* ========== 通用表单样式 ========== */
.saf-form-container .saf-field {
    margin-bottom: 20px;
}
.saf-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}
.saf-form-container input,
.saf-form-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}
.saf-form-container input:focus,
.saf-form-container textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.saf-form-container .required {
    color: #ef4444;
}
.saf-form-container .saf-error {
    color: #ef4444;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* ========== 弹窗模式按钮样式 ========== */
#saf-form-container .saf-submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
}
#saf-form-container .saf-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
#saf-form-container .saf-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* ========== 内嵌模式样式 ========== */
.saf-inline-form {
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.saf-inline-form .saf-submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
}
.saf-inline-form .saf-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.saf-inline-form .saf-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* ========== 验证码区域 ========== */
.saf-captcha-container {
    margin-bottom: 15px;
}
.saf-captcha-container input {
    flex: 1;
}

/* ========== 成功提示样式 ========== */
.saf-success-icon {
    font-size: 48px;
    color: #16a34a;
    background: #dcfce7;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    text-align: center;
}
.saf-close-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.saf-close-button:hover {
    background: #1d4ed8;
}
.saf-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}
