/* 联系表单小部件样式 */
.contact-form-widget {
    padding: 30px;
    background-color: #ffffff;
}

/* 标题 */
.contact-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-form-title-icon {
    display: flex;
    align-items: center;
    color: #4a7c59;
}

.contact-form-title-icon svg {
    width: 28px;
    height: 28px;
}

.contact-form-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
}

/* 描述 */
.contact-form-desc {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 表单字段 */
.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-row {
    display: flex;
    gap: 20px;
}

.contact-form-row .contact-form-field {
    flex: 1;
}

.contact-form-field {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 15px;
    background-color: #ffffff;
}

.contact-form-field-full {
    width: 100%;
    align-items: flex-start;
    padding-top: 15px;
    padding-bottom: 15px;
}

.field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #4a7c59;
    flex-shrink: 0;
}

.field-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.contact-form-field input {
    flex: 1;
    border: none;
    outline: none;
    height: 50px;
    font-size: 14px;
    color: #333333;
    background: transparent;
}

.contact-form-field textarea {
    flex: 1;
    border: none;
    outline: none;
    height: 120px;
    font-size: 14px;
    color: #333333;
    padding: 0;
    margin: 0;
    resize: vertical;
    background: transparent;
    font-family: inherit;
    line-height: 1.5;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: #999999;
}

/* 提交按钮 */
.contact-form-actions {
    margin-top: 10px;
}

.contact-form-submit {
    display: inline-block;
    padding: 15px 40px;
    background-color: #4a7c59;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-submit:hover {
    background-color: #3d6a4a;
}

.contact-form-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 消息提示 */
.contact-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式 */
@media (max-width: 768px) {
    .contact-form-widget {
        padding: 20px;
    }
    
    .contact-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-form-title {
        font-size: 20px;
    }
}
